/* Filechek brand layer: shell, landing, profile and admin. Loaded last. */
:root {
  --bg: #f5f7fc;
  --ink: #121a2e;
  --muted: #55627a;
  --line: #e2e7f0;
  --line-strong: #cfd7e6;
  --blue: #1d43d8;
  --blue-bright: #3a6dff;
  --blue-dark: #1533b5;
  --blue-soft: #eef2ff;
  --night: #0f1733;
  --night-2: #1a2550;
  --green: #127a4f;
  --green-soft: #e7f6ee;
  --red: #b42d2a;
  --red-soft: #fdeeed;
  --amber: #8a5a00;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(18 26 46 / 6%), 0 1px 1px rgb(18 26 46 / 4%);
  --shadow-md:
    0 10px 30px -12px rgb(18 26 46 / 18%), 0 2px 6px rgb(18 26 46 / 5%);
  --shadow-lg:
    0 30px 60px -24px rgb(21 51 181 / 35%), 0 8px 20px -8px rgb(18 26 46 / 12%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}
body {
  background: var(--bg);
  color: var(--ink);
}
::selection {
  background: #c9d6ff;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.page-shell {
  max-width: 1200px;
  padding: 0 var(--gutter);
  min-height: auto;
}
.page-shell > main {
  min-height: 60vh;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(245 247 252 / 82%);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(226 231 240 / 80%);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.site-brand:hover {
  color: var(--ink);
}
.brand-logo {
  display: block;
  border-radius: 9px;
  box-shadow: 0 6px 14px -6px rgb(29 67 216 / 60%);
}
.site-nav {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
.site-nav a:hover {
  color: var(--ink);
  background: #e9edf6;
}
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}
.site-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-weight: 650;
  font-size: 15px;
  max-width: 200px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.site-account:hover {
  border-color: var(--blue);
  color: var(--ink);
}
.site-account:active {
  transform: scale(0.97);
}
.site-account span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.site-avatar .icon {
  width: 17px;
  height: 17px;
}
.site-avatar.has-name {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
}

/* ---------- shared atoms ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.button:active {
  transform: translateY(1px) scale(0.98);
}
.button .icon {
  width: 19px;
  height: 19px;
}
.button-primary {
  background: linear-gradient(180deg, #2d58f0, var(--blue));
  color: #fff;
  border: 1px solid var(--blue-dark);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 25%) inset,
    0 8px 18px -8px rgb(29 67 216 / 70%);
}
.button-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #3562ff, #1f48e6);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 25%) inset,
    0 12px 24px -10px rgb(29 67 216 / 80%);
}
.button-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.button-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.button-dark {
  background: #fff;
  color: var(--night);
  border: 1px solid #fff;
}
.button-dark:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.profile-buttons .button-dark {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}
.profile-buttons .button-dark:hover {
  background: var(--night-2);
  color: #fff;
}
.button-large {
  min-height: 54px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 14px;
}
.button-danger {
  background: #fff;
  color: var(--red);
  border: 1px solid #f0c4c2;
}
.button-danger:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red);
}
.section-head {
  max-width: 640px;
  margin: 0 0 28px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 800;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.panel h2 {
  margin: 0 0 14px;
  font-size: 19px;
  letter-spacing: -0.3px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel-head h2 {
  margin: 0;
}
.panel-subtitle {
  margin: 24px 0 10px;
  font-size: 15px;
  color: var(--muted);
}
.small-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -72px calc(-1 * var(--gutter)) 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(58 109 255 / 16%), transparent 70%),
    linear-gradient(rgb(29 67 216 / 5%) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(29 67 216 / 5%) 1px, transparent 1px) 0 0 / 40px
      40px;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -2.6px;
  font-weight: 800;
  text-wrap: balance;
}
.hero-lead {
  margin: 0 0 32px;
  max-width: 520px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-facts .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.hero-visual {
  position: relative;
  padding: 28px 8px 40px;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}
.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fafbfe;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe4ee;
}
.hero-panel-title {
  margin-left: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.hero-rows {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.hero-rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
}
.hero-rows li + li {
  border-top: 1px dashed var(--line);
}
.hero-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.hero-row-text {
  display: grid;
  min-width: 0;
}
.hero-row-text strong {
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-row-text small {
  color: var(--muted);
  font-size: 14px;
}
.hero-row-state {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}
.hero-row-state .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 56px;
  height: 70px;
  background: linear-gradient(
    180deg,
    transparent,
    rgb(58 109 255 / 10%) 70%,
    rgb(58 109 255 / 45%) 98%,
    transparent
  );
  pointer-events: none;
  animation: scan 4.2s var(--ease) 0.6s infinite;
  opacity: 0;
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.hero-chip .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.hero-chip-a {
  top: 0;
  right: 4%;
}
.hero-chip-b {
  bottom: 6px;
  left: -2%;
}
@keyframes scan {
  0% {
    transform: translateY(-70px);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(300px);
    opacity: 0;
  }
}

/* ---------- landing sections ---------- */
.lp-tools,
.lp-steps,
.compare,
.vt-help,
.faq-section,
.seo-article {
  margin: 0 0 96px;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tool-card h3 {
  margin: 14px 0 8px;
  font-size: 30px;
  letter-spacing: -1px;
}
.tool-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  max-width: 460px;
}
.tool-badge {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}
.tool-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
}
.tool-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-points .icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
}
.tool-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-card-vt {
  background:
    radial-gradient(90% 80% at 100% 0%, rgb(58 109 255 / 35%), transparent 60%),
    var(--night);
  border-color: var(--night);
  color: #fff;
}
.tool-card-vt > p,
.tool-card-vt .tool-points {
  color: #c7cfe6;
}
.tool-card-vt .tool-points .icon {
  color: #9db4ff;
}
.tool-badge-vt {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-list li {
  position: relative;
  padding: 28px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}
.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #d9dfec;
  letter-spacing: -2px;
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgb(29 67 216 / 70%);
}
.step-list h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
}
.compare-wrap:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 560px;
}
.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}
.compare-table thead th {
  font-size: 17px;
  background: #fafbfe;
}
.compare-table thead th:nth-child(2) {
  color: var(--blue);
}
.compare-table tbody th {
  width: 22%;
  color: var(--muted);
  font-weight: 650;
}
.vt-help-card {
  padding: 44px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(70% 120% at 100% 100%, rgb(255 255 255 / 16%), transparent),
    linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
  box-shadow: var(--shadow-lg);
}
.vt-help-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -1px;
}
.vt-help-card p {
  margin: 0 0 26px;
  max-width: 640px;
  font-size: 18px;
  color: #eef2ff;
}
.vt-help-card .button-primary {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 40%);
}
.vt-help-card .button-primary:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.qa-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  transform: rotate(90deg);
  color: var(--muted);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-chevron {
  transform: rotate(-90deg);
}
.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
}

