:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #07070a;
  --glass: rgba(11, 11, 16, 0.72);
  --glass-strong: rgba(14, 14, 20, 0.86);
  --glass-subtle: rgba(255, 255, 255, 0.03);
  --glass-input: rgba(7, 7, 11, 0.85);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.165);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --blur: blur(22px) saturate(150%);
  --blur-sm: blur(14px) saturate(135%);

  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #f6f6fa;
  --soft: #b9b9c8;
  --muted: #828294;
  --faint: #575766;

  --red: #ff453a;
  --red-soft: #ff948e;
  --red-bg: rgba(255, 69, 58, 0.1);
  --red-line: rgba(255, 69, 58, 0.34);

  --amber: #fbbf24;
  --amber-soft: #f7db92;
  --amber-bg: rgba(251, 191, 36, 0.09);
  --amber-line: rgba(251, 191, 36, 0.3);

  --green: #30d158;
  --green-soft: #8fe8a5;
  --green-bg: rgba(48, 209, 88, 0.09);
  --green-line: rgba(48, 209, 88, 0.3);

  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --accent-glow: rgba(139, 92, 246, 0.22);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  --radius: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; background: #000000; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Mode visibility gates */
body.mode-landing .dash-only { display: none !important; }
body.mode-dashboard .landing-only { display: none !important; }

/* Subtle pure-black ambient depth */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(56% 42% at 50% -8%, rgba(139, 92, 246, 0.13), transparent 70%),
    radial-gradient(36% 28% at 88% 10%, rgba(56, 189, 248, 0.045), transparent 72%),
    radial-gradient(32% 28% at 10% 24%, rgba(244, 63, 94, 0.035), transparent 72%),
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  mask-image: radial-gradient(ellipse 92% 84% at 50% 10%, #000 38%, transparent 100%);
}
body.mode-dashboard .ambient-bg {
  background:
    radial-gradient(50% 34% at 72% 0%, rgba(139, 92, 246, 0.08), transparent 72%),
    radial-gradient(38% 30% at 15% 100%, rgba(56, 189, 248, 0.035), transparent 74%);
  mask-image: none;
}

button, input, select, textarea { font: inherit; }
a { color: #c4b5fd; text-decoration: none; transition: color 0.15s; }
a:hover { color: #e2daff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ui-icon { width: 14px; height: 14px; flex: 0 0 auto; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 90; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: top 0.15s; }
.skip-link:focus { top: 16px; color: #000; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- keyframes ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes paneFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes scanBeam {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.anim-in {
  animation: fadeSlideUp 0.55s var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

/* ---------- topbar (floating pill on landing, full-width glass bar on dashboard) ---------- */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 14px 24px 0;
  pointer-events: none;
}
.topbar-inner {
  pointer-events: auto;
  max-width: 1132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 14px 8px 16px;
  gap: 16px;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 12, 0.72);
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, background 0.2s;
}
.topbar-inner:hover { border-color: rgba(255, 255, 255, 0.16); }

.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f5f5fa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s var(--ease-out), border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.brand:hover .brand-mark {
  transform: scale(1.05);
  color: #fff;
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.brand-text strong { display: block; font-size: 14px; letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; color: var(--text); }
.brand-text span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.topbar-back-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  padding: 5px 11px; border-radius: var(--radius-pill);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.topbar-back-pill:hover { color: #fff; border-color: var(--glass-border-strong); background: rgba(255, 255, 255, 0.07); }

.topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--soft);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.035);
  padding: 6px 11px; border-radius: var(--radius-pill); cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.topbar-btn:hover { color: #fff; border-color: var(--glass-border-strong); background: rgba(255, 255, 255, 0.08); }
.topbar-btn[aria-pressed="true"] {
  color: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(139, 92, 246, 0.14);
}

.session-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--soft); border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
  padding: 6px 11px; border-radius: var(--radius-pill); white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.session-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background 0.25s, box-shadow 0.25s; }
.session-badge.verified { color: var(--green-soft); border-color: var(--green-line); background: var(--green-bg); }
.session-badge.verified .session-dot { background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, 0.7); }
.session-badge.locked { color: var(--amber-soft); border-color: var(--amber-line); background: var(--amber-bg); }
.session-badge.locked .session-dot { background: var(--amber); }
.topbar-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03);
  padding: 6px 11px; border-radius: var(--radius-pill); white-space: nowrap;
}

.chrome-pills { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.chrome-preset {
  padding: 5px 10px; border-radius: var(--radius-pill); font-family: var(--mono);
  border: 1px solid rgba(167, 139, 250, 0.28); background: rgba(139, 92, 246, 0.12); color: var(--accent-soft);
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.chrome-live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--soft); font-family: var(--mono);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); padding: 5px 10px;
  border-radius: var(--radius-pill); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.chrome-live.is-scanning .live-dot { background: var(--accent); box-shadow: 0 0 8px rgba(139, 92, 246, 0.85); }
.chrome-live.is-complete .live-dot { background: var(--green); }
.chrome-live.is-error .live-dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 69, 58, 0.85); }

