/* Cassandra by Ciphero: public malicious-extension check. Scoped to .cx-shell. */

html[data-theme="dark"], html:not([data-theme]) {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededed;
  --text-2: #a1a1a1;
  --text-3: #6e6e6e;
  --accent: #d6b77f;
  --btn-bg: #ededed;
  --btn-text: #0a0a0a;
  --ring: rgba(255, 255, 255, 0.07);
  --halo: rgba(214, 183, 127, 0.08);
  --statue-shadow: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
  --mark-bg: radial-gradient(circle at 50% 30%, #312c25, #151412 78%);
  --bubble: #1d1d1d;
  --header-bg: rgba(10, 10, 10, 0.78);
  --composer-bg: #151515;
  --composer-line: rgba(255, 255, 255, 0.1);
  --composer-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  --code-bg: #121212;
  --code-head: #1a1a1a;
  --ok: #3ecf8e;
  --warn: #f2c94c;
  --high: #ff9b4a;
  --bad: #ff6369;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #fafaf9;
  --bg-elev: #ffffff;
  --surface: rgba(0, 0, 0, 0.035);
  --surface-2: rgba(0, 0, 0, 0.06);
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --text: #111111;
  --text-2: #5d5d5d;
  --text-3: #919191;
  --accent: #8b6a32;
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --ring: rgba(0, 0, 0, 0.05);
  --halo: rgba(139, 106, 50, 0.07);
  --statue-shadow: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.12));
  --mark-bg: radial-gradient(circle at 50% 30%, #f1ece3, #d9d0c1 80%);
  --bubble: #efefed;
  --header-bg: rgba(250, 250, 249, 0.82);
  --composer-bg: #ffffff;
  --composer-line: rgba(0, 0, 0, 0.1);
  --composer-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.07);
  --code-bg: #f4f4f3;
  --code-head: #ebebea;
  --ok: #059669;
  --warn: #b45309;
  --high: #ea580c;
  --bad: #dc2626;
  color-scheme: light;
}

.lvl-critical { --lvl: var(--bad); }
.lvl-high     { --lvl: var(--high); }
.lvl-caution  { --lvl: var(--warn); }
.lvl-clear    { --lvl: var(--ok); }

*, *::before, *::after { box-sizing: border-box; }

body.cx-shell {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 Inter, system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, color .3s ease;
}
.cx-shell a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.cx-shell a:hover { text-decoration-color: currentColor; }
.cx-shell code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.cx-shell [hidden] { display: none !important; }
.cx-dim { color: var(--text-2); }

/* ---------- top bar ---------- */
.cx-top { width: 100%; }
.cx-top-in { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 32px; }
.cx-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cx-shell .cx-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; }
.cx-mark { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--mark-bg); object-fit: cover; }
.cx-shell .cx-by { display: inline-flex; align-items: baseline; gap: 7px; height: 18px; line-height: 18px; padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--text-2); text-decoration: none; font-size: 13px; }
.cx-shell .cx-by:hover { color: var(--text); }
.cx-by-word { color: var(--text-3); }
/* The wordmark image is 379×96 with the letters' baseline at y=73 (the p and
   the chevron hang below). The box ends at that baseline so the flex row can
   align it with the baseline of "by"; the image itself paints from ::before
   and overflows the box by the descender. --wm-h is the full image height;
   14px puts its cap height level with 13px text. */
.cx-wordmark { --wm-h: 14px; position: relative; display: inline-block; width: calc(var(--wm-h) * 379 / 96); height: calc(var(--wm-h) * 73 / 96); }
.cx-wordmark::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: var(--wm-h); background: currentColor; -webkit-mask: var(--cx-wordmark) top left / 100% auto no-repeat; mask: var(--cx-wordmark) top left / 100% auto no-repeat; }
.cx-top-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.cx-shell .cx-top-link { color: var(--text-2); text-decoration: none; font-size: 14px; }
.cx-shell .cx-top-link:hover { color: var(--text); }
.cx-icon-btn { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.cx-icon-btn:hover { background: var(--surface); color: var(--text); }
.cx-icon-btn svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity .2s; }
html[data-theme="dark"] .cx-theme-moon, html[data-theme="light"] .cx-theme-sun { opacity: 0; }

