/*
 * Sitelemetry premium finish layer.
 * Loaded last and scoped by page type so behavior stays in the product modules.
 */

/* --------------------------------------------------------------------------
   Application foundation
   -------------------------------------------------------------------------- */

body.suite-app {
  --bg: #f1f4f2;
  --bg-soft: #e9eeeb;
  --panel: #ffffff;
  --panel-soft: #f6f8f7;
  --line: #dce3df;
  --line-strong: #cbd5d0;
  --text: #101512;
  --muted: #68756f;
  --muted-strong: #34413b;
  --accent: #0d7f5c;
  --accent-dark: #096a4c;
  --accent-soft: #e3f6ee;
  --on-accent: #ffffff;
  --sidebar-bg: #0b0f0d;
  --surface-inset: #edf1ef;
  --ring-track: #dfe6e2;
  --accent-ring: rgba(13, 127, 92, .2);
  --premium-cyan: #2f8dab;
  --premium-violet: #7965b5;
  --premium-gold: #b07b18;
  --premium-line: rgba(98, 245, 187, .12);
  --e-1: 0 1px 2px rgba(16, 28, 21, .05), inset 0 1px 0 rgba(255, 255, 255, .65);
  --e-2: 0 8px 24px rgba(16, 28, 21, .07), inset 0 1px 0 rgba(255, 255, 255, .7);
  --e-3: 0 18px 52px rgba(16, 28, 21, .1), inset 0 1px 0 rgba(255, 255, 255, .72);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(15, 43, 31, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 43, 31, .026) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 420px);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-attachment: fixed;
}

body.suite-app[data-theme="dark"] {
  --bg: #090c0b;
  --bg-soft: #070908;
  --panel: #101413;
  --panel-soft: #151a18;
  --line: #232b28;
  --line-strong: #303a36;
  --text: #f1f5f2;
  --muted: #8e9a95;
  --muted-strong: #c4cdc9;
  --accent: #62f5bb;
  --accent-dark: #8affcd;
  --accent-soft: rgba(98, 245, 187, .1);
  --on-accent: #0a1712;
  --sidebar-bg: #080b0a;
  --surface-inset: #0c100f;
  --ring-track: #242c29;
  --accent-ring: rgba(98, 245, 187, .22);
  --premium-cyan: #70d8ff;
  --premium-violet: #bba7ff;
  --premium-gold: #ffd75e;
  --premium-line: rgba(98, 245, 187, .13);
  --e-1: 0 1px 2px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .035);
  --e-2: 0 10px 30px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .045);
  --e-3: 0 24px 70px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .05);
  background-image:
    linear-gradient(rgba(98, 245, 187, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 245, 187, .018) 1px, transparent 1px),
    linear-gradient(180deg, #070908 0, #090c0b 420px);
}

body.suite-app::selection {
  background: var(--accent);
  color: var(--on-accent);
}

body.suite-app::-webkit-scrollbar,
body.suite-app *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.suite-app::-webkit-scrollbar-track,
body.suite-app *::-webkit-scrollbar-track {
  background: transparent;
}

body.suite-app::-webkit-scrollbar-thumb,
body.suite-app *::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 42%, transparent);
  background-clip: padding-box;
}

body.suite-app a,
body.suite-app button,
body.suite-app input,
body.suite-app select,
body.suite-app textarea {
  -webkit-tap-highlight-color: transparent;
}

body.suite-app .app-layout {
  grid-template-columns: 258px minmax(0, 1fr);
}

/* --------------------------------------------------------------------------
   Navigation and command bar
   -------------------------------------------------------------------------- */

body.suite-app .side-nav {
  padding: 22px 13px 0;
  border-right-color: rgba(255, 255, 255, .075);
  background:
    linear-gradient(180deg, rgba(98, 245, 187, .035), transparent 180px),
    var(--sidebar-bg);
  overflow: hidden;
}

body.suite-app .brand-block {
  position: relative;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  margin: 0 3px 21px;
  padding: 7px 9px;
}