/* Dashboard mode transforms topbar + shell into a true fullscreen app */
body.mode-dashboard {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.mode-dashboard .topbar {
  position: relative;
  top: 0;
  padding: 0;
  flex: 0 0 auto;
  pointer-events: auto;
}
body.mode-dashboard .topbar-inner {
  max-width: none;
  width: 100%;
  min-height: 56px;
  padding: 8px 20px;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.88);
  box-shadow: none;
}
body.mode-dashboard .shell {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.mode-dashboard .workspace {
  margin: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.mode-dashboard .workspace-chrome {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.back-row { margin: 22px auto 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--soft); text-decoration: none;
  border: 1px solid var(--glass-border); background: var(--glass);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--glass-highlight);
  padding: 7px 14px; border-radius: var(--radius-pill);
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s var(--ease-out);
}
.back-btn:hover { color: var(--text); border-color: var(--glass-border-strong); background: rgba(255, 255, 255, 0.07); transform: translateX(-2px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 11px 17px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, opacity 0.18s, transform 0.15s var(--ease-out), box-shadow 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: rgba(255, 255, 255, 0.95); color: #000000; border-color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), inset 0 1px 0 #fff;
}
.btn-primary:hover:not(:disabled) { background: #fff; border-color: #fff; color: #000; box-shadow: 0 12px 30px rgba(255, 255, 255, 0.14); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.07); color: var(--text); border-color: var(--glass-border-strong);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--glass-highlight);
}
.btn-secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--soft); border-color: var(--glass-border);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
}
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--glass-border-strong); }
.btn-pill { border-radius: var(--radius-pill); padding: 12px 22px; font-size: 13px; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-pill); }
.btn-wide { width: 100%; justify-content: space-between; padding: 12px 16px; font-size: 13.5px; }

/* ---------- landing hero ---------- */
.hero { padding: 38px 0 32px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--soft); margin: 0 auto 20px; justify-content: center;
  padding: 6px 14px; border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  background: var(--glass); backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--glass-highlight);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255, 69, 58, 0.8); animation: pulseDot 2.2s ease-in-out infinite; flex: 0 0 auto; }
.hero h1 {
  font-family: var(--display); font-size: clamp(40px, 6.2vw, 66px);
  line-height: 0.94; letter-spacing: -0.05em; margin: 0 auto; max-width: 14ch;
  font-weight: 700; color: #fff; text-wrap: balance;
}
.hero h1 em {
  font-style: normal; font-weight: 700;
  background: linear-gradient(135deg, #ddd6fe 0%, #a78bfa 48%, #7c7c96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy { max-width: 590px; margin: 22px auto 0; color: var(--soft); font-size: 15px; line-height: 1.72; text-align: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none;
  margin: 26px auto 0; padding: 0; justify-content: center;
  color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.trust-row li { position: relative; padding-left: 12px; }
.trust-row li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transform: translateY(-50%); }
.trust-row li:first-child::before { background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, 0.7); }

/* overview dashboard — sleek black glass */
.overview-dashboard {
  position: relative;
  margin: 38px auto 0;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--glass-shadow);
}
.overview-sweep {
  position: absolute; top: 0; left: 0; width: 32%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.9), transparent);
  animation: scanBeam 5.5s linear infinite;
  pointer-events: none;
}
.overview-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.overview-dots { display: inline-flex; gap: 6px; align-items: center; }
.overview-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; opacity: 0.9; }
.overview-dots i:nth-child(1) { background: #ff5f56; border: 1px solid #e0443e; }
.overview-dots i:nth-child(2) { background: #ffbd2e; border: 1px solid #dea123; }
.overview-dots i:nth-child(3) { background: #27c93f; border: 1px solid #1aab2e; }
.overview-label { flex: 1; text-align: left; min-width: 0; }
.overview-live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--soft);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 9.5px; white-space: nowrap;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, 0.65); animation: pulseDot 2s ease-in-out infinite; flex: 0 0 auto; }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.overview-grid > div { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; transition: background 0.2s; }
.overview-grid > div:hover { background: rgba(255, 255, 255, 0.03); }
.overview-grid > div:last-child { border-right: 0; }
.overview-grid dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.overview-grid dd { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4; overflow-wrap: anywhere; }

.disclaimer-banner {
  margin: 18px auto 0;
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--amber-line);
  border-left: 3px solid var(--amber);
  background: linear-gradient(95deg, rgba(251, 191, 36, 0.08), rgba(10, 10, 14, 0.72) 45%);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-md);
  text-align: left;
}
.disclaimer-icon { width: 20px; height: 20px; color: var(--amber); flex: 0 0 auto; margin-top: 1px; }
.disclaimer-banner strong { display: block; color: var(--amber-soft); font-size: 12.5px; letter-spacing: -0.01em; margin-bottom: 3px; }
.disclaimer-banner span { color: var(--soft); font-size: 12.5px; line-height: 1.6; }

/* ---------- gate ---------- */
.gate {
  margin: 28px auto 36px;
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.gate-card { padding: 32px; }
.gate-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gate-lock-emblem {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--glass-border-strong); background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--glass-highlight);
  display: grid; place-items: center; color: var(--accent-soft); flex: 0 0 auto;
}
.gate-lock-emblem svg { width: 20px; height: 20px; }
.gate-card h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; margin: 6px 0 12px; color: #fff; }
.gate-card p { color: var(--soft); line-height: 1.68; font-size: 14px; margin: 0 0 12px; max-width: 68ch; }
.gate-note { font-size: 12.5px !important; color: var(--muted) !important; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gate-status { font-family: var(--mono); font-size: 12px; color: var(--amber-soft); min-height: 18px; margin-top: 14px !important; }
.gate-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.gate-meta > div { padding: 24px 32px; border-right: 1px solid var(--line); }
.gate-meta > div:last-child { border-right: 0; }
.gate-meta h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin: 0 0 12px; }
.gate-meta ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.gate-meta strong { color: var(--text); }
.panel-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }

