/* scanner.st - Dark Luxury Obsidian & Gold Instrument Theme
   Draft A Asymmetric 2-Column Desktop Command Workbench + Thumb-First Mobile
   40-Principle Reduced-Motion-Gated Tactile Motion System
   Loaded after app.css so contract tests against app.css stay intact. */

:root {
  color-scheme: dark;
  --ink: #09090b;
  --ink-2: #111114;
  --paper: #f0ede6;
  --muted: #a6a298;
  --muted-dim: #736f68;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #c8a45c;
  --accent-strong: #e2c87f;
  --accent-soft: rgba(200, 164, 92, 0.13);
  --accent-line: rgba(200, 164, 92, 0.38);
  --accent-dim: #8f7340;
  --accent-ink: #09090b;
  --accent-glow: rgba(200, 164, 92, 0.18);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.13);
  --warn: #fbbf24;
  --err: #f87171;
  --surface: #111114;
  --surface-raised: #16161b;
  --surface-overlay: #1c1c23;
  --surface-inset: #0c0c0f;
  --motion-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-exit: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-in: 200ms;
  --dur-out: 160ms;
  --dur-move: 220ms;
  --dur-drop: 180ms;
  --shadow-panel: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 40px rgba(0, 0, 0, 0.42);
  --shadow-gold: 0 2px 18px -6px rgba(200, 164, 92, 0.32);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Consolas", "SF Mono", monospace;
}

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

html {
  height: 100%;
  scrollbar-gutter: stable;
  background: var(--ink);
  overflow-x: clip;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: -0.01em;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-strong);
}

::selection {
  background: rgba(200, 164, 92, 0.28);
  color: #f0ede6;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #26252c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b3842; }

.mono,
.stat-value,
.sc-acct-bal,
.sc-credit-summary,
.sc-mode-price,
.hero-ratio,
.hist-ratio,
.hist-date,
.fleet-col-ver,
.fleet-col-db,
.elapsed,
.terms-num,
.terms-updated {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   HEADER & PRIMARY NAV (Shared FLIP Gliding Pill)
   ========================================================================== */
.bench-header {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: 56px;
  padding: 8px max(clamp(14px, 2.5vw, 28px), calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: var(--surface-raised);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
  display: block;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy strong span {
  color: var(--accent-strong);
  margin-left: 0;
}

.bench-header nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
  flex: 0 1 auto;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 7px;
  background: rgba(200, 164, 92, 0.14);
  border: 1px solid var(--accent-line);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
}

.nav-indicator.is-ready {
  opacity: 1;
}

.bench-header nav a {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 6px 12px;
  border-bottom: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.bench-header nav a:hover {
  color: var(--paper);
}

.bench-header nav a.on {
  color: var(--accent-strong);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.bench-header nav:not(:has(.nav-indicator.is-ready)) a.on {
  background: rgba(200, 164, 92, 0.14);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.header-right {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hdr-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.hdr-dot-ok {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.env {
  margin-left: 0;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.live-dot,
.sc-util-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  flex: none;
}

button.account-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--paper);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: none;
}

button.account-pill:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

button.account-pill[hidden] {
  display: none !important;
}

button.account-pill strong {
  color: var(--accent-strong);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  flex: none;
}

button.account-pill.is-loading .account-dot {
  background: rgba(255, 255, 255, 0.25);
}

button.account-pill.is-loading #header-balance {
  display: inline-block;
  width: 72px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  animation: skel-pulse 1.2s ease-in-out infinite;
}

/* ==========================================================================
   SHELL, CONTAINERS & BASE CONTROLS
   ========================================================================== */
.sc-shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(12px, 1.8vh, 18px) clamp(14px, 2.5vw, 28px) clamp(24px, 3vh, 36px);
}

.sc-shell[data-page-mode="workbench"] {
  max-width: 1180px;
}

.sc-shell[data-page-mode="focused"] {
  max-width: 960px;
}

.sc-shell > main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#announcer,
#view-scan,
#view-pricing,
#view-history,
#view-fleet,
#view-ops {
  width: 100%;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
  margin-bottom: 14px;
  box-shadow: var(--shadow-panel);
}

.panel h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}

.panel h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--paper);
}

.sub {
  color: var(--muted);
  font-size: 12.5px;
  margin: 4px 0 0;
}

button,
.btnlink {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--paper);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

button:hover:not(:disabled),
.btnlink:hover {
  border-color: var(--accent-line);
  background: var(--surface-overlay);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

select,
input[type="text"],
input[type="password"],
input[type="number"] {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-inset);
  color: var(--paper);
  padding: 6px 11px;
  font-size: 13px;
}

select:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.16);
  outline: none;
}

/* Shared Dark-Luxury Button Primitives (Portal, Terms & SPA) */
.btn-matte-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-matte-gold:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: #f0d797;
  color: var(--accent-ink);
}

.btn-matte-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-matte-ghost:hover:not(:disabled) {
  border-color: var(--accent-line);
  background: var(--surface-overlay);
  color: var(--accent-strong);
}

.btn-matte-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(42, 171, 238, 0.34);
  background: rgba(42, 171, 238, 0.09);
  color: #e8f5fc;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-matte-tg:hover:not(:disabled) {
  border-color: rgba(42, 171, 238, 0.62);
  background: rgba(42, 171, 238, 0.17);
  color: #fff;
}

.btn-matte-tg svg {
  color: #6bc4f0;
  flex-shrink: 0;
}

.btn-matte-tg .tg-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
}

.btn-sm {
  min-height: 30px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: 7px !important;
}

/* ==========================================================================
   SHARED MOTION PRIMITIVES (FLIP Thumb, ValueSwap, Copy Swap, Chevrons)
   ========================================================================== */
.sc-flip-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 8px;
  background: var(--surface-overlay);
  border: 1px solid var(--accent-line);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
}

.sc-flip-thumb.is-ready {
  opacity: 1;
}

.sc-chev {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

[aria-expanded="true"] .sc-chev {
  transform: rotate(180deg);
  color: var(--accent-strong);
}

/* Rule 16: Overlapping Old & New Numeric State (1x1 CSS Grid ValueSwap) */
.sc-vswap {
  display: inline-grid;
  align-items: center;
  justify-items: end;
  overflow: hidden;
  vertical-align: bottom;
}

.sc-vswap > span {
  grid-area: 1 / 1;
  white-space: nowrap;
}

/* Rule 18: Copy confirmation blur-crossfade */
.is-copied {
  border-color: rgba(74, 222, 128, 0.48) !important;
  color: var(--ok) !important;
  background: rgba(74, 222, 128, 0.1) !important;
}

/* ==========================================================================
   GLOBAL DRAG OVERLAY & INFO TOOLTIPS
   ========================================================================== */
.global-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 9, 11, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

.global-drop-overlay[hidden] {
  display: none !important;
}

.global-drop-box {
  width: min(520px, 100%);
  padding: 40px 28px;
  border-radius: 16px;
  border: 1.5px dashed var(--accent-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.global-drop-box svg {
  width: 30px;
  height: 30px;
  color: var(--accent-strong);
}

.global-drop-box strong {
  font-size: 16px;
  color: var(--paper);
}

.global-drop-box span {
  font-size: 12px;
  color: var(--muted);
}

button.info-tip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  margin-left: 4px;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
  flex: none;
}

button.info-tip:hover,
button.info-tip:focus-visible {
  border-color: var(--accent-line);
  color: var(--accent-strong);
  background: var(--accent-soft);
  outline: none;
}

.sc-tooltip {
  position: fixed;
  z-index: 9999;
  display: block;
  max-width: min(300px, calc(100vw - 24px));
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-overlay);
  border: 1px solid var(--line-strong);
  color: #eceae4;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  text-align: left;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95) translateY(3px);
  transform-origin: bottom center;
}

.sc-tooltip.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.sc-tooltip[hidden] {
  display: none !important;
}

/* ==========================================================================
   SCAN WORKBENCH (Draft A - Asymmetric 2-Column Command Workbench)
   ========================================================================== */
.sc-submit-stage {
  width: 100%;
}

.sc-welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  min-height: 40px;
  padding: 6px 13px;
  margin-bottom: 10px;
  border-radius: 11px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

.sc-welcome-strip[hidden] {
  display: none !important;
}

.sc-welcome-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.sc-welcome-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  flex-shrink: 0;
}

.sc-welcome-text {
  color: #c8c4bc;
  line-height: 1.35;
}

.sc-welcome-text strong {
  color: var(--paper);
  font-weight: 600;
}

.sc-welcome-sep {
  opacity: 0.45;
  margin: 0 5px;
}

.sc-welcome-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sc-welcome-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sc-welcome-pill:hover {
  background: rgba(200, 164, 92, 0.22);
  border-color: var(--accent-strong);
  color: #fff;
}

.sc-welcome-pill[hidden] {
  display: none !important;
}

.sc-welcome-cta {
  min-height: 28px;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.34);
  color: #bce4f7;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.sc-welcome-cta:hover {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.56);
  color: #fff;
}

.sc-welcome-cta.is-gold {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.sc-welcome-cta.is-gold:hover {
  background: rgba(200, 164, 92, 0.22);
  border-color: var(--accent-strong);
  color: #fff;
}

.sc-welcome-x {
  min-height: 26px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
}

.sc-welcome-x:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.sc-form {
  width: 100%;
}

.sc-wb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(310px, 0.78fr);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.sc-wb-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sc-wb-right {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Fleet Status Utility Bar + Trigger-Originated Popover */
.sc-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--paper);
}

.sc-util-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 500;
}

.sc-util-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

button.sc-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px !important;
  padding: 5px 10px !important;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--paper);
  font-size: 11.5px;
  cursor: pointer;
}

button.sc-util-btn:hover {
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

button.sc-util-btn[hidden] {
  display: none !important;
}

.sc-fleet-drawer {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transform-origin: top right;
}

.sc-fleet-drawer[hidden] {
  display: none !important;
}

/* Engine Chips & Inline Inspector inside Fleet Drawer */
.engine-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.engine-group {
  border: 0;
  padding: 0;
  margin: 0;
}

.engine-group + .engine-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.engine-group-title {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 7px;
  font-family: var(--mono);
}

.tier-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-inset);
  font-size: 12px;
  font-weight: 500;
  color: var(--paper);
  cursor: pointer;
  user-select: none;
}

.engine-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.engine-chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.engine-chip.is-active {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.16);
  color: var(--accent-strong);
}

.engine-chip.off {
  border-color: var(--line);
  background: var(--surface-raised);
  color: var(--muted-dim);
  opacity: 0.65;
}

.engine-chip.off::before {
  background: var(--muted-dim);
}

.eng-inspect-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
}

/* Stage 1: Generous Obsidian Dropzone */
.sc-drop-stage[hidden] {
  display: none !important;
}

.sc-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 184px;
  padding: 20px 18px;
  border-radius: 13px;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
}

.sc-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.sc-dropzone:hover {
  border-color: var(--accent-line);
  background: #131318;
}

.sc-dropzone.over {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.06);
  transform: scale(1.006);
}

.sc-drop-glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.sc-dropzone:hover .sc-drop-glyph,
.sc-dropzone.over .sc-drop-glyph {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.sc-drop-glyph svg {
  width: 21px;
  height: 21px;
}

.sc-drop-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}

.sc-drop-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 10px;
  font-size: 11.5px;
  color: var(--muted-dim);
  line-height: 1.45;
}

.sc-drop-exts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 7px;
}

.sc-drop-exts span {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  color: var(--muted);
}

.sc-drop-limit {
  color: var(--muted);
  white-space: nowrap;
}

.sc-antisandbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0 0;
}

.sc-antisandbox-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.sc-antisandbox-hint svg {
  width: 14px;
  height: 14px;
  color: var(--accent-strong);
  flex: none;
}

.sc-antisandbox-hint:hover,
.sc-antisandbox-hint:focus-visible {
  color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.08);
}

.sc-antisandbox-hint:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

/* Stage 2: Selected File Card */
.sc-staged-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  width: 100%;
}

.sc-staged-wrap[hidden] {
  display: none !important;
}

.sc-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.sc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sc-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

button.sc-link-btn {
  min-height: 24px !important;
  padding: 2px 4px !important;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}

button.sc-link-btn:hover {
  color: var(--accent-strong);
  background: transparent !important;
}

.sc-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
}

.sc-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  flex: none;
}

.sc-file-icon svg {
  width: 16px;
  height: 16px;
}

.sc-file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-file-info strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-file-info span {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.sc-icon-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

button.sc-icon-x:hover {
  border-color: var(--line-strong) !important;
  background: var(--surface-overlay);
  color: var(--paper);
}

/* Upload Card Static X-Ray Preview Strip */
.sc-xray-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(200, 164, 92, 0.24);
  background: rgba(200, 164, 92, 0.055);
  font-size: 11px;
  line-height: 1.4;
  color: var(--paper);
}

.sc-xray-sep { color: var(--muted-dim); opacity: 0.65; }
.sc-xray-tok.is-strong { color: var(--paper); font-weight: 600; }
.sc-xray-tok.is-dotnet { color: #38bdf8; font-weight: 600; }
.sc-xray-tok.is-ok { color: var(--ok); }
.sc-xray-tok.is-warn { color: var(--warn); font-weight: 600; }
.sc-xray-tok.is-bad { color: var(--bad); font-weight: 600; }
.sc-xray-tok.is-accent { color: var(--accent-strong); }
.sc-xray-tok.is-muted { color: var(--muted); }

.sc-xray-avm-btn {
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-xray-avm-btn:hover {
  color: #fde68a;
}

/* Collapsible Advanced Options */
.sc-adv-wrap {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

button.sc-adv-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--muted);
  cursor: pointer;
}

button.sc-adv-toggle:hover {
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--paper);
}

button.sc-adv-toggle.is-open {
  border-bottom: 1px solid var(--line) !important;
}

.sc-adv-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-adv-badge {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.sc-adv-body {
  padding: 12px 14px 14px;
  transform-origin: top center;
}

.sc-adv-body[hidden] {
  display: none !important;
}

.sc-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sc-adv-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0;
  margin: 0 !important;
}

.sc-adv-lbl {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-adv-field input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  color: var(--paper);
  font-size: 12px;
}

.sc-adv-field input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 2px rgba(200, 164, 92, 0.16);
}

.sc-adv-field input.is-needed {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.07);
}

/* Trust / Evidence Card (Right Rail) */
.sc-trust-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11.5px;
  color: var(--muted);
}

.sc-trust-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  flex: none;
}

.sc-trust-dot.is-ok { background: var(--ok); }
.sc-trust-dot.is-gold { background: var(--accent-strong); }

/* Horizontal Config Cards (Left) & Sticky Launch Rail (Right) */
.sc-config-stage.controls {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  text-align: left !important;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.sc-ctrl-card,
.sc-launch-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sc-launch-card {
  padding: 13px 14px;
  border-color: var(--line-strong);
  gap: 10px;
}

.sc-launch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sc-launch-vms {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
  color: var(--paper);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.sc-wb-right .terms-note {
  margin: 0;
  padding: 0 4px;
  font-size: 11px;
  color: var(--muted-dim);
  text-align: center;
}

/* Execution Window 3-Up Horizontal Grid with FLIP Sliding Gold Highlight */
.sc-modes-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.sc-mode-thumb {
  border-radius: 9px;
  background: rgba(200, 164, 92, 0.12);
  border: 1px solid var(--accent-line);
}

button.sc-mode-tile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

button.sc-mode-tile:hover:not(.is-selected) {
  border-color: var(--line-strong);
  background: #121217;
}

button.sc-mode-tile.is-selected {
  border-color: var(--accent-line);
  background: rgba(200, 164, 92, 0.11);
}

.sc-modes-row:has(.sc-flip-thumb.is-ready) button.sc-mode-tile.is-selected {
  background: transparent;
  border-color: transparent;
}

.sc-mode-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.sc-mode-top strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
}

.sc-mode-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

button.sc-mode-tile.is-selected .sc-mode-price {
  color: var(--accent-strong);
}

.sc-mode-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}

.sc-meter {
  display: inline-flex;
  gap: 3px;
}

.sc-meter i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.sc-meter i.on {
  background: var(--accent);
}

button.sc-mode-tile.is-selected .sc-meter i.on {
  background: var(--accent-strong);
}

/* Environment 2-Row Compact Grid: Inline 3-Way Network + 3-Col Toggle Row */
.sc-env-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.sc-env-toggles {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr) minmax(0, 1.26fr);
  gap: 6px;
  width: 100%;
}

.sc-env-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  min-width: 0;
}

.sc-env-toggles .sc-env-row {
  min-height: 44px;
  padding: 7px 9px;
  gap: 7px;
}

.sc-env-row:hover {
  border-color: var(--line-strong);
}

.sc-env-row:has(.sc-chk:checked) {
  border-color: var(--accent-line);
  background: rgba(200, 164, 92, 0.055);
}

.sc-env-row[hidden] {
  display: none !important;
}

.sc-net-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 5px 6px 5px 10px;
}

.sc-env-hit {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  margin: 0 !important;
  text-align: left !important;
}

.sc-net-head {
  flex: none !important;
  cursor: default !important;
  white-space: nowrap;
}

.sc-env-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  flex: none;
}

.sc-env-row:has(.sc-chk:checked) .sc-env-icon {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.sc-env-icon svg {
  width: 13px;
  height: 13px;
}

.sc-env-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.sc-env-toggles .sc-env-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
  white-space: nowrap;
}

.sc-env-title strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.25;
}

.sc-env-toggles .sc-env-title strong {
  font-size: 12px;
}

/* 3-Way Network Segmented Control (FLIP Sliding Thumb) */
.sc-seg {
  position: relative;
  display: flex;
  align-items: stretch;
  width: auto;
  flex: 0 1 auto;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #08080a;
}

.sc-seg .sc-flip-thumb {
  border-radius: 6px;
  background: var(--surface-overlay);
  border: 1px solid var(--accent-line);
}

button.sc-seg-btn {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}

button.sc-seg-btn:hover {
  color: var(--paper);
  background: transparent;
}

button.sc-seg-btn.is-active {
  color: var(--accent-strong);
  font-weight: 600;
}

.sc-seg:not(:has(.sc-flip-thumb.is-ready)) button.sc-seg-btn.is-active {
  border-color: var(--accent-line);
  background: var(--surface-overlay);
}

/* Rule 5: Moving-Knob 12% Stretch Toggle Switch */
.sc-switch-wrap {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  cursor: pointer;
  margin: 0 !important;
  flex: none;
}

.sc-chk {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.sc-switch {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #22222a;
  border: 1px solid var(--line-strong);
}

.sc-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d9d5cc;
  will-change: transform, width;
}

.sc-chk:checked + .sc-switch {
  background: var(--accent);
  border-color: var(--accent-strong);
}

.sc-chk:checked + .sc-switch::after {
  transform: translateX(18px);
  background: #09090b;
}

.sc-chk:focus-visible + .sc-switch {
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.28);
}

/* Always-Visible Receipt, Quote Panel & Gold Launch CTA */
.sc-receipt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sc-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc-receipt-row[hidden] {
  display: none !important;
}

.sc-receipt-row > span:first-child {
  display: inline-flex;
  align-items: center;
}

.sc-receipt-row strong {
  color: var(--paper);
  font-weight: 600;
}

.sc-receipt-row-cost {
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}

.sc-receipt-row-cost strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-strong);
}

button.sc-inline-signin {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sc-topup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 11.5px;
  color: #f3e4bc;
}

.sc-topup-bar[hidden] {
  display: none !important;
}

.sc-topup-cta {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--accent-strong);
  background: rgba(200, 164, 92, 0.2);
  color: #fff6de;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.sc-topup-cta:hover {
  background: rgba(200, 164, 92, 0.3);
}