body.suite-app .brand-block::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 20px;
  height: 20px;
  border: 1px solid #3b4843;
  border-radius: 5px;
  background:
    radial-gradient(circle at center, #62f5bb 0 2px, transparent 2.5px),
    radial-gradient(circle at center, transparent 0 6px, rgba(98, 245, 187, .5) 6.5px 7.5px, transparent 8px),
    linear-gradient(#62f5bb, #62f5bb) 50% 0 / 1px 4px no-repeat,
    linear-gradient(#62f5bb, #62f5bb) 50% 100% / 1px 4px no-repeat,
    linear-gradient(90deg, #62f5bb, #62f5bb) 0 50% / 4px 1px no-repeat,
    linear-gradient(90deg, #62f5bb, #62f5bb) 100% 50% / 4px 1px no-repeat,
    var(--sidebar-bg);
  box-shadow: 0 0 18px rgba(98, 245, 187, .12);
}

body.suite-app .brand-block span,
body.suite-app .brand-block strong {
  grid-column: 2;
  letter-spacing: 0;
}

body.suite-app .brand-block span {
  color: #62f5bb;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

body.suite-app .brand-block strong {
  font-size: 17px;
  font-weight: 650;
}

body.suite-app .side-nav nav {
  flex: 1 1 auto;
  min-height: 0;
  gap: 2px;
  grid-auto-rows: max-content;
  align-content: start;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #33403b transparent;
}

body.suite-app .nav-group-label {
  margin: 17px 12px 5px;
  color: #66726d;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

body.suite-app .nav-item {
  min-height: 53px;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 3px;
  padding: 9px 11px 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c1cbc6;
}

body.suite-app .nav-item span {
  min-width: 0;
  font-size: 13px;
  font-weight: 620;
}

body.suite-app .nav-item small {
  min-width: 0;
  color: #717e78;
  font-size: 10.5px;
  line-height: 1.3;
}

body.suite-app .nav-item:not(.active):hover {
  border-color: rgba(255, 255, 255, .055);
  background: rgba(255, 255, 255, .038);
}

body.suite-app .nav-item.active {
  border-color: rgba(98, 245, 187, .16);
  background: linear-gradient(90deg, rgba(98, 245, 187, .13), rgba(98, 245, 187, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.suite-app .nav-item.active::before {
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: #62f5bb;
  box-shadow: 0 0 12px rgba(98, 245, 187, .4);
}

body.suite-app .nav-item.active small {
  color: #aebbb5;
}

body.suite-app .side-account {
  margin-top: auto;
  border-top-color: rgba(255, 255, 255, .075);
  background: rgba(255, 255, 255, .018);
}

body.suite-app .side-account:hover {
  background: rgba(98, 245, 187, .055);
}

body.suite-app .side-account .account-avatar {
  border: 1px solid rgba(98, 245, 187, .2);
  background: rgba(98, 245, 187, .1);
  color: #8affcd;
}

body.suite-app .shell {
  width: min(1580px, 100%);
  margin-inline: auto;
  padding: 24px clamp(18px, 2.4vw, 38px) 56px;
}

body.suite-app .suitebar {
  position: relative;
  top: auto;
  z-index: 24;
  min-height: 68px;
  margin-bottom: 20px;
  padding: 11px 12px 11px 18px;
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--e-2);
  backdrop-filter: blur(18px) saturate(130%);
}

body.suite-app .suite-copy .eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

body.suite-app .suite-copy h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: 0;
}

body.suite-app .plan-pill {
  min-height: 40px;
  border-radius: 6px;
  padding: 4px 4px 4px 12px;
  box-shadow: none;
}

body.suite-app .plan-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 26px color-mix(in srgb, var(--accent) 12%, transparent);
}

body.suite-app .plan-pill-cta {
  min-height: 30px;
  border-radius: 4px;
  padding: 6px 12px;
  box-shadow: none;
}

body.suite-app .suite-utils {
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-inset) 82%, transparent);
}

body.suite-app .suite-utils select,
body.suite-app .suite-utils .util-btn {
  min-height: 39px;
  font-size: 12px;
  font-weight: 620;
}

/* --------------------------------------------------------------------------
   Workspace surfaces and controls
   -------------------------------------------------------------------------- */

body.suite-app .workspace {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 2vw, 25px);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--e-1);
}

body.suite-app .workspace::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--premium-cyan) 55%, transparent), transparent 74%);
  opacity: .62;
}