/* ---------- fullscreen dashboard workspace ---------- */
.workspace-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}
.panel { background: transparent; border: 0; min-width: 0; }

.source-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(6, 6, 9, 0.94);
}
.source-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.source-footer {
  flex: 0 0 auto;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.results-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #000000;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.dash-status-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 28px 0;
}
.dash-notice {
  display: flex; gap: 11px; align-items: center; padding: 10px 14px;
  border: 1px solid var(--glass-border); background: rgba(12, 12, 17, 0.72);
  box-shadow: var(--glass-highlight); border-radius: var(--radius-md);
}
.notice-icon {
  width: 20px; height: 20px; border: 1px solid var(--amber-line); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px;
  color: var(--amber-soft); flex: 0 0 auto; background: var(--amber-bg);
}
.dash-notice p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--soft); }
.dash-notice strong { color: var(--amber-soft); }

/* model preload & persistence bar */
.model-bar {
  padding: 10px 15px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.06);
  transition: background 0.25s, border-color 0.25s;
}
.model-bar.is-ready {
  border-color: var(--green-line);
  background: rgba(48, 209, 88, 0.055);
}
.model-bar.is-error {
  border-color: var(--red-line);
  background: rgba(255, 69, 58, 0.08);
}
.model-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.model-bar-left { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; font-family: var(--mono); font-size: 11px; }
.model-bar-left strong { color: var(--text); font-weight: 600; }
.model-detail { color: var(--muted); font-size: 10.5px; }
.model-spinner {
  width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.16); border-top-color: var(--accent-soft);
  animation: spin 0.85s linear infinite;
}
.model-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--green); box-shadow: 0 0 8px rgba(48, 209, 88, 0.75); }
.model-bar.is-error .model-dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 69, 58, 0.75); }
.model-bar-right { display: flex; align-items: center; gap: 8px; }
.model-pct { font-family: var(--mono); font-size: 10.5px; color: var(--accent-soft); min-width: 34px; text-align: right; }
.model-bar.is-ready .model-pct { color: var(--green-soft); }
.model-bar.is-error .model-pct { color: var(--red-soft); }
.model-retry-btn { color: var(--amber-soft); border: 1px solid var(--amber-line); background: var(--amber-bg); padding: 3px 9px; border-radius: var(--radius-pill); }
.model-track { height: 4px; margin: 8px 0 0; transition: opacity 0.25s; }
.model-bar.is-ready .model-track { display: none; }
.model-bar.is-ready .model-bar-top { min-height: 20px; }

.results-stage {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 28px 36px;
}

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h3 { font-family: var(--display); font-size: 17px; margin: 2px 0 0; letter-spacing: -0.02em; color: #fff; font-weight: 700; }
.step-mark { color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03); padding: 4px 9px; border-radius: 7px; }

/* source tabs */
.source-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}
.source-tab {
  border: 0; background: transparent; color: var(--muted); border-radius: var(--radius-pill);
  padding: 8px 6px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.source-tab:hover { color: var(--text); }
.source-tab.active { background: rgba(255, 255, 255, 0.95); color: #000000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
.tab-pane { display: none; min-width: 0; }
/* Let the tab fade finish without retaining its identity transform as a stacking context. */
.tab-pane.active { display: block; animation: paneFade 0.22s var(--ease-out); }

.field-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 6px; }
.field-top-row .field-label { margin: 0; }
.field-label { display: block; color: var(--soft); font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; margin: 12px 0 6px; }
.field-label .optional { text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 10px; }
.paste-stats { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.inline-text-btn {
  border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 10px;
  padding: 3px 7px; border-radius: 5px; cursor: pointer; transition: color 0.15s, background 0.15s;
}
.inline-text-btn:hover { color: var(--red-soft); background: var(--red-bg); }
.field-hint { color: var(--muted); font-size: 11.5px; line-height: 1.55; margin: 10px 0 0; }
.field-hint code { font-family: var(--mono); font-size: 10.5px; color: var(--soft); background: rgba(255, 255, 255, 0.05); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--glass-border); }

.text-input, .select-input {
  width: 100%; background: var(--glass-input); border: 1px solid var(--glass-border); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 11px; font-size: 13px; outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.text-input:focus, .select-input:focus, .code-input:focus {
  border-color: var(--accent); background: rgba(10, 10, 16, 0.96); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.text-input::placeholder { color: var(--faint); }
.code-input {
  width: 100%; height: 176px; resize: vertical; min-height: 115px; max-height: 380px;
  background: rgba(5, 5, 8, 0.9); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 12px 13px; color: #e8e8f2; font-family: var(--mono); font-size: 12px; line-height: 1.62; outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: var(--radius-md); padding: 24px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 0; max-width: 100%; width: 100%; overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--glass-highlight);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.dropzone:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.045); }
.dropzone.drag {
  border-color: var(--accent); border-style: solid;
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), inset 0 0 28px rgba(139, 92, 246, 0.1);
  transform: scale(1.01);
}
.dropzone strong { font-size: 13.5px; color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.dropzone span { color: var(--muted); font-size: 12px; max-width: 100%; overflow-wrap: anywhere; }
.dropzone small { color: var(--faint); font-size: 11px; line-height: 1.5; max-width: 280px; margin-top: 6px; }
.drop-icon {
  width: 40px; height: 40px; border: 1px solid var(--glass-border-strong); border-radius: 11px;
  display: grid; place-items: center; color: var(--accent-soft); background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--glass-highlight); margin-bottom: 4px;
  transition: transform 0.25s var(--ease-out), border-color 0.2s, color 0.2s;
}
.drop-icon svg { width: 18px; height: 18px; }
.dropzone:hover .drop-icon, .dropzone.drag .drop-icon { transform: translateY(-3px); border-color: var(--accent); color: #fff; }
.drop-actions { margin-top: 8px; }
.dropzone.compact { min-height: 190px; justify-content: center; }

.selection-preview {
  margin-top: 12px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm); padding: 11px 13px; box-shadow: var(--glass-highlight);
  min-width: 0; max-width: 100%; overflow: hidden;
  animation: paneFade 0.2s var(--ease-out);
}
.selection-preview-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--soft); margin-bottom: 6px; }
.selection-preview-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.selection-preview-list li { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); min-width: 0; }
.selection-preview-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); min-width: 0; flex: 1 1 0%; }
.selection-preview-more { font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 4px; }