.sc-quote-meta {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.sc-quote-meta[hidden] {
  display: none !important;
}

/* Primary breakdown lives in .sc-receipt above; suppress duplicate lines here unless error/warning */
.sc-quote-meta .quote-lines,
.sc-quote-meta #quote-status.muted {
  display: none;
}

.sc-quote-meta:not(:has(#quote-status.error, #quote-error:not([hidden]))) {
  display: none;
}

.sc-quote-meta #quote-status.error,
.sc-quote-meta #quote-error:not([hidden]) {
  display: block;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.08);
  font-size: 11.5px;
  line-height: 1.4;
}

/* Primary Gold Instrument Launch CTA */
button#submit.sc-submit-btn,
button.sc-dock-btn {
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
}

button#submit.sc-submit-btn:hover:not(:disabled),
button.sc-dock-btn:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: #f0d797;
  color: var(--accent-ink);
  box-shadow: 0 4px 24px -6px rgba(200, 164, 92, 0.45);
}

button#submit.sc-submit-btn:disabled,
button.sc-dock-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sc-btn-arrow {
  display: inline-block;
}

button.sc-dock-btn:hover .sc-btn-arrow {
  transform: translateX(3px);
}

/* Mobile Sticky Bottom Launch Dock (Hidden on desktop) */
.sc-mobile-dock {
  display: none;
}

/* Live Upload & Scan Pipeline Cards */
.live-upload-pipe[hidden] {
  display: none !important;
}

.pipe-live-card,
.pipe-stage-card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--accent-line);
  background: var(--surface);
  overflow: hidden;
}

.pipe-live-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.pipe-live-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipe-live-top,
.pipe-stage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pipe-live-stage,
.pipe-stage-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
}

.pipe-live-step,
.pipe-stage-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-strong);
}

.pipe-stage-card.is-complete {
  border-color: rgba(74, 222, 128, 0.3);
}

.pipe-stage-card.is-complete .pipe-stage-badge {
  background: var(--ok-soft);
  border-color: rgba(74, 222, 128, 0.32);
  color: var(--ok);
}

.pipe-stage-card.is-cancelled {
  border-color: rgba(248, 113, 113, 0.34);
}

.pipe-stage-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px 11px;
}

.pipe-live-pulse,
.pipe-stage-indicator {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.2);
  flex: none;
}

.pipe-stage-card.is-complete .pipe-stage-indicator {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  animation: none;
}

.pipe-stage-card.is-cancelled .pipe-stage-indicator {
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
  animation: none;
}

.pipe-stage-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pipe-stage-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.pipe-stage-metrics {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--accent-strong);
}

.pipe-stage-card.is-complete .pipe-stage-metrics {
  color: var(--muted);
}

.pipe-stage-rail {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.pipe-stage-rail i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.pipe-stage-card.is-complete .pipe-stage-rail i {
  background: var(--ok);
}

.scan-timeline-wrap {
  margin: 12px 0;
}

.scan-timeline-wrap .scan-timeline {
  margin-top: 8px;
}

.scan-timeline-wrap #stage-detail {
  display: none;
}

.scan-timeline li {
  padding: 5px 11px 5px 9px;
  background: var(--surface-raised);
  border-color: var(--line);
  font-size: 12px;
}

.scan-timeline li.done {
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.28);
}

.scan-timeline li.done .dot {
  background: var(--ok);
  border-color: var(--ok);
}

.scan-timeline li.current {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.scan-timeline li.current .dot {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.18);
}

.scan-timeline li.failed {
  color: var(--bad);
  border-color: rgba(248, 113, 113, 0.45);
}

/* ==========================================================================
   ENGINE INSPECTOR, BRAND EMBLEMS & SECURITY CONFIG DRAWERS
   ========================================================================== */
.eng-inspector,
.row-eng-drawer {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent-line);
  background: var(--surface-inset);
}

.row-eng-drawer {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.eng-insp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.eng-insp-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eng-insp-name {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 14px;
}

.eng-insp-sub {
  display: flex;
  align-items: center;
  gap: 3px 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.eng-insp-sub .eng-insp-item {
  white-space: nowrap;
}

.eng-insp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eng-insp-close {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 7px;
}

.eng-insp-specs,
.row-eng-drawer .eng-insp-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 10px;
  margin: 12px 0;
  padding: 0;
}

.row-eng-drawer .eng-insp-specs {
  margin-top: 0;
}

.eng-insp-specs > div {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.eng-insp-specs dt {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 4px;
}

.eng-insp-specs dd {
  margin: 0;
  font-size: 11.5px;
  color: var(--paper);
  word-break: break-word;
}

.es-vm-drawer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 0 0 12px 12px;
  background: var(--surface-inset);
  border: 1px solid var(--accent-line);
  border-top: 0;
}

.eng-inspector .es-vm-drawer,
.row-eng-drawer .es-vm-drawer {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.es-cfg-col {
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.es-cfg-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.es-cfg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}

.es-cfg-row .is-on { color: var(--ok); font-weight: 600; }
.es-cfg-row .is-off { color: var(--muted-dim); }

.eng-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.eng-brand-btn { cursor: pointer; }
.eng-brand-btn:hover .eng-title { color: var(--accent-strong); }

.eng-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.eng-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.25;
}

.eng-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.eng-icon svg { width: 17px; height: 17px; display: block; }
.eng-icon-img { width: 20px; height: 20px; object-fit: contain; display: block; border-radius: 3px; }
.eng-icon.is-compact { width: 16px; height: 16px; border: 0; background: transparent; border-radius: 0; }
.eng-icon.is-compact svg { width: 15px; height: 15px; }
.eng-icon.is-compact .eng-icon-img { width: 15px; height: 15px; border-radius: 2px; }

.eng-os-tag {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.eng-cat-tag {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.eng-cat-tag.cat-xdr { color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.1); }
.eng-cat-tag.cat-edr { color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.35); background: rgba(45, 212, 191, 0.1); }
.eng-cat-tag.cat-av { color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(148, 163, 184, 0.07); }

/* ==========================================================================
   LIVE REPORT VIEW (/scan/<id>)
   ========================================================================== */
#result-panel {
  overflow: hidden;
}

.report-head {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-head h2 {
  font-size: 18px;
  margin: 0;
  color: var(--paper);
}

.sc-billing-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--accent-strong);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  white-space: nowrap;
}

.sc-billing-pill[hidden] {
  display: none !important;
}

.policy-banner {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
}

.policy-banner strong { color: var(--warn); }

.report-hero {
  position: relative;
  overflow: hidden;
  margin: 12px 0;
  padding: 15px 18px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-inset);
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-file {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.hero-fname {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.hero-size { font-size: 12px; }

.hero-verdict {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-ratio { font-size: 12.5px; color: var(--muted); }
.hero-ratio strong { font-size: 14.5px; color: var(--paper); }
.hero-ratio strong.is-det { color: var(--bad); }
.hero-ratio strong.is-clean { color: var(--ok); }
.hero-ratio strong.is-warn { color: var(--warn); }

.hero-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.hero-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: var(--accent);
}

.hero-track.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(226, 200, 127, 0.72), transparent);
}

/* Evasion & Anti-VM Banners */
.evasion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(200, 164, 92, 0.28);
  background: linear-gradient(90deg, rgba(200, 164, 92, 0.08), rgba(15, 15, 19, 0.94));
}

.evasion-lead {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}

.evasion-kicker {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  flex: none;
}

.evasion-headline { font-size: 12.5px; font-weight: 600; color: var(--paper); }

.evasion-metrics {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.evasion-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}

.evasion-stat i { font-style: normal; font-size: 10px; color: var(--muted-dim); }
.evasion-stat strong { font-weight: 600; color: var(--paper); }
.evasion-stat.is-warn { border-color: rgba(251, 191, 36, 0.32); }
.evasion-stat.is-warn strong { color: var(--warn); }
.evasion-stat.is-bad { border-color: rgba(248, 113, 113, 0.34); }
.evasion-stat.is-bad strong { color: var(--bad); }
.evasion-stat.is-amsi { border-color: rgba(244, 114, 182, 0.36); }
.evasion-stat.is-amsi strong { color: #f472b6; }
.evasion-stat.is-ok { border-color: rgba(74, 222, 128, 0.3); }
.evasion-stat.is-ok strong { color: var(--ok); }
.evasion-stat.is-execerr { border-color: rgba(212, 162, 89, 0.32); }
.evasion-stat.is-execerr strong { color: #d4a259; }

.antivm-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.09), rgba(15, 15, 19, 0.94));
}

.antivm-banner.is-high {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(15, 15, 19, 0.95));
}

.antivm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}

.antivm-lead {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}

.antivm-kicker {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  flex: none;
}

.antivm-headline { font-size: 12.5px; font-weight: 600; color: var(--paper); }

.antivm-why {
  min-height: 0;
  border: 0;
  background: transparent;
  color: #2dd4bf;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.antivm-why:hover { color: #5eead4; background: transparent; }

.antivm-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.antivm-chip {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
}

.antivm-chip.is-runtime { border-color: rgba(245, 158, 11, 0.34); color: #fde68a; background: rgba(245, 158, 11, 0.08); }
.antivm-chip.is-api { border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; background: rgba(56, 189, 248, 0.08); }

.antivm-details {
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.antivm-details-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.antivm-details-summary::-webkit-details-marker { display: none; }
.antivm-details-summary::before { content: "\25B8"; font-size: 10px; color: #fbbf24; }
.antivm-details[open] > .antivm-details-summary::before { transform: rotate(90deg); }
.antivm-details-summary:hover { color: var(--paper); }

.antivm-probe-list { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }

.antivm-probe-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.antivm-probe-src {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
  flex: none;
}

.antivm-probe-src.is-static { color: #bae6fd; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.28); }
.antivm-probe-lbl { color: var(--paper); font-weight: 600; }
.antivm-probe-proc { color: #2dd4bf; font-size: 10.5px; }
.antivm-probe-cmd { color: rgba(244, 244, 245, 0.8); word-break: break-all; font-size: 10.5px; }

/* Report: Static X-Ray Card */
.xray-card {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-inset);
  overflow: hidden;
}

.xray-head {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.xray-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent-strong);
  flex: none;
}

.xray-chips { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }

.xray-chip {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  color: var(--paper);
  white-space: nowrap;
}

.xray-chip.is-primary { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.xray-chip.is-dotnet { border-color: rgba(56, 189, 248, 0.36); background: rgba(56, 189, 248, 0.1); color: #38bdf8; font-weight: 600; }
.xray-chip.is-ok { border-color: rgba(74, 222, 128, 0.32); background: var(--ok-soft); color: var(--ok); }
.xray-chip.is-warn { border-color: rgba(251, 191, 36, 0.36); background: rgba(251, 191, 36, 0.1); color: var(--warn); font-weight: 600; }
.xray-chip.is-bad { border-color: rgba(248, 113, 113, 0.38); background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.xray-chip.is-muted { color: var(--muted); }

.xray-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px 18px;
  padding: 12px 14px;
}

.xray-body.is-single { grid-template-columns: 1fr; }
.xray-subhead { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; color: var(--muted-dim); margin-bottom: 7px; }
.xray-sec-list { display: flex; flex-direction: column; gap: 5px; }

.xray-sec-row {
  display: grid;
  grid-template-columns: minmax(62px, 90px) 62px minmax(64px, 1fr) 36px auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}

.xray-sec-name { color: var(--paper); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xray-sec-size { text-align: right; font-size: 10.5px; white-space: nowrap; }
.xray-ent-track { display: block; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.xray-ent-track i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.xray-ent-track i.is-warn { background: var(--warn); }
.xray-ent-track i.is-bad { background: var(--bad); }
.xray-sec-ent { text-align: right; color: var(--muted); font-size: 11px; }
.xray-sec-ent.is-warn { color: var(--warn); font-weight: 600; }
.xray-sec-ent.is-bad { color: var(--bad); font-weight: 600; }
.xray-sec-tags { display: inline-flex; align-items: center; gap: 4px; }
.xray-micro { padding: 1px 5px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; }
.xray-micro.is-rwx { color: #fb7185; background: rgba(251, 113, 133, 0.14); border: 1px solid rgba(251, 113, 133, 0.4); }
.xray-micro.is-bad { color: var(--bad); background: var(--bad-soft); border: 1px solid rgba(248, 113, 113, 0.36); }
.xray-side-stack { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.xray-cap-list, .xray-pill-list { display: flex; flex-wrap: wrap; gap: 5px; }

.xray-cap-chip {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(200, 164, 92, 0.28);
  background: rgba(200, 164, 92, 0.07);
  font-size: 10.5px;
  color: var(--paper);
  cursor: help;
}

.xray-cap-chip em { font-style: normal; color: var(--accent-strong); }
.xray-cap-chip.is-warn { border-color: rgba(251, 191, 36, 0.34); background: rgba(251, 191, 36, 0.08); color: var(--warn); }

.xray-pill {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10.5px;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xray-pill.is-warn { border-color: rgba(251, 191, 36, 0.32); color: var(--warn); }
.xray-pill.is-more { color: var(--accent-strong); border-color: rgba(200, 164, 92, 0.28); }

/* Collapsible Scan Details & Hashes */
.advanced-meta {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-inset);
}

.adv-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
  cursor: pointer;
}

.adv-summary::-webkit-details-marker { display: none; }
.adv-summary:hover { color: var(--paper); }

.adv-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.advanced-meta[open] .adv-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.meta-grid {
  grid-template-columns: 110px minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 7px 14px;
  margin: 0;
  padding: 12px 15px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
}

.meta-grid dt {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.meta-grid dd {
  overflow-wrap: anywhere;
  min-width: 0;
}

.meta-grid dd.meta-span-full {
  grid-column: 2 / -1;
}

/* Sticky Summary Strip */
.summary.sticky {
  top: 62px;
  z-index: 5;
  padding: 10px 14px;
  border: 1px solid rgba(200, 164, 92, 0.22);
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 12px;
}

/* 5-Column Engine Verdict Matrix */
.matrix-head,
.fleet-head {
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.matrix-head.es-matrix-head,
#matrix .row,
.skel-row {
  grid-template-columns: minmax(224px, 1.38fr) 56px 110px minmax(150px, 1.08fr) minmax(236px, 1.24fr);
  gap: 10px;
  align-items: center;
}

#matrix .row {
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  cursor: pointer;
}

#matrix .row:hover {
  background: rgba(200, 164, 92, 0.05);
  border-left-color: rgba(200, 164, 92, 0.45);
}

#matrix .row.is-expanded {
  background: rgba(200, 164, 92, 0.07);
  border-left-color: var(--accent-strong);
}

#matrix .row.is-running { background: rgba(200, 164, 92, 0.035); }
#matrix .row.is-policy-halted { background: rgba(251, 146, 60, 0.04); }
#matrix .row.is-sample-error { background: rgba(245, 158, 11, 0.035); }

#matrix .row .engcell { font-weight: 600; font-size: 13px; min-width: 0; overflow: hidden; }
#matrix .row .eng-brand { display: flex; align-items: center; gap: 7px; min-width: 0; width: 100%; }
#matrix .row .eng-name-wrap { min-width: 0; flex: 1 1 auto; gap: 1px; }
#matrix .row .eng-title { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; font-size: 13px; line-height: 1.2; }
#matrix .row .eng-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#matrix .row .barwrap { text-align: left; }
#matrix .row .bar { height: 4px; border-radius: 99px; background: #1c1c23; overflow: hidden; }
#matrix .row .bar i { background: var(--accent); }
#matrix .row.is-running .bar i { background: var(--accent-strong); }
.statuscell { min-width: 0; }
.status-line { display: inline-flex; align-items: center; gap: 7px; flex-wrap: nowrap; white-space: nowrap; }

.row-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#matrix .row:hover .row-chevron {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.row-chevron.is-open {
  transform: rotate(90deg);
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

#matrix .row .resultcell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
}

#matrix .row .resultcell .kv-inline { display: inline-flex; align-items: center; gap: 4px; flex: none; }
#matrix .row .resultcell .det { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#matrix .row .resultcell .det-name { color: #fca5a5; font-weight: 600; white-space: nowrap; }
.det-clean { color: rgba(172, 168, 158, 0.85); font-size: 11.5px; }
.det-policy-halt { color: #fb923c; }
.det-exec-error { color: #fbbf24; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
}

.eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq-bars i { display: block; width: 2px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; }

.st-detected_on_write, .st-detected_at_runtime, .st-detected { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.35); }
.st-clean, .st-online { color: var(--ok); background: var(--ok-soft); border-color: rgba(74, 222, 128, 0.35); }
.st-running { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent-line); }
.st-inconclusive, .st-timeout, .st-maintenance { color: var(--warn); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); }
.st-policy_halted { color: #fb923c; background: rgba(251, 146, 60, 0.12); border-color: rgba(251, 146, 60, 0.42); }
.st-sample_error { color: #f59e0b; background: rgba(245, 158, 11, 0.11); border-color: rgba(245, 158, 11, 0.38); }

.row .dot.st-clean, .row .dot.st-done { background: var(--ok); border-color: var(--ok); }
.row .dot.st-running { background: var(--accent); border-color: var(--accent-strong); }
.row .dot.st-policy_halted { background: #fb923c; border-color: #fb923c; }
.row .dot.st-sample_error { background: #f59e0b; border-color: #f59e0b; }

.live-phase { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.live-phase.is-active { color: var(--paper); }
.live-phase-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 2px rgba(200, 164, 92, 0.22); flex: none; }
.live-phase.is-queued { color: var(--muted-dim); }

.poll-error-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 10px; }
.poll-error-box .empty { padding: 0; margin: 0; }
.poll-retry-btn { font-family: var(--mono); font-size: 12px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); }

/* Kill-Vector Badges */
.kv-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.kv-badge.kv-onwrite { color: #fb7185; background: rgba(251, 113, 133, 0.11); border-color: rgba(251, 113, 133, 0.36); }
.kv-badge.kv-amsi { color: #f472b6; background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.4); }
.kv-badge.kv-behavioral { color: #fb923c; background: rgba(251, 146, 60, 0.11); border-color: rgba(251, 146, 60, 0.36); }
.kv-badge.kv-execerr { color: #d4a259; background: rgba(212, 162, 89, 0.1); border-color: rgba(212, 162, 89, 0.32); }
.kv-badge.kv-early { color: var(--warn); background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.3); cursor: help; }
.kv-badge.kv-default { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent-line); }

.eng-tel-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

/* Matrix Evidence Strip */
#matrix .row .evcell,
#matrix .row .ev-thumbs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  height: 28px;
}

.ev-thumb-card {
  position: relative;
  display: inline-block;
  flex: none;
  border-radius: 4px;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #070709;
}

.ev-thumb-card:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: var(--accent);
}

.ev-thumb-card img {
  width: 44px;
  height: 26px;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
}

.ev-mini-tag {
  position: absolute;
  left: 2px;
  bottom: 1px;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(10, 10, 12, 0.88);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  line-height: 1.1;
}

.ev-more-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 28px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ev-more-pill:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.ev-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 28px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ev-video-pill:hover {
  background: rgba(200, 164, 92, 0.25);
  border-color: var(--accent-strong);
  color: #fff;
}

/* Engine Drawer Tabs, Execution Timeline & Telemetry Panels */
#matrix .row .row-eng-drawer {
  cursor: default;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
}

.drawer-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

button.drawer-tab {
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

button.drawer-tab:hover { border-color: var(--line-strong); color: var(--paper); }
button.drawer-tab.is-active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.drawer-tab-cnt { opacity: 0.78; }

.et-wrap { display: flex; flex-direction: column; gap: 11px; }
.et-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.et-head-left { display: flex; align-items: center; gap: 8px; }
.et-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted-dim); }
.et-clean-pill { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(74, 222, 128, 0.3); }
.et-total { font-size: 11px; color: var(--muted); }
.et-phase-bar { display: flex; width: 100%; height: 3px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.05); gap: 2px; }
.et-phase-bar i { display: block; height: 100%; border-radius: 99px; }
.et-seg-drop { background: rgba(200, 164, 92, 0.78); }
.et-seg-static { background: rgba(148, 163, 184, 0.55); }
.et-phase-bar.is-clean .et-seg-run { background: rgba(74, 222, 128, 0.72); }
.et-phase-bar.is-caught .et-seg-run { background: linear-gradient(90deg, rgba(251, 146, 60, 0.8), rgba(251, 113, 133, 0.85)); }
.et-phase-bar.is-running .et-seg-run { background: rgba(200, 164, 92, 0.45); }
.et-phase-bar.is-warn .et-seg-run { background: rgba(251, 191, 36, 0.65); }
.et-phase-bar.is-cancelled .et-seg-run { background: rgba(148, 163, 184, 0.25); }

.et-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.et-step { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.et-rail-row { display: flex; align-items: center; height: 14px; }
.et-node { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1.5px solid rgba(255, 255, 255, 0.22); }
.et-node i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.et-node.is-done { color: var(--accent-strong); border-color: rgba(200, 164, 92, 0.7); background: rgba(200, 164, 92, 0.16); }
.et-node.is-clean { color: var(--ok); border-color: rgba(74, 222, 128, 0.78); background: rgba(74, 222, 128, 0.16); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12); }
.et-node.is-caught { color: #fb7185; border-color: rgba(251, 113, 133, 0.85); background: rgba(251, 113, 133, 0.18); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.14); }
.et-node.is-warn { color: var(--warn); border-color: rgba(251, 191, 36, 0.75); background: rgba(251, 191, 36, 0.15); }
.et-node.is-active { color: var(--accent-strong); border-color: var(--accent-strong); background: rgba(200, 164, 92, 0.22); box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.18); }
.et-node.is-skipped, .et-node.is-pending { color: var(--muted-dim); border-style: dashed; border-color: rgba(255, 255, 255, 0.18); background: transparent; }
.et-conn { flex: 1 1 auto; height: 1.5px; margin-left: 4px; background: linear-gradient(90deg, rgba(200, 164, 92, 0.45), rgba(255, 255, 255, 0.1)); }
.et-conn.is-caught { background: linear-gradient(90deg, rgba(251, 113, 133, 0.65), rgba(251, 113, 133, 0.18)); }
.et-conn.is-clean { background: linear-gradient(90deg, rgba(74, 222, 128, 0.65), rgba(74, 222, 128, 0.18)); }
.et-conn.is-skipped, .et-conn.is-pending { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 8px); }

.et-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
  flex: 1 1 auto;
}

.et-step.is-caught .et-body { border-color: rgba(251, 113, 133, 0.28); background: rgba(251, 113, 133, 0.055); }
.et-step.is-clean .et-body { border-color: rgba(74, 222, 128, 0.24); background: rgba(74, 222, 128, 0.045); }
.et-step.is-skipped .et-body, .et-step.is-pending .et-body { opacity: 0.58; }
.et-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.et-title { font-size: 12px; font-weight: 600; color: var(--paper); white-space: nowrap; }
.et-step.is-caught .et-title { color: #fda4af; }
.et-step.is-clean .et-title { color: #86efac; }
.et-ts { font-size: 10.5px; color: var(--accent-strong); white-space: nowrap; }
.et-sub { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.et-ev-link {
  align-self: flex-start;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.et-ev-link:hover { background: rgba(200, 164, 92, 0.24); color: #fff; }

/* Deep Telemetry Subpanels */
.tel-stack { display: flex; flex-direction: column; gap: 12px; }
.tel-sec-title { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; color: var(--muted-dim); margin-bottom: 6px; }
.tel-proc-list, .tel-list { display: flex; flex-direction: column; gap: 4px; }
.tel-proc-row, .tel-item-row, .tel-net-row, .tel-drop-row, .tel-wiz-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); font-size: 11.5px; }
.tel-item-row { flex-direction: column; align-items: stretch; gap: 4px; }
.tel-item-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tel-proc-main { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; overflow: hidden; }
.tel-tree-branch { padding-left: calc((var(--depth, 1) - 1) * 14px); color: var(--accent-dim); flex: none; user-select: none; }
.tel-proc-name { color: var(--paper); font-weight: 600; white-space: nowrap; flex: none; }
.tel-pid, .tel-ts, .tel-hash, .tel-step-num { font-size: 10.5px; white-space: nowrap; flex: none; }
.tel-cmd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 11px; }
.tel-proc-meta { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tel-lived { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tel-threat { color: #fca5a5; font-weight: 600; overflow-wrap: anywhere; }
.tel-amsi-app { color: var(--paper); font-weight: 600; }
.tel-path { font-size: 11px; color: var(--paper); overflow-wrap: anywhere; min-width: 0; flex: 1; }
.tel-path.is-gone { color: #fca5a5; }
.tel-net-row, .tel-drop-row, .tel-wiz-row { justify-content: flex-start; flex-wrap: wrap; }
.tel-remote { color: var(--paper); font-weight: 600; }
.tel-local { font-size: 11px; }
.tel-dns-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.tel-dns-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--paper); }
.tel-dns-type { font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--accent-strong); }
.tel-badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; border: 1px solid var(--line); white-space: nowrap; flex: none; }
.tel-badge.is-ok { color: var(--ok); background: var(--ok-soft); border-color: rgba(74, 222, 128, 0.3); }
.tel-badge.is-bad { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.36); }
.tel-badge.is-warn { color: var(--warn); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.34); }
.tel-badge.is-amsi { color: #f472b6; background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.38); }
.tel-badge.is-created { color: var(--paper); background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); }
.tel-badge.is-accent { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent-line); }
.tel-badge.is-muted { color: var(--muted); background: rgba(255, 255, 255, 0.025); }

/* ==========================================================================
   HISTORY VIEW (/history)
   ========================================================================== */
.history-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.history-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 360px;
  justify-content: flex-end;
}