.cx-flash { width: calc(100% - 48px); max-width: 560px; margin: 4px auto 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; text-align: center; color: var(--text-2); }
.cx-flash.is-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* ---------- hero ---------- */
/* .cx-hero-wrap is full width so the statue can run off the page edge
   rather than be cut at the 1120px column. */
.cx-hero-wrap { width: 100%; overflow-x: clip; }
.cx-hero { width: 100%; max-width: 1120px; margin: 0 auto; padding: 44px 32px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-areas: "copy art" "form art"; column-gap: 56px; align-items: start; }
.cx-hero-copy { grid-area: copy; }
.cx-hero-form { grid-area: form; align-self: end; padding-top: 32px; }
.cx-hero-art { grid-area: art; }
.cx-shell .cx-eyebrow { display: flex; align-items: flex-start; gap: 10px; max-width: 34em; font-size: 13.5px; line-height: 1.5; color: var(--text-2); text-decoration: none; transition: color .15s; }
.cx-shell .cx-eyebrow:hover { color: var(--text); }
.cx-eyebrow .cx-dot { margin-top: 7px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvl) 20%, transparent); }
.cx-eyebrow-text b { color: var(--text); font-weight: 500; }
.cx-eyebrow-when { color: var(--text-3); font-variant-numeric: tabular-nums; }
.cx-eyebrow-arrow { display: inline-block; color: var(--text-3); white-space: pre; transition: transform .15s; }
.cx-shell .cx-eyebrow:hover .cx-eyebrow-arrow { transform: translateX(2px); }
.cx-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lvl, var(--text-3)); flex: none; }
.cx-h1 { font-weight: 600; font-size: clamp(40px, 5vw, 62px); line-height: 1.04; letter-spacing: -0.045em; margin: 26px 0 18px; }
.cx-lede { font-size: 17.5px; line-height: 1.6; color: var(--text-2); max-width: 30em; margin: 0; }
.cx-lede strong { color: var(--text); font-weight: 500; }

/* the example report, with the statue as a figure behind it */
.cx-hero-art { position: relative; margin: 0; }
.cx-hero-art::before { content: ""; position: absolute; inset: -20% -30%; background: radial-gradient(circle at 50% 40%, var(--halo), transparent 55%); pointer-events: none; }
/* The statue stands behind the card's right edge and, when the viewport is
   narrow, runs off the page edge (clipped by .cx-hero-wrap); it fades at the base.
   Sized from the card's width and hung from its top, both of which hold still
   when a row of the example report is opened; sizing from the card's height
   made the statue grow (and spread rightward) with every expanded row. */