.gh-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gh-status { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--amber-soft); min-height: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.gh-progress-wrap { margin-top: 10px; min-width: 0; }
.gh-progress-wrap .progress-track { margin: 0 0 6px; }
.gh-progress-file { font-family: var(--mono); font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* GitHub ZIP dropzone — strict width containment for long commit-SHA archive filenames */
.gh-zip-section { margin-top: 12px; min-width: 0; max-width: 100%; }
.gh-zip-drop {
  padding: 13px; text-align: left; align-items: stretch; gap: 10px;
  min-width: 0; max-width: 100%; width: 100%; overflow: hidden;
}
.gh-zip-drop.is-prompted {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(139, 92, 246, 0.085);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16), var(--glass-highlight);
}
.gh-zip-drop.has-zip {
  border-color: var(--green-line);
  border-style: solid;
  background: var(--green-bg);
}
.gh-zip-row {
  display: flex; align-items: center; gap: 11px;
  min-width: 0; width: 100%; max-width: 100%;
}
.gh-zip-icon { width: 34px; height: 34px; margin-bottom: 0; flex: 0 0 auto; }
.gh-zip-icon svg { width: 16px; height: 16px; }
.gh-zip-copy {
  min-width: 0; flex: 1 1 0%; max-width: 100%;
  display: flex; flex-direction: column; gap: 2px; overflow: hidden;
}
.gh-zip-copy strong {
  font-size: 12px; color: var(--text); line-height: 1.35;
  overflow-wrap: anywhere; word-break: break-word;
}
.gh-zip-copy span {
  font-size: 11px; color: var(--muted); line-height: 1.4;
  overflow-wrap: anywhere; word-break: break-word;
}
.gh-zip-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.source-summary {
  margin-top: 14px; padding: 11px 13px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.035); border-radius: var(--radius-sm);
  box-shadow: var(--glass-highlight);
  color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.55;
  min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
  animation: paneFade 0.2s var(--ease-out);
}
.source-summary.error { border-color: var(--red-line); color: var(--red-soft); background: var(--red-bg); }
.source-summary .summary-name { color: var(--text); font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.source-summary .summary-meta { color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }

.settings-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 10px; margin: 16px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-row .field-label { margin: 0; }
.settings-row select { grid-column: 1 / 3; }
.preset-pill { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-soft); background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.32); border-radius: var(--radius-pill); padding: 2px 9px; }
.threshold-note { grid-column: 1 / 3; color: var(--muted); font-family: var(--mono); font-size: 10px; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.025); border-radius: var(--radius-sm);
  padding: 11px 12px; cursor: pointer; margin-bottom: 10px;
  box-shadow: var(--glass-highlight);
  transition: border-color 0.18s, background 0.18s;
}
.consent:hover { border-color: var(--glass-border-strong); background: rgba(255, 255, 255, 0.045); }
.consent.checked { border-color: var(--green-line); background: var(--green-bg); }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: #fff; flex: 0 0 auto; cursor: pointer; }
.consent span { font-size: 11.5px; line-height: 1.5; color: var(--soft); }
.consent strong { color: var(--text); }

.readiness-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.readiness-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.readiness-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background 0.2s, box-shadow 0.2s; }
.readiness-chip.ready { color: var(--green-soft); border-color: var(--green-line); background: var(--green-bg); }
.readiness-chip.ready i { background: var(--green); box-shadow: 0 0 6px rgba(48, 209, 88, 0.65); }

.scan-actions { display: flex; gap: 8px; }
.scan-actions .btn-wide { flex: 1; }
.privacy-note { margin: 10px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }

/* ---------- results panel ---------- */
.results-head-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.head-severity-pill {
  font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 4px 10px;
  border-radius: var(--radius-pill); border: 1px solid;
  animation: paneFade 0.2s var(--ease-out);
}
.head-severity-pill.high { color: var(--red-soft); background: var(--red-bg); border-color: var(--red-line); }
.head-severity-pill.review { color: var(--amber-soft); background: var(--amber-bg); border-color: var(--amber-line); }
.result-count {
  font-family: var(--mono); font-size: 11px; color: var(--soft);
  border: 1px solid var(--glass-border); padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04); min-width: 32px; text-align: center;
}

