/*
 * VeriTrust shared ambient glass system
 * Loaded last on every document so the public site, tools, guides, auth,
 * and signed-in workspace share one visual language.
 */

:root {
  --vt-glass-surface: rgba(31, 31, 31, 0.76);
  --vt-glass-surface-strong: rgba(35, 35, 35, 0.88);
  --vt-glass-surface-soft: rgba(43, 43, 43, 0.64);
  --vt-glass-border: rgba(255, 255, 255, 0.105);
  --vt-glass-border-soft: rgba(255, 255, 255, 0.072);
  --vt-ambient-blue: rgba(37, 99, 235, 0.23);
  --vt-ambient-blue-soft: rgba(96, 165, 250, 0.085);
  --vt-glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 20px 60px rgba(0, 0, 0, 0.22);
  --vt-glass-blur: blur(18px) saturate(116%);
}

html {
  max-width: 100%;
  overflow-x: clip;
  background: #10141d;
}

body,
body.vt-graphite-theme {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  background-color: #10141d !important;
  background-image:
    radial-gradient(circle at 12% 2%, var(--vt-ambient-blue), transparent 31rem),
    radial-gradient(circle at 88% 22%, var(--vt-ambient-blue-soft), transparent 27rem),
    linear-gradient(180deg, rgba(14, 35, 72, 0.18), transparent 38rem) !important;
  background-size: auto !important;
  background-attachment: fixed !important;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 78%, rgba(59, 130, 246, 0.075), transparent 24rem),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 92%);
}

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, pre, td, th, label, legend) {
  overflow-wrap: anywhere;
}

body :where(pre, .code-block, .terminal-content, .ps-code) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

/* Analysis workspaces use the same glass regions as the landing page. */
html body.vt-tool-page.vt-analysis-page :is(.analysis-input, .analysis-report, .analysis-activity) {
  border: 1px solid var(--vt-glass-border);
  border-radius: 14px;
  background: var(--vt-glass-surface);
  box-shadow: var(--vt-glass-shadow);
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
}

/* Shared site chrome */
body.vt-graphite-theme :where(.site-header, .tool-header-shell, .vt-page-header, .vt-site-header),
body:not(.vt-graphite-theme) :where(.site-header, .tool-header-shell, .vt-page-header, .vt-site-header) {
  border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  background: rgba(22, 22, 22, 0.78) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(20px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(118%) !important;
}

body.vt-graphite-theme :where(.legal-footer, .site-footer, .vt-site-footer),
body:not(.vt-graphite-theme) :where(.legal-footer, .site-footer, .vt-site-footer) {
  border-top-color: rgba(255, 255, 255, 0.085) !important;
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.74), rgba(19, 19, 19, 0.92)) !important;
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

/*
 * Workspace pages historically carried their own chrome and canvas rules.
 * These explicit selectors keep every authenticated page on the shared system.
 */