.history-search-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 240px;
  max-width: 380px;
}

.history-search-group input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12.5px;
  background: var(--surface-inset);
}

.history-search-group button,
.history-pager button {
  min-height: 36px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12.5px;
  white-space: nowrap;
}

.history-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.history-head {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(175px, 1fr) 70px 92px 104px;
  gap: 12px;
  align-items: center;
  padding: 4px 14px 8px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border-bottom: 1px solid var(--line);
}

.history-head[hidden] { display: none !important; }
.history-rows { display: flex; flex-direction: column; gap: 7px; }

a.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(175px, 1fr) 70px 92px 104px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--paper);
  text-decoration: none;
}

a.history-row:hover {
  background: var(--surface-overlay);
  border-color: var(--accent-line);
}

.hist-file { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hist-fname { font-size: 13.5px; font-weight: 500; color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-sha { font-size: 11px; color: var(--muted-dim); }
.hist-date { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hist-win {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.hist-ratio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
}

.hist-ratio.is-det { color: var(--bad); background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.34); }
.hist-ratio.is-clean { color: var(--ok); background: var(--ok-soft); border-color: rgba(74, 222, 128, 0.32); }
.hist-ratio.is-warn { color: var(--warn); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.34); }
.hist-ratio.is-pending { color: var(--muted-dim); background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.hist-status-cell { display: flex; justify-content: flex-end; }

.history-auth-gate,
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 42px 20px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-inset);
  text-align: center;
}

.history-auth-gate p, .history-empty p { margin: 0; font-size: 13px; }

button.sc-auth-inline-btn {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

button.sc-auth-inline-btn:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

/* ==========================================================================
   FLEET VIEW (/fleet - FLIP Filter Bar + 5-Col Engine Cards)
   ========================================================================== */
.fleet-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
}

.fleet-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 11.5px;
}

.fleet-stat-pill strong { color: var(--paper); font-weight: 600; }
.fleet-stat-pill.is-total { border-color: rgba(74, 222, 128, 0.3); background: var(--ok-soft); }
.fleet-stat-pill.is-total strong { color: var(--ok); }
.fleet-stat-pill.cat-edr { border-color: rgba(45, 212, 191, 0.32); background: rgba(45, 212, 191, 0.08); }
.fleet-stat-pill.cat-edr strong { color: #2dd4bf; }

.fleet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.fleet-filters {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.fleet-filters::-webkit-scrollbar { display: none; }

.fleet-filters .sc-flip-thumb {
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

button.fleet-filter-btn {
  position: relative;
  z-index: 1;
  min-height: 30px !important;
  padding: 5px 12px !important;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

button.fleet-filter-btn:hover {
  color: var(--paper);
  background: transparent;
}

button.fleet-filter-btn.is-active {
  color: var(--accent-strong);
}

.fleet-filters:not(:has(.sc-flip-thumb.is-ready)) button.fleet-filter-btn.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

#fleet-real {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#view-fleet .fleet-head,
#view-fleet .frow {
  grid-template-columns: minmax(215px, 1.5fr) minmax(96px, 0.75fr) minmax(108px, 0.85fr) minmax(145px, 1.05fr) minmax(92px, 0.55fr) !important;
  gap: 12px !important;
  align-items: center !important;
}

.fleet-mobile-os { display: none; }

#view-fleet .fleet-head {
  padding: 8px 16px !important;
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--muted-dim) !important;
  border-bottom: 1px solid var(--line) !important;
  margin-bottom: 6px !important;
}

#view-fleet .frow {
  cursor: pointer;
  padding: 13px 16px !important;
  min-height: 54px !important;
  background: var(--surface-raised) !important;
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
}

#view-fleet .frow:hover {
  background: var(--surface-overlay) !important;
  border-color: var(--accent-line) !important;
}

#view-fleet .frow.is-expanded {
  border-radius: 11px 11px 0 0 !important;
  border-color: var(--accent-line) !important;
  background: var(--surface-overlay) !important;
}

.fleet-eng-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fleet-eng-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fleet-eng-name { font-size: 14px; font-weight: 500; color: var(--paper); letter-spacing: -0.01em; }
.fleet-col-ver, .fleet-col-db { font-size: 12.5px; color: rgba(240, 237, 230, 0.76); }
.fleet-col-os { font-size: 12.5px; color: var(--muted); }
.fleet-col-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.fleet-status-pill { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.fleet-status-pill.is-active { color: var(--ok); }
.fleet-status-pill.is-off { color: var(--warn); }
.es-expand-caret { margin-left: 4px; color: var(--accent-strong); font-size: 12px; }

#view-fleet .fleet-detail-drawer {
  margin-top: -7px;
  margin-bottom: 4px;
  padding: 14px 16px 16px;
  border-radius: 0 0 11px 11px;
  background: var(--surface-inset);
  border: 1px solid var(--accent-line);
  border-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#view-fleet .fleet-detail-drawer .es-vm-drawer {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ==========================================================================
   PRICING VIEW (/pricing - FLIP Presets, ValueSwap, Activity FLIP Tabs)
   ========================================================================== */
.sc-pricing-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sc-pricing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.sc-pricing-head h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.sc-pricing-head p {
  margin: 0;
  font-size: 12px;
}

.sc-pricing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

.sc-pricing-banner strong { color: var(--paper); }
.sc-pricing-bal { display: inline-flex; align-items: baseline; gap: 7px; }
.sc-pricing-bal strong { color: var(--accent-strong); font-size: 14px; }

.sc-pricing-banner-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-pricing-free-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sc-pricing-tg-btn {
  min-height: 28px;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.34);
  color: #bce4f7;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.sc-pricing-tg-btn:hover {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.56);
  color: #fff;
}

.sc-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  align-items: start;
}

.sc-credit-card,
.sc-side-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sc-credit-top,
.sc-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sc-side-top strong { font-size: 13.5px; font-weight: 600; color: var(--paper); }

.sc-bonus-pill,
.sc-tag-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.sc-tag-pill {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.sc-promo-note { margin: -2px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--accent-strong); }
.sc-promo-note[hidden] { display: none !important; }
.sc-field-lbl { display: block; font-size: 11.5px; margin-bottom: -3px; }

.sc-usd-input-wrap {
  display: flex;
  align-items: stretch;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  overflow: hidden;
}

.sc-usd-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.16);
}

button.sc-step-btn {
  width: 38px;
  min-width: 38px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

button.sc-step-btn:first-child { border-right: 1px solid var(--line); }
button.sc-step-btn:last-child { border-left: 1px solid var(--line); }
button.sc-step-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--paper); }

.sc-usd-field {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 12px;
  gap: 5px;
}

.sc-usd-field span { font-size: 15px; }

.sc-usd-field input {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  outline: none;
  box-shadow: none;
}

/* USD Presets FLIP Track */
.sc-usd-presets {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
}

.sc-usd-presets .sc-flip-thumb {
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

button.sc-preset-btn {
  position: relative;
  z-index: 1;
  min-height: 30px !important;
  padding: 4px 4px !important;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
}

button.sc-preset-btn:hover {
  color: var(--paper);
  background: transparent;
}

button.sc-preset-btn.is-active {
  color: var(--accent-strong);
  font-weight: 700;
}

.sc-usd-presets:not(:has(.sc-flip-thumb.is-ready)) button.sc-preset-btn.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.sc-credit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
}

.sc-credit-summary > div:first-child { display: flex; flex-direction: column; gap: 1px; }
.sc-credit-summary > div:first-child span { font-size: 10.5px; }
.sc-credit-summary > div:first-child strong { font-size: 20px; font-weight: 700; color: var(--accent-strong); line-height: 1.2; }
.sc-credit-rates { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11.5px; color: var(--paper); }

button.sc-checkout-btn {
  width: 100%;
  min-height: 42px !important;
  padding: 9px 16px !important;
  border-radius: 10px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

button.sc-checkout-btn:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: #f0d797;
  color: var(--accent-ink);
}

.sc-checkout-err { margin: 0; font-size: 11.5px; }
.sc-checkout-status { margin: 0; font-size: 11.5px; color: var(--accent-strong); }
.sc-checkout-status a { color: var(--paper); text-decoration: underline; margin-left: 6px; }
.sc-pricing-side { display: flex; flex-direction: column; gap: 12px; }
.sc-side-copy { margin: 0; font-size: 12.5px; line-height: 1.48; }

.sc-voucher-form { display: flex; gap: 6px; align-items: center; }
.sc-voucher-form input { flex: 1; min-width: 0; min-height: 34px; height: 34px; padding: 4px 10px; border-radius: 8px; font-size: 12px; }

button.sc-mini-btn {
  min-height: 34px !important;
  padding: 5px 12px !important;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--paper);
  font-size: 12px;
  white-space: nowrap;
}

button.sc-mini-btn:hover {
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.sc-voucher-msg { font-size: 11.5px; }

/* Pricing Activity Card (Credit Ledger / Invoices FLIP Tabs) */
.sc-activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.sc-activity-card[hidden] { display: none !important; }

.sc-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  font-size: 11.5px;
}

.sc-activity-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
}

.sc-activity-tabs .sc-flip-thumb {
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

button.sc-act-tab {
  position: relative;
  z-index: 1;
  min-height: 28px !important;
  padding: 4px 11px !important;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}

button.sc-act-tab:hover { color: var(--paper); background: transparent; }
button.sc-act-tab.is-active { color: var(--accent-strong); font-weight: 600; }

.sc-activity-tabs:not(:has(.sc-flip-thumb.is-ready)) button.sc-act-tab.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.sc-act-list { display: flex; flex-direction: column; }

.sc-act-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 12px;
}

.sc-act-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sc-act-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-act-main a { color: var(--paper); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-act-main a:hover { color: var(--accent-strong); }
.sc-act-sub { font-size: 11px; color: var(--muted); }
.sc-act-right { display: flex; align-items: center; gap: 8px; flex: none; }
.sc-act-amt.is-pos { color: var(--ok); }
.sc-act-amt.is-neg { color: var(--muted); }

/* ==========================================================================
   MODALS, DIALOGS, AUTH & EVIDENCE LIGHTBOX
   ========================================================================== */
.sc-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(5, 5, 7, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.sc-auth-backdrop[hidden] { display: none !important; }

#account-panel.sc-auth-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  z-index: 120;
  margin: 0;
  padding: 20px 22px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.74);
  pointer-events: auto;
}

#account-panel.sc-auth-modal[hidden] { display: none !important; }
#account-panel.sc-auth-modal.is-open { display: block; }
#account-panel.sc-auth-modal.is-closing { display: block; pointer-events: none; }

#account-panel.sc-auth-modal .account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

#account-panel.sc-auth-modal .account-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--paper); }
#account-panel.sc-auth-modal #account-status { margin-right: auto; font-size: 11.5px; }

.sc-acct-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  margin: 0 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-inset);
}

.sc-acct-summary[hidden] { display: none !important; }
.sc-acct-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-acct-bal { font-size: 16px; font-weight: 600; color: var(--accent-strong); }
.sc-acct-id-line { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

.badge-linked {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}

button.sc-acct-logout { min-height: 30px !important; padding: 4px 10px !important; border-radius: 7px; font-size: 12px; color: var(--muted); flex: none; }

.sc-acct-quick { display: flex; gap: 6px; margin: 0 0 12px; }
.sc-acct-quick[hidden] { display: none !important; }
.sc-acct-qlink {
  flex: 1;
  text-align: center;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
}

.sc-acct-qlink:hover { border-color: var(--accent-line); color: var(--accent-strong); }

.sc-tg-link-row { margin: 0 0 12px; }
.sc-tg-link-row[hidden] { display: none !important; }

.sc-auth-choice { display: flex; flex-direction: column; gap: 8px; }
.sc-auth-choice[hidden] { display: none !important; }

button.sc-auth-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}

button.sc-auth-choice-btn span { color: var(--muted); font-size: 14px; }
button.sc-auth-choice-btn:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); color: #fff; }
button.sc-auth-choice-btn:hover:not(:disabled) span { color: var(--accent-strong); transform: translateX(2px); }