/* ---------- SEO article on /virustotal (dropdown) ---------- */
.seo-article {
  margin-top: 56px;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.seo-article > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-md);
}
.seo-article > summary::-webkit-details-marker {
  display: none;
}
.seo-article > summary:hover {
  background: var(--blue-soft);
}
.seo-article > summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.seo-article > summary h2 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: -0.5px;
}
.seo-article[open] .faq-chevron {
  transform: rotate(-90deg);
}
.seo-main {
  padding: 0 24px 22px;
}
.seo-main p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.seo-warning {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff8e8;
  border: 1px solid #f1dfb4;
}
.seo-warning .icon {
  color: var(--amber);
  margin-top: 3px;
}
.seo-warning p {
  margin: 0;
  font-size: 16px;
}
.seo-warning a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.seo-side {
  padding: 24px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}
.seo-side h3 {
  margin: 0 0 16px;
  font-size: 17px;
}
.seo-side .tool-points {
  margin: 0;
  font-size: 15px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--night);
  color: #c7cfe6;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer .site-brand {
  color: #fff;
}
.site-footer-brand p {
  margin: 14px 0 0;
  max-width: 300px;
  font-size: 15px;
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.site-footer-col h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
}
.site-footer-col a {
  color: #c7cfe6;
}
.site-footer-col a:hover {
  color: #fff;
}
.site-footer-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 14px;
  color: #aab4cf;
}