body.suite-app .results {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.suite-app[data-theme="dark"] .results {
  border-color: transparent;
  background: transparent;
}

body.suite-app .topbar {
  align-items: flex-start;
  margin-bottom: 20px;
}

body.suite-app .topbar .eyebrow,
body.suite-app .section-head > span,
body.suite-app .kpi-eyebrow,
body.suite-app .home-contract dt,
body.suite-app .account-details dt {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.suite-app .topbar h1 {
  margin-top: 4px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: 0;
}

body.suite-app .topbar h1:focus-visible {
  border-radius: 3px;
  outline: 2px solid color-mix(in srgb, var(--accent) 52%, transparent);
  outline-offset: 4px;
}

body.suite-app .status {
  min-width: 132px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

body.suite-app .field {
  gap: 7px;
}

body.suite-app .field > span,
body.suite-app .field > label {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 620;
}

body.suite-app input[type="text"],
body.suite-app input[type="number"],
body.suite-app input[type="email"],
body.suite-app input[type="password"],
body.suite-app select,
body.suite-app textarea {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 6px;
  background: var(--surface-inset);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .035);
}

body.suite-app input::placeholder,
body.suite-app textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

body.suite-app input:hover,
body.suite-app select:hover,
body.suite-app textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line-strong));
}

body.suite-app input:focus,
body.suite-app select:focus,
body.suite-app textarea:focus {
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--accent-ring), inset 0 1px 1px rgba(0, 0, 0, .02);
}

body.suite-app button {
  border-radius: 6px;
  font-weight: 620;
  letter-spacing: 0;
}

body.suite-app button[type="submit"],
body.suite-app .primary-action {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 16%, transparent);
}

body.suite-app button[type="submit"]:not(:disabled):hover,
body.suite-app .primary-action:not(:disabled):hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  box-shadow: 0 11px 28px color-mix(in srgb, var(--accent) 21%, transparent);
  transform: translateY(-1px);
}

body.suite-app[data-theme="dark"] button[type="submit"]:not(:disabled):hover,
body.suite-app[data-theme="dark"] .primary-action:not(:disabled):hover {
  background: #8affcd;
}

body.suite-app input[type="checkbox"],
body.suite-app input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

body.suite-app .modules {
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.suite-app[data-theme="dark"] .modules {
  border-color: transparent;
  background: transparent;
}

body.suite-app .modules label {
  min-height: 76px;
  border-color: var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  box-shadow: none;
  cursor: pointer;
}

body.suite-app .modules label:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 34%, var(--panel-soft));
}

body.suite-app .modules label:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 52%, var(--panel-soft));
  box-shadow: inset 2px 0 0 var(--accent);
}

body.suite-app .module-copy strong {
  font-size: 13px;
  font-weight: 620;
}

body.suite-app .module-copy small {
  font-size: 11px;
}

body.suite-app .toggles,
body.suite-app .seo-toggles,
body.suite-app .ai-toggles {
  gap: 9px 18px;
  padding-top: 2px;
}

body.suite-app .progress-panel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-inset);
}

body.suite-app .progress-track {
  height: 6px;
  background: var(--line);
}

body.suite-app .progress-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent), var(--premium-cyan));
}

body.suite-app .progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 24%, rgba(255, 255, 255, .42) 48%, transparent 72%);
  transform: translateX(-100%);
  animation: premium-progress 1.7s linear infinite;
}

body.suite-app .progress-log {
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
}

body.suite-app .progress-log li {
  border-top-color: color-mix(in srgb, var(--line) 72%, transparent);
}

@keyframes premium-progress {
  to { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   Dashboard, KPI and portfolio hierarchy
   -------------------------------------------------------------------------- */

body.suite-app .dashboard-results {
  gap: 26px;
}

body.suite-app .home-hero {
  gap: 22px;
  border-color: var(--line);
  border-radius: 8px;
  padding: clamp(19px, 2.2vw, 28px);
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--accent-soft) 50%, var(--panel)), var(--panel) 54%),
    var(--panel);
  box-shadow: var(--e-2);
}

body.suite-app .home-hero-copy .eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

body.suite-app .home-hero-copy h2 {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 640;
  letter-spacing: 0;
}

body.suite-app .home-contract {
  border-color: var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel-soft) 82%, transparent);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--premium-cyan) 72%, var(--accent));
}

