/* VIGIL customer app — thin layer over the shared kit (tokens.css + components.css).
   No design tokens are redefined here; only customer-app layout glue. */

/* The shared kit (components.css) lays #app out as the COCKPIT's two-column grid (sidebar + content). The customer
   app renders one full-width shell inside #app, which landed in the sidebar-width column (~440px on a desktop).
   Scoped to the customer plane only, so the operator cockpit's layout is untouched. */
body[data-plane="customer"] #app { display: block; }


#app { min-height: 100vh; }

/* =====================================================================================================================
   The sidebar shell (strix.ai-style near-black left rail + a scrolling main column), built entirely on VIGIL's own
   design tokens so it adapts to both themes. The asserted class names are kept exactly (.cust-shell, .cust-topbar,
   .cust-nav-link, #cust-main) — only their layout changes, from a horizontal top bar to a vertical rail.
   ===================================================================================================================== */
:root { --cust-rail-w: 248px; }

.cust-shell {
  display: grid;
  grid-template-columns: var(--cust-rail-w) minmax(0, 1fr);
  grid-template-areas: "rail main";
  min-height: 100vh; max-width: none; margin: 0; padding: 0;
}
/* the branded boot/loading shell holds only a loader (no rail) — let it span the whole width and centre */
.cust-shell > .cust-loader { grid-column: 1 / -1; min-height: 100vh; }

/* the left rail (class kept: .cust-topbar): a full-height column, near-black, with a right border */
.cust-topbar {
  grid-area: rail;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex-wrap: nowrap;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 18px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: max(14px, env(safe-area-inset-left, 0px));
  background: var(--bg-0); border-right: 1px solid var(--border); border-bottom: 0; margin-bottom: 0;
}
.cust-topbar .brand { display: flex; align-items: center; padding: 2px 6px 8px; }
.cust-topbar .brand img { height: 22px; width: auto; }
.cust-topbar nav { display: flex; flex-direction: column; gap: 2px; flex-wrap: nowrap; }
.cust-topbar .spacer { flex: 1 1 auto; }

/* the workspace identity row (read-only — this app serves the one session-scoped workspace) */
.cust-ws { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-bottom: 4px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-2); padding: 9px 11px; }
.cust-ws-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--text-0); color: var(--bg-0);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.cust-ws-name { flex: 1 1 auto; min-width: 0; display: grid; }
.cust-ws-t { font-size: 13.5px; font-weight: 650; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-ws-s { font-size: 11.5px; color: var(--text-2); }

/* nav items: full-width, left-aligned, with room for a leading stroke icon and the label */
.cust-nav-link {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: 1px solid transparent; cursor: pointer; color: var(--text-1);
  padding: 8px 10px; border-radius: var(--r-1); font: inherit; font-size: 14px; font-weight: 500; opacity: 1;
}
.cust-nav-link .glyph { width: 18px; height: 18px; flex: 0 0 auto; display: inline-flex; color: currentColor; }
.cust-nav-link .glyph svg { width: 18px; height: 18px; }
.cust-nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-nav-link:hover { background: var(--bg-1); color: var(--text-0); opacity: 1; }
/* the active item uses tokens the theme DEFINES, legible in both themes */
.cust-nav-link[aria-current="page"] { background: var(--bg-2); border-color: var(--border);
  color: var(--text-0); font-weight: 600; }
.cust-nav-link:focus-visible { outline: 2px solid var(--st-running); outline-offset: 2px; }

/* the rail footer: the bell, then the account name + sign out — pinned to the bottom by the spacer above */
.cust-topbar > .cust-ntf { display: flex; width: 100%; margin-top: 6px; padding-top: 10px;
  border-top: 1px solid var(--border); }
.cust-topbar > .cust-nav-link:last-child { color: var(--text-2); }
.cust-topbar > .cust-nav-link:last-child:hover { color: var(--text-0); }

/* the mobile top bar + off-canvas drawer (shown only at narrow widths; see the media query below) */
.cust-mtop { display: none; }
.cust-scrim { display: none; }
.cust-burger { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px; color: var(--text-1); cursor: pointer; }
.cust-burger:hover { color: var(--text-0); border-color: var(--border-strong); }
.cust-burger:focus-visible { outline: 2px solid var(--st-running); outline-offset: 2px; }
.cust-burger-bars { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; }
.cust-burger-bars::before, .cust-burger-bars::after { content: ""; position: absolute; left: 0; width: 18px;
  height: 2px; border-radius: 2px; background: currentColor; }
.cust-burger-bars::before { top: -6px; }
.cust-burger-bars::after { top: 6px; }
.cust-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the scrolling main column */
#cust-main { grid-area: main; min-width: 0; padding: 20px clamp(16px, 3.5vw, 40px) 72px;
  padding-right: max(clamp(16px, 3.5vw, 40px), env(safe-area-inset-right, 0px)); }
#cust-main > :not(.cust-auth) { max-width: 1200px; }