button.sc-auth-choice-btn.sc-auth-tg-btn { border-color: rgba(42, 171, 238, 0.34); background: rgba(42, 171, 238, 0.08); color: #e8f5fc; }
button.sc-auth-choice-btn.sc-auth-tg-btn:hover:not(:disabled) { border-color: rgba(42, 171, 238, 0.62); background: rgba(42, 171, 238, 0.16); color: #fff; }
button.sc-auth-choice-btn.sc-auth-tg-btn .sc-auth-tg-label { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 13.5px; transform: none !important; }
button.sc-auth-choice-btn.sc-auth-tg-btn .sc-auth-tg-label svg { color: #6bc4f0; flex-shrink: 0; }
button.sc-auth-choice-btn.sc-auth-tg-btn .sc-free-pill { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-strong); white-space: nowrap; transform: none !important; }

.sc-auth-form { display: flex; flex-direction: column; gap: 10px; }
.sc-auth-form[hidden] { display: none !important; }
#key-form > label.sc-auth-field-label { display: block; font-size: 11px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: -4px; }
#key-form > label.sc-auth-field-label[hidden] { display: none !important; }
.sc-key-input-row { display: flex; gap: 6px; margin-top: 0; }
.sc-key-input-row input { flex: 1; min-width: 0; min-height: 40px; border-radius: 9px; background: var(--surface-inset); font-size: 13px; }
.sc-key-input-row button { min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: 12px; color: var(--muted); }
#remember-wrap { margin-top: 0; font-size: 12.5px; }
#remember-wrap label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); }

button.sc-auth-submit {
  width: 100%;
  min-height: 42px;
  border-radius: 9px;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 700;
}

button.sc-auth-submit:hover:not(:disabled) {
  background: var(--accent-strong);
  border-color: #f0d797;
  color: var(--accent-ink);
}

button.sc-auth-back { align-self: flex-start; min-height: 0 !important; padding: 2px 0 !important; border: 0 !important; background: transparent !important; color: var(--muted); font-size: 12px; }
button.sc-auth-back:hover { color: var(--paper); }

#device-signin { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); justify-content: space-between; font-size: 12px; }
#device-signin button { min-height: 30px; padding: 4px 10px; font-size: 12px; }
#account-panel.sc-auth-modal #key-error, #account-panel.sc-auth-modal #key-ok { margin: 8px 0 0; font-size: 12px; line-height: 1.4; }
#account-panel.sc-auth-modal #account-manage { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
#account-panel.sc-auth-modal #account-manage summary { cursor: pointer; color: var(--muted); font-size: 12px; user-select: none; }
#account-panel.sc-auth-modal #account-manage summary:hover { color: var(--paper); }
#account-panel.sc-auth-modal #account-manage .account-row { margin-top: 8px; }
#account-panel.sc-auth-modal #account-manage .account-row button { min-height: 32px; padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* Slider CAPTCHA (Sign Up) */
.sc-auth-signup { display: flex; flex-direction: column; gap: 10px; }
.sc-auth-signup[hidden] { display: none !important; }
.sc-captcha-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-inset); }
.sc-captcha-box.is-aligned { border-color: rgba(74, 222, 128, 0.48); }
.sc-captcha-box.is-verified { border-color: rgba(74, 222, 128, 0.58); background: rgba(74, 222, 128, 0.05); }
.sc-captcha-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.sc-captcha-label { color: var(--paper); font-weight: 500; }
.sc-captcha-status { font-size: 11px; color: var(--muted); }
.sc-captcha-box.is-aligned .sc-captcha-status, .sc-captcha-box.is-verified .sc-captcha-status { color: var(--ok); font-weight: 600; }

.sc-captcha-track {
  position: relative;
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.sc-captcha-track:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.16); }
.sc-captcha-box.is-dragging .sc-captcha-track { cursor: grabbing; border-color: var(--accent-line); }
.sc-captcha-box.is-verified .sc-captcha-track { cursor: default; border-color: rgba(74, 222, 128, 0.5); }
.sc-captcha-fill { position: absolute; inset: 0 auto 0 0; width: 22px; background: var(--accent-soft); pointer-events: none; }
.sc-captcha-box.is-dragging .sc-captcha-fill { transition: none; }
.sc-captcha-box.is-aligned .sc-captcha-fill, .sc-captcha-box.is-verified .sc-captcha-fill { background: rgba(74, 222, 128, 0.16); }
.sc-captcha-target { position: absolute; top: 3px; width: 38px; height: 36px; border-radius: 7px; border: 1.5px dashed rgba(200, 164, 92, 0.72); background: rgba(200, 164, 92, 0.08); pointer-events: none; }
.sc-captcha-box.is-aligned .sc-captcha-target, .sc-captcha-box.is-verified .sc-captcha-target { border-style: solid; border-color: var(--ok); background: rgba(74, 222, 128, 0.14); }
.sc-captcha-thumb { position: absolute; top: 3px; left: 3px; width: 38px; height: 36px; border-radius: 7px; border: 1px solid var(--accent-strong); background: linear-gradient(180deg, #322a1b 0%, #241e13 100%); color: var(--accent-strong); display: grid; place-items: center; font-size: 14px; font-weight: 700; pointer-events: none; }
.sc-captcha-box.is-dragging .sc-captcha-thumb { transition: none; }
.sc-captcha-box.is-aligned .sc-captcha-thumb, .sc-captcha-box.is-verified .sc-captcha-thumb { border-color: var(--ok); background: linear-gradient(180deg, rgba(74, 222, 128, 0.28), rgba(34, 197, 94, 0.2)); color: #dcfce7; }

/* Native Dialog Base (Rules 10, 11, 12, 15: scale 0.95, 200ms in / 160ms out) */
dialog {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-raised);
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

dialog::backdrop {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

dialog.sc-key-dialog { width: min(440px, calc(100vw - 28px)); max-width: min(440px, calc(100vw - 28px)); padding: 20px 22px; }
dialog.sc-key-dialog .account-key-value { border-color: var(--accent-line); border-radius: 9px; padding: 11px 12px; color: var(--accent-strong); font-size: 13px; user-select: all; background: var(--surface-inset); }

dialog.sc-tos-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(560px, calc(100vw - 28px));
  max-width: min(560px, calc(100vw - 28px));
  max-height: min(86dvh, 660px);
  padding: 20px 22px;
  border-color: var(--accent-line);
  overflow: hidden;
}

.sc-tos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); flex: none; }
.sc-tos-head h2 { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--paper); }
.sc-tos-head span { font-size: 11px; }
.sc-tos-lead { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); flex: none; }
.sc-tos-list { list-style: none; margin: 0; padding: 2px 4px 2px 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-tos-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-inset); }
.sc-tos-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 24px; border-radius: 6px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 600; }
.sc-tos-body h3 { margin: 1px 0 4px; font-size: 13px; font-weight: 600; color: var(--accent-strong); }
.sc-tos-body p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--paper); }
.sc-tos-footer { margin: 0; font-size: 11.5px; line-height: 1.45; flex: none; }
.sc-tos-actions { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
.sc-tos-actions button.sc-auth-submit { width: auto; min-width: 170px; padding: 0 18px; }
.sc-tos-full-link { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.sc-tos-full-link:hover { color: var(--accent-strong); }

/* Anti-Sandbox Guidance Modal */
dialog.sc-antisandbox-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(460px, calc(100vw - 28px));
  max-width: min(460px, calc(100vw - 28px));
  padding: 22px 24px 20px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--paper);
}

.sc-as-head { display: flex; align-items: flex-start; gap: 13px; }
.sc-as-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.3); color: #2dd4bf; flex: none; }
.sc-as-icon svg { width: 18px; height: 18px; }
.sc-as-titles { flex: 1; min-width: 0; }
.sc-as-titles h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--paper); }
.sc-as-titles p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.sc-as-close { min-height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 7px; border-radius: 7px; cursor: pointer; }
.sc-as-close:hover { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.sc-as-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 12.5px; line-height: 1.6; color: rgba(244, 244, 245, 0.9); }
.sc-as-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: baseline; }
.sc-as-num { color: #2dd4bf; font-size: 11.5px; font-weight: 600; }
.sc-as-actions { margin: 2px 0 0; }
.sc-as-ok { width: 100%; min-height: 42px; padding: 10px 16px; border-radius: 9px; border: 1px solid rgba(45, 212, 191, 0.36); background: rgba(45, 212, 191, 0.12); color: var(--paper); font-size: 13px; font-weight: 600; cursor: pointer; }
.sc-as-ok:hover { background: rgba(45, 212, 191, 0.2); border-color: rgba(45, 212, 191, 0.56); }

/* Inline Crypto Checkout Dialog */
dialog.sc-pay-dialog {
  width: min(470px, calc(100vw - 24px));
  max-width: min(470px, calc(100vw - 24px));
  padding: 20px 22px;
  border-color: var(--accent-line);
  background: var(--surface-raised);
}

.sc-pay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sc-pay-head h2 { margin: 0 0 2px; font-size: 16.5px; font-weight: 600; }
.sc-pay-head p { margin: 0; font-size: 12px; }
.sc-coin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.sc-coin-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 44px !important;
  padding: 6px 8px !important;
  border-radius: 8px;
  font-size: 12px;
  background: var(--surface-inset);
  border: 1px solid var(--line);
  transition: border-color .14s ease, background .14s ease;
}
.sc-coin-grid button:hover:not(:disabled),
.sc-coin-grid button:focus-visible:not(:disabled) {
  border-color: var(--accent-line);
  background: rgba(212, 168, 79, 0.08);
}
.sc-coin-grid button.is-selected {
  border-color: var(--accent-strong);
  background: rgba(212, 168, 79, 0.14);
}
.sc-coin-grid button.is-loading {
  opacity: 0.72;
  cursor: wait;
}
.sc-coin-sym { font-weight: 600; font-size: 12px; letter-spacing: 0.02em; color: var(--paper); line-height: 1.15; }
.sc-coin-net { font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
@media (max-width: 400px) {
  .sc-coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sc-pay-body { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.sc-pay-qr { background: #fff; padding: 6px; border-radius: 8px; line-height: 0; }
.sc-pay-qr.is-fallback { background: var(--surface-inset); border: 1px solid var(--line-strong); padding: 14px 12px; line-height: 1.4; font-size: 11px; text-align: center; max-width: 158px; }
.sc-pay-fields { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 8px; }
.sc-pay-lbl { font-size: 10.5px; margin-bottom: 3px; }
.sc-pay-copy { display: flex; gap: 6px; align-items: center; }
.sc-pay-addr { font-size: 11px; word-break: break-all; }
.sc-pay-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 11.5px; }
.sc-pay-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sc-pay-ext { margin-left: auto; font-size: 11.5px; color: var(--accent-strong); text-decoration: none; }
.sc-pay-ext:hover { text-decoration: underline; }
.sc-pay-done { padding: 12px; border-radius: 9px; border: 1px solid rgba(74, 222, 128, 0.34); background: var(--ok-soft); color: var(--ok); font-size: 12.5px; }
.sc-pay-done.is-failed { border-color: rgba(251, 191, 36, 0.34); background: rgba(251, 191, 36, 0.08); color: var(--warn); }

/* Evidence Lightbox */
.lightbox {
  width: min(94vw, 1240px);
  max-width: min(94vw, 1240px);
  max-height: 92dvh;
  padding: 0;
  color: var(--paper);
  overflow: hidden;
}

dialog.lightbox[open] {
  display: flex;
  flex-direction: column;
  max-height: 92dvh;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12.5px; }
.lb-btn { min-height: 30px; padding: 4px 11px; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; }
.lb-raw-link { color: var(--muted); border-color: var(--line); background: transparent; }
.lb-raw-link:hover { color: var(--accent-strong); border-color: var(--accent-line); }
.lb-raw-link[hidden] { display: none !important; }
.lb-zoom-controls { display: inline-flex; align-items: center; gap: 5px; }
.lb-zoom-controls[hidden] { display: none !important; }

.lb-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 52px;
  background: #060608;
  min-height: 0;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.lb-stage img,
.lb-stage video {
  max-width: 100%;
  max-height: min(100%, calc(92dvh - 196px));
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
}

#lightbox-img { transition: transform 60ms linear; transform-origin: center center; cursor: grab; }
#lightbox-img:active { cursor: grabbing; }

.lb-nav {
  position: absolute;
  top: calc(50% - 26px);
  transform: none;
  z-index: 4;
  pointer-events: auto;
  width: 38px;
  height: 52px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.88);
  border-color: rgba(200, 164, 92, 0.25);
  color: var(--accent-strong);
}

.lb-nav:hover { background: rgba(24, 24, 30, 0.96); border-color: var(--accent-line); }
#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }

.lb-filmstrip {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 7px;
  padding: 9px 16px;
  background: #0b0c10;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.lb-strip-item { width: 72px; height: 44px; padding: 0; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--line-strong); background: #060608; opacity: 0.62; flex: none; }
.lb-strip-item.is-video { width: auto; padding: 0 10px; font-family: var(--mono); font-size: 10.5px; color: var(--accent-strong); }
.lb-strip-item.is-active, .lb-strip-item:hover { opacity: 1; border-color: var(--accent); }
.lb-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-caption { flex: none; margin: 0; padding: 9px 16px; font-size: 11.5px; border-top: 1px solid var(--line); background: var(--surface); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.sc-footer {
  width: 100%;
  max-width: none;
  margin: auto 0 0;
  padding: 14px max(clamp(16px, 2.5vw, 32px), calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #09090b;
  color: var(--muted-dim);
  font-size: 11.5px;
  display: block;
}

.sc-footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.sc-footer-left { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; }
.footer-brand i { width: 7px; height: 7px; border: 1.5px solid var(--accent); border-radius: 2px; }
.sc-footer-sep { opacity: 0.4; }
.sc-footer-by a { color: var(--muted); text-decoration: none; }
.sc-footer-by a:hover { color: var(--paper); }
.sc-footer-links { display: inline-flex; align-items: center; gap: 16px; }
.sc-footer-links a { margin: 0; padding: 0; color: var(--muted); text-decoration: none; font-size: 11.5px; }
.sc-footer-links a:hover { color: var(--paper); }

/* ==========================================================================
   40-PRINCIPLE MOTION SYSTEM (100% Reduced-Motion Gated)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Live status dots */
  .live-dot,
  .sc-util-dot {
    animation: scLiveDot 2.4s ease-in-out infinite;
  }

  /* Shared FLIP gliding indicator & thumbs (Rule 20) */
  .nav-indicator,
  .sc-flip-thumb {
    transition:
      transform var(--dur-move) var(--motion-in-out),
      width var(--dur-move) var(--motion-in-out),
      height var(--dur-move) var(--motion-in-out),
      opacity 140ms var(--motion-out);
  }

  /* Chevrons & interactive icons */
  .sc-chev,
  .adv-chevron,
  .row-chevron,
  .sc-btn-arrow,
  .sc-drop-glyph,
  .sc-auth-choice-btn span {
    transition: transform 200ms var(--motion-out), color 150ms var(--motion-out), border-color 150ms var(--motion-out), background-color 150ms var(--motion-out);
  }

  /* Rule 4 + 14: Instant scale(0.97) on press (0ms down), smooth 160ms release */
  button,
  .btnlink,
  .bench-header nav a,
  .sc-welcome-cta,
  .sc-welcome-pill,
  .sc-pricing-tg-btn,
  .sc-mode-tile,
  .sc-seg-btn,
  .fleet-filter-btn,
  .sc-preset-btn,
  .sc-act-tab,
  .engine-chip,
  .ev-thumb-card,
  .ev-video-pill,
  .ev-more-pill,
  .btn-matte-gold,
  .btn-matte-ghost,
  .btn-matte-tg,
  .sc-acct-qlink {
    transition:
      transform 160ms var(--motion-out),
      background-color 150ms var(--motion-out),
      border-color 150ms var(--motion-out),
      color 150ms var(--motion-out),
      box-shadow 150ms var(--motion-out),
      opacity 150ms var(--motion-out);
  }

  button:not(:disabled):active,
  .btnlink:active,
  .bench-header nav a:active,
  .sc-welcome-cta:active,
  .sc-welcome-pill:active,
  .sc-pricing-tg-btn:active,
  .sc-mode-tile:active,
  .sc-seg-btn:active,
  .fleet-filter-btn:active,
  .sc-preset-btn:active,
  .sc-act-tab:active,
  .engine-chip:active,
  .ev-thumb-card:active,
  .ev-video-pill:active,
  .ev-more-pill:active,
  .btn-matte-gold:not(:disabled):active,
  .btn-matte-ghost:not(:disabled):active,
  .btn-matte-tg:not(:disabled):active,
  .sc-acct-qlink:active {
    transform: scale(0.97);
    scale: 1;
    transition-duration: 0ms;
  }

  .lb-nav:active {
    transform: scale(0.95);
    scale: 1;
    transition-duration: 0ms;
  }

  a.history-row,
  #view-fleet .frow,
  #matrix .row,
  .sc-env-row,
  .sc-dropzone {
    transition:
      transform 160ms var(--motion-out),
      background-color 150ms var(--motion-out),
      border-color 150ms var(--motion-out),
      box-shadow 180ms var(--motion-out);
  }

  a.history-row:active,
  #view-fleet .frow:active {
    transform: scale(0.992);
    transition-duration: 0ms;
  }

  /* Rule 5: Moving-Knob 12% Stretch on Toggle Switches */
  .sc-switch {
    transition: background-color 200ms var(--motion-in-out), border-color 200ms var(--motion-in-out);
  }

  .sc-switch::after {
    transition: transform 210ms var(--motion-in-out), width 110ms var(--motion-out), background-color 180ms var(--motion-out);
  }

  .sc-env-row:active .sc-switch::after,
  .sc-switch-wrap:active .sc-switch::after {
    width: 21px;
  }

  .sc-env-row:active .sc-chk:checked + .sc-switch::after,
  .sc-switch-wrap:active .sc-chk:checked + .sc-switch::after {
    transform: translateX(15px);
  }

  .sc-switch.is-stretching::after {
    animation: scKnobStretch 220ms var(--motion-in-out);
  }

  /* Rule 16: ValueSwap Overlapping Numeric Crossfade */
  .vswap-enter { animation: scValEnter 200ms var(--motion-out) forwards; }
  .vswap-exit { animation: scValExit 160ms var(--motion-exit) forwards; }

  /* Rule 18: Blur-crossfade copy feedback */
  .is-copy-swap { animation: scCopyBlur 220ms var(--motion-out); }

  /* Rules 10, 11, 12, 15: Popovers, Drawers & Modals (200ms enter / 160ms exit) */
  .sc-fleet-drawer.is-open { animation: scPopIn var(--dur-in) var(--motion-out) forwards; }
  .sc-fleet-drawer.is-closing { animation: scPopOut var(--dur-out) var(--motion-exit) forwards; }

  .sc-adv-body.is-open { animation: scPopIn var(--dur-in) var(--motion-out) forwards; }
  .sc-adv-body.is-closing { animation: scPopOut var(--dur-out) var(--motion-exit) forwards; }

  .sc-tooltip {
    transition: opacity 160ms var(--motion-out), transform 160ms var(--motion-out);
  }

  .sc-auth-backdrop:not([hidden]) { animation: scFadeIn 180ms var(--motion-out) both; }
  .sc-auth-backdrop.is-closing { animation: scFadeOut 140ms var(--motion-exit) forwards; }

  #account-panel.sc-auth-modal.is-open { animation: scModalIn var(--dur-in) var(--motion-out) both; }
  #account-panel.sc-auth-modal.is-closing { animation: scModalOut var(--dur-out) var(--motion-exit) forwards; }

  dialog {
    opacity: 0;
    scale: 0.95;
    transition:
      opacity var(--dur-out) var(--motion-exit),
      scale var(--dur-out) var(--motion-exit),
      overlay var(--dur-out) allow-discrete,
      display var(--dur-out) allow-discrete;
  }

  dialog[open] {
    opacity: 1;
    scale: 1;
    transition:
      opacity var(--dur-in) var(--motion-out),
      scale var(--dur-in) var(--motion-out),
      overlay var(--dur-in) allow-discrete,
      display var(--dur-in) allow-discrete;
  }

  @starting-style {
    dialog[open] {
      opacity: 0;
      scale: 0.95;
    }
  }

  dialog::backdrop {
    transition:
      opacity var(--dur-out) var(--motion-exit),
      overlay var(--dur-out) allow-discrete,
      display var(--dur-out) allow-discrete;
  }

  @starting-style {
    dialog[open]::backdrop {
      opacity: 0;
    }
  }

  /* Rules 3 & 8: Staggers (18-30ms) & Confirmation / Verdict Pulses */
  .panel { animation: scViewIn 220ms var(--motion-out) both; }
  .sc-welcome-strip { animation: scPopIn 190ms var(--motion-out) both; }
  .sc-staged-wrap { animation: scPopIn 200ms var(--motion-out); }
  .sc-xray-strip { animation: scPopIn 180ms var(--motion-out) both; }
  .eng-inspector, .row-eng-drawer, .es-vm-drawer, #view-fleet .fleet-detail-drawer, .advanced-meta[open] .meta-grid {
    animation: scPopIn 180ms var(--motion-out) both;
  }

  .sc-fleet-drawer.is-open .engine-chip {
    opacity: 0;
    animation: scRowEnter 190ms var(--motion-out) var(--stagger, 0ms) forwards;
  }

  .row.enter,
  a.history-row.enter,
  #view-fleet .frow.enter,
  .sc-act-row.enter,
  .list-row.enter,
  .terms-item.enter {
    animation: scRowEnter 210ms var(--motion-out) var(--stagger, 0ms) both;
  }

  .pulse-ok { animation: scOkPulse 540ms var(--motion-out); }
  .pulse-attention { animation: scGoldPulse 580ms var(--motion-out); }

  .row.just-terminal.is-clean { animation: scConfirmClean 650ms var(--motion-out); }
  .row.just-terminal.is-detected { animation: scConfirmDet 650ms var(--motion-out); }

  .ev-new { animation: scEvReveal 200ms var(--motion-out) var(--ev-delay, 0ms) both; }
  .eq-bars i { animation: scEqPulse 920ms var(--motion-in-out) infinite; }
  .eq-bars i:nth-child(2) { animation-delay: 180ms; }
  .eq-bars i:nth-child(3) { animation-delay: 360ms; }
  .row .dot.st-running, .live-phase-dot, .pipe-stage-card.is-live .pipe-stage-indicator, .pipe-live-pulse {
    animation: scPulseSoft 1.5s var(--motion-in-out) infinite;
  }
  .hero-track i { transition: scale 320ms var(--motion-out); }
  .hero-track.is-active::after { animation: scTrackSweep 1.6s var(--motion-in-out) infinite; }
  .pipe-stage-rail i { transition: width 320ms var(--motion-out); }
  .row .bar i { transition: scale 360ms var(--motion-out); }
  .sc-captcha-fill { transition: width 160ms var(--motion-out), background-color 140ms var(--motion-out); }
  .sc-captcha-thumb { transition: left 160ms var(--motion-out), background-color 140ms var(--motion-out), border-color 140ms var(--motion-out), color 140ms var(--motion-out); }
}

@keyframes scLiveDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.04); }
}