body.suite-app .score-ring {
  filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--tone, var(--accent)) 18%, transparent));
}

body.suite-app .score-ring::before {
  box-shadow: inset 0 0 0 1px var(--line), inset 0 10px 32px color-mix(in srgb, var(--accent-soft) 16%, transparent);
}

body.suite-app .dashboard-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.suite-app .kpi-tile {
  min-height: 118px;
  border-radius: 6px;
  padding: 17px 17px 16px 19px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--e-1);
}

body.suite-app .kpi-tile::before {
  width: 2px;
}

body.suite-app .kpi-tile:nth-child(2)::before { background: var(--premium-cyan); }
body.suite-app .kpi-tile:nth-child(3)::before { background: var(--premium-violet); }
body.suite-app .kpi-tile:nth-child(4)::before { background: var(--premium-gold); }

body.suite-app .kpi-tile strong {
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 620;
  letter-spacing: 0;
}

body.suite-app .usage-meter {
  height: 4px;
  border-radius: 0;
}

body.suite-app .dashboard-section {
  gap: 13px;
  padding-top: 2px;
}

body.suite-app .section-head {
  align-items: end;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

body.suite-app .section-head h2 {
  font-size: 16px;
  font-weight: 640;
}

body.suite-app .section-head > span {
  color: var(--muted);
  text-align: right;
}

body.suite-app .data-table-wrap {
  border-radius: 6px;
  box-shadow: var(--e-1);
}

body.suite-app .data-table thead th,
body.suite-app .gsc-table thead th {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--panel-soft);
}

body.suite-app .data-table td {
  padding-block: 13px;
}

body.suite-app .data-table tbody tr,
body.suite-app .gsc-table tbody tr {
  transition: background-color .14s ease, box-shadow .14s ease;
}

body.suite-app .data-table tbody tr:hover,
body.suite-app .gsc-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent-soft) 38%, transparent);
  box-shadow: inset 2px 0 0 var(--accent);
}

body.suite-app .project-grid {
  gap: 10px;
}

body.suite-app .project-card {
  gap: 13px;
  padding: 17px;
  border-top-width: 2px;
  border-radius: 6px;
  box-shadow: var(--e-1);
}

body.suite-app .project-head h3 {
  font-size: 18px;
  font-weight: 640;
}

body.suite-app .project-matrix span,
body.suite-app .project-riskline span {
  border-radius: 5px;
  background: var(--panel-soft);
}

body.suite-app .project-actions {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

body.suite-app .audit-row,
body.suite-app .audit-job {
  border-radius: 6px;
  box-shadow: var(--e-1);
}

body.suite-app .empty-state {
  min-height: 104px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-soft) 35%, transparent), transparent),
    var(--panel-soft);
}

/* --------------------------------------------------------------------------
   Reports, filters and findings
   -------------------------------------------------------------------------- */

body.suite-app .summary-grid {
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 8px;
}

body.suite-app .summary-card {
  min-height: 86px;
  border-radius: 6px;
  box-shadow: none;
}

body.suite-app .summary-card strong {
  font-size: 29px;
  font-weight: 620;
}

body.suite-app .summary-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--e-1);
}

body.suite-app .summary-card.active {
  box-shadow: inset 0 -2px 0 var(--accent), var(--e-1);
}

body.suite-app .detail-toggle-panel {
  margin-top: 13px;
}

body.suite-app .detail-report {
  margin-top: 18px;
  padding-top: 18px;
}

body.suite-app .overview-panel,
body.suite-app .seo-overview {
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--e-2);
}

body.suite-app[data-theme="dark"] .overview-panel,
body.suite-app[data-theme="dark"] .seo-overview {
  background: var(--panel);
}

body.suite-app .overview-hero,
body.suite-app .ai-module-hero {
  background: color-mix(in srgb, var(--tone-bg, var(--accent-soft)) 32%, var(--panel));
}

body.suite-app .overview-kpis,
body.suite-app .seo-kpis,
body.suite-app .overview-detail-grid,
body.suite-app .seo-detail-grid {
  gap: 9px;
}

body.suite-app .kpi-card,
body.suite-app .ai-metric {
  min-height: 102px;
  border-radius: 6px;
}

body.suite-app .kpi-card strong,
body.suite-app .ai-metric strong {
  font-size: 21px;
  font-weight: 620;
}