/* empty state radar */
.empty-state {
  min-height: calc(100vh - 300px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--muted); padding: 36px 24px;
}
.scan-illustration {
  width: 104px; height: 104px; border: 1px solid var(--glass-border-strong); border-radius: 50%;
  position: relative; background: radial-gradient(circle, rgba(139, 92, 246, 0.16), rgba(8, 8, 12, 0.8) 70%);
  overflow: hidden;
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(167, 139, 250, 0.2); pointer-events: none; }
.radar-ring-outer { inset: 12px; }
.radar-ring-inner { inset: 29px; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(167, 139, 250, 0.4) 0deg, rgba(139, 92, 246, 0.05) 55deg, transparent 88deg);
  animation: radarSweep 4s linear infinite;
}
.lens { position: absolute; width: 28px; height: 28px; border: 1.5px solid #b49dfc; border-radius: 50%; left: 35px; top: 33px; box-shadow: 0 0 14px rgba(139, 92, 246, 0.45); background: rgba(8, 8, 12, 0.6); }
.lens::after { content: ""; position: absolute; width: 13px; height: 2px; background: #b49dfc; transform: rotate(45deg); top: 24px; left: 21px; border-radius: 2px; }
.scan-dot { position: absolute; width: 5px; height: 5px; background: #ede9fe; border-radius: 50%; top: 39px; left: 40px; box-shadow: 0 0 10px #c4b5fd; animation: pulseDot 1.8s ease-in-out infinite; }

.empty-state strong { font-size: 15.5px; color: var(--text); margin-top: 22px; font-weight: 600; }
.empty-state p { font-size: 13px; max-width: 380px; line-height: 1.65; margin: 8px 0 0; color: var(--muted); }
.empty-hints { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.empty-hints li {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.empty-hints li span { color: var(--accent-soft); font-weight: 600; }

/* progress wrap */
.progress-wrap {
  padding: 18px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--glass-highlight); border-radius: var(--radius-md); margin: 4px 0 16px;
  animation: paneFade 0.2s var(--ease-out);
}
.progress-top { display: flex; align-items: center; gap: 14px; }
.progress-spinner {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.14); border-top-color: var(--accent-soft);
  animation: spin 0.85s linear infinite;
}
.progress-titles { flex: 1; min-width: 0; }
.progress-head { display: flex; justify-content: space-between; gap: 12px; color: var(--text); font-family: var(--mono); font-size: 11.5px; }
.progress-track { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; margin: 9px 0 0; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #8b5cf6, #ddd6fe, #8b5cf6);
  background-size: 200% 100%;
  animation: progressShimmer 1.8s linear infinite;
  border-radius: 999px;
  transition: width 0.2s ease-out;
}
.progress-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.progress-file { font-family: var(--mono); font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; flex: 1; min-width: 0; }
.progress-stats { font-family: var(--mono); font-size: 10.5px; color: var(--accent-soft); white-space: nowrap; }
.progress-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* summary + triage dashboard */
.summary-bar {
  padding: 12px 15px; background: var(--green-bg); border: 1px solid var(--green-line); border-radius: var(--radius-sm);
  color: var(--green-soft); font-family: var(--mono); font-size: 11px; line-height: 1.5; margin: 0 0 14px;
  box-shadow: var(--glass-highlight);
  animation: paneFade 0.25s var(--ease-out);
}

.triage-wrap { margin-bottom: 16px; animation: paneFade 0.25s var(--ease-out); }
.triage-progress-card {
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--glass-highlight); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px;
}
.triage-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.triage-title { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--text); }
.triage-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.legend-item.confirmed i { background: var(--red); }
.legend-item.benign i { background: var(--green); }
.legend-item.needs i { background: var(--amber); }
.triage-bar-track { display: flex; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.triage-seg { height: 100%; transition: width 0.3s var(--ease-out); }
.triage-seg.confirmed { background: var(--red); }
.triage-seg.benign { background: var(--green); }
.triage-seg.needs { background: var(--amber); }

.review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03); border-radius: var(--radius-pill);
  padding: 6px 12px; color: var(--soft); font-family: var(--mono); font-size: 11px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter:hover { border-color: var(--glass-border-strong); color: #fff; background: rgba(255, 255, 255, 0.07); }
.filter.active { color: #000000; border-color: #fff; background: rgba(255, 255, 255, 0.96); font-weight: 600; }
.filter span { margin-left: 5px; opacity: 0.78; }

.toolbar-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: 1; justify-content: flex-end; min-width: 0; }
.search-wrap {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; height: 32px;
  background: var(--glass-input); border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  color: var(--muted); min-width: 150px; flex: 1; max-width: 240px;
  transition: border-color 0.15s;
}
.search-wrap:focus-within { border-color: var(--accent); color: var(--text); }
.toolbar-search { border: 0; background: transparent; color: var(--text); font-size: 11.5px; width: 100%; outline: none; min-width: 0; }
.toolbar-search::placeholder { color: var(--faint); }
.toolbar-select, .toolbar-btn {
  height: 32px; background: var(--glass-input); border: 1px solid var(--glass-border); color: var(--soft);
  border-radius: var(--radius-pill); padding: 0 11px; font-family: var(--mono); font-size: 10.5px;
  cursor: pointer; outline: none; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.toolbar-select:hover, .toolbar-btn:hover { border-color: var(--glass-border-strong); color: #fff; background: rgba(255, 255, 255, 0.06); }

.export-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--glass-highlight); border-radius: var(--radius-sm);
}
.export-path-opt { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); cursor: pointer; }
.export-path-opt input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.export-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.export-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--soft);
  font-family: var(--mono); font-size: 10.5px; padding: 6px 12px; border-radius: var(--radius-pill);
  cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.export-btn:hover { color: #fff; border-color: var(--glass-border-strong); background: rgba(255, 255, 255, 0.09); }
.export-btn-primary { border-color: rgba(167, 139, 250, 0.35); color: var(--accent-soft); background: rgba(139, 92, 246, 0.1); }
.export-btn-primary:hover { border-color: var(--accent); color: #fff; background: rgba(139, 92, 246, 0.2); }

/* ---------- finding cards ---------- */
.findings-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.finding-card {
  border: 1px solid var(--glass-border); background: rgba(10, 10, 14, 0.84);
  backdrop-filter: var(--blur-sm); -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-md);
  overflow: hidden; min-width: 0; width: 100%;
  transition: border-color 0.18s, box-shadow 0.2s, background 0.18s;
  animation: cardIn 0.28s var(--ease-out) both;
}
.finding-card:hover { border-color: var(--glass-border-strong); background: rgba(14, 14, 19, 0.92); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), var(--glass-highlight); }
.finding-card.high { border-left: 3px solid var(--red); }
.finding-card.review { border-left: 3px solid var(--amber); }
.finding-card.is-triaged { opacity: 0.92; }
.finding-card.is-collapsed .diff-box,
.finding-card.is-collapsed .reason-row,
.finding-card.is-collapsed .reveal-box { display: none; }

