/*
 * VeriTrust Lab unified product surface — 2026-09-15
 *
 * The landing page is the visual source of truth: flat graphite canvas,
 * teal accent, restrained 4px geometry, one product header, one footer,
 * and responsive content widths. This stylesheet is intentionally loaded
 * last so legacy page-specific presentation cannot reintroduce blue/glass
 * backgrounds, oversized radii, or conflicting responsive behavior.
 */

:root {
  --vt-product-max: 1140px;
  --vt-product-wide: 1280px;
  --vt-product-gutter: clamp(16px, 3vw, 28px);
  --vt-product-section: clamp(32px, 5vw, 64px);
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: #1a1a1a;
}

body,
body.vt-graphite-theme,
html body.vt-dashboard-page.vt-graphite-theme {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-base, #1a1a1a) !important;
  background-image: none !important;
  background-attachment: scroll !important;
  color: var(--text-primary, #fafafa);
}

body::before,
body::after {
  background-image: none !important;
}

body :where(main, section, article, aside, div, form, nav) { min-width: 0; }
body :where(img, svg, video, canvas, iframe) { max-width: 100%; }
body :where(p, li, a, code, td, th, label, legend) { overflow-wrap: anywhere; }
body :where(pre, code) { max-width: 100%; }
body pre { overflow-x: auto; overscroll-behavior-inline: contain; }

/* --------------------------------------------------------------------------
   One product header: identical topology to index.html
   -------------------------------------------------------------------------- */
body .vt-site-header,
body :where(.tool-header-shell, .vt-page-header) {
  height: var(--header-height);
  max-height: var(--header-height);
  border-bottom: 1px solid var(--border-subtle) !important;
  background: var(--header-bg) !important;
  background-image: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.02) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body .vt-site-header .tool-header-inner,
body .tool-header-shell .tool-header-inner {
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding-inline: var(--vt-product-gutter) !important;
  gap: clamp(18px, 3vw, 38px) !important;
}

body .vt-site-header .tool-header-brand,
body .tool-header-shell .tool-header-brand {
  flex: 0 1 auto;
  width: auto !important;
  max-width: 198px !important;
}

body .vt-site-header .tool-header-links,
body .tool-header-shell .tool-header-links {
  margin-left: auto;
  gap: clamp(18px, 2.4vw, 30px) !important;
}

body .vt-site-header .tool-header-links a,
body .tool-header-shell .tool-header-links a {
  padding: 0;
  color: var(--text-tertiary);
  font-size: .82rem;
  line-height: 1.2;
  white-space: nowrap;
}

body .vt-site-header .tool-header-links a:hover,
body .vt-site-header .tool-header-links a.active,
body .tool-header-shell .tool-header-links a:hover,
body .tool-header-shell .tool-header-links a.active {
  color: var(--accent-main) !important;
}

body .vt-site-header .tool-header-links a.active::after { display: none !important; }

body .vt-site-header .tool-header-actions,
body .tool-header-shell .tool-header-actions {
  flex: 0 0 auto;
  gap: 10px !important;
}

body .vt-site-header :where(.tool-header-login, .tool-header-dashboard),
body .tool-header-shell :where(.tool-header-login, .tool-header-dashboard) {
  min-height: 40px;
  padding: .5rem .9rem;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  background: var(--bg-surface-light) !important;
  color: var(--text-primary) !important;
  font-size: .82rem;
  line-height: 1.2;
  box-shadow: none !important;
}

body .vt-site-header :where(.tool-header-login, .tool-header-dashboard):hover,
body .tool-header-shell :where(.tool-header-login, .tool-header-dashboard):hover {
  border-color: var(--border-hover) !important;
  background: var(--bg-surface-hover) !important;
}

body .tool-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   One flat surface language
   -------------------------------------------------------------------------- */
body.vt-graphite-theme :where(
  .auth-card,
  .tool-panel,
  .analysis-input,
  .analysis-activity,
  .analysis-report,
  .email-result-hero,
  .email-usp-tabpanel,
  .verify-hero,
  .verify-panel,
  .verify-result,
  .verify-check-strip,
  .ps-hero,
  .ps-flow,
  .ps-guide-nav,
  .ps-guide-section,
  .ps-terminal-card,
  .ps-code-card,
  .dashboard-panel,
  .workspace-card,
  .connection-card,
  .doc-content,
  .toc,
  .choice-card
) {
  border-color: var(--border-subtle) !important;
  border-radius: 4px !important;
  background-color: var(--bg-surface) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.vt-graphite-theme :where(
  .input, .select, .textarea, .form-input, input, select, textarea,
  .email-mode-tab,
  .email-usp-tab,
  .verify-file
) {
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.vt-graphite-theme :where(.btn, button.btn, a.btn) {
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.vt-graphite-theme :where(.btn-primary, button.btn-primary, a.btn-primary):hover {
  box-shadow: 0 8px 22px var(--accent-glow) !important;
}

/* Status chips remain compact but are not exaggerated pills. */
body.vt-graphite-theme :where(
  .status-pill, .case-chip, .case-status-pill, .case-priority-pill,
  .verify-format, .demo-ready, .email-signal-chips > span,
  .email-unlock-list > span, .email-campaign-entities span,
  .email-campaign-entities em, .analysis-progress-count
) { border-radius: 3px !important; }

/* --------------------------------------------------------------------------
   Page containers and vertical rhythm
   -------------------------------------------------------------------------- */
body :where(
  .dashboard-shell,
  .ps-guide-shell,
  .verify-shell,
  .docs-layout,
  .tool-hub,
  .analysis-shell,
  .email-result-page-shell
) {
  width: min(var(--vt-product-wide), calc(100% - 32px));
  margin-inline: auto;
}

body :where(.dashboard-shell, .ps-guide-shell, .verify-shell, .docs-layout, .analysis-shell, .email-result-page-shell) {
  padding-top: calc(var(--header-height) + clamp(24px, 4vw, 42px));
}

body :where(.dashboard-head, .analysis-heading, .email-result-page-heading) h1 {
  color: var(--text-primary);
  letter-spacing: -.035em;
  text-wrap: balance;
}

body :where(.dashboard-head, .analysis-heading, .email-result-page-heading) :where(.lead, p) {
  color: var(--text-secondary) !important;
  font-style: normal !important;
}

/* Workspace destinations belong to the workspace, never the global header. */
body.vt-dashboard-page .workspace-nav {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  background: var(--bg-surface) !important;
  box-shadow: none !important;
}

body.vt-dashboard-page .workspace-nav a {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .8rem;
  border: 0;
  border-right: 1px solid var(--border-subtle);
  border-radius: 0 !important;
  background: transparent;
  color: var(--text-tertiary);
  font-size: .78rem;
  text-align: center;
}
body.vt-dashboard-page .workspace-nav a:last-child { border-right: 0; }
body.vt-dashboard-page .workspace-nav a:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
body.vt-dashboard-page .workspace-nav a.active {
  background: var(--accent-soft) !important;
  color: var(--accent-main) !important;
  box-shadow: inset 0 -2px 0 var(--accent-main) !important;
}

/* --------------------------------------------------------------------------
   Investigation workspace and four-capability result flow
   -------------------------------------------------------------------------- */
body.vt-email-investigation :where(.analysis-input, .analysis-activity, .analysis-report) {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  background: var(--bg-surface) !important;
}

body.vt-email-investigation .analysis-progress-current {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  background: var(--bg-surface-light) !important;
}

body.vt-email-investigation .analysis-progress-history {
  border-top-color: var(--border-subtle) !important;
}

/* Put the four forensic capability tabs at the top of the result workspace,
   while keeping the decision summary before the selected panel content. */
body.vt-email-investigation #phishingResult {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.vt-email-investigation #phishingResult > .email-usp-workspace { display: contents; }
body.vt-email-investigation #phishingResult > .email-usp-workspace > .email-usp-tabs { order: 0; }
body.vt-email-investigation #phishingResult > .email-result-hero { order: 1; }
body.vt-email-investigation #phishingResult > .email-usp-workspace > .email-usp-tabpanels { order: 2; }

body.vt-email-investigation .email-usp-tabs {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 18;
  padding: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-base);
}

body.vt-email-investigation .email-usp-tab {
  border-radius: 4px !important;
  background: var(--bg-surface-light) !important;
}
body.vt-email-investigation .email-usp-tab[aria-selected="true"],
body.vt-email-investigation .email-usp-tab.is-active {
  border-color: var(--accent-main) !important;
  background: var(--bg-surface-hover) !important;
  box-shadow: inset 0 -2px 0 var(--accent-main) !important;
}

body.vt-email-investigation :where(
  .email-usp-panel-state,
  .email-evidence-dimension,
  .email-lineage,
  .email-evidence-upgrade,
  .email-trust-banner,
  .email-hop-row,
  .email-passport-card,
  .email-campaign-summary,
  .email-campaign-entities article,
  .email-related-scans a
) {
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* One information-control style everywhere. */
body.vt-email-investigation .email-help-term {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body.vt-email-investigation .email-help-button {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: inline-grid !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid var(--border-hover) !important;
  border-radius: 4px !important;
  background: var(--bg-surface-light) !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
}
body.vt-email-investigation .email-help-button:hover,
body.vt-email-investigation .email-help-button[aria-expanded="true"] {
  border-color: var(--accent-border) !important;
  background: var(--accent-soft) !important;
  color: var(--accent-main) !important;
}
body.vt-email-investigation .email-help-button > span {
  width: auto !important;
  height: auto !important;
  font: 600 10px/1 var(--mono) !important;
}
body.vt-email-investigation .email-help-tooltip {
  max-width: min(360px, calc(100vw - 24px));
  border: 1px solid var(--border-hover) !important;
  border-radius: 4px !important;
  background: #202020 !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.32) !important;
}

/* GeoTrace is a real coordinate map surface, not a detached colored card. */
body.vt-email-investigation .email-geotrace-map {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-surface-light) url('/assets/images/world-map-equirectangular.svg') center / 100% 100% no-repeat !important;
}
body.vt-email-investigation .email-geotrace-map svg {
  width: 100%;
  min-height: 220px;
  max-height: 300px;
}
body.vt-email-investigation .email-geotrace-grid line { stroke: rgba(255,255,255,.07); }
body.vt-email-investigation .email-geotrace-path polyline { stroke: var(--accent-main); stroke-width: 2; fill: none; }
body.vt-email-investigation .email-geotrace-node circle { stroke-width: 2; }

/* --------------------------------------------------------------------------
   Loaders: no blue shimmer, no mismatched progress canvas
   -------------------------------------------------------------------------- */
html.vt-auth-checking {
  background: #1a1a1a !important;
}
html.vt-auth-checking::before {
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid #363636;
  border-top-color: #01afaf;
  border-radius: 50%;
  background: transparent !important;
  clip-path: none;
  transform: translate(-50%, -50%);
  animation: vt-unified-spin .75s linear infinite;
}
html.vt-auth-checking::after { display: none !important; content: none !important; }
@keyframes vt-unified-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

body .dashboard-shimmer,
body .vt-loading-shimmer,
body.dashboard-is-loading .dashboard-grid :is(h1,h2,p,strong,em,button,a,input,.account-avatar,.status-pill),
body.dashboard-is-loading .dashboard-grid span:not(.status-dot) {
  background: #262626 !important;
  background-image: none !important;
}
body .dashboard-shimmer::after,
body .vt-loading-shimmer::after,
body.dashboard-is-loading .dashboard-grid ::after,
body.dashboard-is-loading .dashboard-loading-state span::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}
body.dashboard-is-loading { --shimmer-base:#262626; --shimmer-edge:#262626; --shimmer-highlight:#2a2a2a; }
body.dashboard-is-loading .dashboard-grid .dashboard-panel,
body.dashboard-is-loading .dashboard-loading-state {
  background: var(--bg-surface) !important;
}

/* --------------------------------------------------------------------------
   Verification, PowerShell, docs, auth
   -------------------------------------------------------------------------- */
body.vt-evidence-verify-page .verify-workspace,
body.vt-guide-page .ps-guide-section,
body.vt-auth-page .auth-card {
  border-radius: 4px !important;
}

body.vt-auth-page .auth-main {
  padding-top: calc(var(--header-height) + clamp(28px, 5vw, 54px));
  padding-bottom: 48px;
}
body.vt-auth-page .auth-card {
  max-width: 460px;
  background: var(--bg-surface) !important;
  border-color: var(--border-subtle) !important;
}
body.vt-auth-page :where(.tab-btn, .demo-login-button, .form-input) { border-radius: 4px !important; }
body.vt-auth-page :where(.tab-btn.active, .demo-login-button) { color: var(--accent-main); }

/* One footer structure, matching the landing page. */
body .analysis-footer,
body .legal-footer,
body .site-footer { display: none !important; }
body .vt-site-footer {
  width: 100%;
  margin: 56px 0 0;
  padding: 20px var(--vt-product-gutter) 22px !important;
  border-top: 1px solid var(--border-subtle) !important;
  background: var(--header-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body .vt-site-footer .vt-site-footer-bottom {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding-top: 0;
  border-top: 0;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   Responsive behavior
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  body .vt-site-header .tool-header-links,
  body .tool-header-shell .tool-header-links { display: none; }
  body .vt-site-header .tool-header-actions :where(.tool-header-login, .tool-header-dashboard),
  body .tool-header-shell .tool-header-actions :where(.tool-header-login, .tool-header-dashboard) { display: none; }
  body .tool-menu-toggle { display: block !important; }

  body .vt-site-header .tool-header-links.is-open,
  body .tool-header-shell .tool-header-links.is-open {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 10px var(--vt-product-gutter) 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--header-bg) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.32) !important;
  }
  body .tool-header-links.is-open > a {
    width: 100% !important;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 6px !important;
    text-align: left !important;
  }
  body .tool-header-links.is-open .tool-header-mobile-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
  }
  body .tool-header-links.is-open .tool-header-mobile-actions a {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-surface-light);
  }

  body.vt-email-investigation .email-usp-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root { --vt-product-gutter: 12px; }

  body :where(.dashboard-shell,.ps-guide-shell,.verify-shell,.docs-layout,.tool-hub,.analysis-shell,.email-result-page-shell) {
    width: min(100% - 24px, var(--vt-product-wide));
    padding-top: calc(var(--header-height) + 22px);
  }

  body.vt-dashboard-page .workspace-nav {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }
  body.vt-dashboard-page .workspace-nav a {
    flex: 0 0 auto;
    min-width: 116px;
    scroll-snap-align: start;
  }

  body.vt-email-investigation .analysis-layout,
  body.vt-email-investigation .email-result-hero,
  body.vt-email-investigation .email-usp-panel-header,
  body.vt-guide-page .ps-hero,
  body.vt-guide-page .ps-card-grid,
  body.vt-evidence-verify-page .verify-workspace,
  body .dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  body.vt-email-investigation .email-usp-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding: 7px;
    scroll-snap-type: x proximity;
  }
  body.vt-email-investigation .email-usp-tab {
    flex: 0 0 min(82vw, 270px);
    scroll-snap-align: start;
  }
  body.vt-email-investigation .email-usp-tabpanel { padding: 14px !important; }
  body.vt-email-investigation .email-capability-heading h3 {
    font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
  }
  body.vt-email-investigation .email-capability-subtitle {
    font-size: .78rem !important;
  }
  body.vt-email-investigation .email-usp-panel-state {
    justify-self: stretch !important;
    min-width: 0 !important;
    padding: 10px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
  }
  body.vt-email-investigation .email-geotrace-map { min-height: 180px; }
  body.vt-email-investigation .email-geotrace-map svg { min-height: 180px; }
  body.vt-email-investigation .email-hop-row,
  body.vt-email-investigation .email-campaign-entities article {
    grid-template-columns: 28px minmax(0,1fr) !important;
  }
  body.vt-email-investigation .email-hop-row > em,
  body.vt-email-investigation .email-campaign-entities article > :last-child {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }

  body .vt-site-footer .vt-site-footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  body .tool-header-inner { padding-inline: 12px !important; }
  body .tool-header-brand { max-width: calc(100vw - 96px) !important; }
  body .tool-header-word { max-width: 128px !important; }
  body .tool-header-links.is-open .tool-header-mobile-actions { grid-template-columns: 1fr; }

  body :where(.btn, button.btn, a.btn) { width: 100%; justify-content: center; }
  body :where(.button-row, .verify-actions, .ps-hero-actions, .email-result-actions, .dashboard-sih-actions) {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  body.vt-email-investigation .email-mode-tabs { grid-template-columns: 1fr !important; }
  body.vt-email-investigation .email-usp-tab { flex-basis: min(88vw, 270px); }
  body.vt-email-investigation .email-result-decision { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.vt-auth-checking::before { animation: none !important; }
}

/* --------------------------------------------------------------------------
   Legacy page normalization: keep every surface on the landing-page palette
   -------------------------------------------------------------------------- */
body.vt-evidence-verify-page {
  --vt-page-bg: var(--bg-base);
}
body.vt-evidence-verify-page :where(.verify-hero h1, .verify-panel-heading h2, .verify-result h2, .verify-how h3, .verify-file strong, .verify-panel > label) {
  color: var(--text-primary) !important;
}
body.vt-evidence-verify-page :where(
  .verify-hero > p:not(.analysis-section-label), .verify-boundary span,
  .verify-panel-heading span, .verify-file span:nth-of-type(1), .verify-divider,
  .verify-result p, .verify-check small, .verify-meta dt, .verify-how p,
  .verify-result-idle > span, .verify-result-header > span
) { color: var(--text-secondary) !important; }
body.vt-evidence-verify-page :where(.verify-boundary strong, .verify-check strong, .verify-meta dd) {
  color: var(--text-primary) !important;
}
body.vt-evidence-verify-page :where(.verify-boundary, .verify-panel, .verify-result, .verify-how article, .verify-file, .verify-check) {
  border-color: var(--border-subtle) !important;
  background: var(--bg-surface) !important;
}
body.vt-evidence-verify-page .verify-file {
  border-style: dashed !important;
  background: var(--bg-surface-light) !important;
}
body.vt-evidence-verify-page .verify-file span:last-child,
body.vt-evidence-verify-page .verify-format {
  border: 1px solid var(--border-subtle) !important;
  border-radius: 3px !important;
  background: var(--bg-surface-hover) !important;
  color: var(--text-primary) !important;
}
body.vt-evidence-verify-page .verify-panel textarea {
  border-color: var(--border-hover) !important;
  border-radius: 4px !important;
  background: var(--bg-surface-light) !important;
  color: var(--text-primary) !important;
}
body.vt-evidence-verify-page .verify-panel textarea:focus {
  outline: none !important;
  border-color: var(--accent-main) !important;
  box-shadow: 0 0 0 2px rgba(1,175,175,.22) !important;
}
body.vt-evidence-verify-page .verify-divider::before,
body.vt-evidence-verify-page .verify-divider::after,
body.vt-evidence-verify-page .verify-return { border-color: var(--border-subtle) !important; }
body.vt-evidence-verify-page .verify-error {
  border: 1px solid rgba(248,113,113,.28);
  border-radius: 4px !important;
  background: rgba(127,29,29,.18) !important;
  color: #fca5a5 !important;
}
body.vt-evidence-verify-page .verify-check > span {
  background: var(--bg-surface-hover) !important;
  color: var(--text-secondary) !important;
}
body.vt-evidence-verify-page .verify-check[data-pass="true"] > span {
  background: rgba(34,197,94,.13) !important;
  color: #86efac !important;
}
body.vt-evidence-verify-page .verify-check[data-pass="false"] > span {
  background: rgba(239,68,68,.13) !important;
  color: #fca5a5 !important;
}
body.vt-evidence-verify-page .verify-result[data-state="valid"] { border-color: rgba(34,197,94,.38) !important; }
body.vt-evidence-verify-page .verify-result[data-state="invalid"] { border-color: rgba(239,68,68,.38) !important; }
body.vt-evidence-verify-page .verify-result[data-state="valid"] .verify-result-header h2 { color: #86efac !important; }
body.vt-evidence-verify-page .verify-result[data-state="invalid"] .verify-result-header h2 { color: #fca5a5 !important; }
body.vt-evidence-verify-page :where(.verify-return a, .verify-how article > span) { color: var(--accent-main) !important; }

/* PowerShell/live-SMTP used a legacy blue accent. Teal is now the only
   non-semantic product accent; green/red remain reserved for state. */
body.vt-guide-page :where(
  .ps-step-index, .ps-flow span, .ps-terminal-body i, .ps-section-heading .eyebrow,
  .ps-prerequisite-grid a, .ps-code-head span, .ps-response-grid article > span,
  .ps-scenario-index, .ps-demo-step > span, .ps-inline-link
) { color: var(--accent-main) !important; }
body.vt-guide-page :where(.ps-callout-info, .ps-guide-nav a.active, .ps-guide-nav a:hover) {
  border-color: var(--accent-border) !important;
}
body.vt-guide-page .ps-callout-info strong { color: var(--accent-main) !important; }
body.vt-guide-page :where(.ps-hero,.ps-flow,.ps-guide-nav,.ps-guide-section,.ps-terminal-card,.ps-code-card,.ps-callout,.ps-card-grid article,.ps-prerequisite-grid article,.ps-response-grid article,.ps-accordion-list details) {
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* Workspace links and in-review state use the same product accent rather than
   introducing a second navigation blue. Semantic safe/error colors remain. */
body.vt-dashboard-page :where(.case-back a, .case-status-pill[data-status="in_review"]) {
  color: var(--accent-main) !important;
}
body.vt-dashboard-page .case-status-pill[data-status="in_review"] { border-color: var(--accent-border) !important; }
body.vt-dashboard-page input[type="checkbox"] { accent-color: var(--accent-main) !important; }

/* Catch remaining content boxes whose legacy page stylesheet used larger
   radii. Deliberately exclude avatars, dots, radio controls and map nodes. */
body.vt-graphite-theme :where(
  .analysis-file, .analysis-image-preview, .analysis-report .metric,
  .verify-file, .verify-error, .verify-how article,
  .case-summary-grid article, .case-evidence-item, .case-timeline-item, .case-audit-item,
  .usage-stat, .api-key-row, .api-key-created, .empty-state-table,
  .dashboard-forensic-strip a, .dashboard-sih-actions a,
  .email-more-exports, .email-more-exports > div
) {
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.vt-guide-page .ps-kicker span {
  background: var(--accent-main) !important;
  box-shadow: 0 0 14px var(--accent-glow) !important;
}
body.vt-guide-page :where(.ps-step-number, .ps-terminal-brandline strong, .ps-caret, .ps-live-download-brand span, .ps-live-topology span, .ps-live-requirements span) {
  color: var(--accent-main) !important;
}
body.vt-guide-page .ps-step-number {
  border-color: var(--accent-border) !important;
  background: var(--accent-soft) !important;
}
body.vt-guide-page :where(.ps-guide-nav a:focus-visible, .ps-code-head button:hover) {
  border-color: var(--accent-main) !important;
  outline-color: var(--accent-main) !important;
}
body.vt-guide-page :where(.ps-step, .ps-callout-info) { border-left-color: var(--accent-border) !important; }
body.vt-guide-page :where(.ps-prerequisite-grid article, .ps-callout-info) {
  border-color: var(--border-subtle) !important;
  background: var(--bg-surface-light) !important;
}

/* Dashboard/workspace loading is one quiet state, not a page full of shimmer
   placeholders. JS removes dashboard-is-loading when the real data resolves. */
body.dashboard-is-loading .dashboard-grid {
  min-height: 210px;
  display: grid !important;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-surface);
  pointer-events: none;
}
body.dashboard-is-loading .dashboard-grid > * { display: none !important; }
body.dashboard-is-loading .dashboard-grid::before {
  content: 'Loading workspace…';
  color: var(--text-secondary);
  font: 500 13px/1.4 var(--font, Inter, system-ui, sans-serif);
}

/* Evidence verification uses the same open page-heading geometry as the
   landing/workspace pages; only its trust-boundary statement is boxed. */
body.vt-evidence-verify-page .verify-shell {
  padding-top: calc(var(--header-height) + clamp(28px, 4vw, 48px)) !important;
  padding-bottom: 64px !important;
}
body.vt-evidence-verify-page .verify-hero {
  max-width: 980px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.vt-evidence-verify-page .verify-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  line-height: 1.02 !important;
}
body.vt-evidence-verify-page .verify-format { white-space: nowrap; }
body.vt-evidence-verify-page .verify-grid:has(.verify-result[hidden]) .verify-panel {
  grid-column: 1 / -1;
  width: min(760px, 100%);
}

@media (max-width: 520px) {
  body.vt-dashboard-page .workspace-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  body.vt-dashboard-page .workspace-nav a {
    min-width: 0;
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    white-space: normal;
  }
  body.vt-dashboard-page .workspace-nav a:nth-child(2n) { border-right: 0; }
  body.vt-dashboard-page .workspace-nav a:nth-last-child(-n+2) { border-bottom: 0; }
  body.vt-dashboard-page .workspace-nav a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  body.vt-evidence-verify-page .verify-shell { padding-top: calc(var(--header-height) + 24px) !important; }
  body.vt-evidence-verify-page .verify-hero h1 { font-size: clamp(2.25rem, 11vw, 2.75rem) !important; }
}

@media (max-width: 520px) {
  html body.vt-dashboard-page .workspace-nav {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }
  html body.vt-dashboard-page .workspace-nav a,
  html body.vt-dashboard-page .workspace-nav a[href="account.html"] {
    flex: initial !important;
    min-width: 0 !important;
    width: auto !important;
    border-right: 1px solid var(--border-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    white-space: normal !important;
  }
  html body.vt-dashboard-page .workspace-nav a:nth-child(2n) { border-right: 0 !important; }
  html body.vt-dashboard-page .workspace-nav a:nth-last-child(-n+2) { border-bottom: 0 !important; }
  html body.vt-dashboard-page .workspace-nav a:last-child {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }
}

/* ========================================================================
   Final information-architecture + responsive polish — 2026-09-15
   index.html remains the visual source of truth. This block intentionally
   wins over legacy page layers that are still loaded for behavior-specific
   components.
   ======================================================================== */

/* Four real workspace destinations. Cases remains a contextual review queue,
   not permanent top-level workspace navigation. */
html body.vt-dashboard-page .workspace-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Result hierarchy: decision first, then one contiguous tabbed evidence area. */
html body.vt-email-investigation #phishingResult {
  display: grid !important;
  gap: 20px !important;
}
html body.vt-email-investigation #phishingResult > .email-result-hero {
  order: 0 !important;
}
html body.vt-email-investigation #phishingResult > .email-usp-workspace {
  order: 1 !important;
  display: grid !important;
  gap: 0 !important;
  margin-top: 0 !important;
}
html body.vt-email-investigation #phishingResult > .email-usp-workspace > .email-usp-tabs,
html body.vt-email-investigation #phishingResult > .email-usp-workspace > .email-usp-tabpanels {
  order: initial !important;
}

/* The verdict is a compact decision summary, not another decorative card. */
html body.vt-email-investigation .email-result-hero--compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, .75fr) !important;
  gap: 26px !important;
  padding: 4px 0 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.vt-email-investigation .email-result-hero--compact h2 {
  margin-top: 3px !important;
  font-size: clamp(1.9rem, 3vw, 2.55rem) !important;
}
html body.vt-email-investigation .email-result-copy {
  max-width: 74ch !important;
}
html body.vt-email-investigation .email-result-decision {
  align-self: center;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border: 0 !important;
  border-left: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.vt-email-investigation :where(.email-risk-score,.email-next-action,.email-decision-metric) {
  min-height: 78px !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  background: transparent !important;
}
html body.vt-email-investigation :where(.email-risk-score,.email-next-action,.email-decision-metric):nth-last-child(-n+2) {
  border-bottom: 0 !important;
}
html body.vt-email-investigation .email-signal-chips > span {
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* A conventional, quiet tab rail. No four-card treatment, no active glow. */
html body.vt-email-investigation .email-usp-tabs {
  position: sticky !important;
  top: calc(var(--header-height) + 6px) !important;
  z-index: 18 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  background: var(--bg-base) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body.vt-email-investigation .email-usp-tab {
  min-width: 0 !important;
  min-height: 66px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 9px !important;
  row-gap: 3px !important;
  align-content: center !important;
  padding: 10px 14px 11px !important;
  border: 0 !important;
  border-right: 1px solid var(--border-subtle) !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease !important;
}
html body.vt-email-investigation .email-usp-tab:last-child { border-right: 0 !important; }
html body.vt-email-investigation .email-usp-tab:hover {
  background: var(--bg-surface-light) !important;
  color: var(--text-primary) !important;
  transform: none !important;
}
html body.vt-email-investigation .email-usp-tab[aria-selected="true"],
html body.vt-email-investigation .email-usp-tab.is-active {
  border-bottom-color: var(--accent-main) !important;
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}
html body.vt-email-investigation .email-usp-tab-index {
  grid-row: 1 / 3 !important;
  align-self: center !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-tertiary) !important;
  font: 600 10px/1 var(--mono) !important;
}
html body.vt-email-investigation .email-usp-tab[aria-selected="true"] .email-usp-tab-index,
html body.vt-email-investigation .email-usp-tab.is-active .email-usp-tab-index {
  color: var(--accent-main) !important;
}
html body.vt-email-investigation .email-usp-tab-label {
  min-width: 0 !important;
  display: block !important;
}
html body.vt-email-investigation .email-usp-tab strong {
  color: currentColor !important;
  font-size: 12.5px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
html body.vt-email-investigation .email-usp-tab > em {
  grid-column: 2 !important;
  color: var(--text-tertiary) !important;
  font: 500 9.5px/1.3 var(--mono) !important;
  white-space: normal !important;
}
html body.vt-email-investigation .email-usp-tab[aria-selected="true"] > em,
html body.vt-email-investigation .email-usp-tab.is-active > em { color: var(--accent-main) !important; }

/* Selected evidence content is visually attached to the tab rail instead of
   looking like a second unrelated card. */
html body.vt-email-investigation .email-usp-tabpanels { min-width: 0 !important; }
html body.vt-email-investigation .email-usp-tabpanel {
  display: grid !important;
  gap: 18px !important;
  padding: 24px 2px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.vt-email-investigation .email-usp-tabpanel[hidden] { display: none !important; }
html body.vt-email-investigation .email-capability-heading {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
}
html body.vt-email-investigation .email-capability-heading h3 {
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: clamp(1.35rem, 2.25vw, 1.9rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
}
html body.vt-email-investigation .email-capability-subtitle {
  max-width: 72ch !important;
  margin: 0 !important;
  color: var(--text-tertiary) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
}
html body.vt-email-investigation .email-usp-panel-state {
  justify-self: end !important;
  min-width: 170px !important;
  padding: 0 0 0 16px !important;
  border: 0 !important;
  border-left: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* One visual object for help: the outer button is the circle; its 'i' has no
   second ellipse/square around it. */
html body.vt-email-investigation .email-help-button,
html body.vt-email-investigation .email-usp-tabpanel .email-help-button {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid var(--border-hover) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
}
html body.vt-email-investigation .email-help-button > span,
html body.vt-email-investigation .email-usp-tabpanel .email-help-button > span {
  width: auto !important;
  height: auto !important;
  display: inline !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font: 700 9px/1 var(--mono) !important;
}

/* Accurate equirectangular world map: the SVG and plotted points share the
   exact 720 x 360 geographic coordinate plane. */
html body.vt-email-investigation .email-geotrace-map {
  min-height: 0 !important;
  aspect-ratio: 2 / 1 !important;
  background: var(--bg-surface-light) url('/assets/images/world-map-equirectangular.svg') center / 100% 100% no-repeat !important;
}
html body.vt-email-investigation .email-geotrace-map > svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 2 / 1 !important;
}

/* Evidence Passport verification: use the first viewport efficiently. */
html body.vt-evidence-verify-page .verify-shell {
  width: min(1240px, calc(100% - 40px)) !important;
  padding-top: calc(var(--header-height) + 26px) !important;
  padding-bottom: 48px !important;
}
html body.vt-evidence-verify-page .verify-hero {
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr) !important;
  gap: clamp(28px, 5vw, 68px) !important;
  align-items: end !important;
  margin-bottom: 22px !important;
}
html body.vt-evidence-verify-page .verify-intro { min-width: 0; }
html body.vt-evidence-verify-page .verify-hero h1 {
  max-width: 760px !important;
  margin: 8px 0 12px !important;
  font-size: clamp(2.45rem, 4.25vw, 3.8rem) !important;
  line-height: 1.01 !important;
}
html body.vt-evidence-verify-page .verify-intro > p:not(.analysis-section-label) {
  max-width: 760px !important;
  margin: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
html body.vt-evidence-verify-page .verify-boundary {
  align-self: end !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  grid-template-columns: 108px minmax(0, 1fr) !important;
  gap: 8px 14px !important;
  border-radius: 4px !important;
}
html body.vt-evidence-verify-page .verify-grid { gap: 18px !important; }
html body.vt-evidence-verify-page .verify-panel,
html body.vt-evidence-verify-page .verify-result { padding: 18px !important; }
html body.vt-evidence-verify-page .verify-panel-heading h2 { margin-bottom: 14px !important; }
html body.vt-evidence-verify-page .verify-file { padding: 12px 14px !important; }
html body.vt-evidence-verify-page .verify-panel textarea {
  min-height: 150px !important;
  max-height: 300px !important;
}
html body.vt-evidence-verify-page .verify-result { min-height: 330px !important; }
html body.vt-evidence-verify-page .verify-check-strip {
  margin-top: 14px !important;
  padding-top: 12px !important;
}
html body.vt-evidence-verify-page .verify-grid:has(.verify-result[hidden]) .verify-panel {
  grid-column: 1 / -1 !important;
  width: min(820px, 100%) !important;
}

/* Homepage demo path stays a single scan-line on normal desktop screens. */
html body.vt-home-sih .sih-home-shell > .sih-demo {
  width: min(1240px, calc(100% - 32px)) !important;
  max-width: 1240px !important;
}
html body.vt-home-sih .sih-demo > div { max-width: none !important; }
html body.vt-home-sih .sih-demo h2 {
  white-space: nowrap !important;
  font-size: clamp(1.8rem, 3.3vw, 2.75rem) !important;
}

@media (max-width: 1050px) {
  html body.vt-email-investigation .email-result-hero--compact {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  html body.vt-email-investigation .email-result-decision {
    border-left: 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
  }
  html body.vt-evidence-verify-page .verify-hero {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  html body.vt-evidence-verify-page .verify-boundary { max-width: 760px !important; }
}

@media (max-width: 760px) {
  html body.vt-dashboard-page .workspace-nav {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: hidden !important;
    scroll-snap-type: none !important;
  }
  html body.vt-dashboard-page .workspace-nav a {
    min-width: 0 !important;
    width: auto !important;
    border-right: 1px solid var(--border-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    white-space: normal !important;
  }
  html body.vt-dashboard-page .workspace-nav a:nth-child(2n) { border-right: 0 !important; }
  html body.vt-dashboard-page .workspace-nav a:nth-last-child(-n+2) { border-bottom: 0 !important; }
  html body.vt-dashboard-page .workspace-nav a:last-child {
    grid-column: auto !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  html body.vt-email-investigation .email-usp-tabs {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: hidden !important;
  }
  html body.vt-email-investigation .email-usp-tab {
    min-height: 64px !important;
    padding: 9px 10px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }
  html body.vt-email-investigation .email-usp-tab:nth-child(2n) { border-right: 0 !important; }
  html body.vt-email-investigation .email-usp-tab:nth-last-child(-n+2) { border-bottom-color: transparent !important; }
  html body.vt-email-investigation .email-usp-tab[aria-selected="true"],
  html body.vt-email-investigation .email-usp-tab.is-active {
    box-shadow: inset 0 -2px 0 var(--accent-main) !important;
  }
  html body.vt-email-investigation .email-usp-tabpanel { padding-top: 18px !important; }
  html body.vt-email-investigation .email-usp-panel-state {
    justify-self: start !important;
    min-width: 0 !important;
    padding: 8px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
  }
  html body.vt-email-investigation .email-result-decision { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  html body.vt-evidence-verify-page .verify-shell {
    width: min(100% - 24px, 1240px) !important;
    padding-top: calc(var(--header-height) + 20px) !important;
  }
  html body.vt-evidence-verify-page .verify-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem) !important;
  }
  html body.vt-evidence-verify-page .verify-boundary {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
  html body.vt-evidence-verify-page .verify-boundary span + strong { margin-top: 7px !important; }
  html body.vt-evidence-verify-page .verify-panel textarea { min-height: 140px !important; }

  html body.vt-home-sih .sih-demo h2 {
    white-space: normal !important;
    font-size: clamp(1.75rem, 8.7vw, 2.35rem) !important;
  }
}

@media (max-width: 520px) {
  html body.vt-email-investigation .email-result-hero--compact { padding-bottom: 16px !important; }
  html body.vt-email-investigation .email-result-decision { grid-template-columns: 1fr !important; }
  html body.vt-email-investigation :where(.email-risk-score,.email-next-action,.email-decision-metric) {
    min-height: 0 !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }
  html body.vt-email-investigation :where(.email-risk-score,.email-next-action,.email-decision-metric):last-child { border-bottom: 0 !important; }
  html body.vt-email-investigation .email-usp-tab > em { font-size: 8.8px !important; }
  html body.vt-email-investigation .email-geotrace-map { min-height: 160px !important; }
}

/* ========================================================================
   Final investigation flow split — 2026-09-15
   /phishing owns the immediate decision. /phishing-result owns evidence detail.
   ======================================================================== */

html body.vt-email-investigation .email-investigation-entry[hidden] {
  display: none !important;
}

/* Programmatic focus is used after result replacement for accessibility, but it
   must never draw a browser-default black rectangle around the result surface. */
html body.vt-email-investigation :where(.email-result-shell, .analysis-report):focus,
html body.vt-email-investigation :where(.email-result-shell, .analysis-report):focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Primary investigation page: the completed decision replaces the workbench. */
html body.vt-email-investigation.vt-email-summary-view .analysis-shell {
  padding-top: calc(var(--header-height) + clamp(28px, 5vw, 56px)) !important;
}
html body.vt-email-investigation.vt-email-summary-view .analysis-report {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  max-height: none !important;
}
html body.vt-email-investigation .email-result-shell.is-entering {
  animation: vt-investigation-result-reveal 320ms cubic-bezier(.2,.75,.25,1) both;
}
@keyframes vt-investigation-result-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

html body.vt-email-investigation .email-completion-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(8px, 1vw, 14px) 0 clamp(30px, 5vw, 54px);
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  box-shadow: none;
}
html body.vt-email-investigation .email-completion-primary {
  min-width: 0;
}
html body.vt-email-investigation .email-completion-primary h2 {
  margin: 5px 0 10px;
  color: var(--text-primary);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
html body.vt-email-investigation .email-completion-primary .email-result-copy {
  max-width: 68ch !important;
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: .96rem;
  line-height: 1.65;
}
html body.vt-email-investigation .email-completion-summary .email-signal-chips {
  margin-top: 18px;
}
html body.vt-email-investigation .email-completion-summary .email-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
html body.vt-email-investigation .email-detail-unavailable {
  align-self: center;
  max-width: 52ch;
  color: var(--text-tertiary);
  font-size: .78rem;
  line-height: 1.45;
}
html body.vt-email-investigation .email-completion-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-left: 1px solid var(--border-subtle);
}
html body.vt-email-investigation .email-completion-metrics > div {
  min-width: 0;
  min-height: 92px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
html body.vt-email-investigation .email-completion-metrics > div:nth-child(odd) {
  border-right: 1px solid var(--border-subtle);
}
html body.vt-email-investigation .email-completion-metrics > div:nth-last-child(-n+2) {
  border-bottom: 0;
}
html body.vt-email-investigation .email-completion-metrics span,
html body.vt-email-investigation .email-completion-metrics small {
  display: block;
  color: var(--text-tertiary);
}
html body.vt-email-investigation .email-completion-metrics span {
  margin-bottom: 7px;
  font: 600 9px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
html body.vt-email-investigation .email-completion-metrics strong {
  display: block;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.25;
}
html body.vt-email-investigation .email-completion-metrics > div:first-child strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}
html body.vt-email-investigation .email-completion-metrics small {
  margin-top: 6px;
  font-size: .72rem;
  line-height: 1.35;
}

/* Detail page: no outer card, no large duplicated verdict. */
html body.vt-email-result-page .email-result-page-heading {
  align-items: end;
}
html body.vt-email-result-page .email-result-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
html body.vt-email-result-page .analysis-report,
html body.vt-email-result-page .email-result-shell,
html body.vt-email-result-page .analysis-report:focus,
html body.vt-email-result-page .email-result-shell:focus {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  max-height: none !important;
}
html body.vt-email-result-page .email-result-content {
  display: grid !important;
  gap: 18px !important;
}
html body.vt-email-result-page .email-detail-snapshot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}
html body.vt-email-result-page .email-detail-snapshot > :where(strong, span) {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font: 600 10px/1.2 var(--mono);
  letter-spacing: .02em;
}
html body.vt-email-result-page .email-detail-verdict[data-state="LIKELY_PHISHING"] {
  border-color: rgba(239, 68, 68, .34);
  background: rgba(239, 68, 68, .08);
  color: #fca5a5;
}
html body.vt-email-result-page .email-detail-verdict[data-state="LIKELY_BENIGN"] {
  border-color: rgba(34, 197, 94, .32);
  background: rgba(34, 197, 94, .08);
  color: #86efac;
}
html body.vt-email-result-page .email-detail-verdict[data-state="UNCERTAIN"],
html body.vt-email-result-page .email-detail-verdict[data-state="UNSUPPORTED"] {
  border-color: rgba(245, 158, 11, .34);
  background: rgba(245, 158, 11, .08);
  color: #fcd34d;
}

/* Match the Dashboard workspace tabs exactly: one bounded rail, equal-width
   destinations, flat separators, and a restrained active accent. */
html body.vt-email-result-page .email-usp-workspace {
  display: grid !important;
  gap: 0 !important;
  min-width: 0;
}
html body.vt-email-result-page .email-usp-tabs {
  position: sticky !important;
  top: calc(var(--header-height) + 8px) !important;
  z-index: 18 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 4px !important;
  background: var(--bg-surface) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
html body.vt-email-result-page .email-usp-tab {
  min-width: 0 !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .65rem .8rem !important;
  border: 0 !important;
  border-right: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text-tertiary) !important;
  box-shadow: none !important;
  transform: none !important;
  font: 500 .78rem/1.25 Inter, sans-serif !important;
  text-align: center !important;
  transition: color 140ms ease, background-color 140ms ease !important;
}
html body.vt-email-result-page .email-usp-tab:last-child {
  border-right: 0 !important;
}
html body.vt-email-result-page .email-usp-tab:hover {
  background: var(--bg-surface-hover) !important;
  color: var(--text-primary) !important;
}
html body.vt-email-result-page .email-usp-tab[aria-selected="true"],
html body.vt-email-result-page .email-usp-tab.is-active {
  background: var(--accent-soft) !important;
  color: var(--accent-main) !important;
  box-shadow: inset 0 -2px 0 var(--accent-main) !important;
}
html body.vt-email-result-page .email-usp-tabpanels {
  min-width: 0 !important;
}
html body.vt-email-result-page .email-usp-tabpanel {
  padding: 0 2px 2px !important;
}

@media (max-width: 860px) {
  html body.vt-email-investigation .email-completion-summary {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  html body.vt-email-investigation .email-completion-metrics {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 760px) {
  html body.vt-email-investigation.vt-email-summary-view .analysis-shell {
    padding-top: calc(var(--header-height) + 22px) !important;
  }
  html body.vt-email-investigation .email-completion-primary h2 {
    font-size: clamp(2.1rem, 13vw, 3.2rem);
  }
  html body.vt-email-investigation .email-completion-summary .email-result-actions > :where(.btn, a.btn, button.btn) {
    width: 100%;
    justify-content: center;
  }
  html body.vt-email-result-page .email-result-page-heading {
    align-items: start;
  }
  html body.vt-email-result-page .email-result-page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  html body.vt-email-result-page .email-usp-tabs {
    position: static !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.vt-email-result-page .email-usp-tab {
    border-right: 1px solid var(--border-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }
  html body.vt-email-result-page .email-usp-tab:nth-child(2n) {
    border-right: 0 !important;
  }
  html body.vt-email-result-page .email-usp-tab:nth-last-child(-n+2) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 520px) {
  html body.vt-email-investigation .email-completion-metrics {
    grid-template-columns: 1fr;
  }
  html body.vt-email-investigation .email-completion-metrics > div,
  html body.vt-email-investigation .email-completion-metrics > div:nth-child(odd),
  html body.vt-email-investigation .email-completion-metrics > div:nth-last-child(-n+2) {
    min-height: 0;
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  html body.vt-email-investigation .email-completion-metrics > div:last-child {
    border-bottom: 0;
  }
  html body.vt-email-result-page .email-detail-snapshot {
    align-items: stretch;
  }
  html body.vt-email-result-page .email-detail-snapshot > :where(strong, span) {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.vt-email-investigation .email-result-shell.is-entering {
    animation: none !important;
  }
}

/* Keep the short post-investigation summary composition anchored to the viewport
   without inventing decorative separators or leaving the footer mid-screen. */
html body.vt-email-investigation.vt-email-summary-view {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
html body.vt-email-investigation.vt-email-summary-view > .analysis-shell {
  flex: 1 0 auto;
}
html body.vt-email-investigation.vt-email-summary-view > .vt-site-footer {
  margin-top: auto;
}
html body.vt-email-investigation .email-completion-summary {
  border-bottom: 0;
}