body.suite-app .module-board,
body.suite-app .seo-groups,
body.suite-app .ai-card-grid {
  gap: 10px;
}

body.suite-app .module-card,
body.suite-app .seo-group-card,
body.suite-app .ai-check-card {
  border-top-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--e-1);
}

body.suite-app .module-card:hover,
body.suite-app .seo-group-card:hover,
body.suite-app .ai-check-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--e-2);
}

body.suite-app .module-card-head span,
body.suite-app .result-group-head span,
body.suite-app .pentest-control span,
body.suite-app .score-copy > span,
body.suite-app .target-chip span,
body.suite-app .kpi-card span,
body.suite-app .ai-module-hero span,
body.suite-app .ai-metric span {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

body.suite-app .module-card-head strong,
body.suite-app .result-group-head strong,
body.suite-app .pentest-control > strong,
body.suite-app .badge,
body.suite-app .check-badge,
body.suite-app .ai-status {
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

body.suite-app .module-metrics span,
body.suite-app .pentest-standards span,
body.suite-app .pentest-phases div,
body.suite-app .pentest-control {
  border-radius: 5px;
}

body.suite-app .result-group {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.suite-app[data-theme="dark"] .result-group {
  border-color: transparent;
  background: transparent;
}

body.suite-app .result-group-head {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.suite-app .finding,
body.suite-app .check,
body.suite-app .seo-finding {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--e-1);
}

body.suite-app .finding::before,
body.suite-app .check::before,
body.suite-app .seo-finding::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--info);
}

body.suite-app .finding:has(.badge.critical)::before { background: var(--critical); }
body.suite-app .finding:has(.badge.high)::before { background: var(--high); }
body.suite-app .finding:has(.badge.medium)::before { background: var(--medium); }
body.suite-app .finding:has(.badge.low)::before { background: var(--low); }
body.suite-app .check.ok::before { background: var(--ok); }
body.suite-app .check.skipped::before { background: var(--info); }

body.suite-app .finding:hover,
body.suite-app .check:hover,
body.suite-app .seo-finding:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  box-shadow: var(--e-2);
}

body.suite-app .finding h2,
body.suite-app .seo-finding h2 {
  font-size: 16px;
  font-weight: 640;
}

body.suite-app .check h3 {
  font-size: 14px;
  font-weight: 640;
}

body.suite-app .finding-fix {
  border-radius: 5px;
}

body.suite-app .ai-tabs {
  gap: 16px;
}

body.suite-app .ai-tab {
  min-height: 44px;
  padding-inline: 2px;
  border-radius: 0;
}

body.suite-app .ai-prompt-row,
body.suite-app .crawl-row {
  transition: background-color .14s ease;
}

body.suite-app .ai-prompt-row:not(.head):hover,
body.suite-app .crawl-row:not(.head):hover {
  background: color-mix(in srgb, var(--accent-soft) 34%, transparent);
}

/* --------------------------------------------------------------------------
   Account, admin, dialogs and notifications
   -------------------------------------------------------------------------- */

body.suite-app .account-hero-avatar {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--accent-soft) 55%, transparent), var(--e-1);
}

body.suite-app .account-chip {
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

body.suite-app .account-details {
  gap: 10px;
}

body.suite-app .account-details div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

body.suite-app .plan-grid,
body.suite-app .admin-plan-grid,
body.suite-app .admin-hook-grid,
body.suite-app .admin-kpi-grid {
  gap: 10px;
}

body.suite-app .plan-card,
body.suite-app .admin-plan-card,
body.suite-app .admin-hook-card,
body.suite-app .admin-kpi,
body.suite-app .admin-user-card,
body.suite-app .admin-event-row,
body.suite-app .connection-row,
body.suite-app .gsc-panel,
body.suite-app .gsc-dist,
body.suite-app .gsc-trend {
  border-radius: 6px;
  box-shadow: var(--e-1);
}

body.suite-app .plan-card {
  border-top-width: 2px;
}

body.suite-app .plan-card.active,
body.suite-app .admin-plan-card.active {
  box-shadow: inset 0 2px 0 var(--accent), var(--e-2);
}

body.suite-app .admin-section + .admin-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

body.suite-app .admin-user-card:hover,
body.suite-app .admin-event-row:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 24%, var(--panel));
}