@keyframes scKnobStretch {
  0%, 100% { width: 18px; }
  45% { width: 22px; }
}

@keyframes scValEnter {
  from { opacity: 0; transform: translateY(7px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes scValExit {
  from { opacity: 1; transform: translateY(0); filter: blur(0); }
  to { opacity: 0; transform: translateY(-7px); filter: blur(2px); }
}

@keyframes scCopyBlur {
  0% { filter: blur(2px); opacity: 0.65; transform: scale(0.96); }
  100% { filter: blur(0); opacity: 1; transform: scale(1); }
}

@keyframes scPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes scPopOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to { opacity: 0; transform: scale(0.96) translateY(-3px); }
}

@keyframes scFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scFadeOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes scModalIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes scModalOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -49%) scale(0.96); }
}

@keyframes scViewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scRowEnter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scOkPulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.36); border-color: var(--ok); }
  100% { box-shadow: 0 0 0 14px rgba(74, 222, 128, 0); }
}

@keyframes scGoldPulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 200, 127, 0.45); border-color: var(--accent-strong); }
  100% { box-shadow: 0 0 0 14px rgba(226, 200, 127, 0); }
}

@keyframes scConfirmClean {
  0% { background: rgba(74, 222, 128, 0.16); }
  100% { background: transparent; }
}

@keyframes scConfirmDet {
  0% { background: rgba(248, 113, 113, 0.16); }
  100% { background: transparent; }
}

@keyframes scEvReveal {
  from { opacity: 0; transform: scale(0.95); filter: blur(2px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes scEqPulse {
  0%, 100% { transform: scaleY(0.32); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes scPulseSoft {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.84); }
}

@keyframes scTrackSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Zero Overflow Across 360px - 1440px)
   ========================================================================== */
@media (max-width: 1120px) {
  .hdr-meta-item { display: none; }
}

@media (max-width: 980px) {
  .env { display: none; }
  .et-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  #view-fleet .fleet-head,
  #view-fleet .frow {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }
  #view-fleet .fleet-head span:nth-child(2),
  #view-fleet .fleet-head span:nth-child(3),
  #view-fleet .fleet-head span:nth-child(4),
  #view-fleet .frow > :nth-child(2),
  #view-fleet .frow > :nth-child(3),
  #view-fleet .frow > :nth-child(4) {
    display: none !important;
  }
  #view-fleet .frow > :nth-child(5) {
    display: inline-flex !important;
    justify-content: flex-end;
  }
  .fleet-mobile-os { display: inline-flex; align-items: center; }

  .matrix-head.es-matrix-head { display: none; }
  #matrix .row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "eng dur status"
      "res res ev";
    gap: 6px 10px;
    min-height: 0;
    padding: 10px 12px;
    align-items: center;
  }
  #matrix .row .engcell { grid-area: eng; }
  #matrix .row .barwrap { grid-area: dur; display: block !important; min-width: 42px; text-align: right; }
  #matrix .row .statuscell { grid-area: status; justify-self: end; }
  #matrix .row .resultcell { grid-area: res; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; overflow: visible; }
  #matrix .row .resultcell .det, #matrix .row .resultcell .det-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  #matrix .row .evcell, #matrix .row .ev-thumbs { grid-area: ev; display: flex !important; justify-content: flex-end; height: auto; flex-wrap: wrap; }
  #matrix .row .row-eng-drawer, #matrix .row details.sig { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .sc-wb-grid,
  .sc-pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sc-wb-right {
    position: static;
  }
  .sc-dropzone {
    min-height: 168px;
  }
}

@media (max-width: 880px) {
  .history-top { flex-direction: column; align-items: stretch; }
  .history-toolbar { justify-content: stretch; flex: none; }
  .history-search-group { max-width: none; }
  .history-head { display: none; }
  a.history-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "file file status"
      "date win det";
    gap: 8px;
  }
  .hist-file { grid-area: file; }
  .hist-status-cell { grid-area: status; }
  .hist-date { grid-area: date; font-size: 11px; }
  .hist-win-cell { grid-area: win; justify-self: end; }
  .hist-det-cell { grid-area: det; justify-self: end; }
}

@media (max-width: 860px) {
  .meta-grid { grid-template-columns: 110px minmax(0, 1fr); }
  .meta-grid dd.meta-span-full { grid-column: auto; }
  .lb-head { flex-wrap: wrap; gap: 6px 8px; }
  .lb-head .spacer { display: none; }
  .lb-stage img, .lb-stage video { max-height: min(100%, calc(92dvh - 236px)); }
}

@media (max-width: 780px) {
  .xray-body { grid-template-columns: 1fr; }
  .tel-proc-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .sc-env-toggles {
    grid-template-columns: 1fr;
  }
  .sc-env-toggles .sc-env-row {
    min-height: 44px;
    padding: 8px 10px;
    gap: 10px;
  }
  .sc-env-toggles .sc-env-title strong {
    font-size: 13px;
  }
}


/* === Command Hero & Storyboard Timeline (merged from pre-ui backup) === */
#result-panel.report-shell {
  padding-top: 16px;
}
.rc-surface {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(620px 220px at 0% 0%, rgba(200, 164, 92, 0.09), transparent 62%),
    linear-gradient(180deg, #14141a 0%, #0e0e13 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 42px -28px rgba(0, 0, 0, 0.85);
  margin-bottom: 14px;
}
.rc-surface[data-tone="detected"] {
  border-color: rgba(251, 113, 133, 0.22);
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(251, 113, 133, 0.11), transparent 60%),
    linear-gradient(180deg, #151318 0%, #0e0e13 100%);
}
.rc-surface[data-tone="clean"] {
  border-color: rgba(74, 222, 128, 0.22);
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(74, 222, 128, 0.09), transparent 60%),
    linear-gradient(180deg, #121616 0%, #0e0e13 100%);
}
.rc-top-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 16px;
}
.rc-surface .report-hero {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  flex: 1 1 auto;
  min-width: 0;
}
.rh-layout {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.rh-gauge {
  position: relative;
  width: 74px;
  height: 74px;
  flex: none;
  display: grid;
  place-items: center;
}
.rh-gauge svg {
  transform: rotate(-90deg);
  display: block;
}
.rh-gauge circle {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: butt;
}
.rh-arc-bg {
  stroke: rgba(255, 255, 255, 0.075);
}
.rh-arc-static {
  stroke: #fb7185;
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.35));
}
.rh-arc-runtime {
  stroke: #fb923c;
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.32));
}
.rh-arc-clean {
  stroke: #4ade80;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.28));
}
.rh-arc-warn {
  stroke: #fbbf24;
}
.rh-arc-run {
  stroke: var(--accent-strong);
  transition: stroke-dasharray 320ms var(--motion-out);
}
.rh-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
.rh-gauge-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.rh-gauge.is-det .rh-gauge-val { color: #fda4af; }
.rh-gauge.is-clean .rh-gauge-val { color: #86efac; }
.rh-gauge-val small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-dim);
}
.rh-gauge-cap {
  margin-top: 2px;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--muted-dim);
}
.rh-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}
.rh-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.rh-fname {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #faf9f6;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-dna {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}
.rh-dna-type {
  color: var(--paper);
  font-weight: 500;
}
.rh-dna-ent.is-warn { color: #fbbf24; }
.rh-dna-ent.is-bad { color: #fb7185; font-weight: 600; }
.rh-sep {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}
.rh-sha-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px !important;
  padding: 1px 7px !important;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 140ms var(--motion-out), color 140ms var(--motion-out), background-color 140ms var(--motion-out);
}
.rh-sha-btn:hover {
  border-color: rgba(200, 164, 92, 0.45);
  color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.08);
}
.rh-sha-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
}
.rh-id-tag {
  color: var(--muted-dim);
  font-size: 11px;
}
.rh-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.rh-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rh-metric strong {
  color: var(--paper);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.rh-metric i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
.rh-metric.is-static i { background: #fb7185; box-shadow: 0 0 6px rgba(251, 113, 133, 0.55); }
.rh-metric.is-runtime i { background: #fb923c; box-shadow: 0 0 6px rgba(251, 146, 60, 0.5); }
.rh-metric.is-edr i { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.5); }
.rh-metric.is-clean i { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.45); }
.rh-metric.is-warn i { background: #fbbf24; }
.rh-metric.is-run i { background: var(--accent-strong); }

.rc-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: none;
}
.rc-btn-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 33px;
  min-height: 33px !important;
  padding: 0 12px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms var(--motion-out), background-color 140ms var(--motion-out), color 140ms var(--motion-out);
}
.rc-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.065);
}
.rc-btn.is-primary {
  border-color: rgba(200, 164, 92, 0.42);
  background: rgba(200, 164, 92, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
}
.rc-btn.is-primary:hover {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.22);
  color: #fff;
}
.rc-btn.is-danger {
  border-color: rgba(251, 113, 133, 0.35);
  color: #fda4af;
}
.rc-ratio-bar {
  display: flex;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.rc-ratio-bar i {
  display: block;
  height: 100%;
  transition: width 360ms var(--motion-out);
}
.rc-seg-static { background: #fb7185; }
.rc-seg-runtime { background: #fb923c; }
.rc-seg-clean { background: #4ade80; }
.rc-seg-warn { background: #fbbf24; }
.rc-seg-run { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }

.rc-foot-bar {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.18);
}
.rc-foot-bar .advanced-meta,
.rc-foot-bar .xray-disclosure {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.rc-foot-bar .xray-disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.rc-foot-bar .adv-summary {
  padding: 9px 20px;
  font-size: 11.5px;
  color: var(--muted);
}
.rc-foot-bar .adv-summary:hover {
  color: var(--paper);
}
.rc-foot-bar .meta-grid {
  padding: 4px 20px 14px;
}
.rc-foot-bar .xray-card {
  margin: 0 20px 14px;
  border-radius: 10px;
}

/* Rebalanced Ultra-Clean 5-Column Verdict Matrix (Screenshots in Timeline, Watch Prominent on Row) */
.matrix-head.es-matrix-head,
#matrix .row {
  grid-template-columns: minmax(232px, 1.42fr) 62px 112px minmax(200px, 1.45fr) minmax(154px, 0.72fr);
  gap: 12px;
  align-items: center;
}
.ev-shots-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 140ms var(--motion-out), color 140ms var(--motion-out), background-color 140ms var(--motion-out);
}
#matrix .row:hover .ev-shots-pill {
  border-color: rgba(200, 164, 92, 0.32);
  color: var(--paper);
  background: rgba(200, 164, 92, 0.06);
}
#matrix .row .ev-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid rgba(200, 164, 92, 0.45);
  background: linear-gradient(180deg, rgba(200, 164, 92, 0.2) 0%, rgba(200, 164, 92, 0.11) 100%);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
}
#matrix .row .ev-video-pill:hover {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.28);
  color: #fff;
}
.ev-pending {
  font-size: 11px;
}

/* Upgraded Cinematic Visual Storyboard Execution Timeline */
.et-wrap {
  gap: 12px;
}
.et-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.et-hero-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
}
.et-verdict-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fca5a5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}
.et-verdict-clean {
  font-size: 12px;
  color: #86efac;
  font-weight: 500;
}
.et-legend {
  font-size: 11px;
  color: var(--muted-dim);
}
.et-hero-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.et-allshots-cta {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 140ms var(--motion-out), color 140ms var(--motion-out), background-color 140ms var(--motion-out);
}
.et-allshots-cta:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
}
.et-video-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(200, 164, 92, 0.55);
  background: linear-gradient(180deg, rgba(200, 164, 92, 0.26) 0%, rgba(200, 164, 92, 0.14) 100%);
  color: #f6dfaa;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px -6px rgba(200, 164, 92, 0.45);
  transition: transform 130ms var(--motion-out), border-color 140ms var(--motion-out), background-color 140ms var(--motion-out);
}
.et-video-cta:hover {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.34);
  color: #fff;
  transform: translateY(-1px);
}
.et-mp4-tag {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent-strong);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.et-phase-bar {
  height: 4px;
}
.et-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.et-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.014) 100%);
  overflow: hidden;
  min-width: 0;
  transition: border-color 150ms var(--motion-out), transform 150ms var(--motion-out);
}
.et-card:hover {
  border-color: rgba(200, 164, 92, 0.28);
}
.et-card.is-caught {
  border-color: rgba(251, 113, 133, 0.32);
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.08) 0%, rgba(251, 113, 133, 0.025) 100%);
}
.et-card.is-clean {
  border-color: rgba(74, 222, 128, 0.25);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06) 0%, rgba(74, 222, 128, 0.018) 100%);
}
.et-card.is-skipped,
.et-card.is-pending {
  opacity: 0.62;
}
.et-card .et-rail-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 9px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.et-num {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted-dim);
}
.et-card .et-title {
  font-size: 12px;
  font-weight: 650;
  color: var(--paper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.et-card.is-caught .et-title { color: #fda4af; }
.et-card.is-clean .et-title { color: #86efac; }
.et-card .et-ts {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.et-card .et-conn {
  display: none;
}
.et-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #08080b;
  overflow: hidden;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.et-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms var(--motion-out), filter 200ms var(--motion-out);
}
.et-frame:hover img {
  transform: scale(1.045);
  filter: brightness(1.08);
}
.et-frame-zoom {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(10, 10, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--paper);
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 150ms var(--motion-out), transform 150ms var(--motion-out);
}
.et-frame:hover .et-frame-zoom {
  opacity: 1;
  transform: translateY(0);
}
.et-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 2px;
  background: rgba(12, 12, 16, 0.78);
  border: 1.5px solid rgba(200, 164, 92, 0.85);
  color: #f6dfaa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  transition: transform 160ms var(--motion-out), background-color 160ms var(--motion-out);
}
.et-frame.is-video-frame:hover .et-play-badge {
  transform: translate(-50%, -50%) scale(1.09);
  background: rgba(200, 164, 92, 0.9);
  color: #0b0b0e;
}
.et-frame-tag {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 10, 14, 0.84);
  border: 1px solid rgba(200, 164, 92, 0.45);
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.et-schematic {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted-dim);
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.04), transparent 70%);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.et-schematic.is-done { color: rgba(200, 164, 92, 0.78); }
.et-schematic.is-clean { color: rgba(74, 222, 128, 0.78); }
.et-schematic.is-caught { color: rgba(251, 113, 133, 0.85); }
.et-card-foot {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px 10px;
  flex: 1 1 auto;
}
.et-card-foot .et-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.et-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
}
.et-shot-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms var(--motion-out), background-color 140ms var(--motion-out), color 140ms var(--motion-out);
}
.et-shot-btn:hover {
  border-color: rgba(200, 164, 92, 0.5);
  background: rgba(200, 164, 92, 0.14);
  color: #fff;
}
.et-shot-btn.is-video {
  border-color: rgba(200, 164, 92, 0.48);
  background: rgba(200, 164, 92, 0.16);
  color: var(--accent-strong);
}
.et-shot-btn.is-video:hover {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.3);
  color: #fff;
}
.et-shot-btn.is-extra {
  color: var(--muted);
  padding: 0 6px;
}

@media (max-width: 1120px) {
  .et-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .rc-top-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 15px 16px 14px;
  }
  .rc-actions {
    align-items: flex-start;
  }
  .matrix-head.es-matrix-head {
    display: none;
  }
  #matrix .row {
    grid-template-columns: minmax(0, 1.35fr) auto auto;
    grid-template-areas:
      "eng dur status"
      "res res ev";
    gap: 6px 10px;
    min-height: 0;
    padding: 10px 12px;
  }
}
@media (max-width: 720px) {
  .et-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .bench-header {
    background: #0b0b0e;
  }
}
@media (max-width: 600px) {
  .rh-layout {
    align-items: flex-start;
    gap: 13px;
  }
  .rh-gauge {
    width: 62px;
    height: 62px;
  }
  .rh-gauge svg {
    width: 62px;
    height: 62px;
  }
  .rh-gauge-val {
    font-size: 15px;
  }
  .rh-fname {
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .et-board {
    grid-template-columns: 1fr;
  }
}


/* Thumb-First Mobile Experience (<= 680px) */
button, a, input, select, summary, label, [role="tab"], [role="radio"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  /* Prevent iOS Safari automatic viewport zoom on input focus */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}

@media (max-width: 680px) {
  .bench-header {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }
  .bench-header .header-right {
    order: 2;
    margin-left: auto;
  }
  .brand-lockup {
    min-height: 38px;
  }
  button.account-pill {
    min-height: 38px;
  }
  .bench-header nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    display: flex;
    justify-content: space-between;
  }
  .bench-header nav a {
    flex: 1 0 auto;
    text-align: center;
    min-height: 40px;
    padding: 8px 6px;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sc-shell {
    padding: 14px 12px 24px;
  }
  .sc-dropzone {
    min-height: 176px;
    padding: 20px 14px;
  }
  .sc-adv-grid {
    grid-template-columns: 1fr;
  }
  .sc-welcome-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .sc-welcome-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .sc-welcome-pill,
  button.sc-welcome-cta {
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
  button.sc-welcome-x {
    margin-left: auto;
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-grid;
    place-items: center;
  }
  button.sc-util-btn {
    min-height: 38px !important;
    padding: 0 12px !important;
  }
  button.fleet-filter-btn {
    min-height: 38px !important;
    padding: 0 12px !important;
  }
  .sc-pricing-tg-btn,
  .sc-acct-logout,
  .sc-acct-qlink,
  .btn-sm,
  .lb-btn {
    min-height: 38px !important;
  }
  .sc-icon-x {
    min-width: 38px !important;
    min-height: 38px !important;
  }
  .antivm-why,
  .antivm-details-summary {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* Native Mobile Bottom Sheets for Auth & Dialogs */
  section.sc-auth-modal.is-open {
    position: fixed;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh;
    overflow-y: auto;
    transform: none !important;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: 0 !important;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom)) !important;
    animation: mobileSheetUp 220ms var(--motion-out) forwards;
  }
  @keyframes mobileSheetUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }
  dialog.sc-pay-dialog[open],
  dialog.sc-antisandbox-dialog[open],
  dialog#cancel-dialog[open],
  dialog.sc-key-dialog[open],
  dialog.sc-tos-dialog[open] {
    margin: auto 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: 0 !important;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom)) !important;
    animation: mobileSheetUp 220ms var(--motion-out) forwards;
  }
  .sc-pay-body {
    flex-direction: column;
    align-items: stretch;
  }
  .sc-pay-qr {
    margin: 0 auto;
    align-self: center;
  }
  .sc-coin-grid button {
    min-height: 42px !important;
  }

  /* Full-Height Mobile Evidence Lightbox (big readable capture + swipe) */
  dialog.lightbox[open] {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: min(88dvh, 720px);
    max-height: 92dvh;
    border-radius: 14px;
  }
  .lb-head {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
  }
  .lb-stage {
    flex: 1 1 auto;
    min-height: min(46dvh, 340px);
    padding: 10px 44px;
  }
  .lb-stage img,
  .lb-stage video {
    max-width: 100%;
    max-height: 100%;
  }

  /* Sticky Bottom Thumb Launch Dock (Scan workbench only) */
  html[data-view="scan"] body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
  html[data-view="scan"] .sc-mobile-dock:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 11, 14, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sc-dock-cost {
    display: flex;
    flex-direction: column;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .sc-dock-cost strong {
    font-size: 16px;
    color: var(--accent-strong);
  }
  button.sc-dock-btn {
    width: auto;
    flex: 1;
    max-width: 224px;
    min-height: 44px;
    padding: 10px 16px;
  }
}