html body.vt-dashboard-page.vt-graphite-theme {
  background-color: #10141d !important;
  background-image:
    radial-gradient(circle at 12% 2%, var(--vt-ambient-blue), transparent 31rem),
    radial-gradient(circle at 88% 22%, var(--vt-ambient-blue-soft), transparent 27rem),
    linear-gradient(180deg, rgba(14, 35, 72, 0.18), transparent 38rem) !important;
  background-size: auto !important;
  background-attachment: fixed !important;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header {
  height: var(--header-height);
  border-bottom-color: rgba(255, 255, 255, 0.09) !important;
  background: rgba(22, 22, 22, 0.78) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(20px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(118%) !important;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 3vw, 28px) !important;
  gap: clamp(1.5rem, 3vw, 3rem) !important;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-brand-group {
  flex: 0 1 auto;
  gap: 14px;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-brand {
  width: auto !important;
  max-width: 198px !important;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-mark {
  max-width: 36px !important;
  height: 32px !important;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-word {
  max-width: 160px !important;
  height: 19.5px !important;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-links {
  gap: clamp(1.25rem, 2.2vw, 2.25rem) !important;
  margin-left: auto;
}

html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-actions {
  flex: 0 0 auto;
  gap: 12px !important;
}

html body .vt-site-header :where(
  .tool-header-dashboard,
  .tool-header-login.is-logout
) {
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-surface-light) !important;
  color: var(--text-primary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}

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

body .vt-site-footer :where(.vt-site-footer-brand, .vt-site-footer-groups section) {
  min-height: 0;
  margin: 0;
  padding: 0 !important;
}

body :where(.nav-links, .vt-account-menu, .vt-mobile-menu) {
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

/* Keep the mobile trigger visually identical across every page: icon only. */
body.vt-graphite-theme .tool-menu-toggle,
body:not(.vt-graphite-theme) :where(.tool-menu-toggle, .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;
}

body.vt-graphite-theme .tool-menu-toggle:hover,
body.vt-graphite-theme .tool-menu-toggle:active,
body.vt-graphite-theme .tool-menu-toggle[aria-expanded="true"],
body:not(.vt-graphite-theme) :where(.tool-menu-toggle, .menu-toggle):hover,
body:not(.vt-graphite-theme) :where(.tool-menu-toggle, .menu-toggle):active,
body:not(.vt-graphite-theme) :where(.tool-menu-toggle, .menu-toggle)[aria-expanded="true"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.vt-graphite-theme .tool-menu-toggle:focus-visible,
body:not(.vt-graphite-theme) :where(.tool-menu-toggle, .menu-toggle):focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.88);
  outline-offset: 2px;
}

/* Use the same three-line SVG trigger on every generated site header. */
body .vt-site-header .tool-menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block !important;
}

body .vt-site-header .tool-menu-toggle::before {
  content: none !important;
  display: none !important;
}

/* Primary surfaces: one glass layer per functional region. */
body.vt-graphite-theme :where(
  .hero-illustration,
  .trust-section,
  .card,
  .stats-section,
  .cta-container,
  .toc,
  .doc-content,
  .auth-card,
  .choice-card,
  .tool-panel,
  .result-panel,
  .result-panel-v2,
  .gateway-heading,
  .gateway-powershell-feature,
  .gateway-form,
  .gateway-result,
  .gateway-history,
  .ps-hero,
  .ps-flow,
  .ps-guide-nav,
  .ps-guide-section,
  .ps-terminal-card,
  .ps-code-card,
  .cli-terminal,
  .cli-reference,
  .cli-mobile-block,
  .dashboard-head,
  .workspace-card,
  .connection-card,
  .dashboard-panel,
  .workspace-nav
),
body:not(.vt-graphite-theme) :where(
  .hero-illustration,
  .trust-section,
  .card,
  .stats-section,
  .cta-container,
  .toc,
  .doc-content,
  .auth-card,
  .choice-card,
  .tool-panel,
  .result-panel,
  .result-panel-v2,
  .gateway-heading,
  .gateway-powershell-feature,
  .gateway-form,
  .gateway-result,
  .gateway-history,
  .ps-hero,
  .ps-flow,
  .ps-guide-nav,
  .ps-guide-section,
  .ps-terminal-card,
  .ps-code-card,
  .cli-terminal,
  .cli-reference,
  .cli-mobile-block,
  .dashboard-head,
  .workspace-card,
  .connection-card,
  .dashboard-panel,
  .workspace-nav
) {
  border-color: var(--vt-glass-border) !important;
  background-color: var(--vt-glass-surface) !important;
  background-image: none !important;
  box-shadow: var(--vt-glass-shadow) !important;
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
}

body.vt-dashboard-page.vt-graphite-theme :where(
  .dashboard-head,
  .workspace-card,
  .connection-card,
  .dashboard-panel,
  .workspace-nav
) {
  border-color: var(--vt-glass-border) !important;
  background-color: var(--vt-glass-surface) !important;
  background-image: none !important;
  box-shadow: var(--vt-glass-shadow) !important;
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
}

html body.vt-dashboard-page.vt-graphite-theme :is(
  .dashboard-head,
  .workspace-card,
  .connection-card,
  .dashboard-panel,
  .workspace-nav
) {
  border-color: var(--vt-glass-border) !important;
  background-color: var(--vt-glass-surface) !important;
  background-image: none !important;
  box-shadow: var(--vt-glass-shadow) !important;
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
}

body.vt-detection-page.vt-graphite-theme .choice-card,
body.vt-auth-page.vt-graphite-theme .auth-card {
  border-color: var(--vt-glass-border) !important;
  background-color: var(--vt-glass-surface) !important;
  background-image: none !important;
  box-shadow: var(--vt-glass-shadow) !important;
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
}

body.vt-graphite-theme :where(
  input,
  textarea,
  select,
  .upload-area,
  .gateway-upload,
  .gateway-decision > div,
  .gateway-evidence article,
  .gateway-history-list article,
  .gateway-history-list .gateway-history-item,
  .result-card,
  .signal-card,
  .metric-card,
  .report-row,
  .usage-card,
  .api-key-row,
  .ps-prerequisite-grid article
),
body:not(.vt-graphite-theme) :where(
  input,
  textarea,
  select,
  .upload-area,
  .gateway-upload,
  .gateway-decision > div,
  .gateway-evidence article,
  .gateway-history-list article,
  .gateway-history-list .gateway-history-item,
  .result-card,
  .signal-card,
  .metric-card,
  .report-row,
  .usage-card,
  .api-key-row,
  .ps-prerequisite-grid article
) {
  border-color: var(--vt-glass-border-soft) !important;
  background-color: var(--vt-glass-surface-soft) !important;
}

body :where(input, textarea, select):focus {
  border-color: rgba(1, 175, 175, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(1, 175, 175, 0.13) !important;
}

/* Landing page: retain visual rhythm while matching the product surfaces. */
body:not(.vt-graphite-theme) :where(.card, .hero-illustration, .cta-container) {
  border: 1px solid var(--vt-glass-border);
}

body:not(.vt-graphite-theme) .trust-section,
body:not(.vt-graphite-theme) .stats-section {
  border-block: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
}

body:not(.vt-graphite-theme) .pricing-card.popular {
  border-color: rgba(1, 175, 175, 0.62) !important;
}

/* Reading pages: calm measure, clear section hierarchy, usable table of contents. */
body.vt-graphite-theme .docs-layout {
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
}

body.vt-graphite-theme .toc {
  padding: 18px;
}

body.vt-graphite-theme .doc-content {
  padding: clamp(24px, 4vw, 48px);
}

body.vt-graphite-theme .doc-content > * {
  max-width: 76ch;
}

body.vt-graphite-theme .doc-content :where(p, li) {
  line-height: 1.72;
}

body.vt-graphite-theme .doc-section + .doc-section {
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top-color: rgba(255, 255, 255, 0.075);
}

/* Tool and workspace pages: reduce nested visual noise without hiding data. */
body.vt-tool-page :where(.tool-panel, .result-panel-v2),
body.vt-dashboard-page :where(.dashboard-panel, .workspace-card),
body.vt-guide-page :where(.ps-guide-section, .ps-terminal-card, .ps-code-card) {
  border-radius: 8px;
}

/* Keep every workspace section intro consistent with the detection-page header. */
html body.vt-dashboard-page.vt-graphite-theme .workspace-page > .dashboard-head:not(.case-detail-head) {
  position: relative;
  isolation: auto;
  overflow: visible;
  min-height: 0;
  margin-bottom: 20px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.vt-dashboard-page.vt-graphite-theme .workspace-page > .dashboard-head:not(.case-detail-head)::after {
  content: none !important;
}

html body.vt-dashboard-page.vt-graphite-theme .workspace-page > .dashboard-head:not(.case-detail-head) .eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body.vt-dashboard-page.vt-graphite-theme .workspace-page > .dashboard-head:not(.case-detail-head) .lead {
  margin: 8px 0 14px;
}

body.vt-detection-page .choice-card {
  min-height: 0;
}

body.vt-detection-page .choice-card p {
  max-width: 42ch;
}

body.vt-dashboard-page .dashboard-head .lead,
body.vt-tool-page .tool-hub > .lead,
body.vt-guide-page .ps-lead {
  max-width: 68ch;
}

body.vt-graphite-theme :where(
  .tool-hub > .lead,
  .gateway-heading p:not(.eyebrow),
  .ps-hero-copy > p,
  .ps-lead,
  .auth-header p,
  .dashboard-head .lead
) {
  font-style: normal !important;
}

body.vt-cli-page .cli-terminal,
body.vt-cli-page .cli-reference {
  overflow: hidden;
}

/* Responsive safety across every document. */
@media (max-width: 900px) {
  body,
  body.vt-graphite-theme {
    background-image:
      radial-gradient(circle at 4% 1%, rgba(37, 99, 235, 0.2), transparent 24rem),
      radial-gradient(circle at 100% 20%, rgba(96, 165, 250, 0.07), transparent 20rem) !important;
  }

  html body.vt-dashboard-page.vt-graphite-theme {
    background-image:
      radial-gradient(circle at 4% 1%, rgba(37, 99, 235, 0.2), transparent 24rem),
      radial-gradient(circle at 100% 20%, rgba(96, 165, 250, 0.07), transparent 20rem) !important;
  }

  body.vt-graphite-theme .docs-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.vt-graphite-theme .toc {
    position: static !important;
    display: flex;
    max-width: 100%;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  body.vt-graphite-theme .toc a {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid var(--vt-glass-border-soft);
    border-radius: 999px;
    white-space: nowrap;
  }

  body :where(.grid-4, .features-grid, .dashboard-grid, .workspace-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body :where(h1, .hero h1, .tool-hub h1, .dashboard-head h1, .ps-hero h1) {
    font-size: clamp(31px, 9vw, 44px) !important;
    line-height: 1.08;
  }

  body.vt-auth-page .auth-header h1 {
    max-width: 100%;
    font-size: clamp(17px, 4.8vw, 20px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  body :where(.grid-3, .grid-4, .features-grid, .choice-grid, .tool-grid, .link-grid, .phishing-grid, .dashboard-grid, .workspace-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body :where(.doc-content, .auth-card, .tool-panel, .result-panel-v2, .dashboard-panel, .dashboard-head, .ps-hero, .ps-guide-section) {
    padding: 22px 18px !important;
  }

  body :where(table) {
    min-width: 620px;
  }

  body :where(.table-wrap, .usage-table-wrap, .history-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  body .vt-site-footer,
  body[data-page] > .vt-site-footer {
    margin-top: 34px;
    padding: 28px 18px 18px;
  }

  body .vt-site-footer-inner {
    gap: 20px;
  }

  body .vt-site-footer-brand {
    gap: 8px;
  }

  body .vt-site-footer-brand p {
    max-width: 34ch;
    line-height: 1.5;
  }

  body .vt-site-footer-groups {
    row-gap: 20px;
  }

  body .vt-site-footer-groups section {
    gap: 7px;
  }

  body .vt-site-footer-groups h2 {
    margin-bottom: 2px;
  }

  body .vt-site-footer-bottom {
    margin-top: 24px;
    padding-top: 14px;
  }
}

@media (max-width: 600px) {
  body {
    background-attachment: scroll !important;
  }

  body::before {
    background-size: auto, 36px 36px, 36px 36px;
  }

  body .container,
  body :where(.tool-hub, .gateway-shell, .ps-shell, .dashboard-shell, .cli-shell) {
    width: min(100% - 20px, 1180px) !important;
  }

  html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-inner {
    padding-inline: 16px !important;
  }

  html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-brand {
    width: auto !important;
    max-width: calc(100vw - 188px) !important;
  }

  html body.vt-dashboard-page.vt-graphite-theme .vt-site-header .tool-header-word {
    max-width: 126px !important;
  }

  body :where(.btn, button, input, select, textarea) {
    max-width: 100%;
  }

  body :where(.hero-actions, .auth-actions, .form-actions, .gateway-actions, .ps-hero-actions) {
    align-items: stretch;
    flex-direction: column;
  }

  body :where(.hero-actions, .auth-actions, .form-actions, .gateway-actions, .ps-hero-actions) > :where(.btn, button, a) {
    width: 100%;
    justify-content: center;
  }

  body .doc-content {
    border-radius: 8px;
  }

  body .doc-content > * {
    max-width: 100%;
  }

  body.vt-cli-page :where(.cli-terminal, .cli-reference, .cli-mobile-block) {
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  body :where(.doc-content, .auth-card, .tool-panel, .result-panel-v2, .dashboard-panel, .dashboard-head, .ps-hero, .ps-guide-section) {
    padding: 19px 15px !important;
  }

  body :where(.eyebrow, .status-pill, .badge) {
    max-width: 100%;
    white-space: normal;
  }

  body .vt-site-footer-inner {
    gap: 28px;
  }

  body .vt-site-footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(22px, 8vw, 36px);
    row-gap: 34px;
  }

  body .vt-site-footer-groups section {
    gap: 10px;
  }

  body .vt-site-footer-groups h2 {
    margin-bottom: 4px;
  }

  body .vt-site-footer-groups a {
    line-height: 1.45;
  }

  body .vt-site-footer-bottom {
    margin-top: 30px;
    gap: 10px;
  }
}

@media (max-width: 340px) {
  body .vt-site-footer-groups {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
}

/* Keep overview surfaces concise on phones and compact tablets. This shared
   rule is intentionally last so every applicable page uses one layout. */
@media (max-width: 820px) {
  /* Repetitive overview cards give way to the actionable content. */
  html body.vt-dashboard-page .dashboard-head:not(.case-detail-head),
  body.vt-tool-page .tool-topbar {
    display: none;
  }

  /* Long-form pages retain their identity without carrying a full hero card. */
  body.vt-learning-page .learning-hero[data-catalog-view],
  body.vt-guide-page .ps-hero {
    min-height: 0;
    margin-bottom: 14px;
    padding: 4px 2px 10px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.vt-learning-page .learning-hero-copy,
  body.vt-learning-page .learning-hero[data-catalog-view] .learning-actions,
  body.vt-guide-page .ps-hero-copy > p,
  body.vt-guide-page .ps-hero-actions,
  body.vt-guide-page .ps-terminal-card {
    display: none;
  }

  body.vt-learning-page .learning-hero[data-catalog-view] h1,
  body.vt-guide-page .ps-hero h1 {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 31px) !important;
    line-height: 1.1;
  }

  body.vt-guide-page .ps-kicker {
    margin-bottom: 8px;
  }

  html body.vt-dashboard-page .dashboard-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    min-height: 0;
    margin-bottom: 10px;
    padding: 14px 15px !important;
    border-radius: 3px;
  }

  html body.vt-dashboard-page .dashboard-head > div {
    min-width: 0;
  }

  html body.vt-dashboard-page .dashboard-head .eyebrow {
    margin-bottom: 6px;
    padding: 3px 6px;
    font-size: 8px;
    line-height: 1.2;
  }

  html body.vt-dashboard-page .dashboard-head h1 {
    font-size: clamp(22px, 6.8vw, 27px) !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  html body.vt-dashboard-page .dashboard-head .lead {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  html body.vt-dashboard-page .dashboard-head > .btn {
    align-self: end;
    width: auto !important;
    min-width: 0;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }

  html body.vt-dashboard-page .dashboard-head.case-detail-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  html body.vt-dashboard-page .case-head-badges {
    gap: 5px;
  }
}

@media (max-width: 420px) {
  html body.vt-dashboard-page .dashboard-head {
    gap: 8px;
    padding: 12px !important;
  }

  html body.vt-dashboard-page .dashboard-head h1 {
    font-size: clamp(20px, 6.6vw, 23px) !important;
  }

  html body.vt-dashboard-page .dashboard-head .lead {
    font-size: 11.5px;
    line-height: 1.4;
  }

  html body.vt-dashboard-page .dashboard-head > .btn {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before {
    background-attachment: scroll !important;
  }
}