/* ---------- profile ---------- */
.profile-page,
.admin-page {
  padding: 48px 0 24px;
}
.profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.profile-head h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -1.6px;
}
.profile-notice {
  min-height: 24px;
  margin: 8px 0 18px;
  color: var(--blue-dark);
  font-weight: 600;
}
.profile-notice:empty {
  margin: 0 0 10px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}
.profile-side,
.profile-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}
.login-card {
  padding: 28px;
}
.login-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
  margin-bottom: 16px;
}
.login-card h2 {
  font-size: 21px;
  line-height: 1.3;
}
.login-card > p {
  color: var(--muted);
  margin: 0 0 20px;
}
.login-buttons {
  display: grid;
  gap: 10px;
}
.login-buttons .button {
  width: 100%;
  min-height: 50px;
}
.login-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0 12px;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.login-benefits li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.login-benefits .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.profile-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 27px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
  box-shadow: 0 10px 22px -10px rgb(29 67 216 / 75%);
}
.profile-id h2 {
  margin: 0 0 2px;
  font-size: 21px;
  overflow-wrap: anywhere;
}
.profile-id p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.provider-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
}
.provider-yandex {
  background: #fff1e5;
  color: #a33f00;
}
.provider-vk {
  background: #e8f0ff;
  color: #0b4fc4;
}
.profile-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-buttons .button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}
.name-form {
  margin-bottom: 16px;
}
.name-form label {
  display: block;
  font-weight: 650;
  margin-bottom: 6px;
  font-size: 15px;
}
.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.name-row input,
.search-field input {
  flex: 1 1 160px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
}
.name-row input:focus,
.search-field input:focus {
  outline: 3px solid #c9d6ff;
  border-color: var(--blue);
}
.profile-tech {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 15px;
}
.profile-tech summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 650;
}
.profile-tech code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f4fa;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.profile-tech .text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 650;
}
.profile-tech .text-button .icon {
  width: 16px;
  height: 16px;
}
.usage-number {
  margin: 0 0 12px;
  color: var(--muted);
}
.usage-number strong {
  font-size: 38px;
  letter-spacing: -1.4px;
  color: var(--ink);
}
.usage-pools {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}
.usage-pool .usage-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.usage-name {
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
}
.usage-pool .usage-number strong {
  font-size: 28px;
}
.usage-bar {
  height: 10px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
}
.usage-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-bright), var(--blue));
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  transition: transform 0.6s var(--ease);
}
.usage-bar.is-warn span {
  background: linear-gradient(90deg, #e7a531, #c47a00);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 480px) {
  .stat-row {
    gap: 12px;
  }
  .stat-row .stat-tile {
    padding: 16px;
  }
}
.stat-tile {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-tile span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}
.stat-tile .icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.stat-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 36px;
  letter-spacing: -1.4px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-tile small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.search-field {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 1 280px;
}
.search-field .icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 38px;
  width: 100%;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.report-list {
  display: grid;
  gap: 8px;
}
.report-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.report-item:hover {
  border-color: var(--line-strong);
  background: #fafbfe;
}
.report-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.report-item-vt .report-item-icon {
  background: #eceff7;
  color: var(--night-2);
}
.report-item-body {
  min-width: 0;
  flex: 1;
}
.report-item-body a,
.report-item-body strong {
  display: block;
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-item-body a:hover {
  color: var(--blue);
}
@media (max-width: 560px) {
  .report-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }
  .report-item > .button {
    flex: 1 1 100%;
    justify-content: center;
  }
  .report-item-body small {
    display: block;
    line-height: 1.6;
  }
}
.report-item-body small {
  color: var(--muted);
  font-size: 14px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: #f1f4fa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.tag-shared {
  background: #fff4dc;
  color: var(--amber);
}
.empty-state {
  margin: 0;
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.danger-zone {
  border-color: #f3d3d1;
}
.danger-zone h2 {
  color: var(--red);
}
.danger-zone p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- admin ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi-grid .stat-tile:first-child {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dark));
  border-color: var(--blue-dark);
  color: #fff;
}
.kpi-grid .stat-tile:first-child span,
.kpi-grid .stat-tile:first-child small,
.kpi-grid .stat-tile:first-child .icon {
  color: #e6ebff;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-grid-even {
  grid-template-columns: 1fr 1fr;
}
.admin-grid > * {
  min-width: 0;
}
.chart {
  position: relative;
  height: 240px;
}
.chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart .grid-line {
  stroke: #edf0f6;
  stroke-width: 1;
}
.chart .axis-label {
  fill: var(--muted);
  font-size: 12px;
}
.chart .bar {
  fill: var(--blue);
  transition: fill 0.15s;
}
.chart .bar.is-active {
  fill: var(--blue-dark);
}
.chart .bar-hit {
  fill: transparent;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--night);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px));
  box-shadow: var(--shadow-md);
}
.chart-tooltip strong {
  display: block;
  font-size: 15px;
}
.chart-table {
  margin-top: 14px;
  font-size: 14px;
}
.chart-table summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 650;
}
.table-scroll {
  overflow-x: auto;
  max-height: 320px;
}
.data-table,
.chart-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th,
.data-table td,
.chart-table th,
.chart-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.data-table th,
.chart-table th {
  color: var(--muted);
  font-weight: 650;
}
.chart-table td:not(:first-child),
.chart-table th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.kind-list,
.setup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.kind-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.kind-list li:last-child {
  border-bottom: 0;
}
.kind-list strong {
  font-variant-numeric: tabular-nums;
}
.kind-list .usage-bar {
  grid-column: 1 / -1;
  height: 6px;
}
.setup-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.setup-list li:last-child {
  border-bottom: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.status-pill .icon {
  width: 14px;
  height: 14px;
}
.status-on {
  background: var(--green-soft);
  color: var(--green);
}
.status-off {
  background: #f1f4fa;
  color: var(--muted);
}

/* ---------- other pages using new shell ---------- */

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0 64px;
  }
  .hero-visual {
    max-width: 560px;
  }
  .hero-panel {
    transform: none;
  }
  .tool-grid,
  .profile-grid,
  .admin-grid,
  .admin-grid-even,
  .seo-article {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .site-header-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14px;
  }
  .site-nav a {
    white-space: nowrap;
    padding: 8px 12px;
  }
  .site-account {
    margin-left: auto;
  }
  .hero h1 {
    letter-spacing: -1.6px;
  }
  .hero-lead {
    font-size: 17px;
  }
  .hero-actions .button {
    flex: 1 1 200px;
  }
  .hero-chip-b {
    left: 0;
  }
  .step-list {
    grid-template-columns: 1fr;
  }
  .tool-card,
  .vt-help-card {
    padding: 24px;
  }
  .lp-tools,
  .lp-steps,
  .compare,
  .vt-help,
  .faq-section,
  .seo-article {
    margin-bottom: 64px;
  }
  .panel {
    padding: 20px;
  }
  .stat-row {
    gap: 12px;
  }
  .stat-tile strong {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  .site-brand {
    font-size: 20px;
  }
  .site-account {
    padding-right: 12px;
    max-width: 150px;
  }
  .hero-chip {
    display: none;
  }
  .hero-visual {
    padding: 0;
  }
  .kpi-grid {
    gap: 10px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
  .report-item {
    padding: 12px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scanline {
    display: none;
  }
  .tool-card:hover {
    transform: none;
  }
}

/* Old global details/summary rules must not leak into new components. */
.faq-item,
.profile-tech,
.chart-table {
  border-bottom: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item[open] {
  border-bottom-color: var(--line-strong);
}
.profile-tech summary,
.chart-table summary {
  display: block;
  padding: 0;
  font-size: 15px;
}
.chart-table[open] summary {
  margin-bottom: 8px;
}

/* Risk score gauge (score-view.js) */
.score-gauge {
  --gauge: var(--muted);
  position: relative;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  color: var(--gauge);
}
.score-gauge.level-low {
  --gauge: var(--green);
}
.score-gauge.level-moderate {
  --gauge: #a86b00;
}
.score-gauge.level-elevated {
  --gauge: #c2410c;
}
.score-gauge.level-high {
  --gauge: var(--red);
}
.score-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-gauge circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}
.gauge-track {
  stroke: var(--line);
}
.gauge-value {
  stroke: currentColor;
  animation: gauge-in 0.9s var(--ease) both;
}
@keyframes gauge-in {
  from {
    stroke-dasharray: 0 264;
  }
}
.score-gauge-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.score-gauge-value strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.score-gauge-value span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.score-summary .risk-label {
  color: var(--muted);
}
@media (max-width: 480px) {
  .score-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .score-gauge {
    width: 96px;
    height: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-value {
    animation: none;
  }
}

/* Home: two-choice menu */
.home-hero {
  position: relative;
  padding: 64px 0 56px;
  text-align: center;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: -64px calc(-1 * var(--gutter)) 0;
  z-index: -1;
  background:
    radial-gradient(55% 60% at 50% 20%, rgb(58 109 255 / 14%), transparent 70%),
    linear-gradient(rgb(29 67 216 / 5%) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgb(29 67 216 / 5%) 1px, transparent 1px) 0 0 / 40px
      40px;
  mask-image: linear-gradient(180deg, #000 50%, transparent);
}
.home-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -2.2px;
  font-weight: 800;
  text-wrap: balance;
}
.home-hero .hero-lead {
  margin: 0 auto 36px;
}
.home-hero .hero-facts {
  justify-content: center;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.choice-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.choice-card:active {
  transform: translateY(0) scale(0.99);
}
.choice-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.choice-main {
  border-color: transparent;
  background: linear-gradient(150deg, var(--blue-bright), var(--blue-dark));
  color: #fff;
}
.choice-main:hover {
  border-color: transparent;
}
.choice-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
}
.choice-main .choice-icon {
  background: rgb(255 255 255 / 16%);
  color: #fff;
}
.choice-icon .icon {
  width: 26px;
  height: 26px;
}
.choice-tag {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.choice-main .choice-tag,
.choice-main .choice-text {
  color: rgb(255 255 255 / 88%);
}
.choice-title {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  font-weight: 800;
}
.choice-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.choice-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 750;
  color: var(--blue);
}
.choice-main .choice-go {
  color: #fff;
}
.choice-go .icon {
  transition: transform 0.2s var(--ease);
}
.choice-card:hover .choice-go .icon {
  transform: translateX(4px);
}

/* Phone tab bar, app-like layout */
.tab-bar {
  display: none;
}
@media (max-width: 760px), (display-mode: standalone) {
  .tab-bar {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition:
      background 0.15s,
      color 0.15s;
  }
  .tab-bar a:active {
    background: var(--blue-soft);
  }
  .tab-bar a[aria-current="page"] {
    color: var(--blue);
  }
  .tab-bar .icon {
    width: 24px;
    height: 24px;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .site-nav {
    display: none;
  }
  .install-invite {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 760px) {
  .choice-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .choice-card {
    min-height: 0;
    padding: 22px;
  }
  .choice-title {
    font-size: 26px;
  }
  .home-hero {
    padding: 32px 0 36px;
  }
}
@media (display-mode: standalone) {
  .site-footer {
    display: none;
  }
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
}

#form-message.is-info {
  border-left-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.handoff-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fff8e8;
  color: #5c3d00;
  font-size: 14px;
  line-height: 1.45;
}
.handoff-hint span {
  flex: 1 1 240px;
}
.handoff-hint a {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.handoff-hint a:hover {
  background: var(--blue-dark);
}