.cx-statue { position: absolute; z-index: 0; left: calc(100% - 128px); top: -24px; width: 64%; height: auto; opacity: .26; filter: grayscale(.3); user-select: none; -webkit-user-drag: none; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%); mask-image: linear-gradient(to bottom, #000 50%, transparent 92%); }
.cx-hero-art.no-statue .cx-statue { display: none; }
.cx-demo { position: relative; z-index: 1; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-elev); box-shadow: var(--composer-shadow); overflow: hidden; }
.cx-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cx-demo-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.cx-demo-mark { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--mark-bg); object-fit: cover; }
.cx-demo-tag { font: 500 10.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.cx-demo-body { padding: 12px; display: grid; gap: 10px; }
.cx-demo .cx-tools { border-radius: 12px; }
.cx-demo .cx-tool > summary { font-size: 13.5px; padding: 9px 12px 9px 10px; }
.cx-demo .cx-tool-body { padding: 0 14px 12px 48px; }
.cx-demo .cx-facts, .cx-demo .cx-rows li { font-size: 13px; }
.cx-demo .cx-facts dt { width: 150px; }
.cx-demo .cx-rows li { padding: 4px 0; }
.cx-demo .cx-tool-note { font-size: 12px; }
.cx-demo .cx-verdict { border-radius: 12px; padding: 14px 16px 14px 18px; background: transparent; }
.cx-demo .cx-verdict-h { font-size: 17px; }
.cx-demo .cx-verdict-note { font-size: 13.5px; }
.cx-demo .cx-scale { margin-top: 14px; }
/* plays in once (cassandra.js initDemo); without JS the final state shows.
   Opacity only: nothing here may change layout, or the hero jumps while it plays. */
.cx-js .cx-demo:not(.is-done) .cx-tool, .cx-js .cx-demo:not(.is-done) .cx-verdict { transition: opacity .45s ease, transform .45s ease; }
.cx-js .cx-demo:not(.is-done) .cx-tool:not(.is-in), .cx-js .cx-demo:not(.is-done) .cx-verdict:not(.is-in) { opacity: 0; transform: translateY(6px); }
.cx-demo .cx-tool-body { transition: opacity .4s ease; }
.cx-demo .cx-tool.is-running .cx-tool-body { display: block; opacity: 0; }

/* the numbers under the hero */
.cx-strip-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.cx-strip { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.cx-strip li { display: flex; align-items: baseline; gap: 6px; padding: 2px 24px; border-left: 1px solid var(--line); white-space: nowrap; }
.cx-strip li:first-child { padding-left: 0; border-left: 0; }
.cx-strip b { color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* ---------- forms + buttons ---------- */
.cx-form { width: 100%; max-width: 460px; }
.cx-field { display: flex; gap: 8px; }
.cx-input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-elev); color: var(--text); font: 400 16px/1 Inter, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
.cx-input::placeholder { color: var(--text-3); }
.cx-input:focus { border-color: var(--text-3); box-shadow: 0 0 0 3px var(--ring); }
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-text); font: 500 14.5px/1 Inter, sans-serif; white-space: nowrap; cursor: pointer; transition: opacity .15s, background-color .15s, border-color .15s; }
.cx-btn:hover { opacity: .86; }
.cx-btn:disabled, .cx-btn.is-busy { opacity: .5; cursor: default; }
.cx-btn.secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.cx-btn.secondary:hover { opacity: 1; background: var(--surface); }
.cx-btn.sm { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; }
.cx-shell .cx-link { font-size: 13.5px; color: var(--text-2); background: none; border: 0; padding: 0; cursor: pointer; }
.cx-shell .cx-link:hover { color: var(--text); }
.cx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* The Terms / Privacy clickwrap under the email field. Plain checkbox so the
   browser's own "required" prompt works, tinted to the theme. */