@media (max-width: 600px) {
  .meta-grid { grid-template-columns: 1fr; gap: 3px; }
  .meta-grid dd { margin-bottom: 6px; }
  .report-head .spacer { display: none; }
  .hero-main { flex-direction: column; align-items: flex-start; gap: 8px; }
  .eng-insp-head { flex-direction: column; align-items: flex-start; }
  dialog.lightbox { width: 96vw; max-width: 96vw; max-height: 92dvh; }
  .lb-stage { padding: 10px 44px; }
  #matrix .row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "eng status"
      "res dur"
      "ev ev";
    gap: 6px 8px;
    padding: 9px 10px;
  }
  #matrix .row .evcell, #matrix .row .ev-thumbs { justify-content: flex-start; }
  .et-track { grid-template-columns: 1fr; }
  .et-conn { display: none; }
  .xray-sec-row { grid-template-columns: minmax(52px, 70px) 52px minmax(42px, 1fr) 34px auto; gap: 6px; }
}

@media (max-width: 520px) {
  .sc-net-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 8px 10px;
  }
  .sc-net-row .sc-seg {
    width: 100%;
  }
  .sc-mode-tile {
    padding: 7px 8px;
    gap: 2px;
  }
  .sc-mode-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .sc-mode-top strong {
    font-size: 12.5px;
  }
  .sc-mode-price {
    font-size: 11px;
  }
  .sc-mode-bottom {
    font-size: 10.5px;
  }
  .sc-mode-bottom .sc-meter {
    display: none;
  }
  .sc-tos-actions { flex-direction: column-reverse; align-items: stretch; }
  .sc-tos-actions button.sc-auth-submit { width: 100%; }
  .sc-tos-full-link { text-align: center; }
}

@media (max-width: 440px) {
  button.account-pill { max-width: 165px; padding: 0 9px; font-size: 11.5px; overflow: hidden; }
  button.account-pill #header-balance { overflow: hidden; text-overflow: ellipsis; }
  button.sc-seg-btn { padding: 5px 5px !important; font-size: 10.5px; }
  .sc-credit-card, .sc-side-card { padding: 13px; }
  .sc-credit-summary { flex-wrap: wrap; }
  .sc-credit-rates { align-items: flex-start; }
  .sc-voucher-form { flex-wrap: wrap; }
  .sc-voucher-form input { flex: 1 1 180px; }
  .sc-footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sc-footer-links { flex-wrap: wrap; gap: 10px 14px; }
}

@media (max-width: 680px) {
  .rc-btn, .et-video-cta, .et-allshots-cta { min-height: 38px !important; }
  .et-shot-btn { min-height: 32px !important; padding: 0 10px !important; }
}

/* === Anti-VM Artifacts Hero Button & Evidence Modal (v20261125n) === */
.sc-xray-tok.is-avm-red,
button.sc-xray-avm-btn.is-avm-red {
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(244, 63, 94, 0.14);
}
button.sc-xray-avm-btn.is-avm-red:hover {
  color: #fff;
  border-color: #fb7185;
  background: rgba(244, 63, 94, 0.24);
}

button.rh-avm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px !important;
  height: 26px;
  padding: 0 9px 0 10px !important;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.56);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.24) 0%, rgba(225, 29, 72, 0.14) 100%);
  color: #ffe4e6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.14), 0 6px 18px -8px rgba(244, 63, 94, 0.72);
  transition: transform 140ms var(--motion-out), border-color 140ms var(--motion-out), background-color 140ms var(--motion-out), box-shadow 140ms var(--motion-out), color 140ms var(--motion-out);
}
button.rh-avm-btn:hover {
  border-color: #fb7185;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.36) 0%, rgba(225, 29, 72, 0.22) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.25), 0 10px 24px -8px rgba(244, 63, 94, 0.85);
}
button.rh-avm-btn:focus-visible {
  outline: 2px solid #fb7185;
  outline-offset: 2px;
}
.rh-avm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.9);
  flex: none;
}
.rh-avm-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.34);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rh-avm-chev {
  font-size: 14px;
  line-height: 1;
  color: #fda4af;
  margin-left: -1px;
  transition: transform 140ms var(--motion-out), color 140ms var(--motion-out);
}
button.rh-avm-btn:hover .rh-avm-chev {
  transform: translateX(2px);
  color: #fff;
}

dialog.sc-antivm-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: min(620px, calc(100vw - 28px));
  max-width: min(620px, calc(100vw - 28px));
  max-height: min(90dvh, 760px);
  padding: 20px 22px 18px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(244, 63, 94, 0.13), transparent 65%),
    var(--surface-raised);
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: 14px;
  color: var(--paper);
  box-shadow: 0 28px 64px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.avm-dlg-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  flex: none;
}
.avm-dlg-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.42);
  color: #fb7185;
  flex: none;
}
.avm-dlg-icon svg {
  width: 19px;
  height: 19px;
}
.avm-dlg-titles {
  flex: 1;
  min-width: 0;
}
.avm-dlg-titles h2 {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.avm-dlg-titles p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.avm-dlg-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 2px;
  min-height: 0;
}
.avm-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.avm-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.avm-sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #fda4af;
}
.avm-sec-cnt {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #ffe4e6;
  font-size: 10px;
}
.avm-sec-meta {
  font-size: 11px;
  color: var(--muted-dim);
}
.avm-ev-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.avm-ev-row,
.avm-ev-row.antivm-probe-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.024);
}
.avm-ev-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.avm-ev-src {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.36);
  color: #fda4af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}
.avm-ev-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper);
}
.avm-ev-proc {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 10.5px;
}
.avm-ev-cmd {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  background: #0a0a0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.avm-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.avm-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  background: rgba(244, 63, 94, 0.09);
  color: #fecdd3;
  font-size: 11px;
  line-height: 1.3;
}
.avm-chip.is-api {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
}
.avm-fast-note {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11.5px;
}
.avm-disclaimer {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted-dim);
  flex: none;
}
.avm-dlg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex: none;
}
button.avm-dlg-why {
  min-height: 30px !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #38bdf8;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
button.avm-dlg-why:hover {
  color: #7dd3fc;
}
button.avm-dlg-ok {
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
button.avm-dlg-ok:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

@media (max-width: 600px) {
  dialog.sc-antivm-dialog[open] {
    margin: auto 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px 16px;
  }
  .avm-ev-proc {
    margin-left: 0;
  }
}

/* === Anti-VM Runtime Tier Styling (v20261125p) === */
button.rh-avm-btn.is-benign-only {
  border-color: rgba(148, 163, 184, 0.42);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.16) 0%, rgba(100, 116, 139, 0.09) 100%);
  color: #e2e8f0;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.1), 0 6px 16px -8px rgba(0, 0, 0, 0.55);
}
button.rh-avm-btn.is-benign-only:hover {
  border-color: rgba(203, 213, 225, 0.65);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.26) 0%, rgba(100, 116, 139, 0.15) 100%);
  color: #fff;
}
button.rh-avm-btn.is-benign-only .rh-avm-dot {
  background: #94a3b8;
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.6);
}
button.rh-avm-btn.is-benign-only .rh-avm-cnt {
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(148, 163, 184, 0.34);
  color: #f8fafc;
}
button.rh-avm-btn.is-benign-only .rh-avm-chev {
  color: #cbd5e1;
}
dialog.sc-antivm-dialog.is-benign-only[open] {
  border-color: rgba(148, 163, 184, 0.34);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(148, 163, 184, 0.11), transparent 65%),
    var(--surface-raised);
}
dialog.sc-antivm-dialog.is-benign-only .avm-dlg-icon {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}
.avm-sec-kicker.is-benign {
  color: #cbd5e1;
}
.avm-sec-cnt.is-benign {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f1f5f9;
}
.avm-ev-row.is-benign .avm-ev-src {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.34);
  color: #cbd5e1;
}

/* === Precision Surface, Accent & Glass Refinement (v20261125r) === */

/* 1. Sticky Navbar: smooth frosted obsidian glass */
.bench-header {
  background: rgba(10, 10, 14, 0.84);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.068);
}

/* 2. Dialog Backdrop: clean silky Gaussian frost */
dialog::backdrop {
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

/* 3. Command Hero Card: neutral obsidian surface + localized soft gauge bloom + 1px top accent hairline */
.rc-surface,
.rc-surface[data-tone="detected"],
.rc-surface[data-tone="clean"] {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: linear-gradient(180deg, #131319 0%, #0d0d12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 48px -28px rgba(0, 0, 0, 0.9);
}
/* Soft, band-free ambient light tightly anchored behind the score gauge only */
.rc-surface::before {
  content: "";
  position: absolute;
  left: -54px;
  top: -86px;
  width: 260px;
  height: 240px;
  border-radius: 50%;
  background: rgba(200, 164, 92, 0.22);
  filter: blur(52px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}
.rc-surface[data-tone="detected"]::before {
  background: rgba(240, 86, 112, 0.28);
  opacity: 0.46;
}
.rc-surface[data-tone="clean"]::before {
  background: rgba(52, 211, 153, 0.22);
  opacity: 0.42;
}
/* Machined 1px top-left specular rim highlight */
.rc-surface::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 92, 0.55) 0%, rgba(200, 164, 92, 0.12) 32%, transparent 62%);
  pointer-events: none;
  z-index: 2;
}
.rc-surface[data-tone="detected"]::after {
  background: linear-gradient(90deg, rgba(240, 86, 112, 0.62) 0%, rgba(234, 143, 72, 0.18) 32%, transparent 62%);
}
.rc-surface[data-tone="clean"]::after {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.55) 0%, rgba(52, 211, 153, 0.12) 32%, transparent 62%);
}
.rc-top-grid,
.rc-ratio-bar,
.rc-foot-bar {
  position: relative;
  z-index: 1;
}

/* 4. Score Gauge: zero clipped SVG drop-shadows, sleeker 4.5px stroke, diffused ambient halo */
.rh-gauge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(200, 164, 92, 0.26);
  filter: blur(16px);
  opacity: 0.48;
  pointer-events: none;
}
.rh-gauge.is-det::before {
  background: rgba(240, 86, 112, 0.34);
  opacity: 0.52;
}
.rh-gauge.is-clean::before {
  background: rgba(52, 211, 153, 0.28);
  opacity: 0.48;
}
.rh-gauge svg {
  overflow: visible;
  position: relative;
  z-index: 1;
}
.rh-gauge circle {
  stroke-width: 4.5;
}
.rh-arc-bg {
  stroke: rgba(255, 255, 255, 0.065);
}
.rh-arc-static {
  stroke: #f05670;
  filter: none;
}
.rh-arc-runtime {
  stroke: #ea8f48;
  filter: none;
}
.rh-arc-clean {
  stroke: #34d399;
  filter: none;
}
.rh-arc-warn {
  stroke: #e5b84b;
  filter: none;
}
.rh-gauge-center {
  z-index: 2;
}
.rh-gauge.is-clean .rh-gauge-val {
  color: #6ee7b7;
}
.rh-gauge.is-det .rh-gauge-val {
  color: #fda4af;
}

/* Harmonized signal dots & razor 2px ratio bar */
.rh-metric.is-static i { background: #f05670; box-shadow: none; }
.rh-metric.is-runtime i { background: #ea8f48; box-shadow: none; }
.rh-metric.is-edr i { background: #60a5fa; box-shadow: none; }
.rh-metric.is-clean i { background: #34d399; box-shadow: none; }
.rh-metric.is-warn i { background: #e5b84b; box-shadow: none; }

.rc-ratio-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.055);
}
.rc-seg-static { background: #f05670; }
.rc-seg-runtime { background: #ea8f48; }
.rc-seg-clean { background: #34d399; }
.rc-seg-warn { background: #e5b84b; }

.rc-foot-bar {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

/* 5. Crimson Anti-VM Button: crisp ruby glass without muddy outer neon bleed */
button.rh-avm-btn {
  border: 1px solid rgba(244, 63, 94, 0.44);
  background: rgba(225, 29, 72, 0.14);
  color: #ffe4e6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 10px -2px rgba(0, 0, 0, 0.45);
}
button.rh-avm-btn:hover {
  border-color: rgba(251, 113, 133, 0.78);
  background: rgba(225, 29, 72, 0.24);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px -6px rgba(225, 29, 72, 0.42);
}
.rh-avm-dot {
  background: #f43f5e;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.65);
}
.rh-avm-cnt {
  background: rgba(225, 29, 72, 0.28);
  border-color: rgba(251, 113, 133, 0.34);
}
button.rh-avm-btn.is-benign-only {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
button.rh-avm-btn.is-benign-only:hover {
  border-color: rgba(203, 213, 225, 0.56);
  background: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 6. Anti-VM Evidence Modal & Anti-Sandbox Modal: crisp obsidian glass + hairline top accent */
dialog.sc-antivm-dialog[open] {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #14141b 0%, #0f0f14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 32px 84px -18px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(0, 0, 0, 0.55);
}
dialog.sc-antivm-dialog[open]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.72) 0%, rgba(244, 63, 94, 0.16) 42%, transparent 76%);
  pointer-events: none;
}
dialog.sc-antivm-dialog.is-benign-only[open] {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #14141b 0%, #0f0f14 100%);
}
dialog.sc-antivm-dialog.is-benign-only[open]::before {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.6) 0%, rgba(148, 163, 184, 0.14) 42%, transparent 76%);
}
.avm-dlg-icon {
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.34);
  color: #fb7185;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.avm-ev-row,
.avm-ev-row.antivm-probe-row {
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: #15151d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.avm-ev-src {
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.34);
  color: #fda4af;
}
.avm-ev-cmd {
  background: #0b0b10;
  border: 1px solid rgba(255, 255, 255, 0.055);
  color: #e4e4e7;
}
button.avm-dlg-why {
  color: #93c5fd;
}
button.avm-dlg-why:hover {
  color: #bfdbfe;
}

dialog.sc-antisandbox-dialog[open] {
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #14141b 0%, #0f0f14 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 32px 84px -18px rgba(0, 0, 0, 0.88);
}

/* 7. Expanded Engine Row & Visual Storyboard: eliminate muddy olive/pink washes & double borders */
#matrix .row.is-expanded {
  background: #121218;
  border-left-color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.row-eng-drawer {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0c0c11;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Crisp champagne Watch CTA without muddy halo */
#matrix .row .ev-video-pill {
  border: 1px solid rgba(200, 164, 92, 0.36);
  background: rgba(200, 164, 92, 0.11);
  color: #ebd094;
  box-shadow: inset 0 1px 0 rgba(246, 223, 170, 0.12);
}
#matrix .row .ev-video-pill:hover {
  border-color: rgba(235, 208, 148, 0.72);
  background: rgba(200, 164, 92, 0.22);
  color: #fff;
}
.et-video-cta {
  border: 1px solid rgba(200, 164, 92, 0.42);
  background: rgba(200, 164, 92, 0.14);
  color: #f4d99c;
  box-shadow:
    inset 0 1px 0 rgba(246, 223, 170, 0.16),
    0 2px 10px -2px rgba(0, 0, 0, 0.5);
}
.et-video-cta:hover {
  border-color: rgba(244, 217, 156, 0.78);
  background: rgba(200, 164, 92, 0.24);
  color: #fff;
}

/* Storyboard Cards: unified clean obsidian surface + 2px top state accent bar */
.et-card,
.et-card.is-caught,
.et-card.is-clean {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: #121218;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.et-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
  z-index: 2;
}
.et-card.is-caught {
  border-color: rgba(240, 86, 112, 0.24);
}
.et-card.is-caught::before {
  background: linear-gradient(90deg, #f05670 0%, rgba(240, 86, 112, 0.25) 100%);
}
.et-card.is-clean {
  border-color: rgba(52, 211, 153, 0.22);
}
.et-card.is-clean::before {
  background: linear-gradient(90deg, #34d399 0%, rgba(52, 211, 153, 0.22) 100%);
}
.et-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.et-card.is-caught:hover {
  border-color: rgba(240, 86, 112, 0.44);
}
.et-card.is-clean:hover {
  border-color: rgba(52, 211, 153, 0.4);
}
.et-play-badge {
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(235, 208, 148, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

@media (max-width: 960px) {
  .bench-header {
    background: #0b0b0e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
#main:focus, #main:focus-visible { outline: none; }

/* === Pure Red/Green Verdict Palette & Share Link Modal (v20261125t) === */

/* Pure bad red (#ef4444) & crisp clean green (#22c55e) across gauge, bloom, rim & ratio bar */
.rc-surface[data-tone="detected"]::before {
  background: rgba(239, 68, 68, 0.30);
  opacity: 0.48;
}
.rc-surface[data-tone="detected"]::after {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.72) 0%, rgba(239, 68, 68, 0.16) 34%, transparent 64%);
}
.rc-surface[data-tone="clean"]::before {
  background: rgba(34, 197, 94, 0.25);
  opacity: 0.44;
}
.rc-surface[data-tone="clean"]::after {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.62) 0%, rgba(34, 197, 94, 0.14) 34%, transparent 64%);
}
.rh-gauge.is-det::before {
  background: rgba(239, 68, 68, 0.38);
  opacity: 0.54;
}
.rh-gauge.is-clean::before {
  background: rgba(34, 197, 94, 0.30);
  opacity: 0.50;
}
.rh-arc-det {
  stroke: #ef4444;
  filter: none;
}
.rh-arc-clean {
  stroke: #22c55e;
  filter: none;
}
.rh-arc-warn {
  stroke: #71717a;
  filter: none;
}
.rh-gauge.is-det .rh-gauge-val {
  color: #f87171;
}
.rh-gauge.is-clean .rh-gauge-val {
  color: #4ade80;
}
.rh-metric.is-det i {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45);
}
.rh-metric.is-clean i {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}
.rh-metric.is-warn i {
  background: #a1a1aa;
  box-shadow: none;
}
.rc-seg-det { background: #ef4444; }
.rc-seg-clean { background: #22c55e; }
.rc-seg-warn { background: #71717a; }

/* Share Link Popup Modal */
dialog.sc-share-dialog[open] {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(500px, calc(100vw - 28px));
  max-width: min(500px, calc(100vw - 28px));
  padding: 20px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #14141b 0%, #0f0f14 100%);
  color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 32px 84px -18px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
dialog.sc-share-dialog[open]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 92, 0.68) 0%, rgba(200, 164, 92, 0.16) 44%, transparent 78%);
  pointer-events: none;
}
.sh-dlg-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.sh-dlg-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 92, 0.12);
  border: 1px solid rgba(200, 164, 92, 0.34);
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(246, 223, 170, 0.12);
  flex: none;
}
.sh-dlg-icon svg {
  width: 18px;
  height: 18px;
}
.sh-dlg-titles {
  flex: 1;
  min-width: 0;
}
.sh-dlg-titles h2 {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.sh-dlg-titles p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-dlg-err {
  margin: 0;
  font-size: 12px;
}
.sh-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sh-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
}
.sh-kicker {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sh-hint {
  color: var(--muted-dim);
}
.sh-ttl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
button.sh-ttl-opt {
  min-height: 36px !important;
  height: 36px;
  padding: 0 10px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #15151d;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms var(--motion-out), background-color 140ms var(--motion-out), color 140ms var(--motion-out);
}
button.sh-ttl-opt:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--paper);
  background: #1b1b25;
}
button.sh-ttl-opt.is-selected {
  border-color: rgba(200, 164, 92, 0.58);
  background: rgba(200, 164, 92, 0.14);
  color: #f6dfaa;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(246, 223, 170, 0.14);
}
.sh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
button.sh-primary-btn {
  flex: 1 1 auto;
  min-height: 38px !important;
  height: 38px;
  padding: 0 14px !important;
  border-radius: 9px;
  border: 1px solid rgba(200, 164, 92, 0.48);
  background: rgba(200, 164, 92, 0.16);
  color: #f6dfaa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(246, 223, 170, 0.16);
  transition: border-color 140ms var(--motion-out), background-color 140ms var(--motion-out), color 140ms var(--motion-out);
}
button.sh-primary-btn:hover {
  border-color: var(--accent-strong);
  background: rgba(200, 164, 92, 0.26);
  color: #fff;
}
button.sh-secondary-btn {
  flex: none;
  min-height: 38px !important;
  height: 38px;
  padding: 0 12px !important;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms var(--motion-out), background-color 140ms var(--motion-out), color 140ms var(--motion-out);
}
button.sh-secondary-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
  color: var(--paper);
}
.sh-result-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: #121614;
}
.sh-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
}
.sh-result-badge {
  color: #4ade80;
  font-weight: 600;
}
.sh-result-status {
  color: var(--muted);
}
.sh-url-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
input.sh-url-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0e;
  color: #e4e4e7;
  font-size: 11.5px;
}
button.sh-copy-btn {
  flex: none;
  min-height: 34px !important;
  height: 34px;
  padding: 0 12px !important;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
button.sh-copy-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.sh-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  color: var(--muted);
}
button.sh-revoke-btn {
  min-height: 28px !important;
  height: 28px;
  padding: 0 10px !important;
  border-radius: 7px;
  border: 1px solid rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
button.sh-revoke-btn:hover {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

@media (max-width: 600px) {
  dialog.sc-share-dialog[open] {
    margin: auto 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px 16px;
  }
  .sh-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Supported Formats Chip & Modal */
.sc-drop-exts-more {
  display: inline-flex;
  align-items: center;
  min-height: 0 !important;
  padding: 1px 8px !important;
  border-radius: 5px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.sc-drop-exts-more:hover {
  background: rgba(200, 164, 92, 0.2);
  border-color: rgba(200, 164, 92, 0.58);
  color: var(--paper);
}
dialog.sc-formats-dialog[open] {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(760px, calc(100vw - 28px));
  max-width: min(760px, calc(100vw - 28px));
  max-height: min(84dvh, 720px);
  padding: 20px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #14141b 0%, #0f0f14 100%);
  color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 32px 84px -18px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
dialog.sc-formats-dialog[open]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 92, 0.68) 0%, rgba(200, 164, 92, 0.16) 44%, transparent 78%);
  pointer-events: none;
}
.sc-fmt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: none;
}
.sc-fmt-head h2 {
  margin: 0 0 3px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.sc-fmt-head p {
  margin: 0;
  font-size: 11.5px;
}
.sc-fmt-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 4px;
}
.sc-fmt-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-fmt-cat {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.sc-fmt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-inset);
}
.sc-fmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 520px;
}
.sc-fmt-table th,
.sc-fmt-table td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.sc-fmt-table th {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dim);
}
.sc-fmt-table tr:last-child td {
  border-bottom: 0;
}
.sc-fmt-table td:first-child {
  white-space: nowrap;
  color: var(--accent-strong);
}
.sc-fmt-table td:last-child {
  font-size: 11.5px;
  color: var(--muted);
}
.sc-fmt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex: none;
}
.sc-fmt-api-link {
  font-size: 11.5px;
  color: var(--accent-strong);
  text-decoration: none;
}
.sc-fmt-api-link:hover {
  text-decoration: underline;
}
.sc-fmt-ok {
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-inset);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.sc-fmt-ok:hover {
  border-color: var(--accent-line);
  color: var(--accent-strong);
}
@media (max-width: 680px) {
  dialog.sc-formats-dialog[open] {
    width: 100vw;
    max-width: 100vw;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px 16px;
  }
}