@media (max-width: 860px) {
  .cust-shell { grid-template-columns: 1fr; grid-template-areas: "mtop" "main"; }
  .cust-mtop { grid-area: mtop; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 45;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: color-mix(in srgb, var(--bg-0) 92%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
  .cust-mtop .brand { display: flex; align-items: center; }
  .cust-mtop .brand img { height: 20px; width: auto; }
  .cust-topbar { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; width: min(84vw, 310px); z-index: 60;
    transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: var(--shadow-2); }
  .cust-drawer-open .cust-topbar { transform: translateX(0); }
  .cust-scrim { display: block; position: fixed; inset: 0; z-index: 55;
    background: color-mix(in srgb, var(--bg-0) 55%, transparent); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease; }
  .cust-drawer-open .cust-scrim { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cust-topbar, .cust-scrim { transition: none; }
}

/* a centered auth card for the logged-out screens */
.cust-auth { max-width: 420px; margin: 8vh auto 0; }
.cust-auth label { display: block; margin: 12px 0 4px; font-size: 0.85rem; opacity: 0.8; }
.cust-auth input { width: 100%; box-sizing: border-box; }
.cust-auth .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.cust-auth .muted { font-size: 0.82rem; opacity: 0.7; }
/* the shared kit styles text/url/password inputs but not email ones: the same look for the email fields here */
.cust-auth input[type=email] { width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong);
  color: var(--text-0); border-radius: var(--r-2); padding: 11px 14px; font-size: var(--fs-md); font-family: inherit; }

/* "Continue with Google" (shown only while the edge has customer Google sign-in on): a full-width button with
   Google's mark, then an "or use your email" rule above the email form */
.cust-google-block { margin: 16px 0 4px; }
.cust-google { width: 100%; justify-content: center; gap: 10px; padding: 10px 16px; font-weight: 600; }
.cust-google svg { flex: 0 0 auto; }
.cust-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 0.8rem; opacity: 0.65; }
.cust-or::before, .cust-or::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--border, #2a2a2a); }

/* Google sign-in for the installed app: the app's code box, and the page that shows the pairing code where the Google
   sign-in finished (custui._handoff_page) */
.cust-code-input { font-size: 1.6rem; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
body.cust-handoff-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px;
  box-sizing: border-box; }
.cust-handoff { max-width: 420px; width: 100%; text-align: center; padding: 28px 24px; }
.cust-handoff h1 { font-size: 1.4rem; margin: 0 0 12px; }
.cust-handoff-code { font-size: 2.6rem; font-weight: 700; letter-spacing: 0.12em; margin: 18px 0;
  font-variant-numeric: tabular-nums; color: var(--text-0); }
.cust-handoff-warn { font-weight: 600; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--warn, #d9b34a); }

.cust-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cust-kv { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.cust-kv .k { opacity: 0.7; }
.cust-muted { opacity: 0.7; }
.cust-soon { padding: 24px; text-align: center; opacity: 0.7; }

/* ---- Overview (#/, with VIGIL_CUSTOMER_OVERVIEW on): KPI-style tiles, progress meters and compact live feeds ------
   The cards, kv rows and Open buttons are unchanged in the DOM (the Overview tests pin them); this only restyles them
   into a tile wall and adds the meters/feeds the fills render from the same session-scoped reads. */
.cust-overview { display: grid; gap: 18px; }
.cust-overview > h2 { margin: 0; font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.cust-overview > .cust-muted { margin: 0; max-width: 72ch; color: var(--text-1); opacity: 1; }
.cust-overview .cust-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.cust-overview .card { padding: 16px 17px; }
.cust-overview .card > .card-h { margin-bottom: 10px; }
.cust-overview .card > .card-h h3 { font-size: var(--fs-sm); color: var(--text-2);
  text-transform: uppercase; letter-spacing: var(--tracking-label); font-weight: 650; }
.cust-overview .card .cust-kv { padding: 5px 0; font-size: 13.5px; }
.cust-overview .card .cust-kv:first-of-type span:last-child { font-size: var(--fs-lg); font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text-0); }
.cust-overview .card .row { margin: 12px 0 0; }
.cust-overview .card .btn { width: 100%; justify-content: center; }

/* the progress meters: posture score (confirmed-green) and monitored share (running-blue) */
.cust-ov-meter { height: 6px; border-radius: var(--r-pill); background: var(--bg-3); overflow: hidden; margin-top: 10px; }
.cust-ov-meter > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--st-confirmed); }
.cust-ov-meter-mon > i { background: var(--st-running); }

/* the compact feeds: recent assessments (host + finding count) and recent notifications (severity dot + title) */
.cust-ov-feed { display: grid; gap: 0; margin-top: 10px; }
.cust-ov-feed-row { display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-top: 1px solid var(--border); }
.cust-ov-feed-row:first-child { border-top: 0; }
.cust-ov-feed-host { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-ov-feed-count { flex: 0 0 auto; font-size: 12.5px; color: var(--text-1); font-variant-numeric: tabular-nums; }
.cust-ov-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
.cust-ov-dot.sev-critical { background: var(--sev-critical); }
.cust-ov-dot.sev-high { background: var(--sev-high); }
.cust-ov-dot.sev-medium, .cust-ov-dot.sev-med { background: var(--sev-medium); }
.cust-ov-dot.sev-low { background: var(--sev-low); }
.cust-ov-dot.sev-info, .cust-ov-dot.sev-informational { background: var(--sev-info); }

.cust-table { width: 100%; border-collapse: collapse; }
.cust-table th, .cust-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border, #2a2a2a); }
.cust-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.65; }
.cust-table td { font-variant-numeric: tabular-nums; }

/* SS-4 — the Domains/Assets status surface */
.cust-asset-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cust-asset-head .host { font-weight: 600; word-break: break-all; }
.cust-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid var(--border, #2a2a2a);
}
.cust-badge-verified { color: var(--ok, #6cd08a); border-color: var(--ok, #6cd08a); }
.cust-badge-pending  { color: var(--warn, #d9b34a); border-color: var(--warn, #d9b34a); }
.cust-badge-expired  { color: var(--danger, #e2776c); border-color: var(--danger, #e2776c); }
.cust-register { margin-top: 24px; }

/* ---- Fix first (PR-B; only while the edge writes data-posture="1"): the posture tile, its sparkline, the list ---- */
.cust-fix-body { display: grid; gap: 16px; }
.cust-posture { display: grid; gap: 10px; }
.cust-posture p { margin: 0; }
.cust-posture-figure { display: flex; align-items: baseline; gap: 6px; }
/* the screen's one hero figure: the app's own sans, proportional digits */
.cust-posture-score { font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.cust-posture-max { font-size: var(--fs-lg); color: var(--text-2); }
.cust-posture-delta { display: flex; align-items: center; gap: 6px; color: var(--text-1); }
.cust-posture-delta.up .cust-posture-arrow { color: var(--st-confirmed); }
.cust-posture-delta.down .cust-posture-arrow { color: var(--st-blocked); }
/* the sparkline's line ink, chosen per theme: each clears 3:1 on the card and stays apart from the accent dot */
.cust-posture-trend { --posture-spark: var(--text-2); display: grid; gap: 4px; }
:root[data-theme="light"] .cust-posture-trend { --posture-spark: var(--text-1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .cust-posture-trend { --posture-spark: var(--text-1); }
}
.cust-posture-spark { display: block; width: 100%; max-width: 360px; height: auto; overflow: visible; }
.cust-posture-base { stroke: var(--border); stroke-width: 1; }
.cust-posture-line { fill: none; stroke: var(--posture-spark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cust-posture-cross { stroke: var(--border-strong); stroke-width: 1; }
.cust-posture-now { fill: var(--st-running); stroke: var(--bg-1); stroke-width: 2; }
.cust-posture-hover { fill: var(--posture-spark); stroke: var(--bg-1); stroke-width: 2; }
.cust-posture-hit { fill: transparent; outline: none; }
.cust-posture-hit:focus-visible { fill: color-mix(in srgb, var(--st-running) 14%, transparent); }
.cust-posture-readout { min-height: 1.4em; font-size: var(--fs-sm); color: var(--text-1); font-variant-numeric: tabular-nums; }
.cust-posture-how summary, .cust-posture-table summary, .cust-fix-all summary { cursor: pointer; font-size: var(--fs-sm); color: var(--text-1); }
.cust-posture-how p { margin-top: 6px; }
.cust-posture-table .cust-table { margin-top: 8px; }
.cust-fix-preview { border-color: var(--owner-line); }
.cust-fix-preview p { margin: 0 0 8px; }
.cust-fix-list { display: grid; gap: 12px; }
.cust-fix-entry { display: grid; gap: 10px; }
.cust-fix-entry p { margin: 0; }
.cust-fix-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-fix-title { font-size: var(--fs-lg); }
.cust-fix-where { color: var(--text-1); word-break: break-word; }
.cust-fix-meta { font-size: var(--fs-sm); color: var(--text-2); }
.cust-fix-sec { display: grid; gap: 4px; }
.cust-fix-sec > .k { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-2); font-weight: 600; }
.cust-fix-sec code { padding: 1px 5px; border-radius: 6px; background: var(--bg-3); word-break: break-all; }
.cust-fix-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cust-fix-chip { padding: 3px 9px; }
.cust-fix-all ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: var(--fs-sm); }
.cust-fix-all p { margin-top: 6px; font-size: var(--fs-sm); }
.sev-unrated { color: var(--text-1); background: color-mix(in srgb, var(--text-1) 14%, transparent); }
.cust-fix-fixed summary { cursor: pointer; font-weight: 600; }
.cust-fix-fixedlist { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

/* ---- notification centre (bell + unread badge + dropdown panel) ---- */
/* The bell stays inline in the topbar, but the PANEL is anchored to the topbar (the positioned ancestor),
   not the bell — the bell can wrap to any position, while the topbar's right edge is always the shell edge,
   so the dropdown opens top-right and drops below the whole (possibly wrapped) topbar, never off-screen. */
.cust-ntf { display: inline-flex; }
.cust-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 10px;
  background: none; color: inherit; cursor: pointer; opacity: 0.78;
}
.cust-bell:hover { opacity: 1; background: var(--bg-3, #1b212c); }
.cust-bell.off { opacity: 0.5; }
.cust-bell[aria-expanded="true"] { opacity: 1; background: var(--bg-3, #1b212c); border-color: var(--border, #212734); }
.cust-bell-badge {
  position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; box-sizing: border-box;
  padding: 0 4px; border-radius: 999px; background: var(--st-blocked, #e06a5e); color: #fff;
  font-size: 10px; line-height: 16px; font-weight: 700; text-align: center;
  border: 2px solid var(--bg-0, #0a0c10);
}
/* The bell lives in the rail footer (bottom-left), so its panel is a VIEWPORT-anchored fixed drawer that opens from
   the bottom-left and clamps to the viewport with a gutter at every size — robust at any width and in the mobile
   drawer. (It no longer keys off --cust-topbar-h, since the rail is now full height.) */
.cust-ntf-panel {
  position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 16px; top: auto; right: auto; z-index: 70;
  width: min(360px, calc(100vw - 32px)); max-height: min(72vh, 640px);
  overflow-y: auto; background: var(--bg-1, #0f1219); border: 1px solid var(--border, #212734);
  border-radius: 14px; box-shadow: var(--shadow-2, 0 12px 40px rgba(0,0,0,.5));
}
.cust-ntf-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--border, #212734);
}
.cust-ntf-head .spacer { flex: 1 1 auto; }
.cust-ntf-link { background: none; border: 0; cursor: pointer; color: var(--st-running, #5b9bd5); font: inherit; font-size: 0.82rem; padding: 2px 4px; }
.cust-ntf-link:hover { text-decoration: underline; }
.cust-ntf-prefs { display: flex; gap: 18px; padding: 8px 14px; border-bottom: 1px solid var(--border, #212734); }
.cust-ntf-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.85; cursor: pointer; }
.cust-ntf-toggle.disabled { opacity: 0.45; cursor: default; }
.cust-ntf-empty { padding: 28px 16px; text-align: center; opacity: 0.7; font-size: 0.88rem; }
.cust-ntf-list { display: block; }
.cust-ntf-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border, #212734); }
.cust-ntf-item:last-child { border-bottom: 0; }
.cust-ntf-item.unread { background: color-mix(in srgb, var(--st-running, #5b9bd5) 10%, transparent); }
.cust-ntf-sev {
  flex: 0 0 auto; align-self: flex-start; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.cust-ntf-sev.sev-high { color: var(--sev-high, #e8894c); }
.cust-ntf-sev.sev-med  { color: var(--sev-medium, #e8b64c); }
.cust-ntf-sev.sev-low  { color: var(--sev-low, #5b9bd5); }
.cust-ntf-txt { flex: 1 1 auto; min-width: 0; }
.cust-ntf-title { font-weight: 600; font-size: 0.9rem; word-break: break-word; }
.cust-ntf-body { font-size: 0.82rem; opacity: 0.78; margin-top: 2px; word-break: break-word; }
.cust-ntf-kind { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.5; margin-top: 4px; }

/* ---- the Team screen (only while the edge has VIGIL_CUSTOMER_TEAM_UI on) ---------------------------------------- */
.cust-team-msg { min-height: 1.4em; margin: 0 0 12px; }
.cust-team-msg.bad { color: var(--st-blocked, #e2776c); font-weight: 600; }
.cust-team-list { display: grid; gap: 12px; margin-bottom: 24px; }
.cust-member { display: grid; gap: 8px; }
.cust-member p { margin: 0; }
.cust-member-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-member-name { word-break: break-all; }
.cust-member-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-member-actions select { width: auto; min-width: 9rem; }
.cust-member-confirm { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-2);
  border: 1px solid color-mix(in srgb, var(--st-blocked) 45%, var(--border)); }
/* an author `display` beats the browser's own [hidden] rule, so the closed confirmation needs its own */
.cust-member-confirm[hidden] { display: none; }
.cust-team-add { display: grid; gap: 6px; max-width: 520px; }
.cust-team-add h3, .cust-team-add p { margin: 0 0 6px; }
.cust-team-add label { font-size: 0.85rem; opacity: 0.8; margin-top: 6px; }
/* the shared kit styles text inputs and selects but not email inputs: the same look here */
.cust-team-add input[type=email] { width: 100%; box-sizing: border-box; background: var(--bg-2);
  border: 1px solid var(--border-strong); color: var(--text-0); border-radius: var(--r-2); padding: 11px 14px;
  font-size: var(--fs-md); font-family: inherit; }
.cust-team-add .cust-member-actions { margin-top: 10px; }

/* CHK-2 — buy credits (hosted checkout) */
.cust-offer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0;
  border-top: 1px solid var(--border, rgba(127, 127, 127, 0.2)); flex-wrap: wrap; }
.cust-offer p { margin: 2px 0 0; }

/* C1a — launching and controlling an assessment (Assessments) */
.cust-launch { margin: 6px 0; }
.cust-launch .row, .cust-launch-item .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.cust-launch-item { padding: 8px 0; border-top: 1px solid var(--border, rgba(127, 127, 127, 0.2)); }
.cust-launch-status { margin: 0 0 4px; font-weight: 600; }
.cust-launch-picker p { margin: 6px 0; }
.cust-launch-choice { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.cust-launch-confirm p { margin: 6px 0; }
.cust-launch-note { margin: 8px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--warn, #d9b34a); }
.cust-launch-note p { margin: 0 0 6px; }
#cust-launch-other, #cust-launch-done { margin-top: 16px; }
/* C4 — the Monitoring (AEGIS) screen: host states, the in-place turn-off confirm, the events table */
.cust-badge-on     { color: var(--ok, #6cd08a); border-color: var(--ok, #6cd08a); }
.cust-badge-off    { opacity: 0.75; }
.cust-badge-attack { color: var(--danger, #e2776c); border-color: var(--danger, #e2776c); }
.cust-badge-signal { color: var(--warn, #d9b34a); border-color: var(--warn, #d9b34a); }
.cust-mon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.cust-mon-actions p { margin: 0; }
.cust-mon-confirm { margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--danger, #e2776c); }
.cust-mon-confirm p { margin: 0; }
.cust-mon-events { overflow-x: auto; }

/* AS-6d — the AEGIS onboarding flow (#/monitoring/onboarding): the step checklist + explore-next links */
.cust-mon-onboard-complete { border-left: 3px solid var(--ok, #6cd08a); }
.cust-mon-onboard-steps { margin-top: 12px; }
.cust-mon-onboard-actions { margin-top: 10px; }
.cust-mon-onboard-explore { margin-top: 14px; }
.cust-mon-onboard-explore-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* W6 / C5 — the Billing dashboard: the low-balance notice, the per-charge statement */
.cust-lowbal { border-left: 3px solid var(--st-queued, #e8b64c); }
.cust-lowbal strong { display: block; margin-bottom: 4px; }
.cust-lowbal p { margin: 0; }
.cust-stmt-row { padding: 8px 0; border-top: 1px solid var(--border, rgba(127, 127, 127, 0.2)); }
.cust-stmt-row:first-of-type { border-top: 0; }
.cust-stmt-line { padding: 2px 0; font-size: 0.9em; opacity: 0.85; }
.cust-stmt-line .k { padding-left: 14px; }
.cust-stmt-bal { text-align: right; font-size: 0.82em; opacity: 0.7; padding-top: 2px;
  font-variant-numeric: tabular-nums; }
/* C6 — the Code (Red-Pen) screen: one card per connected repository — its Red-Pen policy, Red-Pen System, findings */
.cust-code-section { display: grid; gap: 6px; margin-top: 14px; }
.cust-code-section h4, .cust-code-section p { margin: 0; }
.cust-code-section label { font-size: 0.85rem; opacity: 0.8; }
.cust-code-limit { max-width: 16ch; }
.cust-code-findings { display: grid; gap: 8px; }
.cust-code-finding { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.cust-code-finding p { margin: 0; }
/* legal/governance S1 — the Settings hub (only while the edge has VIGIL_CUSTOMER_SETTINGS on): the General tab (its
   labelled fields, its Save, the notice when the details could not be loaded) and the card linking the other screens */
#cust-settings-general { margin-bottom: 16px; }
/* S5 — the AI / human-in-the-loop governance disclosure (#/ai-governance): a read-only screen of cited statements */
.cust-ai-governance { display: grid; gap: 14px; max-width: 760px; }
.cust-aig-statement { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-1); font-weight: 600; }
.cust-aig-point { margin: 0 0 4px; }
.cust-aig-cite { margin: 0 0 10px; font-size: 0.8rem; font-style: italic; }
.cust-settings-general-form, .cust-settings-links { display: grid; gap: 6px; max-width: 640px; }
.cust-settings-general-form h3, .cust-settings-general-form p,
.cust-settings-links h3, .cust-settings-links p { margin: 0 0 6px; }
.cust-settings-general-form .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cust-field { display: grid; gap: 4px; margin-top: 6px; }
.cust-field label { font-size: 0.85rem; opacity: 0.8; }
/* the shared kit styles text inputs but not email or phone ones: the same look for every field of the tab */
.cust-field input { width: 100%; box-sizing: border-box; }
.cust-field input[type=email], .cust-field input[type=tel] { background: var(--bg-2);
  border: 1px solid var(--border-strong); color: var(--text-0); border-radius: var(--r-2); padding: 11px 14px;
  font-size: var(--fs-md); font-family: inherit; }
.cust-pref-save, .cust-pref-retry { min-width: 7rem; justify-content: center; }
.cust-settings-error { color: var(--st-blocked, #e2776c); font-weight: 600; }
.cust-settings-links .row { margin: 0; }
.cust-settings-link { width: 100%; justify-content: flex-start; text-align: left; }

/* S12 — the read-only Authorizations surface (#/settings/authorizations): a disclosure of the owner-signed engagement
   authorities + a "request authorization" action that drops an unsigned owner-review request. */
.cust-authz-list { display: grid; gap: 12px; max-width: 760px; }
.cust-authz-intro, .cust-authz-row, .cust-authz-empty, .cust-authz-unavailable { display: grid; gap: 6px; }
.cust-authz-intro h3, .cust-authz-row h3, .cust-authz-intro p, .cust-authz-row p { margin: 0 0 4px; }
.cust-authz-rules { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 4px; opacity: 0.85; }
.cust-authz-state { font-weight: 600; }
.cust-authz-requested { color: var(--st-progress, #d9a441); font-weight: 600; }
.cust-authz-disclaim { opacity: 0.7; font-size: 0.85rem; }
.cust-authz-terms { opacity: 0.6; font-size: 0.8rem; font-style: italic; }
.cust-authz-request, .cust-authz-retry { min-width: 10rem; justify-content: center; }
.cust-authz-row .row, .cust-authz-unavailable .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* legal/governance S2 — the Privacy centre (only while the edge has VIGIL_CUSTOMER_PRIVACY_CENTER on): the published
   cookie inventory and subprocessor list the server reads from the public pages, plus the links out to those pages */
.cust-privacy-section { display: grid; gap: 8px; max-width: 760px; margin-bottom: 16px; }
.cust-privacy-section h3 { margin: 0; }
.cust-privacy-section p { margin: 0; }
.cust-privacy-count { font-weight: 600; }
.cust-privacy-cookies { margin-top: 4px; }
.cust-privacy-subs { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.cust-privacy-sub strong { font-weight: 600; }
.cust-privacy-sub span { opacity: 0.8; }
.cust-privacy-link { margin-top: 2px; }
.cust-privacy-link a { color: var(--accent, #6ea8fe); text-decoration: none; font-weight: 600; }
.cust-privacy-link a:hover { text-decoration: underline; }

/* "A new version of VIGIL is available — Refresh" (pwa.js): one notice, pinned until the person refreshes */
#vigil-update {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text-0); box-shadow: var(--shadow-2); font-size: 0.92rem;
}
#vigil-update button {
  font: inherit; font-weight: 600; cursor: pointer; padding: 4px 12px; border-radius: 999px; border: 0;
  background: var(--primary-bg); color: var(--primary-fg);
}

/* "Install app" (pwa.js, Chromium's beforeinstallprompt) and the iOS "Share -> Add to Home Screen" banner */
#vigil-install {
  position: fixed; right: 16px; bottom: 16px; z-index: 55; cursor: pointer;
  font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text-0); box-shadow: var(--shadow-1);
}
/* the iOS guide: a card above Safari's bottom toolbar (iPhone) or below the top bar (iPad / other iOS browsers), with
   an arrow toward the Share button. Safe-area aware so it clears the home indicator. */
#vigil-ios-install {
  position: fixed; left: 12px; right: 12px; z-index: 55; max-width: 440px; margin: 0 auto;
  padding: 14px 16px 12px; border-radius: 16px; border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text-0); box-shadow: var(--shadow-2); font-size: 0.92rem; line-height: 1.4;
}
#vigil-ios-install.vigil-ios-down { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
/* iPad and other iOS browsers: Share is at the top right, so the card sits there, under its arrow */
#vigil-ios-install.vigil-ios-up { top: calc(48px + env(safe-area-inset-top, 0px)); left: auto; right: 12px;
  width: min(380px, calc(100vw - 24px)); margin: 0; }
/* while the guide is open the page can scroll everything above it */
body.vigil-ios-guide-open .cust-shell { padding-bottom: 320px; }
.vigil-ios-head { display: flex; align-items: center; gap: 12px; }
.vigil-ios-icon { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.vigil-ios-titles { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.vigil-ios-titles strong { font-size: 1rem; }
.vigil-ios-titles span { color: var(--text-1); font-size: 0.84rem; }
.vigil-ios-close { align-self: flex-start; font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
  border: 0; background: none; color: var(--text-1); padding: 2px 6px; margin: -4px -6px 0 0; }
.vigil-ios-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vigil-ios-step { display: flex; align-items: flex-start; gap: 10px; }
.vigil-ios-n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
  background: var(--primary-bg); color: var(--primary-fg); }
.vigil-ios-txt b { font-weight: 650; }
.vigil-ios-glyph { width: 18px; height: 18px; vertical-align: -3px; margin: 0 3px; color: var(--st-running, #5b9bd5); }
.vigil-ios-arrow { display: flex; justify-content: center; color: var(--st-running, #5b9bd5); }
.vigil-ios-arrow .vigil-ios-glyph { width: 26px; height: 26px; margin: 0; }
.vigil-ios-down .vigil-ios-arrow { margin: 6px 0 -6px; animation: vigil-ios-nudge-down 1.6s ease-in-out infinite; }
/* iPad / other iOS browsers: Share is at the top right — the arrow sits above the card, pointing up and right */
.vigil-ios-up .vigil-ios-arrow { position: absolute; top: -36px; right: 18px; width: 26px; height: 26px;
  transform: rotate(180deg); }
.vigil-ios-up .vigil-ios-arrow .vigil-ios-glyph { animation: vigil-ios-nudge-up 1.6s ease-in-out infinite; }
@keyframes vigil-ios-nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes vigil-ios-nudge-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .vigil-ios-down .vigil-ios-arrow, .vigil-ios-up .vigil-ios-arrow .vigil-ios-glyph { animation: none; }
}

/* ---- onboarding (guide.js; only while the edge has VIGIL_CUSTOMER_ONBOARDING on) ------------------------------ */
/* the loader: the owner's wordmark brightening and dimming while a screen loads */
.cust-loader { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 56px 0; }
.cust-shell > .cust-loader { min-height: 60vh; }
.cust-loader-mark { height: 29px; width: auto; animation: cust-breathe 1.8s ease-in-out infinite; }
.cust-loader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; }
@keyframes cust-breathe {
  0%, 100% { opacity: 0.28; filter: brightness(0.75); }
  50% { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 12px color-mix(in srgb, var(--text-0) 30%, transparent)); }
}

/* the first-sign-in tour: a frosted panel over a dimmed app; the top bar stays above it so the lit tab shows */
body.cust-touring .cust-topbar { position: relative; z-index: 1001; }
.cust-tour { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center;
  padding: calc(104px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-0) 62%, transparent); -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); overflow-y: auto; }
.cust-tour-panel { width: min(640px, 100%); box-sizing: border-box; display: grid; gap: 16px; padding: 22px 24px;
  background: color-mix(in srgb, var(--bg-1) 88%, transparent); -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%); border: 1px solid var(--border-strong); border-radius: var(--r-4);
  box-shadow: var(--shadow-2); color: var(--text-0); outline: none; }
.cust-tour-head, .cust-tour-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cust-tour-head .spacer, .cust-tour-foot .spacer { flex: 1 1 auto; }
.cust-tour-count { font-size: var(--fs-xs); letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-2); font-variant-numeric: tabular-nums; }
.cust-tour-chapter { color: var(--owner); background: var(--owner-dim); }
.cust-tour-body { display: grid; gap: 10px; }
.cust-tour-body h2 { margin: 0; font-size: var(--fs-xl); line-height: var(--lh-tight); }
.cust-tour-where { margin: 0; font-size: var(--fs-sm); color: var(--text-1); }
.cust-tour-clicks { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: var(--lh); }
.cust-tour-clicks li::marker { color: var(--text-2); font-variant-numeric: tabular-nums; }
.cust-tour-why { margin: 0; padding: 12px 14px; border-radius: var(--r-2); background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text-1); font-size: var(--fs-sm); line-height: var(--lh); }
.cust-tour-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.cust-tour-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--border-strong); }
.cust-tour-dot.on { background: var(--text-0); }
.cust-nav-link.cust-nav-spot { opacity: 1; color: var(--text-0); background: var(--owner-dim);
  box-shadow: 0 0 0 2px var(--owner); animation: cust-spot 1.8s ease-in-out infinite; }
@keyframes cust-spot { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--owner) 45%, transparent); } }

/* the Guide screen */
.cust-guide { display: grid; gap: 18px; }
.cust-guide-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cust-guide-head p { margin: 0; max-width: 62ch; }
.cust-guide-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cust-guide-tab { font: inherit; font-size: var(--fs-sm); padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--text-1); border: 1px solid var(--border-strong); }
.cust-guide-tab[aria-pressed="true"] { background: var(--primary-bg); color: var(--primary-fg); border-color: transparent; }
.cust-guide-lead { margin: 0; color: var(--text-1); }
.cust-guide-steps { display: grid; gap: 12px; }
.cust-guide-step { padding: 0; overflow: hidden; }
.cust-guide-step-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left;
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.cust-guide-step-title { flex: 1 1 auto; font-weight: 600; }
.cust-guide-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--fs-sm); font-weight: 600; background: var(--bg-3); font-variant-numeric: tabular-nums; }
.cust-guide-num.done { background: color-mix(in srgb, var(--st-confirmed) 22%, transparent); color: var(--st-confirmed); }
.cust-guide-detail { display: grid; gap: 12px; padding: 0 16px 16px 56px; }
.cust-guide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .cust-guide-detail { padding-left: 16px; } }

@media (prefers-reduced-motion: reduce) {
  .cust-loader-mark { animation: none; opacity: 0.85; }
  .cust-nav-link.cust-nav-spot { animation: none; }
}
.cust-guide-faq { padding: 14px 16px; }
.cust-guide-faq summary { cursor: pointer; font-weight: 600; }
.cust-guide-faq p { margin-top: 10px; }

/* ---- account security (security.js; only while the edge has VIGIL_CUSTOMER_SECURITY_UI on) --------------------- */
.cust-sec { display: grid; gap: 16px; max-width: 720px; }
.cust-sec > p { margin: 0; }
.cust-sec-card { display: grid; gap: 12px; }
.cust-sec-card p { margin: 0; }
.cust-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cust-sec-head h3 { margin: 0; }
.cust-sec-card .row, .cust-stepup .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cust-sec-setup { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--r-2); background: var(--bg-2);
  border: 1px solid var(--border); }
.cust-sec-setup label, .cust-stepup label { font-size: 0.85rem; opacity: 0.8; }
/* the QR code stays dark on white in both themes: scanners need that contrast */
.cust-qr { width: 208px; height: 208px; max-width: 100%; border-radius: 8px; background: #ffffff; }
.cust-totp-key { font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.05rem; letter-spacing: 0.06em;
  word-break: break-all; user-select: all; -webkit-user-select: all; }
.cust-sec-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.cust-sec-msg:empty, .cust-stepup-msg:empty { display: none; }
.cust-sec-msg, .cust-stepup-msg { color: var(--warn, #d9b34a); font-size: 0.9rem; }
.cust-sec-setup .cust-code-input, .cust-stepup .cust-code-input { max-width: 14ch; }
/* the step-up box opens inside the row of the action that asked for it (e.g. a Buy row), on its own line */
.cust-stepup { flex: 1 1 100%; display: grid; gap: 8px; margin-top: 8px; padding: 14px 16px; border-radius: var(--r-2);
  background: var(--bg-2); border: 1px solid var(--border-strong); }
.cust-stepup p { margin: 0; }
/* "Sign in with a passkey" on the sign-in screen */
.cust-passkey-block { margin-top: 16px; }
.cust-passkey { width: 100%; justify-content: center; margin-top: 12px; }
/* PR-G (Area 6) — Plans (the tier comparison) and Reports (download + the standards mapping) */
.cust-plan-price { font-size: var(--fs-lg, 1.25rem); font-weight: 600; margin: 4px 0 8px; }
#cust-compliance .cust-kv .k { white-space: normal; }

/* Connect (VIGIL_CUSTOMER_CONNECT): the three tiles, the proof panel, copyable values, the live re-check status */
.cust-connect-tiles { align-items: start; }
.cust-connect-tile h3 { margin-top: 0; }
.cust-connect-list { display: grid; gap: 8px; margin: 8px 0; }
.cust-connect-acct { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.cust-connect-proof { margin-top: 14px; display: grid; gap: 10px; }
.cust-connect-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-connect-how p { margin: 0 0 6px; }
.cust-connect-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.cust-connect-copy .k { min-width: 6ch; opacity: 0.8; }
.cust-connect-code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.9rem; padding: 4px 8px;
  border-radius: 8px; border: 1px solid var(--border); overflow-wrap: anywhere; word-break: break-all; }
.cust-connect-policy { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.85rem; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--border); overflow-x: auto; max-width: 100%; margin: 6px 0; }
.cust-connect-steps { display: grid; gap: 12px; padding-left: 1.2rem; margin: 0; }
.cust-connect-status { margin: 0; min-height: 1.4em; }
.cust-connect-authz { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.5rem 0; }
.cust-connect-values { display: grid; gap: 4px; margin: 6px 0; }
.cust-connect-link { overflow-wrap: anywhere; word-break: break-all; }
.cust-copy { padding-inline: 10px; }

/* PR-I — the "Independently verifiable" proof badge and its verify-it-yourself panel (shown only while the edge has
   VIGIL_CUSTOMER_PROOF_BADGE on). The badge is a real button (keyboard + screen reader), styled like the kit's badges. */
.cust-proof { margin-top: 10px; }
.cust-proof-badge { cursor: pointer; font: inherit; background: none; }
.cust-proof-badge:focus-visible { outline: 2px solid var(--ok, #6cd08a); outline-offset: 2px; }
.cust-proof-panel { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-2, 10px);
  border: 1px solid var(--border, #2a2a2a); display: grid; gap: 6px; }
.cust-proof-panel[hidden] { display: none; }
.cust-proof-panel h4 { margin: 0; }
.cust-proof-panel p { margin: 0; }
.cust-proof-panel .cust-kv span:last-child { word-break: break-all; text-align: right; font-variant-numeric: tabular-nums; }
.cust-proof-anchors { margin: 0; padding-left: 1.2em; }
.cust-proof-cmd { margin: 0; padding: 10px 12px; border-radius: var(--r-2, 10px); background: var(--bg-2, #111);
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 0.85rem; }

/* ---- PR-L (Area 11): blind-vuln (out-of-band) confirmation + attack-path storytelling --------------------------
   Rendered ONLY when the edge has the matching flag on (VIGIL_CUSTOMER_BLIND_VULN / VIGIL_CUSTOMER_ATTACK_PATH);
   with the flag off these classes are never emitted, so the card/screen is byte-identical to before. */

/* a quiet, text-style action (opens the "how we proved it" panel / inline toggles) */
.cust-link-btn { background: none; border: 0; cursor: pointer; color: var(--st-running, #5b9bd5);
  font: inherit; font-size: 0.85rem; padding: 2px 4px; text-decoration: underline; text-underline-offset: 2px; }
.cust-link-btn:hover { color: var(--text-0); }

/* the blind-vuln badge + its "how we proved it" detail panel */
.cust-oob { display: grid; gap: 8px; margin: 2px 0 10px; padding: 12px 14px; border-radius: var(--r-2, 12px);
  background: color-mix(in srgb, var(--ok, #6cd08a) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok, #6cd08a) 45%, var(--border, #2a2a2a)); }
.cust-oob-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.cust-badge-oob { color: var(--ok, #6cd08a); border-color: var(--ok, #6cd08a);
  background: color-mix(in srgb, var(--ok, #6cd08a) 14%, transparent); }
.cust-oob-sub { opacity: 0.8; font-size: 0.82rem; }
.cust-oob-detail { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-1, 8px);
  background: var(--bg-2); border: 1px solid var(--border, #2a2a2a); }
.cust-oob-detail[hidden] { display: none; }
.cust-oob-detail .cust-kv .k { font-variant-numeric: tabular-nums; }

/* the attack-path chain card: SVG ribbon + accessible interactive step list */
.cust-chain-impact { display: inline-block; margin: 6px 0; padding: 3px 10px; border-radius: var(--r-pill, 999px);
  font-size: 0.78rem; font-weight: 600; color: var(--sev-high, #e8894c);
  border: 1px solid color-mix(in srgb, var(--sev-high, #e8894c) 55%, var(--border, #2a2a2a));
  background: color-mix(in srgb, var(--sev-high, #e8894c) 10%, transparent); }
.cust-chain-wrap { margin: 10px 0; display: flex; justify-content: center; }
.cust-chain-svg { color: var(--st-running, #5b9bd5); max-width: 320px; }
.cust-chain-box { fill: var(--bg-2); stroke: var(--border-strong, #384050); stroke-width: 1; }
.cust-chain-box.start { fill: var(--bg-3); }
.cust-chain-box.impact { fill: color-mix(in srgb, var(--sev-high, #e8894c) 16%, var(--bg-2));
  stroke: var(--sev-high, #e8894c); }
.cust-chain-lbl { fill: var(--text-0); font-size: 12px; font-family: inherit; font-weight: 600; }
.cust-chain-edge { color: var(--st-running, #5b9bd5); }
.cust-chain-edgelbl { fill: var(--text-0); opacity: 0.7; font-size: 10.5px; font-family: inherit; }
.cust-chain-steps { display: grid; gap: 6px; margin-top: 8px; }
.cust-chain-step { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border, #2a2a2a); border-radius: var(--r-1, 8px);
  padding: 8px 10px; cursor: pointer; color: var(--text-0); font: inherit; }
.cust-chain-step:hover { border-color: var(--st-running, #5b9bd5); }
.cust-chain-step-n { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: var(--primary-fg, #0a0c10);
  background: var(--st-running, #5b9bd5); }
.cust-chain-step-main { display: grid; gap: 2px; font-size: 0.86rem; }
.cust-chain-step-main .cust-muted { font-size: 0.76rem; }

/* Data rights (data_rights.js, VIGIL_CUSTOMER_DATA_RIGHTS): the Settings sub-screen — rights, SLA, export, request */
.cust-data-rights { display: grid; gap: 16px; max-width: 720px; }
.cust-data-rights-rights, .cust-data-rights-sla, .cust-data-rights-actions,
.cust-data-rights-history { display: grid; gap: 8px; }
.cust-data-rights-rights h3, .cust-data-rights-sla h3, .cust-data-rights-actions h3,
.cust-data-rights-history h3 { margin: 0 0 4px; }
.cust-data-rights-quote { margin: 0; display: grid; gap: 4px; padding: 10px 12px;
  border-left: 3px solid var(--border-strong, #384050); background: var(--bg-2); border-radius: var(--r-1, 8px); }
.cust-data-rights-quote blockquote { margin: 0; }
.cust-data-rights-sla-line { font-weight: 600; }
.cust-data-rights-contact { color: var(--st-running, #5b9bd5); }
.cust-data-rights-actions .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cust-data-rights-export, .cust-data-rights-delete,
.cust-data-rights-delete-confirm, .cust-data-rights-delete-cancel { min-width: 0; }
.cust-data-rights-confirm, .cust-data-rights-export-out { display: grid; gap: 8px; }
.cust-data-rights-confirm-box { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--border, #2a2a2a); border-radius: var(--r-1, 8px); }
.cust-data-rights-export-text { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem;
  background: var(--bg-2); border-radius: var(--r-1, 8px); padding: 8px 10px; max-height: 240px; overflow: auto; }
.cust-data-rights-recorded { font-weight: 600; }
.cust-data-rights-requests { display: grid; gap: 6px; }
.cust-data-rights-request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cust-data-rights-request { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.cust-data-rights-request-kind { font-weight: 600; }

/* Live Control (#/live) — the live-engagement activity timeline + steering box */
.live-head h2 { margin-bottom: 4px; }
.live-controls { display: flex; gap: 8px; margin: 8px 0 16px; }
.live-instruct { width: 100%; box-sizing: border-box; resize: vertical; min-height: 3em; margin-bottom: 8px; font: inherit; }
.live-note { min-height: 1.2em; }
.live-feed { list-style: none; margin: 0; padding: 0; }
.live-step { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--border, #eee); }
.live-step:first-child { border-top: 0; }
.live-step-t { font-family: var(--font-mono, monospace); font-size: var(--fs-sm, 0.85em); color: var(--muted, #888); min-width: 6.5em; }
.live-step-i { width: 1.2em; text-align: center; }
.live-step-l { flex: 1; }

/* DevSecOps Integrations (#/integrations): the Slack / Jira / Linear delivery screen (VIGIL_CUSTOMER_INTEGRATIONS).
   Reuses .card, .cust-grid, .cust-asset-head, .cust-badge, .cust-mon-actions and .cust-mon-confirm; only the pieces
   below are its own. The provider badge is an ORIGINAL brand-accent tile (a rounded square in the provider's accent
   colour carrying its initial), NOT the vendor's trademarked logo; the text name does the identifying. */
.cust-intg-id { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cust-intg-name { font-weight: 600; word-break: break-word; }
.cust-intg-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  flex: 0 0 auto; border-radius: 7px; font-size: 0.8rem; font-weight: 700; line-height: 1; color: #fff;
  background: var(--border-strong, #2c3444); }
/* per-provider accent colour (decorative only; the official-logo seam lives in app.js intgBadge) */
.cust-intg-badge-slack  { background: #611f69; }
.cust-intg-badge-jira   { background: #1868db; }
.cust-intg-badge-linear { background: #5e6ad2; }
.cust-intg-badge-generic { background: var(--border-strong, #2c3444); }
.cust-intg-egress { max-width: 72ch; }
.cust-intg-egress h3 { margin: 0 0 8px; }
.cust-intg-egress-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.cust-intg-form { display: grid; gap: 10px; max-width: 560px; }
.cust-intg-form > label { font-weight: 600; }
.cust-intg-form select, .cust-intg-form input { width: 100%; box-sizing: border-box; font: inherit; }
#intg-fields { display: grid; gap: 10px; }
.cust-intg-secret { display: grid; gap: 6px; }
.cust-intg-hint { margin: 0; font-size: 0.8rem; opacity: 0.7; }
.cust-intg-test { margin-top: 8px; display: grid; gap: 6px; }
.cust-intg-test p { margin: 0; }
.cust-intg-delivered { color: var(--ok, #6cd08a); }
.cust-intg-refused { color: var(--danger, #e2776c); }