body.suite-app .modal-backdrop {
  z-index: 100;
  background: color-mix(in srgb, #060908 70%, transparent);
  backdrop-filter: blur(10px) saturate(80%);
}

body.suite-app .upgrade-modal,
body.suite-app .ai-prompt-modal {
  border-radius: 8px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.suite-app .upgrade-modal::before,
body.suite-app .ai-prompt-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--premium-cyan), var(--premium-violet));
}

body.suite-app .modal-close {
  border-radius: 5px;
}

body.suite-app .toast {
  border-left-width: 2px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 93%, transparent);
  box-shadow: var(--e-3);
  backdrop-filter: blur(14px);
}

body.suite-app .toast-icon {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Login continuity
   -------------------------------------------------------------------------- */

body.suite-app .auth-shell {
  border-color: rgba(255, 255, 255, .13);
  border-radius: 8px;
  box-shadow: 0 38px 120px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .045);
}

body.suite-app .auth-hero {
  border-right-color: rgba(98, 245, 187, .13);
}

body.suite-app .auth-logo-mark {
  box-shadow: 0 0 24px rgba(98, 245, 187, .12);
}

body.suite-app .auth-telemetry-row {
  transition: background-color .16s ease, border-color .16s ease;
}

body.suite-app .auth-telemetry-row:hover {
  border-color: rgba(98, 245, 187, .12);
  background: rgba(98, 245, 187, .028);
}

body.suite-app .auth-form-side {
  position: relative;
}

body.suite-app .auth-form-side::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #0d7f5c, #2f8dab, transparent 72%);
}

body.suite-app .auth-hero .auth-language-select {
  border-color: #252c2a;
  background: #0d1110;
  color: #cbd5d0;
  color-scheme: dark;
}

body.suite-app .auth-mobile-head .auth-language-select {
  border-color: #cbd1cb;
  background: #e8ece8;
  color: #35403b;
  color-scheme: light;
}

body.suite-app .auth-screen .login-form > button[type="submit"] span:last-child {
  transition: transform .18s ease;
}