/* === Private Admin/Dev Deep Telemetry DLC (v20261125x) === */
.sc-adv-dlc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.05);
}
.sc-adv-dlc-hit {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
  cursor: pointer;
}
.sc-adv-dlc-tag,
.rc-dlc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.36);
  flex: none;
}
.sc-adv-dlc-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sc-adv-dlc-copy strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper);
}
.sc-adv-dlc-copy span {
  font-size: 11px;
  color: var(--muted);
}

.rc-btn.is-dlc {
  border-color: rgba(244, 63, 94, 0.42);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  font-weight: 600;
}
.rc-btn.is-dlc:hover {
  border-color: #fb7185;
  background: rgba(244, 63, 94, 0.22);
  color: #fff;
}

button.drawer-tab.is-dlc {
  border-color: rgba(244, 63, 94, 0.24);
  color: #e4b4bc;
}
button.drawer-tab.is-dlc:hover {
  border-color: rgba(244, 63, 94, 0.46);
  color: #ffe4e6;
}
button.drawer-tab.is-dlc.is-active {
  border-color: rgba(244, 63, 94, 0.56);
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

.dlc-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dlc-sec {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dlc-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.dlc-sec-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}
.dlc-empty {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted-dim);
  font-size: 11px;
}

.dlc-chip-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dlc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  white-space: nowrap;
}
.dlc-chip.is-ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}
.dlc-chip.is-bad {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.13);
  border-color: rgba(244, 63, 94, 0.34);
}
.dlc-chip.is-warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
}
.dlc-chip.is-info {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
}

.dlc-flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.dlc-flag-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--surface);
  min-width: 0;
}
.dlc-flag-card.is-high {
  border-left-color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.26);
  border-left-color: #f43f5e;
  background: rgba(244, 63, 94, 0.05);
}
.dlc-flag-card.is-medium {
  border-color: rgba(245, 158, 11, 0.26);
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.045);
}
.dlc-flag-card.is-info {
  border-color: rgba(148, 163, 184, 0.22);
  border-left-color: #64748b;
}
.dlc-flag-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dlc-flag-code {
  font-size: 11px;
  font-weight: 600;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.dlc-flag-detail {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dlc-sev-badge,
.dlc-eid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex: none;
}
.dlc-sev-badge.is-high,
.dlc-eid.is-high {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.38);
}
.dlc-sev-badge.is-medium,
.dlc-eid.is-medium {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
}
.dlc-sev-badge.is-info,
.dlc-eid.is-info {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.dlc-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dlc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.dlc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dlc-drop-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
}
.dlc-drop-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dlc-sha-btn {
  padding: 1px 6px !important;
  min-height: 20px !important;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-strong);
  font-size: 10px;
  cursor: pointer;
}
.dlc-sha-btn:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.dlc-dialog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-left: 3px solid #f43f5e;
  background: rgba(244, 63, 94, 0.05);
  font-size: 11px;
}

.dlc-filter-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
button.dlc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px !important;
  padding: 3px 9px !important;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
}
button.dlc-filter-pill:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}
button.dlc-filter-pill.is-active {
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  font-weight: 600;
}
.dlc-filter-cnt {
  opacity: 0.72;
}

.dlc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}
.dlc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.dlc-table th,
.dlc-table td {
  text-align: left;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.dlc-table th {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-dim);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.02);
}
.dlc-table tbody tr:last-child td {
  border-bottom: 0;
}
.dlc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.dlc-td-threat {
  color: #fda4af;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.dlc-td-cat,
.dlc-td-proc {
  white-space: nowrap;
  color: var(--paper);
}
.dlc-td-wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--paper);
}
.dlc-td-wrap.is-gone {
  color: #fda4af;
}
.dlc-sysmon-table tr.dlc-row-sev td:first-child {
  border-left: 3px solid transparent;
}
.dlc-sysmon-table tr.dlc-row-sev.is-high td:first-child {
  border-left-color: #f43f5e;
}
.dlc-sysmon-table tr.dlc-row-sev.is-medium td:first-child {
  border-left-color: #f59e0b;
}
.dlc-sysmon-table tr.dlc-row-sev.is-info td:first-child {
  border-left-color: #475569;
}

.dlc-raw-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dlc-raw-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  padding: 6px 9px;
}
.dlc-raw-block > summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dlc-raw-block > summary::-webkit-details-marker {
  display: none;
}
.dlc-raw-block[open] > summary {
  color: var(--paper);
  margin-bottom: 8px;
}
.dlc-code-block {
  margin: 4px 0 0;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #070709;
  color: #e4e4e7;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow: auto;
}

@media (max-width: 820px) {
  .dlc-split-2 {
    grid-template-columns: 1fr;
  }
  .dlc-flag-grid {
    grid-template-columns: 1fr;
  }
}

/* === Scan-Complete Hub, Copy Configurator, Privacy Deletion & Sample Demo === */
.sc-hint-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
a.sc-sample-link {
  color: var(--accent-strong);
  font-size: 11.5px;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(200, 164, 92, 0.28);
  background: rgba(200, 164, 92, 0.06);
  transition: border-color 150ms var(--motion-out), background-color 150ms var(--motion-out), transform 140ms var(--motion-out);
}
a.sc-sample-link:hover {
  border-color: rgba(200, 164, 92, 0.56);
  background: rgba(200, 164, 92, 0.14);
}
.rc-complete-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}
.rc-complete-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
}
.rc-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #86efac;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.rc-complete-badge i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}
.rc-retention-pill,
.rc-sample-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  border: 1px solid rgba(200, 164, 92, 0.34);
  background: rgba(200, 164, 92, 0.09);
  color: var(--accent-strong);
}
.rc-complete-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
button.rc-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  background: #141419;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.11);
  cursor: pointer;
  transition: border-color 150ms var(--motion-out), background-color 150ms var(--motion-out), transform 140ms var(--motion-out);
}
button.rc-act-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #1a1a22;
}
button.rc-act-btn.is-gold {
  border-color: rgba(200, 164, 92, 0.42);
  background: rgba(200, 164, 92, 0.11);
  color: var(--accent-strong);
}
button.rc-act-btn.is-gold:hover {
  border-color: rgba(200, 164, 92, 0.72);
  background: rgba(200, 164, 92, 0.18);
}
button.rc-act-btn.is-danger {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.06);
  color: #fca5a5;
}
button.rc-act-btn.is-danger:hover {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(248, 113, 113, 0.14);
}
button.history-clear-btn {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.32);
  color: #fca5a5;
  cursor: pointer;
}
button.history-clear-btn:hover {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.62);
}

/* Upgraded Share Modal Embed Strip & Live OG Preview */
.sh-embed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.sh-embed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  background: #14141a;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  cursor: pointer;
}
.sh-embed-btn:hover {
  border-color: rgba(200, 164, 92, 0.48);
  color: var(--accent-strong);
}
.sh-og-preview {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #09090b;
}
.sh-og-preview img {
  display: block;
  width: 100%;
  height: auto;
}

/* Copy Results & Delete Scan Dialogs */
dialog.sc-export-dialog,
dialog.sc-delete-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: 100%;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111114;
  color: var(--paper);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
dialog.sc-export-dialog::backdrop,
dialog.sc-delete-dialog::backdrop {
  background: rgba(4, 4, 7, 0.72);
 
}
.exp-fmt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 10px;
}
button.exp-fmt-btn,
button.del-ret-btn {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  background: #0c0c10;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
}
button.exp-fmt-btn.is-selected,
button.del-ret-btn.is-selected {
  color: var(--accent-strong);
  border-color: rgba(200, 164, 92, 0.52);
  background: rgba(200, 164, 92, 0.12);
}
.exp-opts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  font-size: 11.5px;
}
.exp-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--paper);
  cursor: pointer;
}
textarea.exp-preview {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #09090c;
  color: var(--paper);
  font-size: 11.5px;
  line-height: 1.5;
  resize: vertical;
}
.exp-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--accent-strong);
}
.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.del-desc {
  margin: 12px 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.del-retention-box {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c10;
}
.del-ret-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
button.del-confirm-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.55);
  cursor: pointer;
}
button.del-confirm-btn:hover {
  background: rgba(248, 113, 113, 0.25);
}

@media (max-width: 680px) {
  .rc-complete-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .rc-complete-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  button.rc-act-btn {
    justify-content: center;
    min-height: 40px !important;
  }
  dialog.sc-export-dialog[open],
  dialog.sc-delete-dialog[open] {
    margin: auto 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 18px 18px 0 0 !important;
    border-bottom: 0 !important;
    padding: 18px 16px calc(22px + env(safe-area-inset-bottom)) !important;
    animation: mobileSheetUp 220ms var(--motion-out) forwards;
  }
  .exp-opts-grid {
    grid-template-columns: 1fr;
  }
  button.exp-fmt-btn,
  button.del-ret-btn,
  .sh-embed-btn,
  button.history-clear-btn {
    min-height: 38px !important;
  }
}



/* === Wave 4 Ergonomics === */
@media (max-width: 640px) {
  .sc-modes-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sc-auth-tgbot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.sc-tgbot-status {
  font-size: 11.5px;
  color: var(--accent);
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(200, 164, 92, 0.08);
  border: 1px solid var(--accent-line);
}
.sc-tgbot-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
}
.sc-tgbot-qr {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-tgbot-qr svg { width: 148px; height: 148px; display: block; }
.sc-tgbot-qr-cap { font-size: 11px; }
.sc-tgbot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-tgbot-alt {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sc-tgbot-alt:hover { color: var(--paper); }

a.env {
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease;
}
a.env:hover {
  border-color: var(--accent-line);
  color: var(--paper);
}
.sc-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sc-input-tabs {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sc-input-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.sc-cmd-limit-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.sc-cmd-limit-hint.is-over { color: #f87171; }
#cmd-char-count.is-warn { color: #fbbf24; }
#cmd-char-count.is-over { color: #f87171; font-weight: 600; }
.sc-input-tab:hover { color: var(--paper); }
.sc-input-tab.is-active {
  background: rgba(200, 164, 92, 0.14);
  border-color: var(--accent-line);
  color: var(--paper);
}

.sc-cmd-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  margin-bottom: 10px;
}
.sc-cmd-stage[hidden] { display: none !important; }
.sc-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-cmd-launchers {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
}
.sc-cmd-pill {
  appearance: none;
  border: 1px solid var(--line);
  background: #101014;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}
#cmd-launchers button.sc-cmd-pill.is-selected,
.sc-cmd-pill.is-selected {
  border-color: var(--accent-line);
  background: rgba(200, 164, 92, 0.16);
  color: #e2c87f;
  font-weight: 600;
}
.sc-cmd-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.sc-cmd-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0a0a0d;
  color: var(--paper);
  font-size: 12.5px;
  line-height: 1.5;
  box-sizing: border-box;
}
.sc-cmd-textarea:focus {
  outline: none;
  border-color: var(--accent-line);
}

.sc-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.sc-queue-list[hidden] { display: none !important; }
.sc-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0d0d11;
  font-size: 12px;
}
.sc-queue-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--paper);
}
.sc-queue-item-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sc-batch-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: rgba(200, 164, 92, 0.08);
  font-size: 12px;
}
.sc-batch-strip[hidden] { display: none !important; }
.sc-batch-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sc-batch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-batch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-raised);
  color: var(--paper);
  text-decoration: none;
  font-size: 11.5px;
}
.sc-batch-link:hover { border-color: var(--accent-line); color: var(--accent); }