.finding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 16px 11px; flex-wrap: wrap; }
.file-meta { min-width: 0; flex: 1 1 220px; }
.file-path-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-path { font-family: var(--mono); font-size: 12px; color: var(--text); overflow-wrap: anywhere; line-height: 1.4; }
.file-path-dir { color: var(--muted); }
.file-path-name { color: #fff; font-weight: 600; }
.copy-loc-btn {
  border: 1px solid transparent; background: transparent; color: var(--faint);
  padding: 2px 7px; border-radius: 5px; font-family: var(--mono); font-size: 10px; cursor: pointer;
  flex: 0 0 auto; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.copy-loc-btn:hover { color: var(--text); border-color: var(--glass-border); background: rgba(255, 255, 255, 0.06); }
.line-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.triage-state-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; padding: 2px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--muted);
}
.triage-state-pill.confirmed { color: var(--red-soft); border-color: var(--red-line); background: var(--red-bg); }
.triage-state-pill.benign { color: var(--green-soft); border-color: var(--green-line); background: var(--green-bg); }
.triage-state-pill.needs_review { color: var(--amber-soft); border-color: var(--amber-line); background: var(--amber-bg); }

.finding-head-right { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.band {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; font-weight: 700; border: 1px solid;
}
.band i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.band.high { background: var(--red-bg); color: var(--red-soft); border-color: var(--red-line); }
.band.high i { background: var(--red); box-shadow: 0 0 6px var(--red); }
.band.review { background: var(--amber-bg); color: var(--amber-soft); border-color: var(--amber-line); }
.band.review i { background: var(--amber); }

.collapse-toggle {
  width: 26px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--muted);
  border-radius: 6px; cursor: pointer; transition: color 0.15s, border-color 0.15s, transform 0.2s;
}
.collapse-toggle:hover { color: #fff; border-color: var(--glass-border-strong); }
.finding-card.is-collapsed .collapse-toggle svg { transform: rotate(-90deg); }
.collapse-toggle svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease-out); }