.cx-accept { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); cursor: pointer; text-align: left; }
.cx-accept input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.cx-turnstile { margin-top: 12px; }
.cx-fine { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.cx-fine + .cx-fine { margin-top: 4px; }
.cx-fine a, .cx-shell .cx-fine .cx-link { color: var(--text-2) !important; font: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cx-fine a:hover, .cx-shell .cx-fine .cx-link:hover { text-decoration-color: currentColor; }
.cx-shell .cx-resume { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.cx-shell .cx-resume:hover { color: var(--text); }
.cx-resume .cx-dot { background: var(--accent); }

/* ---------- landing sections ---------- */
.cx-section { width: 100%; max-width: 1120px; margin: 0 auto; padding: 72px 32px; border-top: 1px solid var(--line); }
.cx-h2 { font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 32px; }
.cx-h3 { font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; margin: 0 0 14px; }
.cx-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cx-steps.is-stack { grid-template-columns: 1fr; gap: 26px; max-width: 26em; }
.cx-steps.is-stack li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; }
.cx-step-n { font: 500 13px/1 "IBM Plex Mono", monospace; color: var(--text-3); }
.cx-steps h3 { font-weight: 600; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; margin: 14px 0 6px; }
.cx-steps.is-stack h3 { margin-top: 0; }
.cx-steps p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.cx-how-term .cx-code-foot { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }
.cx-how-term .cx-code-foot code { font-size: 12px; color: var(--text-2); }
.cx-term { margin: 18px 0 0; padding: 16px 18px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--code-bg); font: 400 12.5px/1.7 "IBM Plex Mono", ui-monospace, monospace; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-term b { font-weight: 500; }
.cx-term-dim { color: var(--text-3); }
.cx-term-ok { color: var(--ok); }
.cx-term-gold { color: var(--accent); font-weight: 500; }
.cx-term-caret { display: inline-block; width: 7px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--text); animation: cx-blink 1.1s steps(1) infinite; }
@keyframes cx-blink { 50% { opacity: 0; } }
.cx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.cx-list li { display: flex; gap: 12px; }
.cx-list li::before { content: "–"; color: var(--text-3); flex: none; }
.cx-list code { font-size: 13px; color: var(--text); }
.cx-rule { margin: 40px 0 0; max-width: 44em; font-size: 14.5px; color: var(--text-2); }

/* ---------- footer: Cassandra note + the shared site footer (shared/_site_footer) ---------- */
.cx-foot-note { width: 100%; max-width: 1120px; margin: auto auto 0; padding: 28px 32px 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.cx-foot-note p { margin: 0; max-width: 76em; }
.cx-foot-note p + p { margin-top: 6px; }
.cx-shell .cx-foot-note a { color: var(--text-2); text-decoration: none; }
.cx-shell .cx-foot-note a:hover { color: var(--text); }

.cx-shell .footer { width: 100%; margin-top: 28px; padding: 44px 0 36px; border-top: 1px solid var(--line); font-size: 14px; }
.cx-shell .footer .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.cx-shell .footer a { text-decoration: none; }
.cx-shell .footer img { display: block; max-width: 100%; }
.cx-shell .footer p { margin: 0; color: var(--text-2); }
.cx-shell .footer-top { display: grid; grid-template-columns: minmax(0, 1.7fr) auto auto auto auto; gap: 44px; align-items: start; }
.cx-shell .footer-brand { max-width: 340px; }
.cx-shell .footer .brand { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--text); }
.cx-shell .footer .brand img { width: 24px; height: 24px; margin: 0 -7px; }
.cx-shell .footer .brand .bn { font-family: Outfit, Inter, system-ui, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.cx-shell .footer .brand .bt { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border-left: 1px solid var(--line-2); padding-left: 10px; margin-left: 10px; white-space: nowrap; }
.cx-shell .footer-col h4 { margin: 0 0 14px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.cx-shell .footer-col a { display: block; margin-bottom: 9px; font-size: 14px; color: var(--text-2); transition: color .15s; }
.cx-shell .footer-col a:hover { color: var(--text); }
.cx-shell .footer-trust { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.cx-shell .footer-cert { display: inline-flex; align-items: center; gap: 13px; }
.cx-shell .footer-cert img { height: 62px; width: auto; }
.cx-shell .footer-cert-txt { display: flex; flex-direction: column; line-height: 1.35; }
.cx-shell .footer-cert-txt b { font-size: 13px; font-weight: 600; color: var(--text-2); }
.cx-shell .footer-cert-txt span { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.cx-shell .footer-social { display: inline-flex; align-items: center; gap: 10px; }
.cx-shell .footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); color: var(--text-2); transition: color .15s, border-color .15s, background-color .15s, transform .15s; }
.cx-shell .footer-social a:hover { color: var(--text); border-color: var(--text-3); background: var(--surface); transform: translateY(-2px); }
.cx-shell .footer-social svg { width: 18px; height: 18px; }
.cx-shell .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.cx-shell .footer-bottom .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.06em; }
.cx-shell .footer-legal { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cx-shell .footer-legal a { color: var(--text-3); transition: color .15s; }
.cx-shell .footer-legal a:hover { color: var(--text); }
.cx-shell .footer-made { white-space: nowrap; }
.cx-shell .footer-made [role="img"] { font-size: 14px; vertical-align: -1px; margin-left: 2px; }
/* The emblem and the SOC 2 badge are white artwork drawn for the dark site. */
html[data-theme="light"] .cx-shell .footer .brand img, html[data-theme="light"] .cx-shell .footer-cert img { filter: invert(1); }

/* ---------- chat app (check page) ---------- */
body.is-app .cx-foot-note, body.is-app .footer { display: none; }
body.is-app .cx-top { position: sticky; top: 0; z-index: 30; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
body.is-app .cx-top.is-scrolled { border-bottom-color: var(--line); }
body.is-app .cx-top-in { max-width: none; height: 56px; padding: 0 12px 0 20px; }
body.is-app .cx-top-nav { gap: 2px; }
.cx-top-center { position: absolute; left: 50%; transform: translateX(-50%); max-width: 40%; }
.cx-convo { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.cx-convo-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; flex: none; }
.cx-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lvl, var(--text-3)); }
.cx-pill[class*="lvl-"] { color: var(--lvl); border-color: color-mix(in srgb, var(--lvl) 32%, transparent); background: color-mix(in srgb, var(--lvl) 9%, transparent); }
.cx-pill.is-waiting i { background: var(--accent); animation: cx-pulse 1.6s ease-in-out infinite; }

.cx-app { flex: 1; display: flex; flex-direction: column; width: 100%; }
.cx-thread { flex: 1; width: 100%; max-width: 768px; margin: 0 auto; padding: 36px 24px 28px; display: flex; flex-direction: column; gap: 32px; }

.cx-turn.is-user { display: flex; justify-content: flex-end; }
.cx-bubble { max-width: min(80%, 560px); padding: 10px 18px; border-radius: 22px; background: var(--bubble); font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-prose { font-size: 16px; line-height: 1.7; min-width: 0; }
.cx-prose > * { margin: 0; }
.cx-prose > * + * { margin-top: 18px; }
.cx-prose strong { font-weight: 600; }

/* lists from the scan (Cassandra::Inventory) */
.cx-prose > p + .cx-items { margin-top: 10px; }
.cx-items { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.cx-items li { position: relative; padding: 5px 0 5px 18px; overflow-wrap: anywhere; }
.cx-items li + li { border-top: 1px solid var(--line); }
.cx-items li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.cx-items-meta { color: var(--text-3); font-size: 13.5px; }
.cx-prose > .cx-items + p { margin-top: 14px; }

/* thinking */
.cx-thinking { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cx-thinking-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); background: var(--mark-bg); flex: none; animation: cx-breathe 2.4s ease-in-out infinite; }
.cx-shimmer { color: transparent; background: linear-gradient(90deg, var(--text-3) 0%, var(--text-3) 38%, var(--text) 50%, var(--text-3) 62%, var(--text-3) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: cx-shimmer 2.2s linear infinite; }
.cx-thinking.is-got .cx-shimmer { animation: none; background: none; color: var(--ok); }
.cx-thinking.is-got .cx-thinking-avatar { animation: none; }
@keyframes cx-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes cx-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.94); } }
@keyframes cx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes cx-spin { to { transform: rotate(360deg); } }

/* command (code block) */
.cx-code { border-radius: 14px; overflow: hidden; background: var(--code-bg); border: 1px solid var(--line); }
.cx-code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 6px; background: var(--code-head); }
.cx-code-tabs { display: flex; gap: 2px; }
.cx-code-tabs button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font: 500 12.5px/1 Inter, sans-serif; cursor: pointer; transition: color .15s, background-color .15s; }
.cx-code-tabs button:hover { color: var(--text); }
.cx-code-tabs button.is-on { color: var(--text); background: var(--surface-2); }
.cx-code-copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: 500 12.5px/1 Inter, sans-serif; cursor: pointer; transition: color .15s, background-color .15s; }
.cx-code-copy:hover { color: var(--text); background: var(--surface-2); }
.cx-code-copy svg { width: 14px; height: 14px; }
.cx-code-pane { display: none; padding: 16px 18px 18px; }
.cx-code-pane.is-on { display: block; }
.cx-code-pane code { display: block; font-size: 13.5px; line-height: 1.65; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-prose > .cx-code-foot { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.cx-code-foot a { color: var(--text-2) !important; }
.cx-act-done { display: none; }
.is-done .cx-act-copy { display: none; }
.is-done .cx-act-done { display: inline; color: var(--ok); }

/* tool steps */
.cx-tools { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cx-tool + .cx-tool { border-top: 1px solid var(--line); }
.cx-tool > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; cursor: pointer; font-size: 14px; line-height: 1.45; user-select: none; transition: background-color .15s; }
.cx-tool > summary::-webkit-details-marker { display: none; }
.cx-tool > summary:hover { background: var(--surface); }
.cx-tool > summary:focus-visible { outline: 2px solid var(--line-2); outline-offset: -2px; }
.cx-tool-ico { position: relative; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--surface); color: var(--text-2); display: grid; place-items: center; }
.cx-tool-ico svg { width: 14px; height: 14px; }
.cx-tool.st-pending .cx-tool-ico svg, .cx-tool.is-running .cx-tool-ico svg { opacity: 0; }
.cx-tool.st-pending .cx-tool-ico::after, .cx-tool.is-running .cx-tool-ico::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 1.6px solid var(--line-2); border-top-color: var(--text); animation: cx-spin .8s linear infinite; }
.cx-tool-title { flex: 1; min-width: 0; }
.cx-tool-st { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.cx-tool.st-found .cx-tool-st { color: var(--bad); font-weight: 500; }
.cx-tool.st-clear .cx-tool-st { color: var(--ok); }
.cx-tool.st-unknown .cx-tool-st { color: var(--warn); }
.cx-tool.st-pending .cx-tool-st { color: transparent; background: linear-gradient(90deg, var(--text-3) 0%, var(--text-3) 38%, var(--text) 50%, var(--text-3) 62%, var(--text-3) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: cx-shimmer 2.2s linear infinite; }
.cx-tool.is-running .cx-tool-st { visibility: hidden; }
.cx-tool-chev { width: 14px; height: 14px; flex: none; color: var(--text-3); transition: transform .2s ease; }
.cx-tool[open] .cx-tool-chev { transform: rotate(90deg); }
.cx-tool-body { padding: 0 16px 14px 50px; }
.cx-tool.is-running .cx-tool-body { display: none; }
.cx-facts { margin: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.cx-facts div { display: flex; gap: 16px; }
.cx-facts dt { width: 170px; flex: none; color: var(--text-3); }
.cx-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cx-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.cx-rows li { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; font-size: 14px; line-height: 1.5; }
.cx-row-ico { width: 6px; height: 6px; margin-top: 8px; flex: none; border-radius: 50%; background: var(--text-3); }
.cx-rows li.st-clear .cx-row-ico { background: var(--ok); }
.cx-rows li.st-found .cx-row-ico { background: var(--bad); }
.cx-rows li.st-unknown .cx-row-ico { background: var(--warn); }
.cx-rows li.st-pending .cx-row-ico { animation: cx-pulse 1.4s ease-in-out infinite; }
.cx-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cx-row-main code { font-size: 12.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.cx-row-st { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.cx-rows li.st-found .cx-row-st { color: var(--bad); font-weight: 500; }
.cx-rows li.st-unknown .cx-row-st { color: var(--warn); }
.cx-tool-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.cx-tool-note a { color: var(--text-2) !important; }

/* verdict */
.cx-verdict { position: relative; padding: 18px 20px 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev); overflow: hidden; }
.cx-verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lvl); }
.cx-verdict-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cx-verdict-level { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--lvl); }
.cx-verdict-level i { width: 7px; height: 7px; border-radius: 50%; background: var(--lvl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvl) 22%, transparent); }
.cx-verdict-kind { color: var(--text-3); }
.cx-verdict-h { margin: 8px 0 4px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.cx-verdict-note { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.cx-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.cx-scale span { padding-top: 8px; border-top: 2px solid var(--line); font-size: 12px; line-height: 1.2; color: var(--text-3); }
.cx-scale span.is-on { border-top-color: var(--lvl); color: var(--text); }

/* email-locked report */
.cx-urgent { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--lvl); border-radius: 12px; font-size: 15px; line-height: 1.55; }
.cx-urgent b { color: var(--lvl); font-weight: 600; }
/* "was this you?" above a report the owner reached through the emailed link */
.cx-prov { margin: 0 0 -14px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.cx-prov b { color: var(--text); font-weight: 600; }
.cx-prov-ask { display: block; margin-top: 2px; color: var(--text); }
.cx-mailcard { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev); }
.cx-mailcard-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--surface); color: var(--text-2); display: grid; place-items: center; }
.cx-mailcard-ico svg { width: 17px; height: 17px; }
.cx-mailcard-main { min-width: 0; }
.cx-mailcard-title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.cx-mailcard p { margin: 4px 0 14px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cx-mailcard-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cx-note { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.cx-note:empty { display: none; }

/* the written answer */
.cx-answer > * { margin: 0; }
.cx-answer > * + * { margin-top: 12px; }
.cx-answer h3 { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.cx-answer h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.cx-answer > h4 { margin-top: 28px; }
.cx-answer ol, .cx-answer ul { padding-left: 1.35em; }
.cx-answer li { padding-left: 4px; }
.cx-answer li + li { margin-top: 6px; }
.cx-answer li::marker { color: var(--text-3); }
.cx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cx-stats div { padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.cx-stats b { display: block; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.cx-stats span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.cx-stats .is-warn b { color: var(--high); }
.cx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cx-chips span { font: 400 12.5px/1 "IBM Plex Mono", monospace; padding: 6px 8px; border-radius: 7px; background: var(--surface); color: var(--text-2); }
.cx-chips em { margin-left: 4px; font-style: normal; font-size: 12px; color: var(--text-3); }
.cx-notify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.cx-notify a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* message actions */
.cx-actions { display: flex; align-items: center; gap: 2px; margin: 10px 0 0 -7px; }
.cx-act { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.cx-act:hover { background: var(--surface); color: var(--text); }
.cx-act svg { width: 16px; height: 16px; grid-area: 1 / 1; }
/* offers */
.cx-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cx-offer { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev); transition: border-color .15s; }
.cx-offer:hover, .cx-offer.is-lead { border-color: var(--line-2); }
.cx-prose > p + .cx-offer, .cx-prose > .cx-offer { margin-top: 14px; }
.cx-offer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.cx-offer-kicker { color: var(--text-3); }
.cx-offer-name { color: var(--accent); font-weight: 500; }
.cx-offer-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; letter-spacing: -0.015em; }
.cx-offer-body { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.cx-offer-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.cx-offer-ok { font-size: 13px; color: var(--ok); }
.cx-offer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cx-offer-form input { min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 16px/1 Inter, sans-serif; outline: none; }
.cx-offer-form input:focus { border-color: var(--text-3); }
.cx-offer-fine { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); }
.cx-offer-err { grid-column: 1 / -1; font-size: 12.5px; color: var(--bad); }

/* composer dock */
.cx-dock { position: sticky; bottom: 0; z-index: 20; padding: 0 16px max(10px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 26px); }
.cx-dock-in { position: relative; width: 100%; max-width: 768px; margin: 0 auto; padding: 22px 8px 0; }
.cx-jump { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--composer-bg); color: var(--text); display: grid; place-items: center; box-shadow: var(--composer-shadow); cursor: pointer; }
.cx-jump svg { width: 16px; height: 16px; }
.cx-suggest { display: flex; flex-direction: column; margin-top: -8px; }
.cx-suggest-h { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.cx-suggest button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-2); font: 400 15px/1.45 Inter, sans-serif; text-align: left; cursor: pointer; transition: color .15s; }
.cx-suggest button:first-of-type { border-top: 1px solid var(--line); }
.cx-suggest button:hover { color: var(--text); }
.cx-suggest svg { width: 16px; height: 16px; flex: none; color: var(--text-3); transition: color .15s, transform .2s; }
.cx-suggest button:hover svg { color: var(--text); transform: rotate(90deg); }
.cx-composer { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px 10px 18px; border-radius: 26px; border: 1px solid var(--composer-line); background: var(--composer-bg); box-shadow: var(--composer-shadow); cursor: text; transition: border-color .15s; }
.cx-composer:focus-within { border-color: var(--line-2); }
.cx-composer textarea { display: block; width: 100%; max-height: 200px; padding: 4px 8px 4px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); font: 400 16px/1.5 Inter, system-ui, sans-serif; }
.cx-composer textarea::placeholder { color: var(--text-3); }
.cx-composer.is-locked, .cx-composer textarea:disabled { cursor: default; }
.cx-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.cx-composer-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.cx-composer-meta svg { width: 14px; height: 14px; }
.cx-send { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--btn-bg); color: var(--btn-text); display: grid; place-items: center; cursor: pointer; transition: opacity .15s, background-color .15s, color .15s; }
.cx-send:hover { opacity: .85; }
.cx-send:disabled { background: var(--surface-2); color: var(--text-3); cursor: default; opacity: 1; }
.cx-send svg { width: 17px; height: 17px; }
.cx-disclaimer { margin: 8px 0 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--text-3); }