body.suite-app .auth-screen .login-form > button[type="submit"]:hover span:last-child {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Locale resilience
   -------------------------------------------------------------------------- */

html:lang(ja) body.suite-app {
  --font-sans: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-mono: "Noto Sans Mono CJK JP", "Yu Gothic UI", Meiryo, monospace;
  line-break: strict;
}

html:lang(zh) body.suite-app {
  --font-sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
  --font-mono: "Noto Sans Mono CJK SC", "Microsoft YaHei UI", "Microsoft YaHei", monospace;
  line-break: strict;
}

html:lang(ja) body.suite-app .nav-group-label,
html:lang(zh) body.suite-app .nav-group-label,
html:lang(ja) body.suite-app .suite-copy .eyebrow,
html:lang(zh) body.suite-app .suite-copy .eyebrow,
html:lang(ja) body.suite-app .topbar .eyebrow,
html:lang(zh) body.suite-app .topbar .eyebrow {
  text-transform: none;
  line-height: 1.5;
}

html:lang(de) body.suite-app .nav-item,
html:lang(fr) body.suite-app .nav-item,
html:lang(pt) body.suite-app .nav-item,
html:lang(it) body.suite-app .nav-item,
html:lang(es) body.suite-app .nav-item {
  min-height: 56px;
}

/* --------------------------------------------------------------------------
   Responsive application
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  body.suite-app .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.suite-app .app-layout {
    grid-template-columns: 1fr;
  }

  body.suite-app .side-nav {
    padding: 9px max(12px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left));
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
  }

  body.suite-app .brand-block {
    margin: 0;
    padding: 4px 7px;
  }

  body.suite-app .brand-block span {
    display: none;
  }

  body.suite-app .brand-block::before {
    grid-row: 1;
  }

  body.suite-app .brand-block strong {
    grid-row: 1;
    font-size: 14px;
  }

  body.suite-app .side-nav nav {
    flex: none;
    min-height: 0;
    gap: 2px;
    grid-auto-rows: max-content;
    align-content: start;
    padding: 8px 8px max(12px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  body.suite-app .nav-item {
    min-height: 54px;
  }

  body.suite-app .suitebar {
    top: auto;
  }
}

@media (max-width: 680px) {
  body.suite-app {
    background-size: 36px 36px, 36px 36px, 100% 100%;
  }

  body.suite-app .shell {
    padding: 10px 10px 38px;
  }

  body.suite-app .suitebar {
    margin-bottom: 12px;
    padding: 8px;
  }

  body.suite-app .suite-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  body.suite-app .plan-pill {
    width: 100%;
    justify-content: space-between;
  }

  body.suite-app .suite-utils {
    width: 100%;
  }

  body.suite-app .suite-utils > * {
    flex: 1 1 0;
    min-width: 0;
  }

  body.suite-app .suite-utils select,
  body.suite-app .suite-utils .util-btn {
    width: 100%;
    padding-inline: 8px;
    white-space: normal;
  }

  body.suite-app .workspace {
    padding: 16px;
  }

  body.suite-app .topbar h1 {
    font-size: 24px;
  }

  body.suite-app .status {
    width: 100%;
  }

  body.suite-app .dashboard-kpis,
  body.suite-app .summary-grid {
    grid-template-columns: 1fr;
  }

  body.suite-app .kpi-tile {
    min-height: 104px;
  }

  body.suite-app .home-hero-main {
    justify-items: start;
  }

  body.suite-app .home-contract {
    width: 100%;
  }

  body.suite-app .section-head {
    align-items: flex-start;
  }

  body.suite-app .section-head > span {
    text-align: left;
  }

  body.suite-app .project-actions,
  body.suite-app .ai-prompt-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.suite-app .project-actions button,
  body.suite-app .ai-prompt-actions button {
    width: 100%;
  }

  body.suite-app .toast-region {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

/* --------------------------------------------------------------------------
   Landing page finish
   -------------------------------------------------------------------------- */

body.landing-site {
  scrollbar-color: #34403b #090b0b;
}

body.landing-site::-webkit-scrollbar {
  width: 10px;
}

body.landing-site::-webkit-scrollbar-track {
  background: #090b0b;
}

body.landing-site::-webkit-scrollbar-thumb {
  border: 3px solid #090b0b;
  border-radius: 999px;
  background: #46534d;
}

body.landing-site .site-nav::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(98, 245, 187, .24), transparent 95%);
  opacity: 0;
  transition: opacity .25s ease;
}

body.landing-site .site-nav.scrolled::after {
  opacity: 1;
}

body.landing-site .brand-mark {
  box-shadow: 0 0 24px rgba(98, 245, 187, .1);
}

body.landing-site .button {
  position: relative;
  overflow: hidden;
}

body.landing-site .button-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .48) 49%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

body.landing-site .button-primary:hover::before {
  transform: translateX(120%);
}

body.landing-site .product-stage {
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}

body.landing-site .product-stage:hover {
  border-color: #34443e;
  box-shadow: 0 36px 110px rgba(0, 0, 0, .48), 0 0 0 1px rgba(98, 245, 187, .045);
  transform: perspective(1400px) rotateX(.6deg) translateY(-3px);
}

body.landing-site .module-tab,
body.landing-site .plan-card,
body.landing-site .outcome-item,
body.landing-site .assurance-row {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

body.landing-site .module-tab:hover {
  background: rgba(98, 245, 187, .035);
  color: #dfe7e3;
}

body.landing-site .outcome-item:hover {
  background: rgba(13, 127, 92, .045);
}

body.landing-site .assurance-row:hover {
  background: rgba(98, 245, 187, .022);
}

body.landing-site .pricing-grid {
  box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

body.landing-site .plan-card:hover {
  transform: translateY(-3px);
}

body.landing-site .engine-rail,
body.landing-site .intelligence-console,
body.landing-site .pricing-grid,
body.landing-site .footer-top {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
}

@media (max-width: 720px) {
  body.landing-site .product-stage:hover,
  body.landing-site .plan-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.suite-app .progress-bar::after,
  body.landing-site .button-primary::before {
    animation: none;
    transition: none;
  }

  body.landing-site .product-stage:hover,
  body.landing-site .plan-card:hover,
  body.suite-app .summary-card:hover,
  body.suite-app .module-card:hover,
  body.suite-app .seo-group-card:hover,
  body.suite-app .ai-check-card:hover {
    transform: none;
  }
}