.diff-box {
  margin: 0 14px 12px; background: rgba(2, 2, 4, 0.94); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow-x: auto; overflow-y: hidden; max-width: calc(100% - 28px);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.diff-cap {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9.5px; color: var(--muted);
  padding: 8px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); letter-spacing: 0.02em;
  position: sticky; left: 0;
}
.diff-cap > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff-cap-badge { color: var(--accent-soft); border: 1px solid rgba(167, 139, 250, 0.3); background: rgba(139, 92, 246, 0.12); padding: 1px 7px; border-radius: 4px; font-size: 9px; white-space: nowrap; }
.diff-lines { min-width: max-content; }
.diff-line { display: flex; font-family: var(--mono); font-size: 11.5px; line-height: 1.68; color: #b8b8c8; border-left: 2px solid transparent; transition: background 0.12s; }
.diff-line.target { background: rgba(255, 69, 58, 0.085); border-left-color: var(--red); }
.diff-line:hover { background: rgba(255, 255, 255, 0.03); }
.diff-line.target:hover { background: rgba(255, 69, 58, 0.12); }
.diff-gutter {
  position: sticky; left: 0; z-index: 2;
  width: 28px; flex: 0 0 28px; text-align: center; color: var(--red-soft);
  background: #1a0d10; border-right: 1px solid rgba(255, 69, 58, 0.25); user-select: none; font-weight: 700;
}
.diff-line.context .diff-gutter { color: var(--faint); background: #07070b; border-right-color: var(--line); font-weight: 400; }
.line-number {
  position: sticky; left: 28px; z-index: 2;
  width: 44px; flex: 0 0 44px; text-align: right; padding: 0 8px;
  color: var(--muted); background: #07070b; border-right: 1px solid var(--line); user-select: none; font-size: 10.5px;
}
.diff-code { padding: 0 13px; white-space: pre; }
.diff-line.target .diff-code { color: #f4f4fa; }
.redacted-chip {
  display: inline-block; color: #ffaba6; background: rgba(255, 69, 58, 0.18); border: 1px solid rgba(255, 69, 58, 0.4);
  border-radius: 4px; padding: 0 6px; font-size: 10px; font-weight: 600; vertical-align: 0; margin: 0 1px;
}
.other-redacted {
  display: inline-block; color: #d0aa9a; background: rgba(210, 140, 110, 0.14); border: 1px solid rgba(210, 140, 110, 0.28);
  border-radius: 4px; padding: 0 5px; font-size: 9.5px;
}
.collapse-row { padding: 6px 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.reason-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 12px; }
.reason-chip {
  font-family: var(--mono); font-size: 9.5px; color: var(--soft);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border); border-radius: var(--radius-pill); padding: 3px 9px;
}
.reason-chip.strong { color: var(--red-soft); border-color: var(--red-line); background: var(--red-bg); }

.reveal-box {
  display: none; margin: 0 14px 12px; padding: 11px 13px;
  border: 1px solid var(--amber-line); background: rgba(251, 191, 36, 0.07); border-radius: var(--radius-sm);
  color: var(--amber-soft); font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere;
}
.reveal-box.show { display: block; animation: paneFade 0.18s var(--ease-out); }
.reveal-box-label { display: block; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 5px; opacity: 0.9; }
.reveal-box-value { user-select: all; color: #fff6d9; }

.finding-actions {
  border-top: 1px solid var(--line); padding: 10px 14px; background: rgba(255, 255, 255, 0.02);
  display: flex; gap: 7px; align-items: center; flex-wrap: wrap;
}
.review-action {
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); border-radius: var(--radius-pill);
  color: var(--soft); padding: 6px 12px; font-size: 11px; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.review-action:hover { border-color: var(--glass-border-strong); color: #fff; background: rgba(255, 255, 255, 0.08); }
.review-action.selected[data-review="confirmed"] { background: var(--red-bg); border-color: var(--red); color: var(--red-soft); font-weight: 600; }
.review-action.selected[data-review="benign"] { background: var(--green-bg); border-color: var(--green); color: var(--green-soft); font-weight: 600; }
.review-action.selected[data-review="needs_review"] { background: var(--amber-bg); border-color: var(--amber); color: var(--amber-soft); font-weight: 600; }
.reveal-btn { margin-left: auto; border-color: rgba(167, 139, 250, 0.25); color: var(--accent-soft); }
.reveal-btn:hover { border-color: var(--accent); color: #fff; background: rgba(139, 92, 246, 0.16); }

.filter-empty {
  border: 1px dashed var(--glass-border); background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md); padding: 30px 18px; text-align: center;
  color: var(--muted); font-size: 12.5px; margin-top: 10px;
}
.filter-empty p { margin: 0 0 12px; }

.no-findings {
  margin-top: 10px; border: 1px solid var(--green-line); background: var(--green-bg);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-md); padding: 30px 20px; text-align: center;
  animation: paneFade 0.25s var(--ease-out);
}
.no-findings strong { display: block; color: var(--green-soft); font-size: 14px; margin: 10px 0 6px; }
.no-findings p { color: var(--soft); font-size: 12.5px; line-height: 1.6; margin: 0; }
.checkmark { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; border: 1px solid var(--green-line); border-radius: 50%; color: var(--green); font-size: 14px; background: rgba(48, 209, 88, 0.12); }

/* ---------- info grid & docs modal ---------- */
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 24px auto 36px;
}
.info-card {
  background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 26px;
  transition: border-color 0.2s;
}
.info-card:hover { border-color: var(--glass-border-strong); }
.info-card h2, .info-card h3 { font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; margin: 6px 0 12px; color: #fff; font-weight: 700; }
.info-card p, .info-card li { color: var(--muted); font-size: 12.5px; line-height: 1.68; }
.info-card ul, .info-card ol { margin: 0; padding-left: 16px; }
.info-card li { margin-bottom: 7px; }
.info-card strong { color: var(--soft); }
.flow-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 12px; }
.flow-table th, .flow-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.flow-table th { color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.flow-table td { color: var(--muted); line-height: 1.5; }
.flow-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

.footnote {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--faint); font-family: var(--mono); font-size: 10.5px;
  padding: 22px 4px 36px; border-top: 1px solid var(--line); margin: 0 auto;
}
.footnote a { color: var(--muted); }
.footnote a:hover { color: var(--text); }

/* docs modal inside dashboard */
.docs-modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 24px;
}
.docs-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.docs-dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 1060px; max-height: 88vh; overflow-y: auto;
  background: rgba(8, 8, 12, 0.94);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  padding: 24px;
  animation: cardIn 0.22s var(--ease-out) both;
}
.docs-dialog-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.docs-dialog-head h2 { font-family: var(--display); font-size: 20px; margin: 2px 0 0; color: #fff; letter-spacing: -0.02em; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.docs-grid .info-card { padding: 20px; background: rgba(255, 255, 255, 0.025); box-shadow: none; }

/* ---------- glass toast ---------- */
.toast-region {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: var(--radius-pill);
  background: rgba(14, 14, 20, 0.88);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border-strong); color: var(--text);
  font-family: var(--mono); font-size: 11px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: toastIn 0.22s var(--ease-out) both;
}
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 8px var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  body.mode-dashboard { height: auto; overflow-y: auto; }
  .workspace-grid { grid-template-columns: 1fr; height: auto; }
  .source-panel { border-right: 0; border-bottom: 1px solid var(--line); height: auto; }
  .source-scroll { overflow: visible; }
  .source-footer { position: sticky; bottom: 0; }
  .results-panel { height: auto; overflow: visible; }
  .empty-state { min-height: 360px; }
  .docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .gate-meta { grid-template-columns: 1fr; }
  .gate-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .gate-meta > div:last-child { border-bottom: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid > div { border-bottom: 1px solid var(--line); }
  .overview-grid > div:nth-child(even) { border-right: 0; }
  .overview-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
  .topbar { top: 10px; padding: 10px 14px 0; }
  .topbar-inner { min-height: 52px; border-radius: 18px; padding: 8px 12px; }
  body.mode-dashboard .topbar-inner { padding: 8px 14px; }
  .shell { padding: 0 14px; }
  .brand-text span, .topbar-meta, .topbar-back-pill span, #fullscreenBtn { display: none; }
  .hero { padding: 30px 0 22px; }
  .hero h1 { font-size: 36px; }
  .source-scroll, .source-footer { padding: 16px; }
  .dash-status-strip { padding: 14px 16px 0; }
  .results-stage { padding: 16px; }
  .gate-card { padding: 22px; }
  .gate-meta > div { padding: 20px; }
  .info-card { padding: 20px; }
  .scan-actions { flex-direction: column; }
  .scan-actions .btn-ghost { width: 100%; }
  .toolbar-controls { justify-content: stretch; }
  .search-wrap { max-width: none; }
  .reveal-btn { margin-left: 0; width: 100%; justify-content: center; }
  .footnote { flex-direction: column; gap: 6px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-grid > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-in, .tab-pane.active, .finding-card, .toast, .summary-bar, .triage-wrap, .progress-wrap, .no-findings, .docs-dialog { animation: none !important; }
  .radar-sweep, .eyebrow-dot, .live-dot, .scan-dot, .overview-sweep, .progress-spinner, .progress-bar { animation: none !important; }
  .btn:hover:not(:disabled), .back-btn:hover, .dropzone.drag, .brand:hover .brand-mark { transform: none !important; }
}

/* Keep the ZIP picker above sibling hover layers; the active tab's reveal animation must not leave a transformed layer behind. */
.gh-zip-drop {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.dropzone.drag { transform: none; }
.gh-zip-drop:hover .gh-zip-icon,
.gh-zip-drop.drag .gh-zip-icon { transform: none; }
.gh-zip-drop .btn {
  position: relative;
  z-index: 1;
  min-height: 40px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s;
}
.gh-zip-drop .btn:hover:not(:disabled),
.gh-zip-drop .btn:active:not(:disabled) { transform: none; }

/* Accessible custom listbox popups for the three scanner selects. */
.custom-select { position: relative; width: 100%; min-width: 0; }
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(8, 8, 13, 0.88);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  border-color: rgba(167, 139, 250, 0.56);
  background: rgba(18, 17, 26, 0.98);
}
.custom-select-trigger:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 550;
}
.custom-select-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin: -4px 2px 0 0;
  border-right: 1.5px solid #b7a2d6;
  border-bottom: 1.5px solid #b7a2d6;
  transform: rotate(45deg);
  transition: transform 0.16s, margin 0.16s;
}
.custom-select.is-open .custom-select-caret {
  margin-top: 4px;
  transform: rotate(225deg);
}
.settings-row .custom-select { grid-column: 1 / -1; }
.custom-select-listbox {
  position: fixed;
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(12, 12, 18, 0.98);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.custom-select-listbox[hidden] { display: none !important; }
.custom-select-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  outline: none;
  transition: color 0.12s, background 0.12s;
}
.custom-select-option:hover,
.custom-select-option.is-active,
.custom-select-option:focus-visible {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}
.custom-select-option[aria-selected="true"] {
  color: var(--accent-soft);
  background: rgba(139, 92, 246, 0.11);
}
.custom-select-option[aria-selected="true"]::after {
  content: "✓";
  flex: 0 0 auto;
  color: #c9f0a0;
  font-size: 12px;
  font-weight: 700;
}
.custom-select-option[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.custom-select--statusFilter { flex: 0 1 176px; }
.custom-select--findingSort { flex: 0 1 142px; }
.custom-select--statusFilter .custom-select-trigger,
.custom-select--findingSort .custom-select-trigger {
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
}
.custom-select--statusFilter .custom-select-value,
.custom-select--findingSort .custom-select-value {
  font: 10.5px/1.2 var(--mono);
}
.custom-select--statusFilter .custom-select-caret,
.custom-select--findingSort .custom-select-caret {
  width: 7px;
  height: 7px;
}
@media (max-width: 640px) {
  .custom-select--statusFilter,
  .custom-select--findingSort { flex: 1 1 145px; }
  .custom-select-listbox { max-width: calc(100vw - 20px); }
}