.hist-file-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.hist-cmp-chk {
  flex: none;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.sc-diff-trigger {
  appearance: none;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: rgba(200, 164, 92, 0.14);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sc-diff-trigger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sc-diff-trigger[hidden] { display: none !important; }

dialog.sc-diff-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #111114;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px 20px;
}
dialog.sc-diff-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.sc-diff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sc-diff-head h2 { margin: 0; font-size: 17px; }
.sc-diff-head p { margin: 3px 0 0; font-size: 11.5px; }
.sc-diff-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}
.sc-diff-select {
  flex: 1;
  min-width: 0;
  background: #0a0a0d;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
}
.sc-diff-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .sc-diff-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sc-diff-kpi {
  padding: 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0b0b0e;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-diff-kpi strong { font-size: 18px; line-height: 1.1; }
.sc-diff-kpi span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sc-diff-kpi.is-fixed strong { color: #34d399; }
.sc-diff-kpi.is-regressed strong { color: #f87171; }
.sc-diff-kpi.is-still strong { color: #fbbf24; }
.sc-diff-groups { display: flex; flex-direction: column; gap: 12px; }
.sc-diff-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 6px;
}
.sc-diff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-diff-chip {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0d0d11;
}
.sc-diff-chip.is-fixed { border-color: rgba(52, 211, 153, 0.35); color: #34d399; background: rgba(52, 211, 153, 0.08); }
.sc-diff-chip.is-regressed { border-color: rgba(248, 113, 113, 0.35); color: #f87171; background: rgba(248, 113, 113, 0.08); }
.sc-diff-chip.is-still { border-color: rgba(251, 191, 36, 0.35); color: #fbbf24; background: rgba(251, 191, 36, 0.08); }
.sc-diff-xray {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sc-diff-xray-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sc-diff-xray-tbl th, .sc-diff-xray-tbl td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.sc-diff-xray-tbl th { color: var(--muted); font-weight: 500; }


/* ==========================================================================
   ZERO-REDIRECT TELEGRAM OAUTH EMBED SLOTS & QUIET COMPLETION TOAST
   ========================================================================== */
.sc-tg-slot {
  position: relative;
  display: block;
}

.sc-tg-slot-block {
  width: 100%;
  height: 44px;
}

.sc-tg-slot-block > button {
  width: 100%;
  height: 44px;
}

.sc-tg-slot-block > .sc-tg-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  display: block;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.sc-tg-slot-block.is-embed-ready > button {
  visibility: hidden;
  pointer-events: none;
}

.sc-tg-slot-block.is-embed-ready > .sc-tg-embed {
  opacity: 1;
  pointer-events: auto;
}

.sc-tg-slot-inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.sc-tg-slot-inline[hidden] {
  display: none !important;
}

.sc-tg-slot-inline > .sc-tg-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  border: 0;
  background: transparent;
  flex: none;
  opacity: 0;
  pointer-events: none;
}

.sc-tg-slot-inline.is-embed-ready:not(.is-native-only) > button {
  display: none;
}

.sc-tg-slot-inline.is-embed-ready:not(.is-native-only) > .sc-tg-embed {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

.sc-tg-slot-portal > .sc-tg-embed {
  height: 36px;
  border-radius: 9px;
}

.sc-tg-slot-portal-sm > .sc-tg-embed {
  height: 30px;
  border-radius: 7px;
}

.sc-tg-slot-strip > .sc-tg-embed {
  height: 28px;
  border-radius: 7px;
}

.sc-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 260;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(200, 164, 92, 0.42);
  background: rgba(17, 17, 20, 0.96);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms var(--motion-out), transform 180ms var(--motion-out);
  pointer-events: none;
}

.sc-toast::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
  flex: none;
}

.sc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sc-toast[hidden] {
  display: none !important;
}

/* === V4 OBSIDIAN GLASS SYSTEM & ZERO-WASTE GPU MOTION (v20261127v4a) === */
/* ==========================================================================
   V4 OBSIDIAN GLASS SYSTEM & ZERO-WASTE GPU MOTION (v20261127v4a)
   - Layered smoked obsidian surfaces with crisp top specular hairlines
   - Double-halo modal bezel (zero blur-stacking on static cards)
   - Compositor-only motion (transform + opacity only; zero idle repaints)
   ========================================================================== */

/* 1. Ambient Obsidian Page Depth (Single static radial veil, 0ms scroll cost) */
body {
  background:
    radial-gradient(980px 420px at 50% -140px, rgba(200, 164, 92, 0.068), transparent 72%),
    #07070a;
}

/* 2. Refined Sticky Smoked Glass Header (Lighter 12px GPU blur) */
.bench-header {
  background: rgba(9, 9, 13, 0.84);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.85);
}

.brand-mark {
  background: linear-gradient(180deg, #1b1914 0%, #111116 100%);
  border-color: rgba(226, 200, 127, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 245, 212, 0.16);
}

.bench-header nav {
  background: rgba(14, 14, 19, 0.88);
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hdr-meta-item,
.env {
  background: rgba(15, 15, 20, 0.86);
  border-color: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

a.env:hover {
  border-color: rgba(226, 200, 127, 0.36);
  color: var(--paper);
}

button.account-pill {
  background: linear-gradient(180deg, #19181f 0%, #121217 100%);
  border-color: rgba(226, 200, 127, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 245, 212, 0.12), 0 6px 18px -10px rgba(200, 164, 92, 0.35);
}

button.account-pill:hover:not(:disabled) {
  border-color: rgba(235, 211, 146, 0.72);
  background: linear-gradient(180deg, rgba(200, 164, 92, 0.2) 0%, rgba(200, 164, 92, 0.1) 100%);
}

/* 3. Elevated Obsidian Glass Surfaces Across Workbench & Sub-Pages (Zero blur cost) */
.panel,
.sc-ctrl-card,
.sc-launch-card,
.sc-trust-card,
.sc-adv-wrap,
.sc-credit-card,
.sc-side-card,
.sc-activity-card,
.sc-cmd-stage,
.sc-staged-wrap {
  background: linear-gradient(180deg, #14141a 0%, #0e0e13 100%);
  border-color: rgba(255, 255, 255, 0.088);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 18px 44px -26px rgba(0, 0, 0, 0.88);
}

.sc-launch-card {
  position: relative;
  border-color: rgba(226, 200, 127, 0.22);
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(200, 164, 92, 0.08), transparent 72%),
    linear-gradient(180deg, #16161d 0%, #0e0e13 100%);
}

.sc-dropzone {
  background:
    radial-gradient(460px 190px at 50% 0%, rgba(200, 164, 92, 0.055), transparent 75%),
    linear-gradient(180deg, #121218 0%, #0c0c10 100%);
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 160ms var(--motion-out), background-color 160ms var(--motion-out), transform 160ms var(--motion-out);
}

.sc-dropzone:hover,
.sc-dropzone.drag {
  border-color: rgba(226, 200, 127, 0.56);
  background:
    radial-gradient(480px 210px at 50% 0%, rgba(200, 164, 92, 0.12), transparent 75%),
    linear-gradient(180deg, #16151c 0%, #0e0e14 100%);
}

.sc-drop-glyph {
  background: linear-gradient(180deg, #1c1a15 0%, #121218 100%);
  border-color: rgba(226, 200, 127, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 244, 205, 0.14);
}

/* Visibly Temporary Launch Week Strip (dashed gold border cleanly signals limited promo) */
.sc-welcome-strip {
  border: 1px dashed rgba(226, 200, 127, 0.38);
  background:
    linear-gradient(90deg, rgba(200, 164, 92, 0.09) 0%, rgba(16, 16, 22, 0.92) 48%, rgba(42, 171, 238, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 245, 212, 0.07);
}

/* Brushed Gold Primary CTAs with Compositor-Only Hover Light Sweep */
button.sc-submit-btn,
button.sc-checkout-btn,
button.sc-auth-submit,
.btn-matte-gold {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 217, 148, 0.85);
  background: linear-gradient(180deg, #e4c77e 0%, #c7a050 52%, #b58d3f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 232, 0.52),
    inset 0 -1px 0 rgba(88, 63, 18, 0.4),
    0 10px 24px -12px rgba(200, 164, 92, 0.55);
  color: #0b0a07;
  transition: transform 150ms var(--motion-out), filter 150ms var(--motion-out), opacity 150ms ease;
}

button.sc-submit-btn:hover:not(:disabled),
button.sc-checkout-btn:hover:not(:disabled),
button.sc-auth-submit:hover:not(:disabled),
.btn-matte-gold:hover:not(:disabled) {
  background: linear-gradient(180deg, #ebd08c 0%, #cfa858 52%, #bd9546 100%);
  border-color: #f4df9e;
  color: #0b0a07;
}

@media (prefers-reduced-motion: no-preference) {
  button.sc-submit-btn::after,
  button.sc-checkout-btn::after,
  button.sc-auth-submit::after,
  .btn-matte-gold::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
    transform: translateX(-125%);
    transition: transform 480ms var(--motion-out);
    pointer-events: none;
  }
  button.sc-submit-btn:hover:not(:disabled)::after,
  button.sc-checkout-btn:hover:not(:disabled)::after,
  button.sc-auth-submit:hover:not(:disabled)::after,
  .btn-matte-gold:hover:not(:disabled)::after {
    transform: translateX(125%);
  }
}

/* ==========================================================================
   V4 OBSIDIAN GLASS AUTH / ACCOUNT MODAL (#account-panel)
   ========================================================================== */
.sc-auth-backdrop {
  background: rgba(4, 4, 7, 0.78);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

#account-panel.sc-auth-modal {
  width: min(444px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#account-panel.sc-auth-modal.is-open,
#account-panel.sc-auth-modal.is-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

/* Detached Floating Temporary Launch Week Pill */
.sc-v4-launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(21, 19, 14, 0.96);
  border: 1px dashed rgba(226, 200, 127, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 245, 212, 0.1);
  font-size: 11.5px;
  color: #f0d797;
  line-height: 1.2;
  max-width: 100%;
  text-align: center;
}

.sc-v4-launch-pill[hidden] { display: none !important; }
.sc-v4-launch-pill strong { color: #faf0d2; font-weight: 600; }

.sc-v4-launch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ebd392;
  box-shadow: 0 0 0 3px rgba(235, 211, 146, 0.2);
  flex: none;
}

/* Outer Smoked Glass Halo Bezel (V4 Signature) */
.sc-v4-halo {
  position: relative;
  width: 100%;
  padding: 6px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 45%, rgba(200, 164, 92, 0.09));
  box-shadow: 0 38px 96px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.055);
  --mx: 50%;
  --my: 0%;
}

@media (hover: hover) and (pointer: fine) {
  .sc-v4-halo::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgba(235, 208, 138, 0.5), rgba(255, 255, 255, 0.06) 44%, transparent 72%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
  }
}

.sc-v4-core {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  padding: 25px 25px 23px;
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(22, 22, 29, 0.96) 0%, rgba(12, 12, 16, 0.985) 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#account-panel.sc-auth-modal .account-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.sc-v4-title-wrap {
  min-width: 0;
  flex: 1;
}

#account-panel.sc-auth-modal .account-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f7f5f0;
  margin: 0;
}

.sc-v4-dot {
  color: var(--accent-strong);
}

.sc-v4-sub {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: #8b877f;
  line-height: 1.35;
}

.sc-v4-sub[hidden] { display: none !important; }

.sc-icon-x,
.sc-as-close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #8b877f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex: none;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.sc-icon-x:hover,
.sc-as-close:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* V4 Anodized Telegram Sovereign Slot (50px tall) */
.sc-tg-slot-v4 {
  height: 50px;
}

.sc-tg-slot-v4 > button,
.sc-tg-slot-v4 > .sc-tg-embed {
  height: 50px;
  border-radius: 13px;
}

.sc-tg-slot-v4-compact > .sc-tg-embed {
  height: 36px;
  border-radius: 10px;
}

button.sc-auth-choice-btn.sc-auth-tg-btn {
  min-height: 50px;
  padding: 0 14px 0 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(240px 80px at 0% 50%, rgba(56, 189, 248, 0.16), transparent 70%),
    linear-gradient(180deg, #17191f 0%, #111318 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: #f2efe9;
  font-size: 13.5px;
  font-weight: 500;
}

button.sc-auth-choice-btn.sc-auth-tg-btn:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.54);
  background:
    radial-gradient(280px 90px at 8% 50%, rgba(56, 189, 248, 0.25), transparent 72%),
    linear-gradient(180deg, #1a1e26 0%, #12151c 100%);
  color: #fff;
}

.sc-v4-tg-pod {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(42, 171, 238, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sc-v4-tg-hint {
  font-size: 11px;
  color: #848078;
}

/* V4 GPU-Gliding Segmented Switcher ([Access key | New key]) */
.sc-auth-choice {
  gap: 14px;
  margin-bottom: 14px;
}

.sc-v4-glide {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 11px;
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

.sc-v4-glide-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 8px;
  background: linear-gradient(180deg, #1d1d24 0%, #14141a 100%);
  border: 1px solid rgba(226, 200, 127, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 220ms var(--motion-out);
  pointer-events: none;
  z-index: 0;
}

.sc-v4-glide[data-idx="1"] .sc-v4-glide-thumb {
  transform: translateX(100%);
}

.sc-v4-glide button.sc-v4-tab {
  position: relative;
  z-index: 1;
  min-height: 32px !important;
  height: 32px;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #848078;
  font-size: 12.5px;
  font-weight: 500;
  justify-content: center;
  text-align: center;
  transition: color 160ms ease;
}

.sc-v4-glide button.sc-v4-tab:hover {
  color: #e4e0d8;
}

.sc-v4-glide button.sc-v4-tab.is-on {
  color: #f0d797;
}

/* V4 Recessed Milled Key Input Well */
.sc-key-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 5px 0 4px;
  border-radius: 12px;
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.095);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sc-key-input-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.sc-key-input-row:focus-within {
  border-color: rgba(226, 200, 127, 0.65);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65), 0 0 0 3px rgba(200, 164, 92, 0.14);
}

.sc-key-input-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
}

.sc-key-input-row button {
  min-height: 30px !important;
  height: 30px;
  padding: 0 10px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #9e9a90;
  font-size: 11.5px;
  flex: none;
}

.sc-key-input-row button:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Custom Hardware Toggle Switch for #remember-device & Checkboxes */
#remember-wrap label.check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #9e9a90;
  cursor: pointer;
  user-select: none;
}

#remember-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 32px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border-radius: 999px;
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background-color 180ms var(--motion-out), border-color 180ms var(--motion-out);
}

#remember-wrap input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8a867e;
  transition: transform 180ms var(--motion-out), background-color 180ms ease;
}

#remember-wrap input[type="checkbox"]:checked {
  background: rgba(200, 164, 92, 0.26);
  border-color: rgba(226, 200, 127, 0.68);
}

#remember-wrap input[type="checkbox"]:checked::after {
  transform: translateX(14px);
  background: #ebd392;
}

/* Custom Machined Checkboxes Across All Dialogs (Key Reveal, Copy Results) */
.exp-opt input[type="checkbox"],
dialog.sc-key-dialog input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #09090d;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.exp-opt input[type="checkbox"]::after,
dialog.sc-key-dialog input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #09090b;
  border-bottom: 2px solid #09090b;
  transform: rotate(-45deg) translate(0.5px, -0.5px) scale(0);
  transition: transform 130ms var(--motion-out);
}

.exp-opt input[type="checkbox"]:checked,
dialog.sc-key-dialog input[type="checkbox"]:checked {
  background: #d5b46b;
  border-color: #f0d797;
}

.exp-opt input[type="checkbox"]:checked::after,
dialog.sc-key-dialog input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) translate(0.5px, -0.5px) scale(1);
}

button.sc-auth-submit {
  min-height: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 13.5px;
}

/* V4 Mechanical Safe-Bolt Verification Slider */
.sc-captcha-box {
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: #08080b;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
}

.sc-captcha-track {
  height: 44px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 255, 255, 0.04) 11px 12px),
    linear-gradient(180deg, #0e0e13, #131319);
}

.sc-captcha-thumb {
  border: 1px solid rgba(235, 211, 146, 0.82);
  background: linear-gradient(180deg, #3c321f 0%, #241e12 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.28), 0 4px 12px rgba(0, 0, 0, 0.65);
}

/* V4 Signed-In Account Vault Summary */
.sc-acct-summary {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 16px 16px;
  margin: 0 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(226, 200, 127, 0.28);
  background:
    radial-gradient(240px 110px at 50% 0%, rgba(226, 200, 127, 0.12), transparent 72%),
    linear-gradient(180deg, #17150f 0%, #0b0b0f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 205, 0.14);
}

.sc-acct-meta {
  align-items: center;
  gap: 6px;
}

.sc-acct-kicker {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8f8b82;
}

.sc-acct-bal {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #f3dca0;
}

.sc-acct-id-line {
  font-size: 12px;
  color: #c8c4bc;
}

button.sc-acct-logout {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #9e9a90;
}

button.sc-acct-logout:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.sc-acct-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.sc-acct-qlink {
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e0d8;
  font-size: 12px;
  font-weight: 500;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.sc-acct-qlink:first-child {
  border-color: rgba(235, 211, 146, 0.72);
  background: linear-gradient(180deg, #e0c176 0%, #c19b4c 100%);
  color: #0b0a07;
  font-weight: 700;
}

.sc-acct-qlink:first-child:hover {
  color: #0b0a07;
  filter: brightness(1.06);
}

.sc-acct-qlink:not(:first-child):hover {
  border-color: rgba(226, 200, 127, 0.42);
  background: rgba(200, 164, 92, 0.09);
  color: var(--accent-strong);
}

/* ==========================================================================
   UNIFIED V4 OBSIDIAN GLASS DIALOGS (Every <dialog> on scanner.st)
   ========================================================================== */
dialog:not(.lightbox) {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.105) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #16161d 0%, #0d0d12 100%) !important;
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.9),
    0 0 0 5px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
}

dialog::backdrop {
  background: rgba(4, 4, 7, 0.78);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

/* Retire Off-Brand Teal on Anti-Sandbox Dialog -> Champagne Gold V4 */
.sc-as-icon {
  background: rgba(200, 164, 92, 0.12) !important;
  border-color: rgba(226, 200, 127, 0.4) !important;
  color: #e2c87f !important;
}

.sc-as-list {
  gap: 10px !important;
}

.sc-as-list li {
  padding: 11px 13px;
  border-radius: 10px;
  background: #09090d;
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.sc-as-num {
  color: #e2c87f !important;
}

.sc-as-ok {
  border: 1px solid rgba(242, 217, 148, 0.85) !important;
  background: linear-gradient(180deg, #e4c77e 0%, #c19b4c 100%) !important;
  color: #0b0a07 !important;
  font-weight: 700 !important;
  border-radius: 11px !important;
}

.sc-as-ok:hover {
  filter: brightness(1.06);
}

/* Copy Results & Share Dialogs: Solid Gold Primary CTA + Clean Terminal Frame */
button.sh-primary-btn {
  border: 1px solid rgba(242, 217, 148, 0.82) !important;
  background: linear-gradient(180deg, #e4c77e 0%, #c19b4c 100%) !important;
  color: #0b0a07 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

button.sh-primary-btn:hover {
  filter: brightness(1.06);
}

textarea.exp-preview {
  resize: none;
  border-radius: 12px;
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
}

/* Crypto Checkout Dialog: Sculpted 4-Column Coin Tiles */
.sc-coin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.sc-coin-grid button {
  min-height: 44px !important;
  border-radius: 10px !important;
  background: #09090d !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  font-weight: 600;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.sc-coin-grid button:hover {
  border-color: rgba(226, 200, 127, 0.52) !important;
  background: rgba(200, 164, 92, 0.1) !important;
  color: #f3dca0 !important;
}

.sc-pay-qr {
  padding: 9px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   /PRICING V4 BANNER & SUB-PAGES ELEVATION
   ========================================================================== */
.sc-pricing-banner {
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 200, 127, 0.28);
  background:
    linear-gradient(90deg, rgba(200, 164, 92, 0.1) 0%, #121218 52%, rgba(42, 171, 238, 0.07) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 245, 212, 0.09), 0 16px 36px -24px rgba(0, 0, 0, 0.85);
}

.sc-pricing-banner-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sc-pricing-badge-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(226, 200, 127, 0.42);
  background: rgba(200, 164, 92, 0.14);
  color: #f0d797;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.sc-pricing-lead-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sc-pricing-lead-copy strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
}

.sc-pricing-lead-copy span {
  font-size: 12px;
  color: var(--muted);
}

.sc-pricing-tg-btn {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background:
    radial-gradient(180px 60px at 0% 50%, rgba(56, 189, 248, 0.16), transparent 70%),
    linear-gradient(180deg, #171920 0%, #111319 100%);
  color: #f2efe9;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sc-pricing-tg-btn:hover {
  border-color: rgba(56, 189, 248, 0.62);
  color: #fff;
}

/* Report Hero Zero-Cost Ambient Bloom (Replaces expensive filter: blur(52px)) */
.rc-surface::before {
  filter: none !important;
  width: 340px;
  height: 300px;
  left: -80px;
  top: -110px;
  background: radial-gradient(circle, rgba(200, 164, 92, 0.2) 0%, rgba(200, 164, 92, 0) 68%) !important;
  opacity: 0.9 !important;
}

.rc-surface[data-tone="detected"]::before {
  background: radial-gradient(circle, rgba(240, 86, 112, 0.24) 0%, rgba(240, 86, 112, 0) 68%) !important;
}

.rc-surface[data-tone="clean"]::before {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, rgba(52, 211, 153, 0) 68%) !important;
}

/* Zero-Idle-Repaint GPU Motion Overrides */
.live-dot,
.sc-util-dot {
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  #account-panel.sc-auth-modal.is-open {
    animation: scV4ModalIn 210ms var(--motion-out) both;
  }
  #account-panel.sc-auth-modal.is-closing {
    animation: scV4ModalOut 150ms var(--motion-exit) forwards;
  }
}

@keyframes scV4ModalIn {
  from { opacity: 0; transform: translate(-50%, -47.5%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes scV4ModalOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -48.5%) scale(0.97); }
}

@keyframes scValEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scValExit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes scCopyBlur {
  0% { opacity: 0.65; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes scEvReveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scKnobStretch {
  0%, 100% { transform: scaleX(1); }
  45% { transform: scaleX(1.14); }
}

/* Mobile Responsive Polish for V4 Auth Modal */
@media (max-width: 520px) {
  .sc-v4-core {
    padding: 20px 18px 18px;
  }
  .sc-coin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