/* the reveal right after a scan lands */
.cx-animating [data-cx-report] .cx-tool, .cx-animating [data-cx-report] .cx-prose > :not(.cx-tools), .cx-animating [data-cx-report] .cx-actions { transition: opacity .45s ease, transform .45s ease; }
.cx-animating [data-cx-report] .cx-tool:not(.is-in),
.cx-animating [data-cx-report] .cx-prose > :not(.cx-tools):not(.is-in),
.cx-animating [data-cx-report] .cx-actions:not(.is-in) { opacity: 0; transform: translateY(6px); }
.cx-suggest { transition: opacity .45s ease; }
.cx-animating .cx-suggest { opacity: 0; }

/* gate */
.cx-gate { flex: 1; width: 100%; max-width: 440px; margin: 64px auto 96px; padding: 0 24px; text-align: center; }
.cx-gate-avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--mark-bg); object-fit: cover; margin-bottom: 20px; }
.cx-gate .cx-h2 { margin-bottom: 10px; }
.cx-gate p { margin: 0 0 24px; color: var(--text-2); }
.cx-gate .cx-form { margin: 0 auto; }
.cx-gate .cx-fine { margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cx-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "form"; padding-top: 24px; padding-bottom: 48px; }
  .cx-hero-art { margin: 36px auto 0; width: 100%; max-width: 520px; }
  .cx-hero-form { padding-top: 32px; }
  .cx-statue { display: none; }
  .cx-hero-art::before { inset: -10% -20%; }
  .cx-strip { padding: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .cx-strip li { display: block; padding: 0; border-left: 0; white-space: normal; }
  .cx-strip li:first-child, .cx-strip li:nth-child(4) { grid-column: 1 / -1; }
  .cx-how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cx-how-term { min-width: 0; }
  .cx-steps, .cx-two { grid-template-columns: 1fr; gap: 28px; }
  .hide-sm { display: none; }
  .cx-shell .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 40px; }
  .cx-shell .footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 760px) {
  .cx-top-center { position: static; transform: none; max-width: none; margin-left: auto; }
  .cx-top-center + .cx-top-nav { margin-left: 0; }
  .cx-convo-name { display: none; }
}
@media (max-width: 560px) {
  .cx-top-in, .cx-hero, .cx-section, .cx-foot-note, .cx-shell .footer .wrap { padding-left: 20px; padding-right: 20px; }
  .cx-shell .footer .brand .bt { display: none; }
  .cx-shell .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .cx-top-in { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
  body.is-app .cx-top-in { height: 52px; padding: 0 8px 0 16px; }
  .cx-lockup { gap: 8px; }
  .cx-shell .cx-by { padding-left: 8px; gap: 5px; align-items: center; }
  .cx-by-word { display: none; }
  .cx-wordmark { --wm-h: 12px; height: var(--wm-h); } /* alone, so centre the whole image */
  .cx-field { flex-direction: column; }
  .cx-field .cx-input { flex: none; width: 100%; }
  .hide-xs { display: none; }
  .cx-hero { padding-top: 16px; }
  .cx-hero-art { margin-top: 28px; }
  .cx-demo-body { padding: 10px; gap: 8px; }
  .cx-demo .cx-tool > summary { font-size: 13px; gap: 10px; padding: 9px 10px 9px 9px; }
  .cx-demo .cx-tool-body { padding: 0 12px 12px 12px; }
  .cx-demo .cx-verdict { padding: 14px 14px 14px 16px; }
  .cx-term { padding: 14px; font-size: 11.5px; white-space: pre; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .cx-thread { padding: 20px 16px 20px; gap: 26px; }
  .cx-bubble { max-width: 85%; }
  .cx-prose { font-size: 15.5px; }
  .cx-tool > summary { gap: 10px; padding: 10px 12px 10px 10px; }
  .cx-tool-body { padding: 0 14px 14px 14px; }
  .cx-facts div { flex-direction: column; gap: 0; }
  .cx-facts dt { width: auto; font-size: 12.5px; }
  .cx-verdict { padding: 16px 16px 16px 18px; }
  .cx-verdict-h { font-size: 17.5px; }
  .cx-scale span { font-size: 11px; }
  .cx-mailcard { padding: 14px; gap: 12px; }
  .cx-stats { grid-template-columns: repeat(2, 1fr); }
  .cx-offer-form { grid-template-columns: 1fr; }

  .cx-dock { padding: 0 10px max(8px, env(safe-area-inset-bottom)); }
  .cx-dock-in { padding: 20px 0 0; }
  .cx-composer { padding: 10px 8px 8px 16px; border-radius: 24px; }
  .cx-disclaimer { font-size: 11px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-shell *, .cx-shell *::before, .cx-shell *::after { animation: none !important; transition: none !important; }
  .cx-js .cx-demo .cx-tool, .cx-js .cx-demo .cx-verdict { opacity: 1 !important; transform: none !important; }
}
