:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #0b1020;
  --surface: #151719;
  --surface-2: #1d2024;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f7fb;
  --muted: #a7b1c0;
  --soft: #758095;
  --blue: #4587ff;
  --blue-2: #72a8ff;
  --green: #62d58f;
  --yellow: #f5bf42;
  --red: #ff6262;
  --violet: #a985ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --max: 1160px;
  font-family:
    Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(105deg, transparent 0 48%, rgba(82, 142, 255, 0.08) 49%, transparent 51% 100%),
    radial-gradient(circle at 50% 18%, rgba(34, 96, 211, 0.28), transparent 34rem),
    radial-gradient(circle at 84% 7%, rgba(68, 176, 255, 0.12), transparent 22rem),
    linear-gradient(180deg, #07101e 0%, var(--bg) 34rem, #07090d 100%);
  color: var(--text);
}

body:not(.report-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: none;
}

body:not(.report-page) .topbar,
body:not(.report-page) main,
body:not(.report-page) .footer {
  position: relative;
  z-index: 1;
}

body.light {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-2: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --line: rgba(20, 30, 52, 0.12);
  --line-strong: rgba(20, 30, 52, 0.18);
  --text: #111827;
  --muted: #4b5565;
  --soft: #687386;
  --shadow: 0 24px 80px rgba(24, 39, 75, 0.14);
  background:
    radial-gradient(circle at 50% 18%, rgba(69, 135, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, #f6f9ff 0%, #ffffff 42rem, #f8fafc 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

body.modal-open,
body.image-lightbox-open {
  overflow: hidden;
}

button:disabled,
.primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.35);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 24px;
  background: rgba(29, 31, 36, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

body.light .topbar {
  background: rgba(255, 255, 255, 0.82);
}

.brand,
.nav,
.top-actions,
.hero-actions,
.prompt-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 170px;
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(69, 135, 255, 0.55);
}

.chart-mark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 2px;
  padding: 3px;
}

.chart-mark i {
  display: block;
  width: 100%;
  border-radius: 2px;
}

.chart-mark i:nth-child(1) {
  height: 7px;
  background: #1877f2;
}

.chart-mark i:nth-child(2) {
  height: 10px;
  background: #ffdc3d;
}

.chart-mark i:nth-child(3) {
  height: 13px;
  background: #34a853;
}

.chart-mark i:nth-child(4) {
  height: 16px;
  background: #ff4f8b;
}

.nav {
  gap: 20px;
  justify-content: flex-end;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-icon .logo {
  width: 18px;
  height: 18px;
}

.nav-icon.double-logo {
  width: 28px;
  gap: 2px;
}

.nav-icon.double-logo .logo {
  width: 17px;
  height: 17px;
}

.nav-icon.home .brand-mark {
  width: 18px;
  height: 18px;
  box-shadow: none;
}

.nav-icon.contact-dot {
  border-radius: 50%;
  border: 1px solid rgba(104, 168, 255, 0.34);
  background:
    radial-gradient(circle at 50% 34%, #72a8ff 0 3px, transparent 4px),
    radial-gradient(circle at 50% 78%, #62d58f 0 6px, transparent 7px);
}

.nav a:hover,
.ghost-link:hover {
  color: var(--text);
}

.top-actions {
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s ease;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(76vw, 360px);
  min-width: min(320px, 92vw);
  height: 100vh;
  padding: 18px;
  color: #f4f7fb;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 135, 255, 0.18), transparent 18rem),
    #05070b;
  box-shadow: 34px 0 80px rgba(0, 0, 0, 0.46);
  transform: translateX(-105%);
  transition: transform 0.24s ease;
}

.mobile-menu-open .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.62);
}

.mobile-menu-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.06);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-links {
  display: grid;
  gap: 9px;
  padding: 20px 0;
}

.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.055);
  font-size: 14px;
  font-weight: 800;
}

.mobile-menu-links .nav-icon {
  width: 22px;
  height: 22px;
}

.mobile-menu-links .nav-icon .logo {
  width: 22px;
  height: 22px;
}

.mobile-menu-links .nav-icon.double-logo {
  width: 36px;
}

.mobile-menu-contact {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 16px;
  background: rgba(104, 168, 255, 0.08);
}

.mobile-menu-contact span,
.mobile-menu-contact strong {
  display: block;
}

.mobile-menu-contact span {
  color: #72a8ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-menu-contact strong {
  margin-top: 7px;
  color: #f4f7fb;
  font-size: 13px;
  line-height: 1.35;
}

.source-mini-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.045);
}

.source-mini-nav a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  min-height: 34px;
  padding: 3px 6px 2px;
  color: var(--muted);
  border-radius: 14px;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

.source-mini-nav .logo {
  width: 16px;
  height: 16px;
}

.source-mini-nav .logo.direct::before {
  font-size: 9px;
}

.source-mini-nav .logo.fb::before,
.source-mini-nav .logo.tt::before {
  font-size: 12px;
}

.source-mini-nav .mini-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
}

.source-mini-nav .double-logo {
  gap: 1px;
}

.source-mini-nav .double-logo .logo {
  width: 14px;
  height: 14px;
}

.source-mini-nav b {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: #fff;
  border-radius: 999px;
  background: #ff5757;
  font-size: 9px;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(16, 17, 19, 0.92);
}

.source-mini-nav a.connected b {
  background: var(--green);
}

.source-mini-nav a.action b {
  color: #1f1600;
  background: var(--yellow);
}

.source-mini-nav a.pending b {
  background: var(--blue);
}

.source-mini-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.source-mini-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.lang-switch {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch button {
  min-width: 34px;
  min-height: 26px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.lang-switch button.active {
  color: #fff;
  background: rgba(69, 135, 255, 0.95);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 176px;
  height: 38px;
  padding: 0 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.search-box svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.search-box input {
  min-height: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search-box kbd {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-link {
  color: var(--muted);
  font-size: 14px;
}

.primary,
.secondary,
.scan-button,
.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 620;
}

.primary,
.scan-button,
.connect-button {
  color: #ffffff;
  background: linear-gradient(135deg, #0a57ff, #68a8ff);
  box-shadow: 0 14px 38px rgba(69, 135, 255, 0.35);
}

.primary.small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(560px, 1.16fr);
  gap: 44px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 44px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -18% auto auto;
  width: min(760px, 58vw);
  height: min(520px, 44vw);
  opacity: 0.75;
  background:
    linear-gradient(118deg, transparent 0 41%, rgba(82, 142, 255, 0.22) 42% 43%, transparent 44% 100%),
    linear-gradient(118deg, transparent 0 53%, rgba(98, 213, 143, 0.16) 54% 55%, transparent 56% 100%),
    linear-gradient(118deg, transparent 0 65%, rgba(255, 220, 61, 0.14) 66% 67%, transparent 68% 100%);
  filter: blur(0.2px);
  animation: diagonalFlow 6s linear infinite;
  pointer-events: none;
}

@keyframes diagonalFlow {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-26px, 18px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.light-rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.light-rays span {
  position: absolute;
  top: 18%;
  left: 40%;
  width: 1px;
  height: 620px;
  background: linear-gradient(180deg, transparent, rgba(104, 168, 255, 0.45), transparent);
  filter: blur(0.4px);
  transform: rotate(67deg);
  animation: heroRay 7s linear infinite;
  opacity: 0.42;
}

.light-rays span:nth-child(2) {
  top: 10%;
  left: 55%;
  animation-delay: -2.4s;
  opacity: 0.28;
}

.light-rays span:nth-child(3) {
  top: 30%;
  left: 28%;
  animation-delay: -4.2s;
  opacity: 0.2;
}

@keyframes heroRay {
  0% {
    translate: -460px 170px;
    opacity: 0;
  }
  22% {
    opacity: 0.42;
  }
  100% {
    translate: 480px -170px;
    opacity: 0;
  }
}

.hero-copy {
  padding-top: 8px;
  min-width: 0;
}

.hero > * {
  min-width: 0;
}

.notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  color: #dce9ff;
  border: 1px solid rgba(91, 151, 255, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(24, 119, 242, 0.18), rgba(5, 9, 18, 0.42)),
    rgba(6, 33, 76, 0.52);
  box-shadow:
    inset 0 0 24px rgba(69, 135, 255, 0.1),
    0 14px 44px rgba(10, 87, 255, 0.12);
  font-size: 14px;
  line-height: 1.25;
}

.notice-label {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 24px;
  color: #ffffff;
  background: rgba(69, 135, 255, 0.95);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notice-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notice svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 560px;
  margin: 72px 0 20px;
  font-size: clamp(46px, 5.3vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  width: 100%;
  max-width: 560px;
  color: #d6dbe5;
  font-size: 18px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

body.light .lead,
body.light .notice {
  color: var(--muted);
}

body.light .notice {
  color: #1f2937;
  background:
    linear-gradient(135deg, rgba(69, 135, 255, 0.14), rgba(255, 255, 255, 0.86)),
    #ffffff;
  border-color: rgba(69, 135, 255, 0.28);
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-actions button.secondary {
  min-height: 48px;
}

.quick-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-path span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 650;
}

.value-steps {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  max-width: 540px;
}

.value-steps article {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 13px 14px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.value-steps article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green), #ffdc3d);
}

.value-steps strong {
  font-size: 14px;
}

.value-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 0.82fr);
  gap: 44px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 46px 0 64px;
}

.home-rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.home-rays span {
  position: absolute;
  top: 6%;
  right: -12%;
  width: 120px;
  height: 760px;
  border-radius: 999px;
  transform: rotate(25deg);
  filter: blur(6px);
  opacity: 0.45;
  animation: raySlide 5.8s ease-in-out infinite;
}

.home-rays span:nth-child(1) { background: rgba(69, 135, 255, 0.5); right: 12%; }
.home-rays span:nth-child(2) { background: rgba(98, 213, 143, 0.35); right: 2%; animation-delay: -1.8s; }
.home-rays span:nth-child(3) { background: rgba(255, 220, 61, 0.28); right: -8%; animation-delay: -3.4s; }

@keyframes raySlide {
  0%, 100% { translate: 0 0; }
  50% { translate: -38px 28px; }
}

.home-copy h1 {
  max-width: 560px;
}

.home-copy p {
  max-width: 570px;
}

.home-value {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  max-width: 560px;
}

.home-value article,
.home-demo,
.home-source-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 23, 25, 0.46);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.home-value article {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 16px 14px 20px;
  overflow: hidden;
}

.home-value article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green), #ffdc3d);
}

.home-value strong {
  font-size: 14px;
}

.home-value span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-demo {
  padding: 22px;
}

.demo-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.demo-top strong {
  color: var(--text);
}

.demo-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.demo-score article,
.demo-ad {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.demo-score article {
  padding: 14px;
}

.demo-score span,
.demo-ad span {
  display: block;
  color: var(--soft);
  font-size: 12px;
}

.demo-score strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.demo-ad {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 15px;
}

.demo-ad.good { border-color: rgba(98, 213, 143, 0.28); }
.demo-ad.bad { border-color: rgba(255, 98, 98, 0.28); }

.demo-ad strong {
  font-size: 15px;
}

.demo-ad em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.home-sources {
  padding-top: 26px !important;
}

.compact-section-head h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}

.home-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-source-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 18px;
}

.home-source-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.home-source-card p {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.source-card-status {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 98, 98, 0.25);
  border-radius: 999px;
  color: #ff8b8b;
  background: rgba(255, 98, 98, 0.08);
  font-size: 12px;
  font-weight: 750;
}

.source-card-status.connected {
  color: var(--green);
  border-color: rgba(98, 213, 143, 0.28);
  background: rgba(98, 213, 143, 0.08);
}

.source-card-status.action {
  color: var(--yellow);
  border-color: rgba(245, 191, 66, 0.28);
  background: rgba(245, 191, 66, 0.08);
}

.platform-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
}

.cta-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.studio-shell {
  width: 100%;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(19, 20, 22, 0.86);
  box-shadow:
    var(--shadow),
    0 0 70px rgba(69, 135, 255, 0.2);
}

body.light .studio-shell {
  background: rgba(255, 255, 255, 0.78);
}

.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.studio-tools {
  display: flex;
  gap: 12px;
}

.studio-tools span {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 184px;
  min-width: 0;
  min-height: 382px;
}

.studio-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 50% 56%, rgba(104, 168, 255, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.studio-main::before {
  content: "Build your audit with LightAds";
  position: absolute;
  top: 93px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 21px;
}

body.light .studio-main::before {
  color: rgba(17, 24, 39, 0.5);
}

.scan-card {
  position: relative;
  z-index: 2;
  width: min(100%, 444px);
  padding: 16px;
  border: 1px solid rgba(104, 168, 255, 0.38);
  border-radius: 16px;
  background: rgba(20, 22, 25, 0.9);
  box-shadow:
    0 0 0 1px rgba(104, 168, 255, 0.12),
    0 0 54px rgba(69, 135, 255, 0.36);
}

.scanner-beams {
  position: absolute;
  inset: 34px 24px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0.9;
}

.scanner-beams span {
  position: absolute;
  width: 150%;
  height: 1px;
  left: -25%;
  background: linear-gradient(90deg, transparent, rgba(104, 168, 255, 0.7), transparent);
  box-shadow: 0 0 18px rgba(104, 168, 255, 0.55);
  animation: scanLine 3.8s ease-in-out infinite;
}

.scanner-beams span:nth-child(1) {
  top: 28%;
}

.scanner-beams span:nth-child(2) {
  top: 43%;
  animation-delay: -1.1s;
}

.scanner-beams span:nth-child(3) {
  top: 58%;
  animation-delay: -2.2s;
}

.scanner-beams span:nth-child(4) {
  top: 73%;
  animation-delay: -3s;
}

@keyframes scanLine {
  0%,
  100% {
    translate: -120px 0;
    opacity: 0;
  }
  48% {
    opacity: 0.72;
  }
  55% {
    translate: 120px 0;
  }
}

body.light .scan-card {
  background: rgba(255, 255, 255, 0.95);
}

.floating {
  transform: translateY(34px);
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.file-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.scan-card p {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.55;
}

.prompt-actions {
  justify-content: flex-end;
  gap: 8px;
}

.prompt-actions button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.model-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.model-list span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.model-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.logo {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  font-style: normal;
}

.logo.direct {
  border-radius: 6px;
  background: linear-gradient(145deg, #ffe45f, #f3c400);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.logo.direct::before {
  content: "Я";
  color: #111111;
  font-size: 12px;
  font-weight: 900;
}

.logo.metrika {
  border-radius: 50%;
  background: conic-gradient(from 210deg, #ff3b30, #ffcc00, #34c759, #0a84ff, #ff3b30);
}

.logo.metrika::after {
  content: "";
  width: 9px;
  height: 9px;
  background: #111318;
  border-radius: 50%;
}

.logo.gads::before,
.logo.gads::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.logo.gads::before {
  width: 7px;
  height: 19px;
  left: 5px;
  bottom: 0;
  background: #34a853;
  rotate: 32deg;
}

.logo.gads::after {
  width: 7px;
  height: 19px;
  right: 4px;
  bottom: 0;
  background: #4285f4;
  rotate: -32deg;
}

.logo.gads {
  border-radius: 6px;
}

.logo.gads i,
.logo.gads span {
  display: none;
}

.logo.gads::marker {
  content: "";
}

.logo.gads {
  background: radial-gradient(circle at 6px 15px, #fbbc04 0 4px, transparent 5px);
}

.logo.fb {
  color: #fff;
  border-radius: 50%;
  background: #1877f2;
  font-family: Arial, sans-serif;
}

.logo.fb::before {
  content: "f";
  margin-top: 3px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.logo.ig {
  border-radius: 6px;
  background: radial-gradient(circle at 72% 22%, #fff 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(255, 255, 255, 0.9) 31% 38%, transparent 39%),
    linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.logo.tt {
  border-radius: 50%;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.logo.tt::before {
  content: "♪";
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-shadow: -2px 0 #25f4ee, 2px 0 #fe2c55;
}

.model-list button.selected,
.model-list button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

section:not(.hero) {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2,
.report-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p,
.report-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.scanner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.connect-panel,
.scan-panel,
.report-card,
.history-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 23, 25, 0.72);
  box-shadow: var(--shadow);
}

body.light .connect-panel,
body.light .scan-panel,
body.light .report-card,
body.light .history-table,
body.light .audit-grid article,
body.light .pricing-grid article {
  background: rgba(255, 255, 255, 0.82);
}

.connect-panel {
  overflow: hidden;
}

.accordion + .accordion {
  border-top: 1px solid var(--line);
}

.accordion-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 18px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.accordion-head small {
  color: var(--soft);
  font-size: 13px;
}

.accordion.connected .source-icon,
.accordion.connected .source-icon-group .source-icon {
  position: relative;
  border-color: rgba(98, 213, 143, 0.5);
  box-shadow: 0 0 0 3px rgba(98, 213, 143, 0.1);
}

.accordion.connected .source-icon::after,
.accordion.connected .source-icon-group .source-icon:last-child::after {
  content: "✓";
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #04120a;
  background: var(--green);
  border: 2px solid #151719;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.connected-pill,
.action-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.connected-pill {
  color: var(--green);
  border: 1px solid rgba(98, 213, 143, 0.26);
  background: rgba(98, 213, 143, 0.09);
}

.action-pill {
  color: var(--yellow);
  border: 1px solid rgba(245, 191, 66, 0.28);
  background: rgba(245, 191, 66, 0.09);
}

.source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #0c111a;
  font-weight: 800;
}

.source-icon-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-icon-group .source-icon {
  width: 38px;
  height: 38px;
}

.yandex {
  background: rgba(255, 220, 61, 0.12);
  border: 1px solid rgba(255, 220, 61, 0.3);
}

.google {
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.meta {
  background: rgba(114, 168, 255, 0.12);
  border: 1px solid rgba(114, 168, 255, 0.3);
}

.instagram {
  background: rgba(214, 41, 118, 0.12);
  border: 1px solid rgba(214, 41, 118, 0.32);
}

.tiktok {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 242, 234, 0.14), rgba(255, 0, 80, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.accordion-body {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px 70px;
}

.accordion.open .accordion-body {
  display: grid;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 12px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 92px;
  padding-top: 12px;
  padding-right: 12px;
  line-height: 1.45;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}

select:hover,
input:hover,
textarea:hover {
  border-color: rgba(104, 168, 255, 0.34);
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(104, 168, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(69, 135, 255, 0.16);
}

select option {
  color: #f4f7fb;
  background: #151719;
}

body.light input,
body.light select,
body.light textarea {
  background-color: rgba(10, 18, 32, 0.04);
}

body.light select option {
  color: #111827;
  background: #ffffff;
}

.connect-button {
  grid-column: 1 / -1;
  min-height: 44px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
}

.setup-help-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.audit-control-lead {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.setup-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.setup-action-info {
  color: #eef6ff;
  border-color: rgba(36, 137, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(10, 87, 255, 0.34), rgba(36, 137, 255, 0.15)),
    rgba(255, 255, 255, 0.035);
  font-size: 18px;
  box-shadow: 0 16px 38px rgba(36, 137, 255, 0.24);
}

.setup-action-info::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  color: #168cff;
  background: transparent;
  font-size: 24px;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
}

.setup-action-oauth {
  color: #fff4c2;
  border-color: rgba(245, 191, 66, 0.38);
  background:
    linear-gradient(135deg, rgba(245, 191, 66, 0.18), rgba(255, 220, 61, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.setup-action-connect {
  color: #08111b;
  border-color: rgba(98, 213, 143, 0.72);
  background: linear-gradient(135deg, #62d58f, #9df2ba);
  box-shadow: 0 14px 34px rgba(98, 213, 143, 0.2);
}

.setup-action:hover {
  transform: translateY(-1px);
}

.compact-link {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.wide-field {
  grid-column: 1 / -1;
}

.connect-button.muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.scan-panel {
  padding: 24px;
}

.scan-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--green);
  background: rgba(98, 213, 143, 0.08);
  border: 1px solid rgba(98, 213, 143, 0.2);
  border-radius: 999px;
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(98, 213, 143, 0.12);
}

.scan-panel h3 {
  margin: 22px 0 12px;
  font-size: 28px;
  font-weight: 580;
}

.scan-panel p {
  color: var(--muted);
  line-height: 1.58;
}

.scan-button {
  width: 100%;
  margin: 18px 0;
}

.scan-button.loading,
.source-actions .loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.scan-button.loading::before,
.source-actions .loading::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: lightadsSpin 0.75s linear infinite;
}

@keyframes lightadsSpin {
  to {
    transform: rotate(360deg);
  }
}

.scanner-payment {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 10px;
  margin-top: 14px;
  color: var(--text);
}

.scanner-payment input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--blue);
}

.score-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.volume-preview {
  margin-top: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stats-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.stats-grid span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.25;
}

.stats-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
}

.stats-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.segment-grid article {
  min-height: 128px;
  padding: 14px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(69, 135, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.segment-grid strong,
.segment-grid span,
.segment-grid em {
  display: block;
}

.segment-grid strong {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
}

.segment-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.segment-grid em {
  margin-top: 10px;
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.segment-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.score-preview div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.score-preview span {
  display: block;
  color: var(--soft);
  font-size: 12px;
}

.score-preview strong {
  display: block;
  margin-top: 12px;
  font-size: 21px;
}

.express-result {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(104, 168, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(69, 135, 255, 0.1), rgba(98, 213, 143, 0.06));
}

.express-result.warning {
  border-color: rgba(245, 191, 66, 0.44);
  background: linear-gradient(135deg, rgba(245, 191, 66, 0.13), rgba(69, 135, 255, 0.07));
}

.express-result.warning span {
  color: var(--yellow);
}

.express-result span {
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.express-result h4 {
  margin: 8px 0;
  font-size: 20px;
}

.express-result p {
  margin: 0 0 12px;
  font-size: 14px;
}

.express-result a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0a57ff, #68a8ff);
  font-size: 13px;
  font-weight: 700;
}

.express-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.status-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.status-breakdown div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.status-breakdown strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 12px;
}

.status-breakdown span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.next-step-box {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr) minmax(160px, 0.7fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(104, 168, 255, 0.22);
}

.next-step-copy,
.volume-scale,
.suggested-plan {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.next-step-copy strong,
.next-step-copy span,
.volume-scale span,
.volume-scale b,
.suggested-plan span,
.suggested-plan strong {
  display: block;
}

.next-step-copy strong {
  color: var(--text);
  font-size: 17px;
}

.next-step-copy span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.volume-scale div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.volume-scale span,
.suggested-plan span {
  color: var(--soft);
  font-size: 12px;
}

.volume-scale b,
.suggested-plan strong {
  color: var(--text);
  font-size: 22px;
}

.volume-scale i {
  display: block;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.volume-scale em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue), #f5bf42);
}

.suggested-plan strong {
  margin-top: 7px;
}

.express-actions a:nth-child(2) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: none;
}

.guide-modal[hidden] {
  display: none;
}

.ai-access-modal[hidden] {
  display: none;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vh, 28px) 0;
}

.ai-access-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.ai-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.guide-dialog {
  position: relative;
  width: 85vw;
  max-width: 1240px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(104, 168, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(69, 135, 255, 0.16), transparent 18rem),
    rgba(19, 21, 26, 0.98);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.ai-access-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  padding: 24px;
  border: 1px solid rgba(255, 206, 86, 0.35);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 206, 86, 0.13), transparent 17rem),
    rgba(19, 21, 26, 0.98);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.ai-access-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ai-access-kicker {
  justify-self: start;
  min-height: 24px;
  padding: 0 9px;
  color: #07110b;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 950;
  line-height: 24px;
  text-transform: uppercase;
}

.ai-access-dialog h2 {
  margin: 0;
  padding-right: 34px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.15;
}

.ai-access-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-access-dialog label {
  display: grid;
  gap: 7px;
}

.ai-access-dialog label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ai-access-dialog input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
}

.ai-access-dialog small {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.ai-access-actions {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 8px;
}

.yandex-connect-guide .guide-dialog {
  width: min(96vw, 1540px);
  padding: clamp(18px, 2vw, 28px);
}

.guide-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--green);
  border: 1px solid rgba(98, 213, 143, 0.22);
  border-radius: 999px;
  background: rgba(98, 213, 143, 0.08);
  font-size: 13px;
  font-weight: 650;
}

.guide-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 22px;
}

.guide-head .source-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.guide-head h2 {
  margin: 0 42px 10px 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.guide-head p {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.guide-market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.guide-market span {
  min-width: 0;
  padding: 12px;
  color: var(--muted);
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(69, 135, 255, 0.075);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guide-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 24px;
}

.guide-content section,
.guide-links {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.guide-content h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.guide-content ul,
.guide-content ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-content li {
  padding-right: 2px;
  overflow-wrap: anywhere;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a57ff, #68a8ff);
  font-size: 13px;
  font-weight: 700;
}

body.light .guide-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(69, 135, 255, 0.14), transparent 18rem),
    rgba(255, 255, 255, 0.98);
}

body.light .ai-access-dialog {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 206, 86, 0.14), transparent 17rem),
    rgba(255, 255, 255, 0.98);
}

body.light .mock-screen div {
  background: rgba(255, 255, 255, 0.62);
}

.audit-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.audit-grid article,
.pricing-grid article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 23, 25, 0.7);
}

.audit-grid span {
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 800;
}

.audit-grid h3,
.pricing-grid h3 {
  margin: 38px 0 10px;
  font-size: 22px;
  font-weight: 580;
}

.audit-grid p,
.pricing-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.report-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.report-mock {
  display: grid;
  gap: 12px;
}

.report-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.report-row span {
  font-size: 13px;
  font-weight: 750;
}

.critical span {
  color: var(--red);
}

.warning span {
  color: var(--yellow);
}

.ok span {
  color: var(--green);
}

.history-table {
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.7fr 1fr 110px;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}

.history-row.head {
  min-height: 48px;
  color: var(--soft);
  border-top: 0;
  font-size: 13px;
}

.history-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.history-row button {
  min-height: 34px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.history-row a {
  justify-self: start;
  min-height: 34px;
  padding: 8px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.field-hint,
.scan-date {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.scan-date {
  margin-top: 10px;
  color: #68a8ff;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pricing-grid article {
  min-height: 230px;
}

.pricing-grid article.featured {
  border-color: rgba(104, 168, 255, 0.45);
  box-shadow: 0 0 48px rgba(69, 135, 255, 0.16);
}

.pricing-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--blue-2);
  font-size: 30px;
}

.pricing-grid strong small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.byn-symbol {
  display: inline-block;
  width: 0.72em;
  height: 0.86em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: currentColor;
  -webkit-mask: url("./byn-symbol.svg") center / contain no-repeat;
  mask: url("./byn-symbol.svg") center / contain no-repeat;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px 28px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer span {
  color: var(--text);
  font-weight: 700;
}

.footer p {
  order: 3;
  flex: 1 1 420px;
  margin: 0;
}

.footer-links {
  display: none;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-legal {
  order: 4;
  flex: 1 0 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.84;
}

.footer-platform-legal {
  order: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 18px;
  flex: 1 0 100%;
  width: 100%;
  padding: 0 0 18px;
  margin: 0 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-platform-col {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.footer-platform-col strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.footer-platform-col a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.footer-platform-col a:hover {
  color: var(--accent);
}

.footer-platform-col:last-child strong {
  color: var(--accent);
}

.legal-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.legal-platform-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-platform-card strong {
  color: var(--text);
}

.legal-platform-card a {
  display: inline-flex;
  width: fit-content;
  margin-right: 12px;
  color: var(--accent);
  font-weight: 800;
}

.legal-note {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(99, 216, 143, 0.3);
  border-radius: 14px;
  background: rgba(99, 216, 143, 0.08);
}

.legal-meta-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.page-main {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 82px;
}

.page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 23, 25, 0.72);
  box-shadow: var(--shadow);
  padding: 36px;
}

.page-card h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-card h2 {
  margin: 34px 0 12px;
  font-size: 24px;
  font-weight: 650;
}

.page-card p,
.page-card li {
  color: var(--muted);
  line-height: 1.72;
}

.page-card a {
  color: var(--blue-2);
}

.oauth-main {
  width: min(760px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  margin: 0 auto;
  padding: 64px 0;
}

.oauth-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(69, 135, 255, 0.16), transparent 44%),
    rgba(21, 23, 25, 0.78);
  box-shadow: var(--shadow);
}

.oauth-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 50%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(98, 213, 143, 0.16), transparent 62%);
  transform: translateX(-20%);
  pointer-events: none;
}

.oauth-card > * {
  position: relative;
}

.oauth-card h1 {
  margin: 22px 0 14px;
  max-width: 620px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
}

.oauth-card p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.oauth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.oauth-actions a {
  min-height: 44px;
  padding: 0 18px;
}

.oauth-status {
  color: var(--green);
}

.report-page {
  min-height: 100vh;
  color: #111827;
  background: #e8edf5;
}

.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 0 24px;
  color: var(--text);
  background: rgba(29, 31, 36, 0.94);
  border-bottom: 1px solid var(--line);
}

.pdf-sheet {
  width: min(960px, calc(100% - 36px));
  margin: 22px auto;
  padding: 38px 42px;
  color: #111827;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.pdf-hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 28px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid #d8dee9;
}

.report-brand {
  min-width: 0;
  color: #111827;
}

.pdf-hero h1 {
  max-width: 700px;
  margin: 24px 0 12px;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: 0;
}

.pdf-hero p,
.pdf-section p {
  color: #4b5565;
  font-size: 14px;
  line-height: 1.55;
}

.pdf-score {
  padding: 16px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-score span,
.pdf-grid span {
  display: block;
  color: #687386;
  font-size: 11px;
  line-height: 1.25;
}

.pdf-score strong {
  display: block;
  margin-top: 10px;
  color: #0a57ff;
  font-size: 30px;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.pdf-grid-compact {
  margin-top: 14px;
}

.pdf-grid article {
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-grid strong {
  display: block;
  margin-top: 10px;
  color: #111827;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.05;
  white-space: nowrap;
}

.pdf-section {
  margin-top: 22px;
}

.pdf-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.pdf-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-list li {
  padding: 14px 16px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  color: #374151;
  background: #ffffff;
}

.pdf-list li strong,
.pdf-list li span {
  display: block;
}

.pdf-list li strong {
  margin-bottom: 5px;
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
}

.pdf-list li span {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.report-segments article {
  color: #111827;
  border-color: #d8dee9;
  background: #f7f9fc;
}

.report-segments article strong {
  color: #111827;
}

.report-segments article span,
.report-segments article em,
.report-statuses span {
  color: #4b5565;
}

.report-statuses {
  margin-top: 14px;
  color: #111827;
  border-color: #d8dee9;
  background: #f7f9fc;
}

.report-statuses strong {
  color: #111827;
}

.pdf-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 18px;
  color: #687386;
  border-top: 1px solid #d8dee9;
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body.report-page {
    background: #ffffff;
  }

  .report-toolbar {
    display: none;
  }

  .pdf-sheet {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
}

.callback-state {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.callback-state code {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 82px;
}

.app-shell > section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.workspace-head {
  max-width: 860px;
  margin-bottom: 22px;
}

.workspace-head h1 {
  max-width: 820px;
  margin: 22px 0 16px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
}

.workspace-head p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.workspace-head .account-meta-line {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.45;
}

.account-meta-line strong {
  color: var(--text);
  font-weight: 850;
}

.audit-control-card h2 {
  max-width: 560px;
  line-height: 1.18;
}

.source-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
}

.source-tile,
.step-card,
.summary-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 23, 25, 0.46);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.source-tile {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 18px;
}

.source-tile.active-source {
  border-color: rgba(104, 168, 255, 0.4);
}

.source-tile.connected {
  border-color: rgba(98, 213, 143, 0.34);
  background: rgba(98, 213, 143, 0.07);
}

.source-tile.action {
  border-color: rgba(245, 191, 66, 0.38);
  background: rgba(245, 191, 66, 0.07);
}

.source-tile.muted {
  opacity: 0.78;
}

.source-tile-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.source-tile-top strong,
.source-tile-top span {
  display: block;
}

.source-tile-top strong {
  font-size: 16px;
}

.source-tile-top span {
  margin-top: 3px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.source-tile p {
  flex: 1;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.source-tile-actions {
  display: grid;
  gap: 9px;
}

.source-tile-actions a,
.source-tile-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.source-tile-actions a.primary {
  color: #fff;
}

.source-tile-actions button:disabled {
  cursor: default;
  opacity: 0.72;
}

.source-tile-actions strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 30px;
  padding: 0 10px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.source-tile-actions strong::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #fff;
  border-radius: 999px;
  background: #ff5757;
  font-size: 10px;
  font-weight: 850;
}

.source-tile.connected [data-source-state] {
  color: var(--green);
  border-color: rgba(98, 213, 143, 0.24);
  background: rgba(98, 213, 143, 0.08);
}

.source-tile.connected [data-source-state]::before {
  content: "✓";
  background: var(--green);
}

.source-tile.action [data-source-state] {
  color: var(--yellow);
  border-color: rgba(245, 191, 66, 0.28);
  background: rgba(245, 191, 66, 0.08);
}

.source-tile.action [data-source-state]::before {
  color: #1f1600;
  background: var(--yellow);
}

.status-line.action {
  color: var(--yellow);
  border-color: rgba(245, 191, 66, 0.28);
  background: rgba(245, 191, 66, 0.08);
}

.status-line.error {
  color: #ff8b8b;
  border-color: rgba(255, 87, 87, 0.28);
  background: rgba(255, 87, 87, 0.08);
}

.source-tile [data-app-connect][hidden] {
  display: none;
}

.compact-head {
  margin-bottom: 24px;
}

.cabinet-sources {
  margin-bottom: 22px;
}

.route-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: center;
}

.route-card p {
  color: var(--muted);
  line-height: 1.65;
}

.route-grid {
  display: grid;
  gap: 10px;
}

.route-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 750;
}

.route-grid .logo {
  width: 22px;
  height: 22px;
}

.small-chart {
  width: 22px;
  height: 22px;
}

.audit-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  margin-bottom: 52px;
  align-items: start;
}

.audit-control-card p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.last-scan-card {
  display: grid;
  gap: 14px;
}

.last-scan-card .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.last-scan-card .metric-card {
  min-height: 86px;
  padding: 12px;
}

.last-scan-card .metric-card span {
  font-size: 11px;
  font-weight: 800;
}

.last-scan-card .metric-card strong {
  margin-top: 9px;
  font-size: clamp(20px, 2vw, 27px);
}

.last-scan-performance {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
  margin-top: 0;
}

.last-scan-card .stats-grid div {
  min-height: 74px;
}

.last-scan-card .stats-grid span {
  font-size: 11px;
  font-weight: 800;
}

.last-scan-card .stats-grid strong {
  margin-top: 8px;
  font-size: clamp(17px, 1.7vw, 22px);
}

.last-scan-source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.last-scan-source strong {
  color: var(--text);
}

.scan-date a {
  margin-left: 10px;
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.scan-details-card {
  margin-top: 0;
}

.scan-details-card .summary-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.scan-details-card .query-leaders {
  margin-top: 14px;
  border-radius: 8px;
}

.scan-details-card .recommendation-actions {
  justify-content: flex-start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.last-scan-statuses:empty,
.last-scan-notes:empty {
  display: none;
}

.recommendations-card {
  scroll-margin-top: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.recommendations-card[hidden] {
  display: none;
}

.recommendations-card .agent-recommendations {
  margin-top: 0;
}

.recommendations-jump {
  border-color: rgba(98, 213, 143, 0.32) !important;
  color: #dfffea !important;
  background: rgba(98, 213, 143, 0.1) !important;
}

.recommendations-jump[hidden] {
  display: none;
}

.audit-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 16px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-pills label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.filter-pills input {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  min-height: 14px;
  accent-color: var(--green);
}

.filter-pills label:has(input:checked) {
  color: var(--text);
  border-color: rgba(98, 213, 143, 0.48);
  background: rgba(98, 213, 143, 0.12);
}

.account-summary-card {
  width: 100%;
  margin-top: 24px;
}

.summary-card h2,
.summary-card h3 {
  margin-top: 0;
}

.summary-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-panel {
  padding: 28px;
}

.app-panel h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 62px);
}

.app-panel p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.microcopy {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.quest-steps {
  display: grid;
  gap: 12px;
}

.step-card {
  padding: 18px;
}

.step-card strong {
  display: block;
  margin-bottom: 8px;
}

.step-card label {
  margin-top: 12px;
}

.payment-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text);
}

.payment-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.source-actions.compact {
  margin-top: 16px;
}

.source-actions a,
.source-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.source-actions a.primary {
  color: #fff;
}

.source-actions button[data-load-summary] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  color: #07111a;
  border-color: rgba(98, 213, 143, 0.68);
  background: linear-gradient(135deg, #62d58f, #9df2ba);
  box-shadow: 0 14px 32px rgba(98, 213, 143, 0.2);
  font-size: 15px;
  font-weight: 900;
}

.source-actions button[data-load-summary].loading::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(7, 17, 26, 0.22);
  border-top-color: #07111a;
  border-radius: 50%;
  animation: lightads-spin 0.75s linear infinite;
}

@keyframes lightads-spin {
  to {
    transform: rotate(360deg);
  }
}

.source-actions button[data-load-recommendations] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  border-color: rgba(104, 168, 255, 0.58);
  background: linear-gradient(135deg, #0a57ff, #68a8ff);
  box-shadow: 0 14px 30px rgba(69, 135, 255, 0.24);
  font-size: 15px;
  font-weight: 900;
}

.source-actions button:disabled {
  cursor: progress;
  opacity: 0.76;
}

.mini-connections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.mini-connection {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.mini-connection span:not(.double-logo) {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.mini-connection strong {
  grid-column: 2;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.25;
}

.mini-connection.connected {
  border-color: rgba(98, 213, 143, 0.34);
  background: rgba(98, 213, 143, 0.08);
}

.mini-connection.connected strong {
  color: var(--green);
}

.mini-connection.action {
  border-color: rgba(245, 191, 66, 0.38);
  background: rgba(245, 191, 66, 0.08);
}

.mini-connection.action strong {
  color: var(--yellow);
}

.mini-connection.muted {
  opacity: 0.7;
}

.double-logo {
  display: flex;
  gap: 4px;
}

.connections-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 82px;
}

.connections-hero {
  width: 100%;
  max-width: 820px;
  margin: 0;
  padding: 28px 0 24px;
}

.connections-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 4.6vw, 58px);
}

.connections-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.connection-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 23, 25, 0.72);
  box-shadow: var(--shadow);
}

body.light .connection-card,
body.light .mini-connection,
body.light .source-tile {
  background: rgba(255, 255, 255, 0.56);
}

.connection-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.connection-top strong {
  line-height: 1.25;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 30px;
  margin-top: 20px;
  padding: 0 10px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 700;
}

.connection-card p {
  flex: 1;
  margin: 16px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.connection-card.connected {
  border-color: rgba(98, 213, 143, 0.34);
}

.connection-card.connected .connection-state {
  color: var(--green);
  border-color: rgba(98, 213, 143, 0.24);
  background: rgba(98, 213, 143, 0.08);
}

.connection-card.action {
  border-color: rgba(245, 191, 66, 0.42);
}

.connection-card.action .connection-state {
  color: var(--yellow);
  border-color: rgba(245, 191, 66, 0.28);
  background: rgba(245, 191, 66, 0.08);
}

.connection-card.muted {
  opacity: 0.74;
}

.connection-actions {
  display: grid;
  gap: 10px;
}

.connection-actions a,
.connection-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.connection-actions a.primary {
  color: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.summary-card,
.metric-card {
  padding: 22px;
}

.account-summary-card {
  margin-top: 34px;
}

.app-shell > .account-summary-card {
  margin-top: 46px;
  margin-bottom: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-summary-card .summary-card-head {
  margin-bottom: 24px;
}

.scan-date {
  display: inline-flex;
  margin-top: 12px;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.google-next,
.next-step-box {
  margin-top: 18px;
}

.metric-grid + .google-next,
.metric-grid + .next-step-box {
  margin-top: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-card {
  min-height: 128px;
}

.metric-card span {
  display: block;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 30px;
}

.tariff-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(104, 168, 255, 0.34);
  border-radius: 8px;
  background: rgba(69, 135, 255, 0.08);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--green);
  border: 1px solid rgba(98, 213, 143, 0.22);
  border-radius: 999px;
  background: rgba(98, 213, 143, 0.08);
  font-size: 13px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  padding: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.last-scan-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.last-scan-notes li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-color: rgba(104, 168, 255, 0.14);
  border-radius: 8px;
  background: rgba(104, 168, 255, 0.045);
}

.last-scan-notes li strong,
.last-scan-notes li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.last-scan-notes li strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
}

.last-scan-notes li span {
  color: rgba(205, 216, 232, 0.74);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.live-observation-panel {
  display: grid;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 16px;
  border: 1px solid rgba(98, 213, 143, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(98, 213, 143, 0.09), rgba(69, 135, 255, 0.045)),
    rgba(5, 13, 20, 0.72);
}

.live-observation-panel[hidden] {
  display: none;
}

.live-observation-head,
.live-campaign-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.live-observation-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-observation-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
}

.live-observation-head span,
.live-campaign-top span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.live-observation-head b {
  flex: 0 0 auto;
  max-width: min(340px, 44vw);
  padding: 5px 9px;
  color: #07110c;
  border-radius: 999px;
  background: rgba(99, 220, 144, 0.92);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  white-space: normal;
}

.live-observation-summary {
  max-width: 980px;
  margin: 0;
  color: rgba(229, 237, 248, 0.84);
  font-size: 12px;
  line-height: 1.55;
}

.live-watch-contour {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(98, 213, 143, 0.2);
  border-radius: 10px;
  background: rgba(9, 24, 18, 0.42);
}

.live-watch-contour.has-missing {
  border-color: rgba(255, 184, 108, 0.36);
  background: rgba(38, 25, 10, 0.38);
}

.live-watch-contour strong {
  color: var(--green);
  font-size: 11px;
  line-height: 1.25;
}

.live-watch-contour span,
.live-watch-contour em,
.live-observation-policy {
  color: rgba(205, 216, 232, 0.82);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.live-watch-contour em {
  color: #ffcf8a;
  font-weight: 700;
}

.live-observation-policy {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(104, 168, 255, 0.12);
  border-radius: 10px;
  background: rgba(4, 10, 16, 0.38);
}

.live-readiness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.live-readiness-strip article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(98, 213, 143, 0.18);
  border-radius: 12px;
  background: rgba(5, 16, 22, 0.5);
}

.live-readiness-strip span,
.live-readiness-strip small {
  color: rgba(190, 203, 222, 0.84);
  font-size: 10px;
  line-height: 1.3;
}

.live-readiness-strip strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.live-observation-next-stage {
  margin: 0;
  padding: 10px 12px;
  color: rgba(229, 237, 248, 0.9);
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid rgba(98, 213, 143, 0.18);
  border-radius: 12px;
  background: rgba(12, 39, 30, 0.34);
}

.live-observation-progress,
.live-progress {
  position: relative;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(104, 168, 255, 0.12);
}

.live-observation-progress span,
.live-progress span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #62d58f, #68a8ff);
}

.live-progress {
  height: 5px;
}

.live-observation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.live-observation-metrics > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(104, 168, 255, 0.14);
  border-radius: 10px;
  background: rgba(4, 10, 16, 0.54);
}

.live-observation-metrics span,
.live-observation-metrics small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.live-observation-metrics strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
}

.live-campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.live-campaign-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(104, 168, 255, 0.16);
  border-radius: 11px;
  background: rgba(5, 12, 19, 0.68);
}

.live-campaign-card strong,
.live-campaign-card b,
.live-campaign-card span,
.live-campaign-card p,
.live-campaign-card li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.live-campaign-top strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.live-campaign-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.live-campaign-metrics b {
  color: var(--green);
  font-size: 14px;
}

.live-campaign-metrics span {
  padding: 3px 7px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 10px;
}

.live-campaign-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.live-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.live-signal-row em {
  padding: 3px 7px;
  color: #07110c;
  border-radius: 999px;
  background: rgba(99, 220, 144, 0.9);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.live-campaign-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-campaign-card li {
  color: var(--text);
  font-size: 10px;
  line-height: 1.35;
}

.live-campaign-card li small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.live-campaign-card .live-action {
  color: rgba(229, 237, 248, 0.9);
  font-weight: 600;
}

.live-next-checks {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(104, 168, 255, 0.14);
  border-radius: 10px;
  background: rgba(4, 10, 16, 0.42);
}

.live-next-checks strong {
  color: var(--green);
  font-size: 12px;
  line-height: 1.25;
}

.live-next-checks ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-next-checks li {
  position: relative;
  padding-left: 14px;
  color: rgba(205, 216, 232, 0.82);
  font-size: 11px;
  line-height: 1.45;
}

.live-next-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
}

@media (max-width: 760px) {
  .live-observation-head {
    display: grid;
  }

  .live-observation-head b {
    justify-self: start;
    max-width: 100%;
  }

  .live-observation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-readiness-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .live-observation-metrics {
    grid-template-columns: 1fr;
  }

  .live-readiness-strip {
    grid-template-columns: 1fr;
  }
}

[data-lang-panel] {
  display: none;
}

body[data-lang="en"] [data-lang-panel="en"],
body[data-lang="ru"] [data-lang-panel="ru"] {
  display: block;
}

@media (max-width: 980px) {
  .nav,
  .ghost-link,
  .search-box,
  .source-mini-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero,
  .home-hero,
  .scanner-layout,
  .report-card {
    grid-template-columns: 1fr;
  }

  .hero,
  .home-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy {
    max-width: 430px;
  }

  h1 {
    margin-top: 58px;
    max-width: 360px;
    font-size: clamp(48px, 8vw, 68px);
  }

  .lead,
  .notice {
    max-width: 390px;
  }

  .studio-shell {
    max-width: 100%;
    min-height: 390px;
  }

  .scan-panel {
    position: static;
  }

  .audit-grid,
  .pricing-grid,
  .connection-grid,
  .source-dashboard,
  .home-source-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .volume-preview,
  .metric-grid,
  .segment-grid,
  .segment-grid.compact,
  .next-step-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    height: 58px;
    padding: 0 14px;
    justify-content: flex-start;
  }

  .brand {
    min-width: 0;
    font-size: 16px;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 8px;
    right: 14px;
    z-index: 3;
    display: inline-flex !important;
    margin-left: auto;
  }

  .topbar > .top-actions {
    display: none;
  }

  .top-actions .small {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero,
  .home-hero,
  section:not(.hero),
.footer {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    align-items: flex-start;
    height: auto;
    padding: 10px 12px;
    line-height: 1.25;
    border-radius: 22px;
  }

  .hero-actions a {
    flex: 1 1 100%;
    width: 100%;
  }

  .home-source-grid,
  .demo-score {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 48px;
    max-width: 360px;
  }

  .hero-copy,
  .lead {
    width: 100%;
    max-width: 390px;
  }

  .lead,
  .section-head p,
  .report-copy p {
    font-size: 16px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .model-list {
    display: none;
  }

  .studio-main {
    min-height: 330px;
    padding: 18px;
  }

  .studio-main::before {
    top: 58px;
    font-size: 17px;
  }

  .accordion-head {
    grid-template-columns: 38px 1fr;
  }

  .accordion-head small {
    grid-column: 2;
  }

  .accordion-body,
  .accordion.open .accordion-body {
    grid-template-columns: 1fr;
    padding-left: 18px;
  }

  .guide-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 12px 14px 20px;
    overscroll-behavior: contain;
  }

  .guide-close {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 8px;
    width: 38px;
    height: 38px;
  }

  .guide-head,
  .guide-content,
  .guide-market,
  .guide-screen-grid {
    grid-template-columns: 1fr;
  }

  .guide-head h2 {
    margin-right: 0;
  }

  .audit-grid,
  .pricing-grid,
  .score-preview,
  .volume-preview,
  .stats-grid,
  .stats-grid.compact,
  .audit-insight-grid,
  .segment-grid,
  .segment-grid.compact,
  .next-step-box {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 18px;
  }

  .history-row.head {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer p {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .footer-platform-legal,
  .legal-platform-grid {
    grid-template-columns: 1fr;
  }

  .page-main {
    width: calc(100vw - 28px);
    padding-top: 48px;
  }

  .page-card {
    padding: 22px;
  }

  .oauth-main {
    width: calc(100vw - 28px);
    padding: 34px 0;
  }

  .oauth-card {
    padding: 24px;
  }

  .oauth-card h1 {
    max-width: 100%;
    font-size: 36px;
  }

  .oauth-actions {
    display: grid;
  }

  .report-toolbar {
    position: static;
    flex-wrap: wrap;
    padding: 14px;
  }

  .report-toolbar .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pdf-sheet {
    width: calc(100vw - 12px);
    margin: 14px auto;
    padding: 24px;
  }

  .pdf-hero {
    grid-template-columns: 1fr;
  }

  .pdf-hero h1 {
    max-width: 280px;
    font-size: 31px;
    overflow-wrap: anywhere;
  }

  .pdf-hero p,
  .pdf-section p {
    max-width: 280px;
    overflow-wrap: anywhere;
  }

  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    margin-left: auto;
    margin-right: auto;
  }

  .app-shell > section {
    width: 100%;
    max-width: 100%;
  }

  .app-hero,
  .summary-grid,
  .audit-workbench {
    grid-template-columns: 1fr;
  }

  .app-panel {
    padding: 22px;
  }

  .app-panel h1 {
    margin-top: 16px;
    max-width: 300px;
    font-size: 29px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .app-panel p,
  .microcopy {
    max-width: 280px;
    overflow-wrap: anywhere;
  }

  .source-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .source-actions a,
  .source-actions button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mini-connections,
  .connection-grid,
  .source-dashboard {
    grid-template-columns: 1fr;
  }

  .workspace-head h1 {
    max-width: 300px;
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .workspace-head p {
    max-width: 290px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .audit-control-grid {
    grid-template-columns: 1fr;
  }

  .summary-card-head {
    display: grid;
  }

  .connections-shell {
    width: calc(100vw - 28px);
    padding-top: 34px;
  }
}

.footer .brand-mark,
.footer .chart-mark {
  flex: 0 0 auto;
}

.footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
}

.footer > span:first-child::before {
  content: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, #1877f2 0 18%, transparent 18% 25%, #ffdc3d 25% 43%, transparent 43% 50%, #34a853 50% 68%, transparent 68% 75%, #ff4f8b 75%);
  box-shadow: 0 0 24px rgba(69, 135, 255, 0.55);
}

.footer p {
  max-width: 420px;
  font-size: 12px;
  line-height: 1.35;
}

.footer-brand {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.footer-brand .brand-mark {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 2px;
  padding: 3px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(69, 135, 255, 0.55);
}

.footer-brand .brand-mark i {
  display: block;
  width: 100%;
}

.footer-brand > span:last-child {
  display: inline-block;
  color: var(--text);
  font: inherit;
  opacity: 1;
  visibility: visible;
}

.source-mini-nav {
  display: none;
}

/* Final visual polish: keep the graph visible without killing readability. */
body.light {
  --text: #0c1220;
  --muted: #334155;
  --soft: #64748b;
  background:
    radial-gradient(circle at 48% 18%, rgba(69, 135, 255, 0.12), transparent 34rem),
    radial-gradient(circle at 15% 84%, rgba(16, 210, 142, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 48rem, #ffffff 100%);
}

body.light .growth-bg {
  opacity: 0.34;
}

body.light .growth-bg::after {
  background: rgba(255, 255, 255, 0.1);
}

.home-value article,
.home-demo,
.home-source-card,
.process-grid article,
.live-preview,
.summary-card,
.metric-card,
.tariff-box,
.feed-row,
.search-ad {
  background: rgba(13, 17, 25, 0.34);
  backdrop-filter: blur(8px);
}

.home-value article,
.home-demo,
.home-source-card,
.process-grid article {
  border-color: rgba(255, 255, 255, 0.12);
}

.live-preview {
  background: rgba(9, 13, 20, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), 0 0 74px rgba(69, 135, 255, 0.14);
}

.live-preview::before,
.action-hero::before {
  display: none !important;
}

body.light .home-value article,
body.light .home-demo,
body.light .home-source-card,
body.light .process-grid article,
body.light .summary-card,
body.light .metric-card,
body.light .tariff-box,
body.light .connection-card,
body.light .mini-connection,
body.light .source-tile {
  color: var(--text);
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(20, 30, 52, 0.12);
  box-shadow: 0 24px 70px rgba(24, 39, 75, 0.08);
}

.recommendations-card,
body.light .recommendations-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.light .live-preview {
  color-scheme: light;
  --text: #0c1220;
  --muted: #334155;
  --soft: #64748b;
  --line: rgba(20, 30, 52, 0.13);
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(69, 135, 255, 0.18);
}

body.light .feed-row,
body.light .search-ad {
  background: rgba(255, 255, 255, 0.42);
}

body.light .search-ad strong {
  color: #0a57ff;
}

body.light .search-ad small {
  color: #08783f;
}

.logo.fb {
  background-size: contain;
  background-color: transparent;
  border-radius: 0;
}

.source-mini-nav .logo,
.source-mini-nav .double-logo .logo,
.service-pill .logo,
.search-ad .logo,
.process-icons .logo {
  object-fit: contain;
  flex: 0 0 auto;
}

.stats-grid {
  gap: 10px;
}

.stats-grid div {
  min-width: 0;
  min-height: 72px;
}

.stats-grid strong,
.metric-card strong,
.segment-grid em {
  overflow-wrap: anywhere;
  word-break: normal;
}

.tariff-box {
  padding: 16px;
  background: rgba(69, 135, 255, 0.06);
}

.ad-extremes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ad-extreme-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ad-extreme-card.good {
  border-color: rgba(98, 213, 143, 0.26);
}

.ad-extreme-card.bad {
  border-color: rgba(255, 98, 98, 0.24);
}

.ad-extreme-card span,
.ad-extreme-card small {
  display: block;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.ad-extreme-card strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.ad-extreme-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ad-extreme-card em {
  display: block;
  margin-top: 9px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.4;
}

body.light .ad-extreme-card {
  background: rgba(255, 255, 255, 0.44);
}

.agent-recommendations {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agent-recommendations-head strong,
.agent-recommendations-head span {
  display: block;
}

.agent-recommendations-head strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.agent-recommendations-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-context-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background: rgba(8, 18, 31, 0.72);
}

.site-context-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-context-head h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.site-context-head p,
.site-context-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-context-head span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

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

.site-context-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
}

.site-context-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 12px;
}

.ai-audit-block {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ai-audit-title strong,
.ai-audit-title span {
  display: block;
}

.ai-audit-title strong {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.ai-audit-title strong span {
  display: inline-flex;
  margin: 0;
  color: var(--green);
  font-size: 17px;
  font-weight: 950;
}

.ai-audit-title > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ai-audit-essence {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(98, 213, 143, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(98, 213, 143, 0.12), rgba(104, 168, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.ai-audit-essence-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.ai-audit-essence span,
.audit-action-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #07110b;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 22px;
  text-transform: uppercase;
}

.ai-audit-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  color: #dfffe8;
  border: 1px solid rgba(98, 213, 143, 0.36);
  border-radius: 999px;
  background: rgba(8, 20, 16, 0.42);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.ai-audit-read svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-audit-read svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.ai-audit-read.reading {
  color: #07110b;
  background: var(--green);
}

.ai-audit-read.loading {
  color: #07110b;
  background: rgba(98, 213, 143, 0.78);
}

.ai-audit-read.error {
  color: #ffd9d9;
  border-color: rgba(255, 91, 91, 0.42);
  background: rgba(255, 91, 91, 0.12);
}

.ai-audit-read.loading svg {
  animation: spin 0.8s linear infinite;
}

.ai-audit-essence-head small {
  flex-basis: 100%;
  color: #b8c8dd;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.35;
}

.ai-audit-essence-body {
  display: grid;
  gap: 14px;
  max-width: 1080px;
}

.ai-audit-decision-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ai-audit-decision-cards article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.ai-audit-decision-cards article.tone-risk {
  border-color: rgba(255, 206, 86, 0.32);
}

.ai-audit-decision-cards article.tone-works {
  border-color: rgba(98, 213, 143, 0.32);
}

.ai-audit-decision-cards article.tone-action {
  border-color: rgba(104, 168, 255, 0.32);
}

.ai-audit-decision-cards b {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.ai-audit-decision-cards span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.ai-audit-essence p {
  margin: 0;
  color: rgba(238, 243, 255, 0.82);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.ai-audit-essence p + p {
  padding-top: 14px;
  border-top: 1px solid rgba(126, 164, 207, 0.14);
}

.ai-audit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ai-audit-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.ai-audit-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.ai-audit-section summary::-webkit-details-marker {
  display: none;
}

.ai-audit-section summary strong,
.ai-audit-section summary span,
.ai-audit-section summary em {
  display: block;
}

.ai-audit-section summary strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.ai-audit-section summary span,
.ai-audit-section summary small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ai-audit-section summary span {
  margin-top: 3px;
}

.ai-audit-section summary em {
  max-width: 760px;
  margin-top: 7px;
  color: rgba(238, 243, 255, 0.72);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ai-audit-section summary small {
  white-space: nowrap;
}

.ai-audit-section summary > i {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.ai-audit-section[open] summary > i {
  transform: rotate(225deg);
}

.ai-audit-section-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.ai-audit-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: audit;
  list-style: none;
}

.ai-audit-more {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.ai-audit-more summary {
  display: flex;
  min-height: 38px;
  padding: 0 11px;
  color: var(--green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.ai-audit-more summary::-webkit-details-marker {
  display: none;
}

.ai-audit-more ol {
  padding: 0 10px 10px;
}

.ai-audit-more p {
  margin: 0;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.audit-action-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  counter-increment: audit;
}

.audit-action-number::before {
  content: counter(audit);
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #07110b;
  background: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.audit-action-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.audit-action-card p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(157, 190, 232, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.audit-action-card b {
  justify-self: start;
  color: var(--green);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.audit-action-card span {
  color: rgba(218, 229, 245, 0.84);
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.agent-recommendations ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agent-recommendations li {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.agent-recommendations .ai-audit-grid ol {
  gap: 8px;
  padding: 0;
}

.agent-recommendations .audit-action-item {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.agent-recommendations li.priority-critical,
.agent-recommendations li.priority-high {
  border-left-color: var(--red);
}

.agent-recommendations li.priority-low {
  border-left-color: var(--green);
}

.agent-recommendations li div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.agent-recommendations .audit-action-card {
  display: grid;
  gap: 7px;
  align-items: stretch;
}

.agent-recommendations .audit-action-card p {
  display: grid;
  gap: 4px;
  align-items: start;
}

.agent-recommendations .audit-action-card p span {
  display: block;
  min-width: 0;
}

.agent-recommendations b,
.agent-recommendations em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.agent-recommendations b {
  color: #07100b;
  background: var(--green);
}

.agent-recommendations em {
  color: var(--soft);
  border: 1px solid var(--line);
}

.agent-recommendations .ai-audit-section summary em,
.agent-recommendations .audit-action-card b,
.agent-recommendations .change-proposal-panel b,
.agent-recommendations .change-proposal-panel em {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agent-recommendations .ai-audit-section summary em {
  display: block;
  max-width: 780px;
  margin-top: 7px;
  color: rgba(218, 229, 245, 0.74);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.agent-recommendations .audit-action-card b {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.agent-recommendations li strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.guide-market b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.guide-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-top: 18px;
}

.yandex-guide-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mock-screen {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.yandex-guide-steps .mock-screen {
  gap: 7px;
  padding: 10px;
}

.yandex-guide-steps .mock-screen p {
  min-height: 0;
  font-size: 11px;
  line-height: 1.35;
}

.yandex-guide-steps .mock-screen strong {
  font-size: 13px;
}

.yandex-guide-steps .step-link {
  min-height: 30px;
  font-size: 11px;
}

.mock-screen span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mock-screen strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.mock-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mock-screen code {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guide-copy-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-scope-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-scope-list li {
  min-width: 0;
}

.guide-scope-list code {
  display: block;
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  color: #d7e7ff;
  background: rgba(104, 168, 255, 0.08);
  font-size: 12px;
}

.guide-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 6, 12, 0.32);
}

.mock-screen .guide-copy-row span,
.guide-copy-row span {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: none;
  overflow-wrap: anywhere;
}

.guide-copy-row code {
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guide-permission-text {
  display: grid;
  gap: 4px;
}

.guide-permission-text b {
  font-size: 11px;
  line-height: 1.25;
}

.guide-permission-text code {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 6px;
  color: #6ee98f;
  background: rgba(98, 213, 143, 0.1);
}

.guide-copy-row button {
  min-height: 30px;
  padding: 0 10px;
  color: #e8fff0;
  border: 1px solid rgba(104, 224, 145, 0.38);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(34, 120, 74, 0.92), rgba(24, 92, 57, 0.92));
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guide-copy-row button.copied {
  color: #07111a;
  background: #9be7b2;
}

.mock-screen .guide-copy-url {
  margin-top: 0;
  padding: 8px;
}

.guide-url-text {
  display: grid;
  gap: 4px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.25;
}

.mock-screen .guide-copy-row span.guide-url-text,
.guide-copy-row span.guide-url-text {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.guide-url-text code {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.mock-screen img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.yandex-guide-steps .mock-screen img {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.yandex-guide-steps .mock-screen img[data-guide-zoom-image] {
  cursor: zoom-in;
}

.yandex-guide-steps .mock-screen img.guide-save-image {
  padding: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background: #ffffff;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  gap: 0;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox img {
  display: block;
  max-width: min(1180px, 96vw);
  max-height: 88vh;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.yandex-guide-steps .guide-copy-list {
  gap: 5px;
}

.yandex-guide-steps .guide-copy-row {
  min-height: 34px;
  padding: 6px;
}

.yandex-guide-steps .guide-copy-row button {
  min-height: 26px;
  padding: 0 8px;
}

.mock-screen div {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 6, 12, 0.32);
}

.mock-screen b,
.mock-screen em {
  display: block;
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.3;
  font-style: normal;
}

.mock-screen b {
  color: #08111b;
  background: var(--green);
}

.mock-screen em {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.screenshot-step {
  align-content: start;
}

.mock-screen .oauth-choice,
.mock-screen .permission-list {
  gap: 8px;
}

.mock-screen .oauth-choice b,
.mock-screen .permission-list b {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.mock-screen .oauth-choice em {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.mock-screen .oauth-choice i,
.mock-screen .permission-list i {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: rgba(98, 213, 143, 0.12);
}

.mock-screen .oauth-choice i::after,
.mock-screen .permission-list i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 760px) {
  .guide-screen-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .yandex-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .yandex-guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-final-step {
    grid-template-columns: 1fr;
  }

  .guide-oauth-preview {
    justify-self: stretch;
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .guide-final-copy strong {
    font-size: 16px;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .filter-pills {
    gap: 8px;
  }

  .filter-pills label {
    min-height: 34px;
    padding: 0 10px;
    gap: 6px;
    font-size: 11px;
  }

  .filter-pills input {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
    min-height: 12px;
  }
}

.agent-recommendations p,
.agent-recommendations small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.light .agent-recommendations {
  background: transparent;
}

.recommendation-signals {
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 8px;
  background: rgba(104, 168, 255, 0.035);
  overflow: hidden;
}

.recommendation-signals > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.recommendation-signals > summary::-webkit-details-marker {
  display: none;
}

.recommendation-signals > summary strong,
.recommendation-signals > summary span,
.recommendation-signals > summary small {
  display: block;
}

.recommendation-signals > summary strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.recommendation-signals > summary span,
.recommendation-signals > summary small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recommendation-signals > summary span {
  margin-top: 3px;
}

.recommendation-signals > summary small {
  white-space: nowrap;
}

.recommendation-signals > summary > i {
  width: 9px;
  height: 9px;
  justify-self: center;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.recommendation-signals[open] > summary > i {
  transform: rotate(225deg);
}

.recommendation-batch-list {
  display: grid;
  gap: 10px;
}

.recommendation-signals > .recommendation-batch-list {
  padding: 0 12px 12px;
}

.recommendation-batch {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.recommendation-batch.priority-critical,
.recommendation-batch.priority-high {
  --batch-accent: var(--red);
}

.recommendation-batch.priority-low {
  --batch-accent: var(--green);
}

.recommendation-batch summary {
  display: grid;
  grid-template-columns: 30px 1fr 28px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-left: 3px solid var(--batch-accent, var(--yellow));
  cursor: pointer;
  list-style: none;
}

.recommendation-batch summary::-webkit-details-marker {
  display: none;
}

.batch-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.batch-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.batch-check span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(104, 168, 255, 0.48);
  border-radius: 6px;
  background: rgba(104, 168, 255, 0.08);
}

.batch-check input:checked + span {
  border-color: var(--blue-2);
  background: var(--blue);
  box-shadow: inset 0 0 0 4px rgba(9, 12, 19, 0.75);
}

.batch-title {
  min-width: 0;
}

.batch-title strong,
.batch-title small {
  display: block;
}

.batch-title strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.batch-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.recommendation-batch summary > i {
  width: 10px;
  height: 10px;
  justify-self: center;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.recommendation-batch[open] summary > i {
  transform: rotate(225deg);
}

.batch-detail {
  display: grid;
  gap: 10px;
  padding: 0 0 12px 0;
}

.batch-detail section {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.batch-detail h4 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.batch-detail article {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.batch-detail article div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.batch-detail article b,
.batch-detail article em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.batch-detail article b {
  color: #07100b;
  background: var(--green);
}

.batch-detail article b.recommendation-meta-pill {
  min-height: 19px;
  padding: 0 8px;
  font-size: 9px;
  white-space: nowrap;
}

.batch-detail article em {
  color: var(--soft);
  border: 1px solid var(--line);
}

.batch-detail article strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.batch-detail article p,
.batch-detail article small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.recommendation-points {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendation-points li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.recommendation-points span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.recommendation-points b {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  color: #07100b;
  background: var(--green);
  font-size: 9px;
  font-weight: 900;
  line-height: 18px;
  white-space: nowrap;
}

.recommendation-points span {
  color: var(--muted);
  font-weight: 650;
}

.change-proposal-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(104, 168, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(104, 168, 255, 0.06), rgba(98, 213, 143, 0.025)),
    rgba(5, 11, 18, 0.72);
}

.change-proposal-head,
.change-proposal-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.change-proposal-head > div,
.change-proposal-summary {
  min-width: 0;
}

.change-proposal-summary {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 8px;
  background: rgba(104, 168, 255, 0.04);
}

.change-proposal-head strong,
.change-proposal-countline strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.change-proposal-countline {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.change-proposal-countline > span {
  color: #98a9bf;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.change-proposal-countline strong {
  color: #ffffff;
  font-size: 16px;
}

.change-proposal-summary mark {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 6px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d7e9ff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.change-proposal-summary mark.planner-ok {
  border-color: rgba(104, 168, 255, 0.28);
  background: rgba(104, 168, 255, 0.12);
}

.change-proposal-summary mark.planner-fallback {
  color: #ffe7bd;
  border-color: rgba(255, 207, 122, 0.28);
  background: rgba(255, 207, 122, 0.12);
}

.change-proposal-model {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 5px;
  padding: 0 8px;
  border: 1px solid rgba(157, 190, 232, 0.22);
  border-radius: 999px;
  color: #c7d8ee;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.change-proposal-head span,
.change-proposal-summary span,
.change-proposal-footer span,
.change-proposal-note {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.change-proposal-summary .change-proposal-countline > span {
  display: block;
  margin: 0;
  color: #98a9bf;
  line-height: 1.1;
}

.change-proposal-summary .change-proposal-model {
  display: inline-flex;
  margin: 0 0 6px 5px;
  color: #c7d8ee;
  line-height: 1;
}

.change-proposal-summary-text > span {
  margin-top: 0;
}

.change-proposal-head button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
}

.change-proposal-head .change-proposal-load-button.primary,
.change-proposal-load-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff !important;
  border-color: rgba(104, 168, 255, 0.64) !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a57ff, #68a8ff) !important;
  box-shadow: 0 14px 30px rgba(69, 135, 255, 0.24) !important;
  font-size: 15px;
  font-weight: 900;
}

.change-proposal-load-button.loading::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: lightads-spin 0.75s linear infinite;
}

.change-proposal-note {
  margin: 0;
}

.change-proposal-note.error {
  color: #ff9c9c;
}

.change-proposal-output {
  display: grid;
  gap: 12px;
}

.change-proposal-live-gate,
.change-proposal-boundary-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 207, 122, 0.24);
  border-radius: 10px;
  background: rgba(255, 207, 122, 0.055);
}

.change-proposal-live-gate.is-ready,
.change-proposal-boundary-gate.is-ready {
  border-color: rgba(99, 220, 144, 0.22);
  background: rgba(99, 220, 144, 0.045);
}

.change-proposal-boundary-gate.is-hold {
  border-color: rgba(255, 116, 116, 0.28);
  background: rgba(255, 116, 116, 0.06);
}

.change-proposal-live-gate strong,
.change-proposal-live-gate span,
.change-proposal-live-gate p,
.change-proposal-boundary-gate strong,
.change-proposal-boundary-gate span,
.change-proposal-boundary-gate p {
  overflow-wrap: anywhere;
}

.change-proposal-live-gate strong,
.change-proposal-boundary-gate strong {
  display: block;
  color: #f6f9ff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.change-proposal-live-gate span,
.change-proposal-boundary-gate span {
  display: block;
  margin-top: 4px;
  color: rgba(190, 205, 228, 0.84);
  font-size: 11.5px;
  line-height: 1.35;
}

.change-proposal-live-gate mark,
.change-proposal-boundary-gate mark {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  color: #221705;
  background: linear-gradient(135deg, #ffcf7a, #ffc15f);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.change-proposal-live-gate.is-ready mark,
.change-proposal-boundary-gate.is-ready mark {
  color: #06140d;
  background: linear-gradient(135deg, #62d58f, #a6efbd);
}

.change-proposal-boundary-gate.is-hold mark {
  color: #210909;
  background: linear-gradient(135deg, #ff8b8b, #ffc0a1);
}

.change-proposal-live-gate p,
.change-proposal-boundary-gate p {
  grid-column: 1 / -1;
  max-width: 960px;
  margin: 0;
  color: rgba(224, 234, 248, 0.9);
  font-size: 12px;
  font-weight: 430;
  line-height: 1.5;
}

.change-proposal-demand {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(98, 213, 143, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(98, 213, 143, 0.09), rgba(104, 168, 255, 0.045)),
    rgba(7, 15, 25, 0.42);
}

.change-proposal-demand-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.change-proposal-demand-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.change-proposal-demand-head strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.change-proposal-demand-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.change-proposal-demand-head mark {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(98, 213, 143, 0.28);
  border-radius: 999px;
  color: #07111d;
  background: linear-gradient(135deg, #62d58f, #9be7b6);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.change-proposal-demand-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.change-proposal-demand-cards article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(157, 190, 232, 0.14);
  border-radius: 10px;
  background: rgba(4, 10, 17, 0.42);
}

.change-proposal-demand-cards b {
  color: #9be7b6;
  font-size: 18px;
  line-height: 1;
}

.change-proposal-demand-cards span {
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.change-proposal-demand-cards small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.change-proposal-demand-actions {
  display: grid;
  gap: 7px;
}

.change-proposal-demand-actions p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(157, 190, 232, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.change-proposal-demand-actions b {
  color: #65dfa0;
  font-size: 11px;
  line-height: 1.2;
}

.change-proposal-demand-actions span {
  color: rgba(218, 229, 245, 0.86);
  font-size: 12px;
  line-height: 1.35;
}

.change-proposal-site-wordstat {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(104, 168, 255, 0.075), rgba(98, 213, 143, 0.045)),
    rgba(7, 15, 25, 0.4);
}

.change-proposal-site-wordstat-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.change-proposal-site-wordstat-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.change-proposal-site-wordstat-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.change-proposal-site-wordstat-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.change-proposal-site-wordstat-head mark {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(104, 168, 255, 0.32);
  border-radius: 999px;
  color: #dcecff;
  background: rgba(104, 168, 255, 0.12);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.change-proposal-site-wordstat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.change-proposal-site-wordstat-cards article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(157, 190, 232, 0.14);
  border-radius: 10px;
  background: rgba(4, 10, 17, 0.42);
}

.change-proposal-site-wordstat-cards b {
  color: #ffd86b;
  font-size: 18px;
  line-height: 1;
}

.change-proposal-site-wordstat-cards span {
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.change-proposal-site-wordstat-cards small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.change-proposal-site-wordstat p {
  margin: 0;
  color: rgba(218, 229, 245, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

.change-proposal-list {
  display: grid;
  gap: 14px;
}

.change-proposal-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.change-proposal-group-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(126, 164, 207, 0.16);
}

.change-proposal-group-head strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.change-proposal-group-head span {
  max-width: 760px;
  color: rgba(198, 213, 232, 0.82);
  font-size: 12px;
  font-weight: 430;
  line-height: 1.45;
  text-align: right;
}

.change-proposal-group-list {
  display: grid;
  gap: 10px;
}

.change-proposal-batch {
  border: 1px solid rgba(157, 190, 232, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
  box-shadow: none;
  overflow: hidden;
}

.change-proposal-batch.priority-critical,
.change-proposal-batch.priority-high {
  --proposal-accent: rgba(255, 184, 108, 0.92);
}

.change-proposal-batch.priority-medium {
  --proposal-accent: rgba(104, 168, 255, 0.86);
}

.change-proposal-batch.priority-low {
  --proposal-accent: rgba(119, 216, 154, 0.86);
}

.change-proposal-batch > summary {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr 28px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 14px 14px 14px 16px;
  background: rgba(5, 11, 18, 0.34);
  cursor: pointer;
  list-style: none;
}

.change-proposal-batch > summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--proposal-accent, rgba(104, 168, 255, 0.86));
}

.change-proposal-batch .batch-title p {
  max-width: 860px;
  margin: 6px 0 0;
  color: rgba(218, 229, 245, 0.86);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.change-proposal-batch .batch-title em {
  display: block;
  margin-top: 5px;
  color: rgba(157, 190, 232, 0.84);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 430;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.change-proposal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.change-proposal-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(157, 190, 232, 0.28);
  border-radius: 999px;
  color: #cfe1f6;
  background: rgba(157, 190, 232, 0.075);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.change-proposal-tags .change-proposal-level-badge {
  color: #07111d;
  border-color: transparent;
  background: linear-gradient(135deg, #62d58f, #9be7b6);
}

.change-proposal-tags .change-proposal-level-badge.level-budget_strategy {
  color: #251704;
  background: linear-gradient(135deg, #ffd36f, #ffb15f);
}

.change-proposal-editor-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.change-proposal-editor-map span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(157, 190, 232, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.change-proposal-editor-map span.is-primary {
  border-color: rgba(98, 213, 143, 0.28);
  background: rgba(98, 213, 143, 0.07);
}

.change-proposal-editor-map b {
  color: rgba(157, 190, 232, 0.92);
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.change-proposal-editor-map em {
  color: rgba(232, 240, 255, 0.92);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.change-proposal-editor-map span.is-primary b {
  color: #65dfa0;
}

.change-proposal-editor-map span.is-primary em {
  color: #f3fff8;
  font-weight: 780;
}

.change-proposal-level-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.change-proposal-level-board .level-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 10px;
  background: rgba(7, 14, 24, 0.42);
}

.change-proposal-level-board .level-card > div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.change-proposal-level-board .level-card strong {
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.change-proposal-level-board .level-card span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #07111d;
  background: rgba(99, 220, 144, 0.92);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.change-proposal-level-board .level-card b {
  color: #9ec7ff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.change-proposal-level-board .level-card p,
.change-proposal-level-board .level-card small {
  margin: 0;
  color: rgba(188, 204, 226, 0.88);
  font-size: 11.5px;
  font-weight: 480;
  line-height: 1.4;
}

.change-proposal-level-board .level-card small {
  color: rgba(157, 190, 232, 0.78);
}

.change-proposal-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}

.change-proposal-scale span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(157, 190, 232, 0.2);
  border-radius: 999px;
  color: rgba(232, 240, 255, 0.92);
  background: rgba(157, 190, 232, 0.045);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.change-proposal-scale b {
  display: inline;
  color: rgba(166, 184, 209, 0.92);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.change-proposal-scale em {
  flex-basis: 100%;
  color: rgba(188, 204, 226, 0.84);
  background: transparent;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 450;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.change-proposal-batch > summary::-webkit-details-marker {
  display: none;
}

.change-proposal-batch > summary > i {
  width: 10px;
  height: 10px;
  justify-self: center;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.change-proposal-batch[open] > summary > i {
  transform: rotate(225deg);
}

.change-proposal-detail {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px 14px;
}

.change-proposal-package-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(104, 168, 255, 0.08);
}

.change-proposal-package-note b {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0b1520;
  background: #9ec7ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.change-proposal-package-note span {
  color: #d7e4f7;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
}

.change-proposal-detail article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 10, 18, 0.34);
}

.proposal-item-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  min-height: 26px;
  padding-top: 0;
  cursor: pointer;
}

.proposal-item-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.proposal-item-check span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(104, 168, 255, 0.48);
  border-radius: 5px;
  background: rgba(104, 168, 255, 0.08);
}

.proposal-item-check input:checked + span {
  border-color: #9bd8ff;
  background: #9bd8ff;
  box-shadow: inset 0 0 0 4px rgba(9, 12, 19, 0.78);
}

.proposal-item-check b {
  color: rgba(207, 225, 246, 0.88);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.proposal-item-check input:checked ~ b {
  color: #95f7b7;
}

.proposal-item-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.proposal-item-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proposal-item-kickers b,
.proposal-item-kickers em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.proposal-item-kickers b {
  color: #0b1520;
  background: #9bd8ff;
}

.proposal-item-kickers em {
  color: #dcecff;
  border: 1px solid rgba(104, 168, 255, 0.24);
  background: rgba(104, 168, 255, 0.08);
}

.proposal-item-body > strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.proposal-item-preview {
  margin: 0;
  color: #d7e4f7;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.proposal-change-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 8px;
  min-width: 0;
}

.proposal-change-focus {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(98, 213, 143, 0.26);
  border-radius: 10px;
  background: rgba(98, 213, 143, 0.07);
}

.proposal-change-focus > b {
  color: #65dfa0;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.proposal-change-focus span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.proposal-change-focus em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  color: #07140d;
  background: #62d58f;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.proposal-change-view section {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(126, 164, 207, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
}

.proposal-change-view section.is-next {
  border-color: rgba(98, 213, 143, 0.24);
  background: rgba(98, 213, 143, 0.055);
}

.proposal-change-view section.is-scope {
  border-color: rgba(104, 168, 255, 0.2);
  background: rgba(104, 168, 255, 0.045);
}

.proposal-change-view b {
  color: #65dfa0;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.proposal-change-view p {
  margin: 0;
  color: rgba(232, 240, 255, 0.92);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.42;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.proposal-field-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.proposal-field-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  min-width: 0;
}

.proposal-field-list dt {
  color: rgba(149, 247, 183, 0.96);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
}

.proposal-field-list dd {
  min-width: 0;
  margin: 0;
  color: rgba(232, 240, 255, 0.94);
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.proposal-change-view small {
  grid-column: 1 / -1;
  color: rgba(198, 213, 232, 0.82);
  font-size: 11.5px;
  font-weight: 430;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.proposal-item-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(104, 168, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.proposal-item-plan span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.proposal-item-plan b {
  color: #65dfa0;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
}

.proposal-item-plan em {
  color: rgba(232, 240, 255, 0.92);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.proposal-item-editor {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-top: 6px;
}

.proposal-item-editor > summary,
.proposal-technical-details > summary {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  min-height: 24px;
  width: fit-content;
  max-width: max-content;
  padding: 0 9px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  color: #cfe1f6;
  background: rgba(104, 168, 255, 0.07);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.proposal-item-editor > summary::before {
  content: "\270E";
  color: #65dfa0;
  font-size: 12px;
  line-height: 1;
}

.proposal-item-editor > summary::-webkit-details-marker,
.proposal-technical-details > summary::-webkit-details-marker {
  display: none;
}

.proposal-item-editor[open] > summary,
.proposal-technical-details[open] > summary {
  color: #07140d;
  border-color: rgba(98, 213, 143, 0.42);
  background: #62d58f;
}

.proposal-item-editor[open] > summary::before {
  color: #07140d;
}

.change-proposal-rows {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.change-proposal-rows li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.change-proposal-rows b {
  justify-self: start;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  color: #0b1520;
  background: #9ec7ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 19px;
  white-space: nowrap;
}

.change-proposal-rows span {
  color: #c8d8ee;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.proposal-edit-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.proposal-edit-field b {
  justify-self: start;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  color: #0b1520;
  background: #9ec7ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 19px;
}

.proposal-edit-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 116px;
  resize: vertical;
  padding: 10px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  outline: none;
}

.proposal-edit-field textarea:focus {
  border-color: rgba(104, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(104, 168, 255, 0.12);
}

.proposal-editor-shell {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin-top: 4px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(104, 168, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.proposal-editor-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.proposal-editor-head b {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.proposal-editor-head span {
  color: rgba(188, 204, 226, 0.86);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.35;
}

.proposal-editor-empty {
  margin: 0;
  color: rgba(198, 213, 232, 0.82);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.45;
}

.proposal-structured-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.proposal-structured-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.proposal-structured-field b {
  color: var(--soft);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.proposal-structured-field input,
.proposal-structured-field textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  outline: none;
}

.proposal-structured-field textarea {
  min-height: 86px;
  resize: vertical;
}

.proposal-structured-field input::placeholder,
.proposal-structured-field textarea::placeholder {
  color: rgba(188, 204, 226, 0.48);
}

.proposal-structured-field input.is-empty,
.proposal-structured-field textarea.is-empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.026);
}

.proposal-structured-field input:focus,
.proposal-structured-field textarea:focus {
  border-color: rgba(104, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(104, 168, 255, 0.12);
}

.proposal-technical-details {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
}

.proposal-technical-details .proposal-structured-editor {
  opacity: 0.9;
}

.change-proposal-more {
  display: grid;
  gap: 8px;
}

.change-proposal-more > summary {
  display: inline-flex;
  justify-self: start;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(104, 168, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.change-proposal-more > summary::-webkit-details-marker {
  display: none;
}

.change-proposal-more > div {
  display: grid;
  gap: 8px;
}

.change-proposal-footer {
  padding-top: 2px;
}

.change-proposal-footer button {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .change-proposal-head,
  .change-proposal-footer {
    display: grid;
    justify-content: stretch;
  }

  .change-proposal-summary {
    grid-template-columns: 1fr;
  }

  .change-proposal-live-gate,
  .change-proposal-boundary-gate {
    grid-template-columns: 1fr;
  }

  .change-proposal-live-gate mark,
  .change-proposal-boundary-gate mark {
    justify-self: start;
  }

  .change-proposal-demand-head {
    display: grid;
  }

  .change-proposal-demand-head mark {
    justify-self: start;
  }

  .change-proposal-site-wordstat-head {
    display: grid;
  }

  .change-proposal-site-wordstat-head mark {
    justify-self: start;
  }

  .change-proposal-head button,
  .change-proposal-footer button {
    width: 100%;
  }

  .change-proposal-detail article {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }

  .change-proposal-detail {
    padding: 0 10px 12px;
  }

  .change-proposal-rows {
    gap: 7px;
  }

  .proposal-item-plan {
    grid-template-columns: 1fr;
  }

  .proposal-change-view {
    grid-template-columns: 1fr;
  }

  .proposal-field-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .change-proposal-rows li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .proposal-edit-field textarea {
    min-height: 138px;
    font-size: 12px;
  }

  .proposal-structured-editor {
    grid-template-columns: 1fr;
  }

  .change-proposal-batch > summary {
    grid-template-columns: 28px minmax(0, 1fr) 22px;
    align-items: start;
    padding: 11px 10px;
  }

  .change-proposal-batch .batch-title p,
  .proposal-item-preview,
  .change-proposal-package-note span {
    font-size: 11px;
  }

  .change-proposal-tags {
    gap: 5px;
  }

  .change-proposal-editor-map {
    grid-template-columns: 1fr;
  }

  .change-proposal-level-board {
    grid-template-columns: 1fr;
  }

  .change-proposal-scale {
    gap: 5px;
  }

  .change-proposal-package-note {
    grid-template-columns: 1fr;
  }
}

body.light .recommendation-batch,
body.light .batch-detail article,
body.light .change-proposal-panel,
body.light .change-proposal-batch,
body.light .change-proposal-detail article {
  background: rgba(255, 255, 255, 0.48);
}

body.light .counter-suggestions {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(18, 31, 49, 0.14);
}

.account-summary-card > .tariff-box {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.light .account-summary-card > .tariff-box {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.account-summary-card .metric-grid,
.account-summary-card .stats-grid.compact,
.account-summary-card .segment-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.account-summary-card .audit-insight-grid {
  grid-template-columns: 1fr;
}

.account-summary-card .audit-insight-grid .segment-grid.compact {
  order: 1;
}

.account-summary-card .query-leaders {
  order: 2;
  border-radius: 8px;
}

.account-summary-card .ad-extremes {
  grid-template-columns: 1fr;
}

.scan-details-card.account-summary-card .segment-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.scan-details-card.account-summary-card .ad-extremes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.scan-details-card.account-summary-card .query-leaders {
  order: initial;
}

.pdf-sheet {
  width: min(900px, calc(100% - 36px));
  padding: 28px 32px;
}

.pdf-grid {
  gap: 8px;
  margin: 14px 0;
}

.pdf-grid article {
  min-height: 72px;
  padding: 10px 12px;
}

.pdf-grid strong {
  margin-top: 7px;
  font-size: clamp(18px, 2vw, 23px);
  white-space: normal;
}

.pdf-section {
  margin-top: 16px;
}

.pdf-footer {
  margin-top: 26px;
}

@media (max-width: 480px) {
  .app-shell {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Clean conversion-first home page */
body {
  background:
    radial-gradient(circle at 58% 18%, rgba(16, 84, 184, 0.26), transparent 34rem),
    radial-gradient(circle at 14% 86%, rgba(16, 210, 142, 0.1), transparent 26rem),
    linear-gradient(180deg, #02050a 0%, #05070b 48rem, #030407 100%);
}

.growth-bg {
  position: fixed;
  inset: 64px 0 0;
  z-index: -2;
  overflow: hidden;
  opacity: 0.42;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 82%, transparent);
}

.growth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.46);
}

.growth-bg svg {
  width: 100%;
  height: 100%;
}

.growth-path {
  fill: none;
  stroke: #00eaff;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.72));
  animation: growthDraw 8s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}

.growth-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.8), 0 0 34px rgba(0, 255, 136, 0.35);
  opacity: 0;
  animation: nodePop 8s ease-in-out infinite;
}

.growth-node b {
  position: absolute;
  bottom: 22px;
  left: 16px;
  color: #00ff88;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(0, 255, 136, 0.9);
}

.growth-node.n1 { left: 31%; top: 65%; animation-delay: 1.6s; }
.growth-node.n2 { left: 54%; top: 47%; animation-delay: 3s; }
.growth-node.n3 { left: 76%; top: 32%; animation-delay: 4.6s; }
.growth-node.n4 { left: 88%; top: 26%; animation-delay: 5.6s; }

@keyframes growthDraw {
  0% { stroke-dashoffset: 1800; opacity: 0; }
  14% { opacity: 1; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes nodePop {
  0%, 18%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  25%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.action-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
  gap: 46px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 54px;
}

.action-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 74% 36%, rgba(69, 135, 255, 0.16), transparent 24rem);
  pointer-events: none;
}

.action-hero .home-copy h1 {
  max-width: 650px;
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 520;
}

.action-hero .home-copy > p {
  max-width: 660px;
  color: #d8dfeb;
  font-size: 18px;
  line-height: 1.65;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #eaf2ff;
  border: 1px solid rgba(104, 168, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 750;
}

.compact-value {
  margin-top: 22px;
}

.compact-value article {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(10, 14, 22, 0.62);
  backdrop-filter: blur(18px);
}

.compact-value strong {
  font-size: 15px;
}

.compact-value span {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.live-preview {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(104, 168, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20, 23, 31, 0.66), rgba(7, 10, 16, 0.58)),
    rgba(12, 16, 24, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow), 0 0 78px rgba(69, 135, 255, 0.18);
}

.live-preview::before {
  display: none;
}

@keyframes previewSweep {
  0%, 100% { translate: -62% 0; opacity: 0; }
  30%, 58% { opacity: 1; }
  78% { translate: 72% 0; opacity: 0; }
}

.live-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.live-top i {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(104, 168, 255, 0.18);
  border-top-color: #68a8ff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { rotate: 360deg; }
}

.scan-feed {
  position: relative;
  display: grid;
  gap: 9px;
}

.feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(10px);
  animation: feedIn 7s ease-in-out infinite;
}

.feed-row.r1 { animation-delay: -5.4s; }
.feed-row.r2 { animation-delay: -4.9s; }
.feed-row.r3 { animation-delay: -4.4s; }
.feed-row.r4 { animation-delay: -3.9s; }
.feed-row.r5 { animation-delay: -3.4s; }

@keyframes feedIn {
  0%, 8% { opacity: 0; transform: translateY(10px); }
  16%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.55; transform: translateY(0); }
}

.feed-row span,
.feed-row em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
}

.feed-row strong {
  font-size: 18px;
}

.search-mock {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.search-ad {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  transform: translateY(12px);
  animation: adAppear 7s ease-in-out infinite;
}

.search-ad.google-ad {
  animation-delay: -3.4s;
}

.search-ad.yandex-ad {
  animation-delay: -4.6s;
}

@keyframes adAppear {
  0%, 20% { opacity: 0; transform: translateY(12px); }
  34%, 82% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.55; transform: translateY(0); }
}

.search-ad > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 750;
}

.search-ad .logo {
  width: 18px;
  height: 18px;
}

.search-ad strong {
  color: #9ec1ff;
  font-size: 15px;
}

.search-ad p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.search-ad small {
  color: #72dca0;
  font-size: 11px;
  line-height: 1.4;
}

.process-section {
  padding-top: 36px !important;
}

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

.process-grid article {
  position: relative;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 23, 25, 0.44);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.process-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #4285f4, #00c853, #ffdc3d, #ff4f8b);
}

.process-grid span {
  display: block;
  margin-bottom: 22px;
  color: rgba(104, 168, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.process-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.process-grid p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-source-card {
  background: rgba(13, 17, 25, 0.44);
  backdrop-filter: blur(10px);
}

.platform-link {
  min-height: 44px;
  color: #ffffff;
  border-color: rgba(104, 168, 255, 0.34);
  background: linear-gradient(135deg, rgba(10, 87, 255, 0.88), rgba(104, 168, 255, 0.82));
  box-shadow: 0 14px 34px rgba(69, 135, 255, 0.22);
}

.logo.direct,
.logo.gads,
.logo.ga,
.logo.fb,
.logo.ig,
.logo.tt,
.logo.metrika {
  overflow: hidden;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.logo.direct::before,
.logo.direct::after,
.logo.gads::before,
.logo.gads::after,
.logo.ga::before,
.logo.ga::after,
.logo.fb::before,
.logo.fb::after,
.logo.ig::before,
.logo.ig::after,
.logo.tt::before,
.logo.tt::after,
.logo.metrika::before,
.logo.metrika::after {
  content: none !important;
}

.logo.direct { border-radius: 50%; background-image: url("./assets/yandex-direct.png"); }
.logo.gads { border-radius: 5px; background-image: url("./assets/google-ads.svg"); }
.logo.ga { border-radius: 5px; background-image: url("./assets/google-analytics.svg"); }
.logo.fb { border-radius: 50%; background-image: url("./assets/facebook.svg"); }
.logo.ig { border-radius: 7px; background-image: url("./assets/instagram.svg"); }
.logo.tt { border-radius: 5px; background-image: url("./assets/tiktok.svg"); }
.logo.metrika { border-radius: 50%; background-image: url("./assets/yandex-metrika.svg"); }

body.light .live-preview {
  color-scheme: dark;
  --text: #f4f7fb;
  --muted: #a7b1c0;
  --soft: #758095;
  --line: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(20, 23, 31, 0.72), rgba(7, 10, 16, 0.66)),
    rgba(8, 11, 17, 0.68);
}

.process-icons,
.metric-icons,
.tariff-icons {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 20px !important;
}

.process-icons .logo {
  width: 24px;
  height: 24px;
}

.metric-icons b,
.tariff-icons b {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 28px;
  padding: 0 9px;
  color: #dfffe9;
  border: 1px solid rgba(98, 213, 143, 0.22);
  border-radius: 999px;
  background: rgba(98, 213, 143, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.tariff-icons b {
  color: #dce9ff;
  border-color: rgba(104, 168, 255, 0.28);
  background: rgba(69, 135, 255, 0.12);
}

.service-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 800;
}

.service-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.service-pill .logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: transparent;
  box-shadow: none;
}

.service-pill.ok {
  color: var(--green);
  border-color: rgba(98, 213, 143, 0.28);
  background: rgba(98, 213, 143, 0.08);
}

.service-pill.warn {
  color: var(--yellow);
  border-color: rgba(245, 191, 66, 0.28);
  background: rgba(245, 191, 66, 0.08);
}

.service-pill.bad {
  color: var(--red);
  border-color: rgba(255, 98, 98, 0.28);
  background: rgba(255, 98, 98, 0.08);
}

.source-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

.source-field-grid label {
  position: relative;
  align-content: start;
}

.source-field-grid input,
.source-field-grid select {
  height: 46px;
  min-height: 46px;
  line-height: 1.2;
}

.counter-suggestions {
  display: grid;
  gap: 7px;
  position: absolute;
  z-index: 30;
  top: calc(100% - 3px);
  right: 0;
  left: 0;
  max-height: 260px;
  margin-top: 0;
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(104, 168, 255, 0.22);
  border-radius: 10px;
  background: rgba(10, 15, 24, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.counter-suggestions[hidden] {
  display: none;
}

.counter-suggestions button {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.counter-suggestions button:hover,
.counter-suggestions button.selected {
  border-color: rgba(98, 213, 143, 0.44);
  background: rgba(98, 213, 143, 0.08);
}

.counter-suggestions b {
  font-size: 12px;
  line-height: 1.2;
}

.counter-suggestions span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 680px) {
  .source-field-grid {
    grid-template-columns: 1fr;
  }
}

.field-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field-note[data-state="selected"],
.field-note[data-state="ready"] {
  color: var(--green);
}

.field-note:empty {
  display: none;
}

.field-note[data-state="error"],
.field-note[data-state="oauth"] {
  color: var(--yellow);
}

.guide-save-note {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 2px 0 0;
  min-height: 34px;
  padding: 9px 12px;
  color: rgba(238, 243, 255, 0.88);
  border: 1px solid rgba(98, 213, 143, 0.28);
  border-radius: 8px;
  background: rgba(98, 213, 143, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.guide-save-note::before {
  content: none;
}

.step-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(104, 224, 145, 0.42);
  border-radius: 12px;
  color: #eafff1;
  background: linear-gradient(180deg, #22784a, #185c39);
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.guide-connect-action {
  width: 100%;
  min-height: 46px;
  color: #f4fff7;
  background: linear-gradient(180deg, #2c9a62, #1c7448);
  box-shadow: 0 12px 26px rgba(30, 112, 70, 0.22);
}

.guide-final-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(98, 213, 143, 0.25);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(98, 213, 143, 0.11), rgba(36, 137, 255, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.guide-final-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.guide-final-copy span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
}

.guide-final-copy strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.guide-final-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.guide-oauth-preview {
  position: relative;
  min-width: 0;
  justify-self: end;
  width: min(100%, 260px);
}

.guide-oauth-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}

.account-avatar-overlay {
  position: absolute;
  top: 5.1%;
  left: 45.4%;
  display: block;
  width: 26.7%;
  aspect-ratio: 1;
  padding: 0;
  color: #202633;
  border: 5px solid #ffffff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.96), rgba(228, 233, 244, 0.92)),
    #eef2f8;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.18);
  pointer-events: none;
}

.account-avatar-overlay::before,
.account-avatar-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #222835;
}

.account-avatar-overlay::before {
  top: 22%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 999px;
}

.account-avatar-overlay::after {
  bottom: 20%;
  width: 54%;
  height: 30%;
  border-radius: 999px 999px 34% 34%;
}

.account-avatar-overlay i {
  position: absolute;
  right: -8%;
  bottom: 10%;
  display: grid;
  place-items: center;
  width: 34%;
  aspect-ratio: 1;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #f23a27;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.18);
  font-size: clamp(10px, 1.45vw, 18px);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.report-after-scan {
  margin-top: 18px;
}

.channel-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.channel-plan-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.channel-plan-grid strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.channel-plan-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 17px;
}

.channel-plan-grid li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.light .channel-plan-grid article {
  background: rgba(255, 255, 255, 0.52);
}

.audit-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
}

.audit-insight-grid .segment-grid {
  margin-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.audit-insight-grid .segment-grid article {
  min-height: 148px;
}

.query-leaders {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(9, 12, 19, 0.46);
  backdrop-filter: blur(12px);
}

body.light .query-leaders {
  border-color: rgba(20, 31, 52, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.query-delta-monitor {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 199, 87, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(36, 27, 8, 0.34), rgba(7, 15, 25, 0.42));
  backdrop-filter: blur(12px);
}

body.light .query-delta-monitor {
  border-color: rgba(168, 105, 18, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.query-delta-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 199, 87, 0.16);
}

.query-delta-head strong,
.query-delta-head span {
  display: block;
}

.query-delta-head strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}

.query-delta-head span,
.query-delta-head small,
.query-delta-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.query-delta-head span {
  margin-top: 6px;
}

.query-delta-summary {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
}

.query-delta-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 199, 87, 0.2);
  border-radius: 999px;
  color: rgba(238, 243, 255, 0.82);
  background: rgba(255, 199, 87, 0.08);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.query-delta-summary b {
  color: #ffd76b;
}

.query-delta-summary small {
  flex-basis: 100%;
  text-align: right;
}

.query-delta-minus-list {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(255, 199, 87, 0.2);
  border-radius: 14px;
  background: rgba(255, 199, 87, 0.045);
}

.query-delta-minus-list-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.query-delta-minus-list-head strong,
.query-delta-minus-list-head span {
  display: block;
}

.query-delta-minus-list-head strong {
  color: #ffd76b;
  font-size: 14px;
  line-height: 1.25;
}

.query-delta-minus-list-head span {
  max-width: 680px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: right;
}

.query-delta-minus-list ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 420px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.query-delta-minus-list li {
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(220px, 1fr) minmax(230px, 0.8fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 199, 87, 0.15);
  border-radius: 10px;
  background: rgba(3, 10, 18, 0.56);
}

.query-delta-minus-list li b {
  color: #ffd76b;
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.query-delta-minus-list li span {
  color: rgba(238, 243, 255, 0.9);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.query-delta-minus-list li small {
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.query-delta-proof {
  display: grid;
  gap: 10px;
}

.query-delta-proof > summary {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 199, 87, 0.2);
  border-radius: 999px;
  color: rgba(255, 232, 174, 0.94);
  background: rgba(255, 199, 87, 0.07);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.query-delta-proof > summary::-webkit-details-marker {
  display: none;
}

.query-delta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.query-delta-card {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid rgba(255, 199, 87, 0.9);
  border-radius: 14px;
  background: rgba(2, 9, 16, 0.48);
}

.query-delta-card.high {
  border-left-color: rgba(255, 126, 126, 0.95);
}

body.light .query-delta-card {
  border-color: rgba(20, 31, 52, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

body.light .query-delta-summary span,
body.light .query-delta-metrics span,
body.light .query-delta-flow div,
body.light .query-delta-apply,
body.light .query-delta-negative {
  border-color: rgba(20, 31, 52, 0.12);
  background: rgba(248, 251, 255, 0.72);
}

body.light .query-delta-summary span,
body.light .query-delta-apply b {
  color: #152033;
}

.query-delta-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.query-delta-title b {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.query-delta-title em {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #07100c;
  background: #ffd76b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.query-delta-card.high .query-delta-title em {
  background: #ff8585;
}

.query-delta-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.query-delta-metrics span,
.query-delta-flow div,
.query-delta-apply,
.query-delta-negative {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.query-delta-metrics small,
.query-delta-flow small,
.query-delta-apply small,
.query-delta-negative small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.query-delta-metrics b,
.query-delta-flow b,
.query-delta-apply b,
.query-delta-negative b {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.query-delta-metrics b {
  color: #ffd76b;
  font-size: 14px;
}

.query-delta-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.query-delta-negative {
  border-color: rgba(255, 199, 87, 0.34);
  background: rgba(255, 199, 87, 0.08);
}

.query-delta-negative b {
  color: #ffd76b;
  font-size: 13px;
  font-weight: 900;
}

.query-delta-apply {
  border-color: rgba(98, 222, 159, 0.22);
  background: rgba(98, 222, 159, 0.07);
}

.query-delta-apply b {
  color: rgba(229, 255, 241, 0.92);
}

.query-delta-reason {
  color: rgba(198, 208, 224, 0.86) !important;
}

.query-delta-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.query-delta-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.query-delta-card dl div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 8px;
}

.query-delta-card dl div.query-delta-minus {
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 199, 87, 0.26);
  border-radius: 10px;
  background: rgba(255, 199, 87, 0.07);
}

.query-delta-card dt,
.query-delta-card dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.query-delta-card dt {
  color: var(--muted);
}

.query-delta-card dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

.query-delta-card .query-delta-minus dd {
  color: #ffd76b;
  font-weight: 800;
}

.query-delta-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.query-delta-signals span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 199, 87, 0.28);
  border-radius: 999px;
  color: #ffd76b;
  background: rgba(255, 199, 87, 0.08);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.negative-keywords-scope {
  border: 1px solid rgba(98, 222, 159, 0.18);
  border-radius: 14px;
  background: rgba(4, 13, 18, 0.38);
  overflow: hidden;
}

.negative-keywords-scope summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.negative-keywords-scope summary::-webkit-details-marker {
  display: none;
}

.negative-keywords-scope summary span,
.negative-keywords-scope summary strong,
.negative-keywords-scope summary small {
  display: block;
}

.negative-keywords-scope summary strong {
  color: var(--text);
  font-size: 13px;
}

.negative-keywords-scope summary small,
.negative-keywords-scope p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.negative-keywords-scope summary em {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #07110b;
  background: #65dfa0;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.negative-keywords-scope-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 15px 12px;
}

.negative-keywords-scope-stats span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(215, 228, 245, 0.82);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 750;
}

.negative-keywords-scope-stats b {
  color: #65dfa0;
}

.negative-keywords-group {
  display: grid;
  gap: 8px;
  padding: 0 15px 14px;
}

.negative-keywords-group b {
  color: #65dfa0;
  font-size: 12px;
}

.negative-keywords-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.negative-keywords-group li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.negative-keywords-group li span {
  color: rgba(238, 243, 255, 0.9);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.negative-keywords-group li small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.query-leaders-head strong,
.query-leaders-head span {
  display: block;
}

.query-leaders-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.query-leaders-head span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.query-leaders ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: query-rank;
}

.query-leaders > ol > li,
.wordstat-demand-list > ol > li {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px 9px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.query-leaders > ol > li::before,
.wordstat-demand-list > ol > li::before {
  counter-increment: query-rank;
  content: counter(query-rank);
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #08111b;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.query-leaders > ol > li span,
.wordstat-demand-list > ol > li span {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.query-leaders > ol > li small,
.wordstat-demand-list > ol > li small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.wordstat-demand-list {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 14px;
  background: rgba(104, 168, 255, 0.035);
}

.wordstat-demand-list > strong {
  display: block;
  color: var(--green);
  font-size: 12px;
  line-height: 1.3;
}

.wordstat-demand-list ol {
  counter-reset: wordstat-rank;
}

.wordstat-demand-list > ol > li::before {
  counter-increment: wordstat-rank;
  content: counter(wordstat-rank);
  background: #68a8ff;
}

.keyword-demand-insights {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.keyword-demand-head {
  display: grid;
  gap: 6px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(104, 168, 255, 0.13);
  border-radius: 0;
  background: transparent;
}

.keyword-demand-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.keyword-demand-head strong,
.keyword-demand-head span,
.keyword-demand-intro {
  min-width: 0;
  overflow-wrap: anywhere;
}

.keyword-demand-head strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.keyword-demand-head span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.keyword-demand-intro {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.keyword-demand-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.keyword-demand-grid.count-1 {
  grid-template-columns: 1fr;
}

.keyword-demand-grid.count-2 {
  grid-template-columns: 1fr;
}

section.keyword-demand-section {
  display: grid;
  gap: 9px;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

section.keyword-demand-section + section.keyword-demand-section {
  padding-top: 12px;
  border-top: 1px solid rgba(104, 168, 255, 0.11);
}

.keyword-demand-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.keyword-demand-section-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.keyword-demand-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.keyword-demand-section-head b {
  color: var(--green);
  font-size: 12px;
  line-height: 1.3;
}

.keyword-demand-section-head small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.keyword-demand-section article {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 10px 11px;
  border: 1px solid rgba(104, 168, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 13, 20, 0.74);
}

.keyword-demand-section article strong,
.keyword-demand-section article em,
.keyword-demand-section article span,
.keyword-demand-section article p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.keyword-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.keyword-demand-section article strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}

.keyword-demand-section article em {
  flex: 0 0 auto;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  color: #07110c;
  background: rgba(99, 220, 144, 0.92);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.keyword-card-facts {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.keyword-demand-section article span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.keyword-demand-section article span b {
  color: var(--text);
  font-size: inherit;
}

.keyword-demand-section article p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
}

.traffic-classification,
.ad-extensions-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(104, 168, 255, 0.13);
  border-radius: 0;
  background: transparent;
}

.traffic-classification-head,
.ad-extensions-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.traffic-classification-head strong,
.ad-extensions-head strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.traffic-classification-head span,
.ad-extensions-head span {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.traffic-classification-grid,
.ad-extensions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.traffic-classification article,
.ad-extensions-summary article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(97, 217, 141, 0.18);
  border-radius: 12px;
  background: rgba(6, 16, 20, 0.68);
}

.traffic-classification article b,
.traffic-classification article span,
.traffic-classification article small,
.ad-extensions-summary article b,
.ad-extensions-summary article span,
.ad-extensions-summary article small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.traffic-classification article b,
.ad-extensions-summary article b {
  color: var(--green);
  font-size: 11px;
  line-height: 1.3;
}

.traffic-classification article span,
.ad-extensions-summary article span {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.traffic-classification article small,
.ad-extensions-summary article small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.ad-extension-text-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.ad-extension-text-list li {
  position: static;
  min-width: 0;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(157, 190, 232, 0.2);
  border-radius: 999px;
  color: var(--text);
  background: rgba(157, 190, 232, 0.08);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ad-extension-text-list li::before {
  content: none;
  display: none;
}

.ad-extension-work-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.wordstat-comparison {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(104, 168, 255, 0.13);
  border-radius: 0;
  background: transparent;
}

.wordstat-comparison > strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.wordstat-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.wordstat-comparison article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(104, 168, 255, 0.13);
  border-radius: 12px;
  background: rgba(104, 168, 255, 0.045);
}

.wordstat-comparison-grid.count-1 {
  grid-template-columns: 1fr;
}

.wordstat-comparison-grid.count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wordstat-comparison b,
.wordstat-comparison span,
.wordstat-comparison small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.wordstat-comparison b {
  color: var(--green);
  font-size: 11px;
  line-height: 1.3;
}

.wordstat-comparison span {
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
}

.wordstat-comparison small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .keyword-demand-head {
    display: grid;
  }

  .keyword-demand-grid {
    grid-template-columns: 1fr;
  }

  .wordstat-comparison-grid {
    grid-template-columns: 1fr;
  }

  .traffic-classification-head,
  .ad-extensions-head {
    display: grid;
  }

  .traffic-classification-grid,
  .ad-extensions-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-sheet {
  padding: 22px 28px;
}

.pdf-hero {
  gap: 16px;
}

.pdf-hero h1 {
  margin: 8px 0 7px;
  font-size: 31px;
  line-height: 1.04;
}

.pdf-hero p,
.pdf-section p {
  margin: 6px 0 0;
}

.pdf-score {
  padding: 12px;
}

.pdf-grid {
  gap: 7px;
  margin: 8px 0;
}

.pdf-grid article {
  min-height: 60px;
  padding: 8px 10px;
}

.pdf-grid strong {
  margin-top: 5px;
  font-size: clamp(17px, 1.9vw, 22px);
}

.pdf-section {
  margin-top: 10px;
}

.pdf-section h2 {
  margin-bottom: 7px;
  font-size: 19px;
}

.pdf-list {
  gap: 6px;
}

.pdf-list li {
  padding: 8px 10px;
}

.pdf-footer {
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .growth-path,
  .growth-node,
  .live-top i,
  .live-preview::before,
  .feed-row,
  .search-ad {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .action-hero,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .live-preview {
    max-width: 620px;
  }

  .audit-insight-grid {
    grid-template-columns: 1fr;
  }

  .scan-details-card.account-summary-card .ad-extremes,
  .ai-audit-grid,
  .ai-audit-decision-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .top-actions {
    gap: 6px;
    min-width: 0;
  }

  .top-actions .icon-button {
    display: none;
  }

  .lang-switch button {
    min-width: 31px;
    padding: 0 7px;
  }

  .action-hero .home-copy h1 {
    max-width: 340px;
    font-size: 42px;
  }

  .action-hero .home-copy > p {
    max-width: 330px;
    font-size: 15px;
  }

  .hero-proof {
    display: grid;
  }

  .live-preview,
  .process-grid article,
  .home-source-card {
    padding: 16px;
  }

  .compact-value article {
    width: 100%;
    min-width: 0;
  }

  .feed-row {
    grid-template-columns: 1fr auto;
  }

  .feed-row em {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .topbar > .top-actions {
    position: absolute;
    top: 11px;
    right: 64px !important;
    left: auto;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto !important;
    min-width: 0;
  }

  .topbar > .top-actions .source-mini-nav,
  .topbar > .top-actions .primary.small {
    display: none !important;
  }

  .topbar > .top-actions .lang-switch {
    display: flex;
    min-height: 32px;
  }

  .topbar > .top-actions .lang-switch button {
    min-width: 28px;
    min-height: 24px;
    padding: 0 5px;
    font-size: 11px;
  }

  .topbar > .top-actions .icon-button {
    display: none !important;
  }

  .ai-access-dialog {
    width: min(100%, calc(100vw - 28px));
    padding: 20px;
  }

  .ai-access-actions {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 8px;
    right: 14px !important;
    left: auto !important;
    z-index: 5;
    display: inline-flex !important;
    width: 40px;
    height: 40px;
  }

  .topbar {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .brand {
    max-width: calc(100vw - 168px);
    overflow: hidden;
  }

  .app-shell {
    width: min(100%, calc(100vw - 20px));
    max-width: min(100%, calc(100vw - 20px));
    overflow: hidden;
  }

  .app-shell > section,
  .workspace-head,
  .audit-workbench,
  .summary-card,
  .agent-recommendations,
  .site-context-card,
  .ai-audit-block,
  .ai-audit-grid,
  .ai-audit-decision-cards,
  .recommendation-batch,
  .scan-diagnostics {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .workspace-head h1,
  .workspace-head p,
  .audit-control-card h2,
  .audit-control-card p,
  .agent-recommendations-head span,
  .ai-audit-essence p,
  .ai-audit-grid li p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-context-head {
    display: grid;
  }

  .site-context-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .audit-control-card h2 {
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1.14;
  }

  .summary-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .filter-pills label,
  .source-actions a,
  .source-actions button {
    min-width: 0;
  }
}

.scan-diagnostics {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(6, 10, 16, 0.42);
}

.scan-diagnostics summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.scan-diagnostics pre {
  max-height: 360px;
  margin: 0;
  padding: 0 14px 14px;
  overflow: auto;
  color: var(--soft);
  font: 11px/1.45 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.light .scan-diagnostics {
  background: rgba(255, 255, 255, 0.58);
}

.ai-debug-panel {
  margin: 14px 0;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.08);
}

.ai-debug-panel summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.ai-debug-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.ai-debug-body p {
  margin: 0;
}

.ai-debug-body code,
.ai-debug-models code {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
}

.ai-debug-error {
  color: #ffb4a8;
}

.ai-output-preview {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.ai-output-preview summary {
  padding: 8px 10px;
  font-size: 12px;
}

.ai-output-preview pre {
  max-height: 220px;
  margin: 0;
  padding: 0 10px 10px;
  overflow: auto;
  color: var(--soft);
  font: 11px/1.45 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-debug-table-wrap {
  overflow-x: auto;
}

.ai-debug-panel table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 11px;
}

.ai-debug-panel th,
.ai-debug-panel td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.ai-debug-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-page {
  font-size: 12px;
  background: #ffffff !important;
}

.report-page section:not(.hero) {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.report-toolbar {
  min-height: 58px;
  padding: 0 18px;
}

.pdf-sheet {
  width: min(940px, calc(100% - 28px));
  margin: 8px auto;
  padding: 14px 18px !important;
  border-radius: 8px;
  background: #ffffff !important;
  box-shadow: none;
}

.pdf-hero {
  grid-template-columns: 1fr 142px;
  gap: 12px;
  padding-bottom: 8px !important;
  min-height: 0;
}

.pdf-hero h1 {
  margin: 8px 0 5px;
  font-size: 26px;
  line-height: 1.06;
}

.pdf-hero p,
.pdf-section p {
  font-size: 12px;
  line-height: 1.45;
}

.pdf-score {
  padding: 10px;
}

.pdf-score strong {
  margin-top: 4px;
  font-size: 22px;
}

.pdf-summary-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 6px;
  margin-top: 8px;
}

.pdf-summary-strip article,
.report-chart-card,
.report-links {
  padding: 8px 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-summary-strip span {
  display: block;
  color: #687386;
  font-size: 10px;
  line-height: 1.25;
}

.pdf-summary-strip strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.pdf-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
}

.pdf-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdf-grid article {
  min-height: 56px;
  padding: 7px 9px;
}

.pdf-grid strong {
  margin-top: 5px;
  font-size: 17px;
  white-space: normal;
}

.pdf-section {
  margin-top: 8px;
}

.pdf-section h2 {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.2;
}

.report-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
}

.report-segments article {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 8px;
  border-radius: 8px;
}

.report-segments article strong {
  font-size: 12px;
  line-height: 1.25;
}

.report-segments article span,
.report-segments article em {
  font-size: 11px;
  line-height: 1.35;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.report-chart-card {
  display: grid;
  gap: 6px;
}

.report-chart-card > strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
}

.report-bars {
  display: grid;
  gap: 5px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 74px;
  gap: 8px;
  align-items: center;
}

.report-bar-row span,
.report-bar-row b {
  color: #4b5565;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.report-bar-row b {
  color: #111827;
  text-align: right;
}

.report-bar-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe3ee;
}

.report-bar-row em {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #0a57ff;
}

.report-bar-row .chart-color-1 {
  background: #22c55e;
}

.report-bar-row .chart-color-2 {
  background: #f59e0b;
}

.report-bar-row .chart-color-3 {
  background: #ef4444;
}

.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.report-links a,
.report-links span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.report-links a {
  color: #0a57ff;
  background: #eaf1ff;
}

.report-links span {
  color: #687386;
  background: #ffffff;
}

.pdf-query-leaders {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.pdf-query-delta {
  display: grid;
  gap: 10px;
}

.pdf-query-delta > p {
  margin: 0;
  color: #23304a;
  font-size: 11px;
  line-height: 1.45;
}

.pdf-query-delta > small {
  color: #66718a;
  font-size: 9px;
}

.pdf-query-delta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pdf-query-delta-grid article {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #dbe5f4;
  border-left: 3px solid #ffb84d;
  border-radius: 10px;
  background: #fff;
}

.pdf-query-delta-grid strong {
  color: #101828;
  font-size: 10px;
  line-height: 1.25;
}

.pdf-query-delta-grid span,
.pdf-query-delta-grid em {
  color: #344054;
  font-size: 8.5px;
  font-style: normal;
  line-height: 1.35;
}

.pdf-query-delta-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pdf-query-delta-grid b {
  padding: 2px 5px;
  border-radius: 999px;
  color: #101828;
  background: #fff2cc;
  font-size: 7px;
  line-height: 1;
}

.pdf-query-leaders ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-query-leaders li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 7px 9px 7px 34px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-query-leaders li span {
  color: #111827 !important;
  font-size: 11px;
  font-weight: 800;
}

.pdf-query-leaders li small {
  color: #4b5565 !important;
  font-size: 10px;
  text-align: right;
}

.pdf-ai-audit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pdf-ai-audit article {
  padding: 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-ai-audit strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 12px;
}

.pdf-ai-audit ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-ai-audit li {
  color: #4b5565;
  font-size: 10px;
  line-height: 1.4;
}

.pdf-ai-summary {
  grid-column: 1 / -1;
}

.pdf-ai-summary p {
  margin: 0 0 6px;
  color: #344054;
  font-size: 10.5px;
  line-height: 1.45;
}

.pdf-ai-summary p:last-child {
  margin-bottom: 0;
}

.pdf-wordstat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pdf-metrika {
  display: grid;
  gap: 8px;
}

.pdf-metrika-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pdf-metrika-grid article,
.pdf-metrika-goals {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-metrika-grid span,
.pdf-metrika-goals strong {
  display: block;
  color: #475467;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
}

.pdf-metrika-grid strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.15;
}

.pdf-metrika-goals ol {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.pdf-metrika-goals p {
  margin: 6px 0 0;
  color: #344054;
  font-size: 10px;
  line-height: 1.45;
}

.pdf-metrika-goals li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  color: #4b5565;
  font-size: 10px;
  line-height: 1.35;
}

.pdf-metrika-goals span,
.pdf-metrika-goals small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdf-metrika-goals span {
  color: #111827;
  font-weight: 850;
}

.pdf-metrika-goals small {
  color: #667085;
}

.pdf-reconciliation-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-reconciliation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pdf-reconciliation-head strong {
  color: #111827;
  font-size: 11px;
  line-height: 1.2;
}

.pdf-reconciliation-head span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
}

.pdf-reconciliation-card.reconciliation-warning .pdf-reconciliation-head span {
  background: #fef3c7;
  color: #92400e;
}

.pdf-reconciliation-card.reconciliation-critical .pdf-reconciliation-head span {
  background: #fee2e2;
  color: #991b1b;
}

.pdf-reconciliation-card.reconciliation-unavailable .pdf-reconciliation-head span {
  background: #e5e7eb;
  color: #374151;
}

.pdf-reconciliation-card p {
  margin: 0;
  color: #344054;
  font-size: 10px;
  line-height: 1.42;
}

.pdf-reconciliation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.pdf-reconciliation-grid section {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
}

.pdf-reconciliation-grid span,
.pdf-reconciliation-grid small {
  min-width: 0;
  color: #667085;
  font-size: 8.8px;
  font-weight: 750;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.pdf-reconciliation-grid b {
  min-width: 0;
  color: #111827;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pdf-reconciliation-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-reconciliation-flags li {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1.15;
}

.pdf-trend {
  display: grid;
  gap: 8px;
}

.pdf-trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pdf-trend-grid article,
.pdf-trend-signals,
.pdf-trend-campaigns {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-trend-grid span,
.pdf-trend-signals strong,
.pdf-trend-campaigns strong {
  display: block;
  color: #475467;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
}

.pdf-trend-grid strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 14px;
  line-height: 1.15;
}

.pdf-trend-grid small,
.pdf-trend-signals p,
.pdf-trend-campaigns small {
  color: #667085;
  font-size: 9.5px;
  line-height: 1.35;
}

.pdf-trend-signals p {
  margin: 6px 0 0;
}

.pdf-trend-campaigns ol {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.pdf-trend-campaigns li {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pdf-trend-campaigns span,
.pdf-trend-campaigns small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdf-trend-campaigns span {
  color: #111827;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}

.pdf-wordstat article,
.pdf-landings article {
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #f7f9fc;
}

.pdf-wordstat strong,
.pdf-landings strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 11px;
  line-height: 1.3;
}

.pdf-wordstat ol,
.pdf-landings ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-wordstat li,
.pdf-landings li {
  display: grid;
  gap: 2px;
  color: #4b5565;
  font-size: 10px;
  line-height: 1.35;
}

.pdf-wordstat span,
.pdf-wordstat small,
.pdf-landings a,
.pdf-landings b,
.pdf-landings span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pdf-wordstat span,
.pdf-landings a {
  color: #111827;
  font-weight: 850;
}

.pdf-wordstat small,
.pdf-landings span {
  color: #667085;
}

.pdf-landings {
  display: grid;
  gap: 8px;
}

.pdf-landings a {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
}

.pdf-landings li {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 6px;
}

.pdf-landings b {
  color: #475467;
  font-size: 9.5px;
}

.pdf-list {
  gap: 6px;
}

.pdf-list li {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}

.pdf-list li.priority-critical,
.pdf-list li.priority-high {
  border-left-color: #ef4444;
}

.pdf-list li.priority-low {
  border-left-color: #22c55e;
}

.pdf-list li div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pdf-list li b,
.pdf-list li em {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.pdf-list li b {
  color: #07100b;
  background: #22c55e;
}

.pdf-list li em {
  color: #4b5565;
  background: #eef2f7;
}

.pdf-list li strong {
  margin: 0;
  font-size: 12px;
}

.pdf-list li span,
.pdf-list li small {
  display: block;
  color: #4b5563;
  font-size: 10.5px;
  line-height: 1.4;
}

.pdf-recommendation-entry {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #ffffff;
}

.pdf-recommendation-entry > strong {
  color: #111827;
  font-size: 11.5px;
  line-height: 1.3;
}

.pdf-recommendation-points {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-recommendation-points li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pdf-recommendation-points b,
.pdf-recommendation-points span {
  color: #667085;
  font-size: 9.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pdf-recommendation-points b {
  font-weight: 900;
}

.pdf-recommendation-points span {
  color: #344054;
}

.pdf-footer {
  margin-top: 10px;
  padding-top: 8px;
  font-size: 10px;
}

@media (max-width: 760px) {
  .pdf-summary-strip,
  .pdf-grid,
  .pdf-grid-compact,
  .report-chart-grid,
  .pdf-metrika-grid,
  .pdf-trend-grid,
  .pdf-wordstat {
    grid-template-columns: 1fr;
  }

  body.report-page .pdf-live-readiness {
    grid-template-columns: 1fr;
  }

  .pdf-hero {
    grid-template-columns: 1fr;
  }

  .report-bar-row {
    grid-template-columns: 74px 1fr 66px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  html,
  body {
    background: #ffffff !important;
  }

  .pdf-sheet {
    width: 100%;
    margin: 0;
    padding: 0 !important;
    box-shadow: none;
    color: #111827;
  }

  .pdf-section,
  .pdf-grid,
  .pdf-summary-strip {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdf-hero {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .pdf-section {
    margin-top: 8px;
    padding-top: 8px;
  }

  .pdf-section h2 {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .report-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-ai-audit,
  .pdf-metrika-grid,
  .pdf-trend-grid,
  .pdf-wordstat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-list li,
  .pdf-ai-audit article,
  .pdf-metrika-grid article,
  .pdf-metrika-goals,
  .pdf-trend-grid article,
  .pdf-trend-signals,
  .pdf-trend-campaigns,
  .pdf-wordstat article,
  .pdf-landings article,
  .report-chart-card,
  .pdf-grid article {
    border-color: #d8dee9 !important;
    background: #ffffff !important;
  }

  .pdf-recommendation-entry {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* PDF cleanup: printable white reports with compact spacing and separate modes. */
body.report-page {
  color: #111827;
  background: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

body.report-page * {
  box-sizing: border-box;
}

body.report-page .report-toolbar {
  min-height: 48px;
  padding: 8px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

body.report-page.auto-print-report .report-toolbar {
  display: none;
}

body.report-page .pdf-sheet {
  width: min(900px, calc(100% - 20px));
  margin: 8px auto 14px;
  padding: 14px 16px !important;
  border: 0;
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: none;
}

body.report-page .pdf-hero,
body.report-page .pdf-summary-strip,
body.report-page .pdf-grid,
body.report-page .pdf-section,
body.report-page .pdf-footer {
  margin-top: 0;
}

body.report-page .pdf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #e5e7eb;
}

body.report-page .pdf-hero h1 {
  margin: 6px 0 3px;
  color: #111827;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.report-page .pdf-hero p,
body.report-page .pdf-section p,
body.report-page .pdf-list li span,
body.report-page .pdf-list li small {
  color: #4b5563;
  font-size: 10.5px;
  line-height: 1.38;
}

body.report-page .pdf-score {
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
}

body.report-page .pdf-score span,
body.report-page .pdf-summary-strip span,
body.report-page .pdf-grid span,
body.report-page .pdf-metrika-grid span,
body.report-page .pdf-trend-grid span {
  color: #667085;
  font-size: 9.5px;
  font-weight: 700;
}

body.report-page .pdf-score strong {
  margin-top: 4px;
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

body.report-page .pdf-score small {
  display: block;
  margin-top: 6px;
  color: #4b5563;
  font-size: 8px;
  line-height: 1.25;
}

body.report-page .pdf-summary-strip,
body.report-page .pdf-grid,
body.report-page .report-chart-grid,
body.report-page .pdf-metrika-grid,
body.report-page .pdf-reconciliation-grid,
body.report-page .pdf-trend-grid,
body.report-page .pdf-ai-audit,
body.report-page .pdf-score-proof,
body.report-page .pdf-wordstat {
  gap: 6px;
}

body.report-page .pdf-summary-strip,
body.report-page .pdf-grid {
  margin: 8px 0 0;
}

body.report-page .pdf-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

body.report-page .pdf-section h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0;
}

body.report-page .pdf-summary-strip article,
body.report-page .pdf-grid article,
body.report-page .report-chart-card,
body.report-page .report-links,
body.report-page .report-segments article,
body.report-page .pdf-score-proof-card,
body.report-page .pdf-ai-audit article,
body.report-page .pdf-metrika-grid article,
body.report-page .pdf-metrika-goals,
body.report-page .pdf-reconciliation-card,
body.report-page .pdf-reconciliation-grid section,
body.report-page .pdf-trend-grid article,
body.report-page .pdf-trend-signals,
body.report-page .pdf-trend-campaigns,
body.report-page .pdf-wordstat article,
body.report-page .pdf-landings article,
body.report-page .pdf-change-package,
body.report-page .pdf-change-items section,
body.report-page .pdf-list li,
body.report-page .pdf-recommendation-entry {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff !important;
  box-shadow: none;
}

body.report-page .pdf-summary-strip article,
body.report-page .pdf-grid article,
body.report-page .report-chart-card,
body.report-page .report-segments article,
body.report-page .pdf-score-proof-card,
body.report-page .pdf-ai-audit article,
body.report-page .pdf-wordstat article,
body.report-page .pdf-landings article {
  padding: 7px 8px;
}

body.report-page .pdf-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.report-page .pdf-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.report-page .pdf-grid article {
  min-height: 48px;
}

body.report-page .pdf-grid strong,
body.report-page .pdf-summary-strip strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.15;
}

body.report-page .pdf-summary-strip strong {
  font-size: 11px;
}

body.report-page .report-chart-card > strong,
body.report-page .pdf-score-proof-card strong,
body.report-page .pdf-ai-audit strong,
body.report-page .pdf-wordstat strong,
body.report-page .pdf-landings strong,
body.report-page .pdf-recommendation-entry > strong {
  color: #111827;
  font-size: 11px;
  line-height: 1.25;
}

body.report-page .pdf-ai-audit li,
body.report-page .pdf-score-proof li,
body.report-page .pdf-wordstat li,
body.report-page .pdf-landings li,
body.report-page .pdf-change-items li,
body.report-page .pdf-recommendation-points b,
body.report-page .pdf-recommendation-points span {
  font-size: 9.5px;
  line-height: 1.35;
}

body.report-page .pdf-score-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.report-page .pdf-score-proof-card {
  display: grid;
  gap: 4px;
}

body.report-page .pdf-score-proof-card span {
  color: #667085;
  font-size: 9px;
  font-weight: 800;
}

body.report-page .pdf-score-proof-card strong {
  font-size: 16px;
}

body.report-page .pdf-score-proof-card p {
  margin: 0;
  color: #4b5563;
  font-size: 9.5px;
  line-height: 1.35;
}

body.report-page .pdf-reconciliation-card {
  gap: 6px;
  padding: 7px 8px;
}

body.report-page .pdf-reconciliation-card p {
  margin: 0;
  color: #4b5563;
  font-size: 9.5px;
  line-height: 1.35;
}

body.report-page .pdf-reconciliation-head strong {
  color: #111827;
  font-size: 11px;
}

body.report-page .pdf-reconciliation-head span {
  min-height: 18px;
  padding: 2px 7px;
  font-size: 8px;
}

body.report-page .pdf-reconciliation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

body.report-page .pdf-reconciliation-grid section {
  padding: 6px 7px;
}

body.report-page .pdf-reconciliation-grid span,
body.report-page .pdf-reconciliation-grid small,
body.report-page .pdf-reconciliation-flags li {
  font-size: 8.3px;
}

body.report-page .pdf-reconciliation-grid b {
  color: #111827;
  font-size: 10px;
}

body.report-page .pdf-score-proof-card ul {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

body.report-page .pdf-score-proof-card li {
  color: #475467;
}

body.report-page .pdf-live-watch {
  display: grid;
  gap: 6px;
}

body.report-page .pdf-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
}

body.report-page .pdf-live-head p {
  margin: 0;
}

body.report-page .pdf-live-head strong {
  flex: 0 0 auto;
  color: #111827;
  font-size: 10px;
}

body.report-page .pdf-live-contour,
body.report-page .pdf-live-policy,
body.report-page .pdf-live-summary {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
}

body.report-page .pdf-live-contour {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
}

body.report-page .pdf-live-contour.has-missing {
  border-color: #fed7aa;
  background: #fff7ed;
}

body.report-page .pdf-live-contour strong {
  color: #047857;
  font-size: 9.5px;
  line-height: 1.25;
}

body.report-page .pdf-live-contour span,
body.report-page .pdf-live-contour em,
body.report-page .pdf-live-policy,
body.report-page .pdf-live-summary {
  color: #4b5563;
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
}

body.report-page .pdf-live-contour em {
  color: #9a3412;
  font-weight: 800;
}

body.report-page .pdf-live-policy,
body.report-page .pdf-live-summary {
  margin: 0;
  padding: 7px 8px;
}

  body.report-page .pdf-live-metrics,
  body.report-page .pdf-live-readiness {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.report-page .pdf-live-metrics article,
  body.report-page .pdf-live-readiness article,
  body.report-page .pdf-live-campaign {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
  }

  body.report-page .pdf-live-metrics article,
  body.report-page .pdf-live-readiness article {
    display: grid;
    gap: 3px;
    min-height: 44px;
    padding: 7px 8px;
  }

  body.report-page .pdf-live-metrics span,
  body.report-page .pdf-live-readiness span,
  body.report-page .pdf-live-campaign > span,
  body.report-page .pdf-live-campaign small {
    color: #667085;
    font-size: 9px;
    font-weight: 700;
  }

  body.report-page .pdf-live-metrics strong,
  body.report-page .pdf-live-readiness strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.15;
  }

  body.report-page .pdf-live-metrics small,
  body.report-page .pdf-live-readiness small {
    color: #667085;
    font-size: 8.5px;
  }

body.report-page .pdf-live-campaigns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.report-page .pdf-live-campaign {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
}

body.report-page .pdf-live-campaign b {
  color: #111827;
  font-size: 10.5px;
  line-height: 1.25;
}

body.report-page .pdf-live-campaign p,
body.report-page .pdf-live-campaign li {
  margin: 0;
  color: #4b5563;
  font-size: 9px;
  line-height: 1.32;
}

body.report-page .pdf-live-campaign em {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #047857;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
}

body.report-page .pdf-live-campaign ul {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

body.report-page .pdf-ai-summary {
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  background: #f8fafc !important;
}

body.report-page .pdf-ai-summary p {
  margin: 0;
  color: #344054;
  font-size: 10px;
  line-height: 1.42;
}

body.report-page .pdf-ai-card ul {
  gap: 4px;
}

body.report-page .pdf-changes {
  display: grid;
  gap: 6px;
}

body.report-page .pdf-change-contract {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid #bdd4f5;
  border-radius: 8px;
  background: #eef6ff;
}

body.report-page .pdf-change-contract strong {
  color: #0b2f63;
  font-size: 9px;
  font-weight: 900;
}

body.report-page .pdf-change-contract p {
  margin: 0;
  color: #344054;
  font-size: 8.5px;
  line-height: 1.35;
}

body.report-page .pdf-change-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 2px;
}

body.report-page .pdf-change-levels article {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid #d7e0ee;
  border-radius: 8px;
  background: #f8fafc;
}

body.report-page .pdf-change-levels span {
  color: #475467;
  font-size: 8.5px;
  font-weight: 850;
}

body.report-page .pdf-change-levels strong {
  color: #111827;
  font-size: 15px;
  line-height: 1;
}

body.report-page .pdf-change-levels small {
  color: #667085;
  font-size: 8px;
  line-height: 1.25;
}

body.report-page .pdf-change-package {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border-left: 3px solid #0a57ff;
}

body.report-page .pdf-change-package.priority-critical,
body.report-page .pdf-change-package.priority-high {
  border-left-color: #f97316;
}

body.report-page .pdf-change-package-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

body.report-page .pdf-change-package-head span,
body.report-page .pdf-change-package-head em {
  color: #667085;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
}

body.report-page .pdf-change-package-head strong,
body.report-page .pdf-change-items b {
  color: #111827;
  font-size: 10.5px;
  line-height: 1.25;
}

body.report-page .pdf-change-items {
  display: grid;
  gap: 5px;
}

body.report-page .pdf-change-items section {
  padding: 6px 7px;
}

body.report-page .pdf-change-items ul {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

body.report-page .pdf-change-items li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px;
  color: #4b5563;
}

body.report-page .pdf-change-items li strong {
  color: #111827;
}

body.report-page .pdf-list {
  display: grid;
  gap: 6px;
}

body.report-page .pdf-list li {
  padding: 7px 8px;
  border-left-width: 3px;
}

body.report-page .pdf-list li b,
body.report-page .pdf-list li em {
  min-height: 18px;
  padding: 0 6px;
  font-size: 8.5px;
}

body.report-page .report-links {
  padding: 6px;
}

body.report-page .report-links a,
body.report-page .report-links span {
  min-height: 24px;
  padding: 0 8px;
  font-size: 9px;
}

body.report-page .pdf-footer {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #e5e7eb;
  color: #667085;
  font-size: 9.5px;
}

@media print {
  @page {
    size: A4;
    margin: 7mm;
  }

  body.report-page {
    color: #111827 !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.report-page .report-toolbar {
    display: none !important;
  }

  body.report-page .pdf-sheet {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.report-page .pdf-section {
    margin-top: 6px;
    padding-top: 6px;
  }

  body.report-page .pdf-grid,
  body.report-page .pdf-summary-strip,
  body.report-page .report-chart-grid,
  body.report-page .pdf-metrika-grid,
  body.report-page .pdf-trend-grid,
  body.report-page .pdf-wordstat,
  body.report-page .pdf-ai-audit {
    gap: 5px;
  }
}

/* Yandex audit cleanup: one visual system, shallow nesting, compact scan -> audit -> changes flow. */
body:not(.report-page) .app-shell {
  --audit-surface: rgba(6, 12, 20, 0.54);
  --audit-surface-soft: rgba(10, 18, 30, 0.46);
  --audit-surface-card: rgba(8, 16, 27, 0.5);
  --audit-surface-glass: rgba(8, 15, 24, 0.38);
  --audit-line: rgba(126, 164, 207, 0.18);
  --audit-line-strong: rgba(104, 168, 255, 0.31);
  --audit-radius: 14px;
  --audit-gap: 14px;
}

body:not(.report-page) .app-shell > section,
body:not(.report-page) .app-shell .summary-card,
body:not(.report-page) .app-shell .query-leaders,
body:not(.report-page) .app-shell .agent-recommendations,
body:not(.report-page) .app-shell .ai-audit-block,
body:not(.report-page) .app-shell .change-proposal-panel {
  box-sizing: border-box;
}

body:not(.report-page) .app-shell .summary-card {
  border-radius: var(--audit-radius);
  border-color: var(--audit-line);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.report-page) .audit-workbench,
body:not(.report-page) .scan-details-card,
body:not(.report-page) .recommendations-card,
body:not(.report-page) .agent-recommendations,
body:not(.report-page) .ai-audit-block,
body:not(.report-page) .change-proposal-panel {
  gap: var(--audit-gap);
}

body:not(.report-page) .app-shell .summary-card-head {
  margin-bottom: 14px;
}

body:not(.report-page) .scan-details-card .summary-card-head p,
body:not(.report-page) .query-leaders-head span,
body:not(.report-page) .keyword-demand-intro,
body:not(.report-page) .change-proposal-head span,
body:not(.report-page) .change-proposal-summary span,
body:not(.report-page) .change-proposal-footer span,
body:not(.report-page) .ai-audit-section summary em,
body:not(.report-page) .batch-title p,
body:not(.report-page) .ad-extension-work-note {
  color: rgba(198, 213, 232, 0.82);
  font-weight: 450;
  line-height: 1.5;
}

body:not(.report-page) .source-actions button[data-load-summary],
body:not(.report-page) .source-actions button[data-load-recommendations],
body:not(.report-page) .change-proposal-head .change-proposal-load-button.primary,
body:not(.report-page) .report-after-scan a.primary {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

body:not(.report-page) .source-actions button[data-load-recommendations],
body:not(.report-page) .change-proposal-head .change-proposal-load-button.primary {
  color: #ffffff;
  border-color: rgba(104, 168, 255, 0.58);
  background: linear-gradient(135deg, #0a57ff, #68a8ff);
  box-shadow: 0 14px 30px rgba(69, 135, 255, 0.24);
}

body:not(.report-page) .scan-details-card[data-loading="true"] {
  border-color: rgba(104, 168, 255, 0.24);
}

body:not(.report-page) .scan-wait-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(218, 229, 245, 0.86);
  font-weight: 750;
}

body:not(.report-page) .scan-wait-inline i,
body:not(.report-page) .scan-wait-card > i {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(104, 168, 255, 0.26);
  color: #65dfa0;
  border-radius: 50%;
}

body:not(.report-page) .scan-wait-inline.pending i,
body:not(.report-page) .scan-wait-card.pending > i {
  border-color: rgba(104, 168, 255, 0.22);
  border-top-color: #65dfa0;
  animation: lightadsSpin 0.88s linear infinite;
}

body:not(.report-page) .scan-wait-inline.done i,
body:not(.report-page) .scan-wait-card.done > i {
  border-color: rgba(98, 213, 143, 0.55);
  background: rgba(98, 213, 143, 0.12);
}

body:not(.report-page) .scan-wait-inline.done i::before,
body:not(.report-page) .scan-wait-card.done > i::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

body:not(.report-page) .scan-wait-inline.paused i,
body:not(.report-page) .scan-wait-card.paused > i {
  border-color: rgba(255, 220, 61, 0.46);
  background: rgba(255, 220, 61, 0.1);
  color: #ffdc3d;
}

body:not(.report-page) .scan-wait-inline.paused i::before,
body:not(.report-page) .scan-wait-card.paused > i::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

body:not(.report-page) .scan-wait-inline.error i,
body:not(.report-page) .scan-wait-card.error > i {
  border-color: rgba(255, 107, 107, 0.58);
  background: rgba(255, 107, 107, 0.12);
  color: #ff8585;
}

body:not(.report-page) .scan-wait-inline.error i::before,
body:not(.report-page) .scan-wait-card.error > i::before {
  content: "";
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

body:not(.report-page) .scan-wait-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

body:not(.report-page) .scan-wait-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--audit-line);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(104, 168, 255, 0.08), rgba(98, 213, 143, 0.045)),
    rgba(5, 12, 22, 0.34);
}

body:not(.report-page) .scan-wait-card.done {
  border-color: rgba(98, 213, 143, 0.26);
  background: rgba(98, 213, 143, 0.055);
}

body:not(.report-page) .scan-wait-card.paused {
  border-color: rgba(255, 220, 61, 0.22);
  background: rgba(255, 220, 61, 0.045);
}

body:not(.report-page) .scan-wait-card.error {
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.055);
}

body:not(.report-page) .scan-wait-card strong {
  display: block;
  color: #f3f8ff;
  font-size: 13px;
  line-height: 1.25;
}

body:not(.report-page) .scan-wait-card span {
  display: block;
  margin-top: 4px;
  color: rgba(198, 213, 232, 0.8);
  font-size: 12px;
  line-height: 1.45;
}

body:not(.report-page) .scan-wait-card small {
  display: block;
  margin-top: 8px;
  color: rgba(151, 167, 190, 0.78);
  font-size: 11px;
  line-height: 1.35;
}

body:not(.report-page) .scan-wait-note {
  border-color: rgba(104, 168, 255, 0.26) !important;
  background: rgba(104, 168, 255, 0.07) !important;
}

@keyframes lightadsSpin {
  to {
    transform: rotate(360deg);
  }
}

body:not(.report-page) .report-after-scan {
  margin-top: 14px;
}

body:not(.report-page) .report-after-scan a.primary {
  color: #07111a;
  border-color: rgba(98, 213, 143, 0.62);
  background: linear-gradient(135deg, #62d58f, #a5f2bd);
  box-shadow: 0 14px 30px rgba(98, 213, 143, 0.18);
}

body:not(.report-page) .last-scan-notes {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

body:not(.report-page) .last-scan-notes li {
  padding: 12px 14px;
  border-color: var(--audit-line);
  border-radius: 12px;
  background: rgba(104, 168, 255, 0.05);
}

body:not(.report-page) .last-scan-notes li strong {
  color: #eaf3ff;
  font-size: 12px;
}

body:not(.report-page) .last-scan-notes li span {
  color: rgba(198, 213, 232, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

body:not(.report-page) .audit-score-board {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(104, 168, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(104, 168, 255, 0.14), rgba(98, 213, 143, 0.06)),
    var(--audit-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

body:not(.report-page) .audit-score-main {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 40%, rgba(98, 213, 143, 0.16), transparent 52%),
    rgba(4, 9, 16, 0.46);
}

body:not(.report-page) .audit-score-main span,
body:not(.report-page) .audit-score-main small {
  color: rgba(210, 226, 246, 0.74);
  font-size: 12px;
  font-weight: 800;
}

body:not(.report-page) .audit-score-main strong {
  color: #f8fbff;
  font-size: clamp(52px, 8vw, 72px);
  font-weight: 900;
  line-height: 0.95;
}

body:not(.report-page) .audit-score-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

body:not(.report-page) .audit-score-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.25;
}

body:not(.report-page) .audit-score-copy p {
  margin: 0;
  max-width: 820px;
  color: rgba(213, 226, 244, 0.8);
  font-size: 13px;
  line-height: 1.55;
}

body:not(.report-page) .audit-score-dimensions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.report-page) .audit-score-dimensions article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--audit-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

body:not(.report-page) .audit-score-dimensions b,
body:not(.report-page) .audit-score-dimensions strong,
body:not(.report-page) .audit-score-dimensions span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not(.report-page) .audit-score-dimensions b {
  color: rgba(218, 230, 246, 0.82);
  font-size: 11px;
}

body:not(.report-page) .audit-score-dimensions strong {
  color: #f8fbff;
  font-size: 23px;
  line-height: 1;
}

body:not(.report-page) .audit-score-dimensions span {
  color: rgba(198, 213, 232, 0.76);
  font-size: 11px;
  line-height: 1.35;
}

body:not(.report-page) .score-good .audit-score-main strong,
body:not(.report-page) .audit-score-dimensions .score-good strong {
  color: #7ff0ae;
}

body:not(.report-page) .score-warn .audit-score-main strong,
body:not(.report-page) .audit-score-dimensions .score-warn strong {
  color: #ffd46a;
}

body:not(.report-page) .score-bad .audit-score-main strong,
body:not(.report-page) .audit-score-dimensions .score-bad strong {
  color: #ff8585;
}

body:not(.report-page) .audit-opportunity-strip {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--audit-line);
  border-radius: 16px;
  background: var(--audit-surface-glass);
  backdrop-filter: blur(16px);
}

body:not(.report-page) .audit-opportunity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(126, 164, 207, 0.14);
}

body:not(.report-page) .audit-opportunity-head strong {
  color: var(--text);
  font-size: 15px;
}

body:not(.report-page) .audit-opportunity-head span {
  max-width: 650px;
  color: rgba(198, 213, 232, 0.76);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

body:not(.report-page) .audit-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.report-page) .audit-opportunity-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--audit-line);
  border-radius: 13px;
  background: rgba(3, 9, 17, 0.42);
}

body:not(.report-page) .audit-opportunity-grid em {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #061109;
  background: #65dfa0;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

body:not(.report-page) .audit-opportunity-grid strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

body:not(.report-page) .audit-opportunity-grid p {
  margin: 0;
  color: rgba(218, 229, 245, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

body:not(.report-page) .audit-opportunity-grid span {
  color: rgba(198, 213, 232, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

body:not(.report-page) .query-leaders {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 0;
  border-color: transparent;
  border-radius: var(--audit-radius);
  background: transparent;
  backdrop-filter: none;
}

body:not(.report-page) .query-leaders > * {
  min-width: 0;
}

body:not(.report-page) .query-leaders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--audit-line);
}

body:not(.report-page) .query-leaders-head strong {
  font-size: 15px;
}

body:not(.report-page) .query-leaders-head span {
  margin-top: 0;
  max-width: 760px;
}

body:not(.report-page) .query-leaders ol {
  margin: 0;
}

body:not(.report-page) .query-leaders > ol {
  gap: 8px;
}

body:not(.report-page) .query-leaders > ol > li,
body:not(.report-page) .wordstat-demand-list > ol > li {
  border-color: var(--audit-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

body:not(.report-page) .keyword-demand-insights,
body:not(.report-page) .traffic-classification,
body:not(.report-page) .ad-extensions-summary,
body:not(.report-page) .wordstat-comparison {
  gap: 14px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.report-page) .keyword-demand-head {
  gap: 8px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--audit-line);
  border-radius: 0;
  background: transparent;
}

body:not(.report-page) .keyword-demand-title {
  align-items: flex-start;
}

body:not(.report-page) .keyword-demand-head strong {
  font-size: 13px;
}

body:not(.report-page) .keyword-demand-head span {
  color: rgba(198, 213, 232, 0.72);
  font-size: 11px;
  text-align: right;
}

body:not(.report-page) .keyword-demand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

body:not(.report-page) .keyword-demand-grid.count-1 {
  grid-template-columns: 1fr;
}

body:not(.report-page) .keyword-demand-grid.count-2 {
  grid-template-columns: 1fr;
}

body:not(.report-page) .query-leaders section.keyword-demand-section,
body:not(.report-page) .agent-recommendations section,
body:not(.report-page) .recommendations-card section {
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.report-page) .query-leaders section.keyword-demand-section + section.keyword-demand-section {
  padding-top: 0;
  border-top: 0;
}

body:not(.report-page) .keyword-demand-section {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--audit-line);
  border-radius: 14px;
  background: transparent;
}

body:not(.report-page) .keyword-demand-section-head {
  min-height: 0;
}

body:not(.report-page) .keyword-demand-section-head b,
body:not(.report-page) .traffic-classification article b,
body:not(.report-page) .ad-extensions-summary article b,
body:not(.report-page) .wordstat-comparison b {
  color: #65dfa0;
  font-size: 12px;
}

body:not(.report-page) .keyword-demand-items,
body:not(.report-page) .traffic-classification-grid,
body:not(.report-page) .ad-extensions-grid,
body:not(.report-page) .wordstat-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

body:not(.report-page) .keyword-demand-section article,
body:not(.report-page) .traffic-classification article,
body:not(.report-page) .ad-extensions-summary article,
body:not(.report-page) .wordstat-comparison article {
  min-width: 0;
  min-height: 0;
  padding: 13px 14px;
  border-color: var(--audit-line);
  border-radius: 12px;
  background: rgba(5, 12, 22, 0.34);
  backdrop-filter: blur(12px);
}

body:not(.report-page) .keyword-demand-section article p,
body:not(.report-page) .keyword-demand-section article span,
body:not(.report-page) .traffic-classification article small,
body:not(.report-page) .ad-extensions-summary article small,
body:not(.report-page) .wordstat-comparison small {
  color: rgba(198, 213, 232, 0.82);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.45;
}

body:not(.report-page) .keyword-demand-section article strong,
body:not(.report-page) .keyword-demand-section article p,
body:not(.report-page) .keyword-demand-section article span {
  max-width: 100%;
}

body:not(.report-page) .keyword-card-top {
  gap: 10px;
}

body:not(.report-page) .keyword-card-top em {
  padding: 4px 8px;
  color: #07110b;
  background: #65dfa0;
}

body:not(.report-page) .ad-extension-text-list {
  gap: 7px;
}

body:not(.report-page) .ad-extension-text-list li {
  color: #dcecff;
  border-color: var(--audit-line);
  background: rgba(104, 168, 255, 0.075);
}

body:not(.report-page) .ai-audit-block {
  padding: 18px;
  border: 1px solid var(--audit-line);
  border-radius: var(--audit-radius);
  background:
    linear-gradient(180deg, rgba(8, 17, 29, 0.46), rgba(4, 9, 16, 0.3)),
    var(--audit-surface-glass);
  backdrop-filter: blur(18px);
}

body:not(.report-page) .ai-audit-essence {
  padding: 16px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(98, 213, 143, 0.12), rgba(104, 168, 255, 0.055)),
    rgba(12, 25, 24, 0.66);
}

body:not(.report-page) .ai-audit-essence p {
  color: rgba(238, 243, 255, 0.88);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
}

body:not(.report-page) .ai-audit-decision-cards article,
body:not(.report-page) .ai-audit-section,
body:not(.report-page) .recommendation-signals,
body:not(.report-page) .recommendation-batch,
body:not(.report-page) .change-proposal-panel,
body:not(.report-page) .change-proposal-summary,
body:not(.report-page) .change-proposal-batch {
  border-color: var(--audit-line);
  border-radius: 12px;
  background: rgba(7, 15, 25, 0.4);
  backdrop-filter: blur(14px);
}

body:not(.report-page) .ai-audit-section summary,
body:not(.report-page) .recommendation-batch summary,
body:not(.report-page) .change-proposal-batch > summary {
  min-height: 64px;
  padding: 13px 14px;
}

body:not(.report-page) .audit-action-card p {
  padding: 11px 12px;
  border-color: rgba(157, 190, 232, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

body:not(.report-page) .audit-action-card b {
  color: #65dfa0;
  background: transparent;
}

body:not(.report-page) .audit-action-card span {
  color: rgba(218, 229, 245, 0.86);
  font-weight: 430;
}

body:not(.report-page) .recommendation-signals {
  overflow: hidden;
}

body:not(.report-page) .recommendation-signals > summary {
  padding: 14px;
}

body:not(.report-page) .recommendation-signals > .recommendation-batch-list {
  padding: 0 14px 14px;
}

body:not(.report-page) .batch-detail {
  gap: 12px;
  padding: 0 14px 14px 48px;
}

body:not(.report-page) .batch-detail section {
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--audit-line);
}

body:not(.report-page) .batch-detail article {
  border-color: var(--audit-line);
  background: rgba(4, 10, 17, 0.44);
}

body:not(.report-page) .recommendation-points b,
body:not(.report-page) .recommendation-meta-pill,
body:not(.report-page) .proposal-item-kickers b,
body:not(.report-page) .proposal-item-kickers em,
body:not(.report-page) .change-proposal-tags span,
body:not(.report-page) .change-proposal-scale span,
body:not(.report-page) .change-proposal-scale b,
body:not(.report-page) .change-proposal-scale em,
body:not(.report-page) .change-proposal-summary mark,
body:not(.report-page) .change-proposal-package-note b,
body:not(.report-page) .change-proposal-rows b,
body:not(.report-page) .proposal-edit-field b,
body:not(.report-page) .proposal-structured-field b {
  border-radius: 999px;
  box-shadow: none;
}

body:not(.report-page) .change-proposal-tags span,
body:not(.report-page) .change-proposal-scale span,
body:not(.report-page) .change-proposal-summary mark {
  color: #dcecff;
  border-color: var(--audit-line-strong);
  background: rgba(104, 168, 255, 0.08);
}

body:not(.report-page) .change-proposal-tags .change-proposal-level-badge {
  color: #07111d;
  border-color: transparent;
  background: linear-gradient(135deg, #62d58f, #9be7b6);
}

body:not(.report-page) .change-proposal-tags .change-proposal-level-badge.level-budget_strategy {
  color: #251704;
  background: linear-gradient(135deg, #ffd36f, #ffb15f);
}

body:not(.report-page) .change-proposal-scale span {
  gap: 6px;
  padding: 5px 9px;
}

body:not(.report-page) .change-proposal-scale b,
body:not(.report-page) .change-proposal-scale em {
  color: rgba(198, 213, 232, 0.82);
  background: transparent;
  padding: 0;
  border: 0;
}

body:not(.report-page) .change-proposal-batch > summary::before {
  top: 16px;
  bottom: 16px;
  width: 3px;
}

body:not(.report-page) .change-proposal-detail {
  gap: 10px;
  padding: 0 14px 14px;
}

body:not(.report-page) .change-proposal-detail article {
  border-color: var(--audit-line);
  background: rgba(4, 10, 17, 0.44);
}

body:not(.report-page) .proposal-item-preview,
body:not(.report-page) .change-proposal-rows span {
  color: rgba(218, 229, 245, 0.84);
  font-weight: 430;
}

body:not(.report-page) .proposal-item-plan {
  border-color: rgba(126, 164, 207, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

body:not(.report-page) .proposal-item-plan b {
  color: #65dfa0;
}

body:not(.report-page) .proposal-item-plan em,
body:not(.report-page) .proposal-editor-empty {
  color: rgba(218, 229, 245, 0.84);
  font-weight: 430;
}

body:not(.report-page) .proposal-change-view section {
  border-color: rgba(126, 164, 207, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

body:not(.report-page) .proposal-change-view {
  gap: 8px;
}

body:not(.report-page) .proposal-change-focus {
  gap: 8px;
  padding: 8px 10px;
  border-color: rgba(98, 213, 143, 0.18);
  background: rgba(98, 213, 143, 0.045);
}

body:not(.report-page) .proposal-change-focus b,
body:not(.report-page) .proposal-change-view section b {
  color: #65dfa0;
  font-size: 10px;
  letter-spacing: 0;
}

body:not(.report-page) .proposal-change-focus em {
  color: rgba(226, 238, 255, 0.88);
  border-color: rgba(126, 164, 207, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

body:not(.report-page) .proposal-change-view section.is-next {
  border-color: rgba(98, 213, 143, 0.24);
  background: rgba(98, 213, 143, 0.052);
}

body:not(.report-page) .proposal-change-view section.is-scope {
  border-color: rgba(104, 168, 255, 0.18);
  background: rgba(104, 168, 255, 0.04);
}

body:not(.report-page) .proposal-change-view p,
body:not(.report-page) .proposal-change-view small,
body:not(.report-page) .proposal-field-list dd {
  color: rgba(218, 229, 245, 0.84);
  font-weight: 430;
  line-height: 1.38;
}

body:not(.report-page) .change-proposal-output {
  display: grid;
  gap: 12px;
}

body:not(.report-page) .change-proposal-rows {
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(126, 164, 207, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

body:not(.report-page) .change-proposal-rows li {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

body:not(.report-page) .change-proposal-rows b {
  width: auto;
  min-height: 0;
  padding: 0;
  color: #65dfa0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

body:not(.report-page) .query-delta-monitor {
  border-color: rgba(255, 199, 87, 0.34);
  background: linear-gradient(180deg, rgba(33, 25, 9, 0.34), rgba(5, 12, 20, 0.44));
}

body:not(.report-page) .query-delta-minus-list {
  background: rgba(255, 199, 87, 0.04);
}

body:not(.report-page) .query-delta-minus-list ul {
  grid-template-columns: 1fr;
}

body:not(.report-page) .query-delta-minus-list li {
  grid-template-columns: minmax(190px, 0.62fr) minmax(230px, 1fr) minmax(250px, 0.9fr);
}

body:not(.report-page) .query-delta-proof {
  margin-top: 2px;
}

body:not(.report-page) .query-delta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.report-page) .query-delta-card {
  min-height: 0;
  border-color: rgba(255, 199, 87, 0.18);
  background: rgba(5, 12, 20, 0.5);
}

body:not(.report-page) .query-delta-card p {
  color: rgba(238, 243, 255, 0.9);
}

body:not(.report-page) .query-delta-card dl div {
  padding: 2px 0;
}

body:not(.report-page) .query-delta-card dt {
  color: rgba(151, 167, 190, 0.78);
}

body:not(.report-page) .query-delta-card dd {
  color: rgba(235, 242, 255, 0.9);
}

body:not(.report-page) .proposal-editor-head {
  padding-top: 2px;
}

body:not(.report-page) .proposal-editor-head b {
  color: #65dfa0;
}

body:not(.report-page) .proposal-structured-field b {
  color: rgba(218, 229, 245, 0.86);
}

body:not(.report-page) .proposal-structured-field input,
body:not(.report-page) .proposal-structured-field textarea {
  background: rgba(2, 8, 15, 0.38);
}

body:not(.report-page) .change-proposal-list {
  gap: 14px;
}

body:not(.report-page) .change-proposal-footer {
  padding-top: 2px;
}

body.light:not(.report-page) .app-shell {
  --audit-surface: rgba(255, 255, 255, 0.62);
  --audit-surface-soft: rgba(255, 255, 255, 0.58);
  --audit-surface-card: rgba(255, 255, 255, 0.68);
  --audit-line: rgba(20, 30, 52, 0.13);
  --audit-line-strong: rgba(69, 135, 255, 0.28);
}

body.light:not(.report-page) .last-scan-notes li strong,
body.light:not(.report-page) .keyword-demand-section article strong,
body.light:not(.report-page) .ai-audit-title strong,
body.light:not(.report-page) .ai-audit-section summary strong,
body.light:not(.report-page) .batch-title strong {
  color: #0c1220;
}

body.light:not(.report-page) .last-scan-notes li span,
body.light:not(.report-page) .keyword-demand-section article p,
body.light:not(.report-page) .keyword-demand-section article span,
body.light:not(.report-page) .ai-audit-essence p,
body.light:not(.report-page) .audit-action-card span,
body.light:not(.report-page) .proposal-item-preview,
body.light:not(.report-page) .change-proposal-rows span {
  color: #334155;
}

@media (max-width: 980px) {
  body:not(.report-page) .audit-score-board {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .audit-score-main {
    min-height: 118px;
  }

  body:not(.report-page) .audit-score-dimensions,
  body:not(.report-page) .audit-opportunity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.report-page) .scan-wait-grid {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .audit-opportunity-head {
    display: grid;
  }

  body:not(.report-page) .audit-opportunity-head span {
    text-align: left;
  }

  body:not(.report-page) .keyword-demand-grid,
  body:not(.report-page) .keyword-demand-grid.count-2,
  body:not(.report-page) .traffic-classification-grid,
  body:not(.report-page) .ad-extensions-grid,
  body:not(.report-page) .query-delta-grid,
  body:not(.report-page) .wordstat-comparison-grid {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .query-leaders-head,
  body:not(.report-page) .query-delta-head,
  body:not(.report-page) .keyword-demand-title,
  body:not(.report-page) .traffic-classification-head,
  body:not(.report-page) .ad-extensions-head {
    display: grid;
  }

  body:not(.report-page) .query-delta-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  body:not(.report-page) .query-delta-minus-list-head,
  body:not(.report-page) .query-delta-minus-list li {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .query-delta-minus-list-head span {
    text-align: left;
  }

  body:not(.report-page) .query-delta-summary {
    justify-content: flex-start;
    max-width: none;
  }

  body:not(.report-page) .query-delta-summary small {
    text-align: left;
  }

  body:not(.report-page) .query-delta-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.report-page) .keyword-demand-head span {
    text-align: left;
  }
}

@media (max-width: 680px) {
  body:not(.report-page) .app-shell {
    width: min(100%, calc(100vw - 20px));
    max-width: min(100%, calc(100vw - 20px));
  }

  body:not(.report-page) .audit-score-board,
  body:not(.report-page) .audit-opportunity-strip {
    padding: 14px;
    border-radius: 14px;
  }

  body:not(.report-page) .audit-score-dimensions,
  body:not(.report-page) .audit-opportunity-grid,
  body:not(.report-page) .keyword-demand-items,
  body:not(.report-page) .query-delta-metrics {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .audit-score-main strong {
    font-size: 54px;
  }

  body:not(.report-page) .scan-details-card,
  body:not(.report-page) .ai-audit-block,
  body:not(.report-page) .change-proposal-panel {
    padding: 14px;
  }

  body:not(.report-page) .query-leaders {
    padding: 0;
  }

  body:not(.report-page) .ai-audit-section summary,
  body:not(.report-page) .recommendation-batch summary,
  body:not(.report-page) .change-proposal-batch > summary {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 9px;
    padding: 12px;
  }

  body:not(.report-page) .ai-audit-section summary {
    grid-template-columns: minmax(0, 1fr) auto 18px;
  }

  body:not(.report-page) .batch-detail,
  body:not(.report-page) .change-proposal-detail {
    padding: 0 10px 12px;
  }

  body:not(.report-page) .change-proposal-scale {
    gap: 6px;
  }

  body:not(.report-page) .change-proposal-scale span {
    min-height: 24px;
    font-size: 11px;
  }

  body:not(.report-page) .change-proposal-head,
  body:not(.report-page) .change-proposal-footer,
  body:not(.report-page) .change-proposal-group-head {
    display: grid;
  }

  body:not(.report-page) .change-proposal-group-head span {
    max-width: none;
    text-align: left;
  }

body:not(.report-page) .change-proposal-head button,
body:not(.report-page) .change-proposal-footer button,
body:not(.report-page) .report-after-scan a.primary {
  width: 100%;
}
}

@media (min-width: 821px) {
  body:not(.report-page) .footer p {
    max-width: none;
    white-space: nowrap;
  }
}

/* Final score panel override: keep after mobile rules so this block is the source of truth. */
body:not(.report-page) .audit-score-board {
  position: relative;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(126, 164, 207, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 50%, rgba(98, 213, 143, 0.13), transparent 18rem),
    radial-gradient(circle at 86% 20%, rgba(104, 168, 255, 0.12), transparent 22rem),
    rgba(5, 11, 19, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
}

body:not(.report-page) .audit-score-board::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 17px;
  pointer-events: none;
}

body:not(.report-page) .audit-score-board > * {
  position: relative;
  z-index: 1;
}

body:not(.report-page) .audit-score-main {
  gap: 10px;
  min-height: 186px;
  padding: 16px;
  border: 1px solid rgba(126, 164, 207, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), rgba(3, 8, 15, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:not(.report-page) .audit-score-ring {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(5, 10, 18, 0.94) 0 56%, transparent 57%),
    conic-gradient(#ffd86a 0 var(--score-pct), rgba(126, 164, 207, 0.16) var(--score-pct) 100%);
  box-shadow: 0 0 48px rgba(255, 216, 106, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body:not(.report-page) .score-good .audit-score-ring {
  background:
    radial-gradient(circle, rgba(5, 10, 18, 0.94) 0 56%, transparent 57%),
    conic-gradient(#65dfa0 0 var(--score-pct), rgba(126, 164, 207, 0.16) var(--score-pct) 100%);
  box-shadow: 0 0 48px rgba(101, 223, 160, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body:not(.report-page) .score-bad .audit-score-ring {
  background:
    radial-gradient(circle, rgba(5, 10, 18, 0.94) 0 56%, transparent 57%),
    conic-gradient(#ff8585 0 var(--score-pct), rgba(126, 164, 207, 0.16) var(--score-pct) 100%);
  box-shadow: 0 0 48px rgba(255, 133, 133, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body:not(.report-page) .audit-score-ring strong {
  color: #ffd86a;
  font-size: clamp(48px, 7vw, 70px);
  font-weight: 900;
  line-height: 0.82;
}

body:not(.report-page) .audit-score-ring small {
  margin-top: 8px;
  color: rgba(223, 235, 249, 0.68);
  font-size: 12px;
  font-weight: 800;
}

body:not(.report-page) .audit-score-main > span {
  color: rgba(218, 230, 246, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body:not(.report-page) .audit-score-copy {
  gap: 14px;
}

body:not(.report-page) .audit-score-copy h3 {
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: 0;
}

body:not(.report-page) .audit-score-copy p {
  max-width: 960px;
  color: rgba(213, 226, 244, 0.82);
  font-size: 14px;
}

body:not(.report-page) .audit-score-dimensions {
  gap: 12px;
}

body:not(.report-page) .audit-score-dimensions .score-dimension {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(126, 164, 207, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)), rgba(4, 10, 18, 0.36);
}

body:not(.report-page) .audit-score-dimensions .score-dimension::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24px 18px, rgba(101, 223, 160, 0.14), transparent 9rem);
  pointer-events: none;
}

body:not(.report-page) .score-dimension-top,
body:not(.report-page) .score-dimension-bar,
body:not(.report-page) .score-dimension p {
  position: relative;
  z-index: 1;
}

body:not(.report-page) .score-dimension-top {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

body:not(.report-page) .score-dimension-top i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.72), transparent 17%),
    linear-gradient(135deg, rgba(101, 223, 160, 0.92), rgba(104, 168, 255, 0.42));
  box-shadow: 0 0 22px rgba(101, 223, 160, 0.16);
}

body:not(.report-page) .dimension-money .score-dimension-top i {
  background: linear-gradient(135deg, #ffd86a, rgba(255, 216, 106, 0.32));
}

body:not(.report-page) .dimension-tracking .score-dimension-top i {
  background: linear-gradient(135deg, #65dfa0, rgba(101, 223, 160, 0.28));
}

body:not(.report-page) .dimension-demand .score-dimension-top i {
  background: linear-gradient(135deg, #68a8ff, rgba(104, 168, 255, 0.26));
}

body:not(.report-page) .dimension-site .score-dimension-top i {
  background: linear-gradient(135deg, #cba6ff, rgba(203, 166, 255, 0.24));
}

body:not(.report-page) .score-dimension-top b {
  color: rgba(233, 242, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

body:not(.report-page) .score-dimension-top strong {
  color: #f8fbff;
  font-size: 26px;
  line-height: 1;
}

body:not(.report-page) .score-dimension-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 164, 207, 0.13);
}

body:not(.report-page) .score-dimension-bar span {
  display: block;
  width: var(--dimension-pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #65dfa0, #68a8ff);
}

body:not(.report-page) .dimension-money .score-dimension-bar span {
  background: linear-gradient(90deg, #ffd86a, #65dfa0);
}

body:not(.report-page) .score-warn .score-dimension-bar span {
  background: linear-gradient(90deg, #ffd86a, #ffb45f);
}

body:not(.report-page) .score-bad .score-dimension-bar span {
  background: linear-gradient(90deg, #ff8585, #ffd86a);
}

body:not(.report-page) .score-dimension p {
  margin: 0;
  color: rgba(198, 213, 232, 0.78);
  font-size: 12px;
  line-height: 1.42;
}

body.light:not(.report-page) .audit-score-board {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(20, 30, 52, 0.14);
}

body.light:not(.report-page) .audit-score-main,
body.light:not(.report-page) .audit-score-dimensions .score-dimension {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(20, 30, 52, 0.12);
}

body.light:not(.report-page) .audit-score-copy p,
body.light:not(.report-page) .score-dimension p {
  color: #475569;
}

body.light:not(.report-page) .score-dimension-top b,
body.light:not(.report-page) .audit-score-main > span {
  color: #172033;
}

@media (max-width: 980px) {
  body:not(.report-page) .audit-score-board {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .audit-score-main {
    min-height: 148px;
  }

  body:not(.report-page) .audit-score-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body:not(.report-page) .audit-score-board {
    padding: 14px;
    border-radius: 18px;
  }

  body:not(.report-page) .audit-score-ring {
    width: 118px;
    height: 118px;
  }

  body:not(.report-page) .audit-score-dimensions {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .score-dimension-top {
    grid-template-columns: 26px minmax(0, 1fr) auto;
  }
}

/* Strict score panel correction. Keep this after the decorative score override. */
body:not(.report-page) .audit-score-board {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-color: rgba(126, 164, 207, 0.18);
  background: rgba(5, 11, 19, 0.38);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

body:not(.report-page) .audit-score-board::before {
  display: none;
}

body:not(.report-page) .audit-score-main {
  justify-items: center;
  align-content: center;
  min-height: 150px;
  padding: 16px 12px;
  border-color: rgba(126, 164, 207, 0.16);
  background: rgba(7, 13, 22, 0.42);
}

body:not(.report-page) .audit-score-ring {
  position: relative;
  width: 112px;
  height: 112px;
  background:
    radial-gradient(circle, rgba(5, 10, 18, 0.98) 0 58%, transparent 59%),
    conic-gradient(#ffd86a 0 var(--score-pct), rgba(126, 164, 207, 0.18) var(--score-pct) 100%);
  box-shadow: none;
}

body:not(.report-page) .audit-score-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(126, 164, 207, 0.14);
  border-radius: inherit;
  pointer-events: none;
}

body:not(.report-page) .score-good .audit-score-ring {
  background:
    radial-gradient(circle, rgba(5, 10, 18, 0.98) 0 58%, transparent 59%),
    conic-gradient(#65dfa0 0 var(--score-pct), rgba(126, 164, 207, 0.18) var(--score-pct) 100%);
  box-shadow: none;
}

body:not(.report-page) .score-bad .audit-score-ring {
  background:
    radial-gradient(circle, rgba(5, 10, 18, 0.98) 0 58%, transparent 59%),
    conic-gradient(#ff7c7c 0 var(--score-pct), rgba(126, 164, 207, 0.18) var(--score-pct) 100%);
  box-shadow: none;
}

body:not(.report-page) .audit-score-ring strong {
  display: block;
  color: #ffd86a;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

body:not(.report-page) .audit-score-main > span {
  margin-top: 2px;
  color: rgba(218, 230, 246, 0.72);
  font-size: 12px;
  letter-spacing: 0;
}

body:not(.report-page) .audit-score-copy {
  align-content: center;
  gap: 10px;
}

body:not(.report-page) .audit-score-copy h3 {
  font-size: clamp(22px, 1.8vw, 28px);
}

body:not(.report-page) .audit-score-copy p {
  max-width: 1020px;
  color: rgba(213, 226, 244, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

body:not(.report-page) .audit-score-dimensions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.report-page) .audit-score-dimensions .score-dimension {
  align-content: start;
  gap: 9px;
  min-height: 118px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 13, 22, 0.38);
}

body:not(.report-page) .audit-score-dimensions .score-dimension::before {
  display: none;
}

body:not(.report-page) .score-dimension-top {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body:not(.report-page) .score-dimension-top i {
  display: none;
}

body:not(.report-page) .score-dimension-top b {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: #06121f;
  background: #65dfa0;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.05;
}

body:not(.report-page) .score-dimension-top strong {
  color: #f8fbff;
  font-size: 22px;
}

body:not(.report-page) .score-dimension-bar {
  height: 4px;
  background: rgba(126, 164, 207, 0.14);
}

body:not(.report-page) .score-dimension-bar span,
body:not(.report-page) .dimension-money .score-dimension-bar span,
body:not(.report-page) .score-warn .score-dimension-bar span,
body:not(.report-page) .score-bad .score-dimension-bar span {
  background: #65dfa0;
}

body:not(.report-page) .score-warn .score-dimension-bar span {
  background: #ffd86a;
}

body:not(.report-page) .score-bad .score-dimension-bar span {
  background: #ff7c7c;
}

body:not(.report-page) .audit-score-formula {
  margin: 0;
  padding-top: 2px;
  color: rgba(185, 201, 222, 0.7);
  font-size: 12px;
}

body:not(.report-page) .audit-score-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:not(.report-page) .audit-score-proof-grid article {
  min-height: 86px;
  padding: 12px 13px;
  border: 1px solid rgba(126, 164, 207, 0.16);
  border-radius: 14px;
  background: rgba(7, 13, 22, 0.32);
}

body:not(.report-page) .audit-score-proof-grid span {
  display: block;
  margin-bottom: 4px;
  color: rgba(185, 201, 222, 0.72);
  font-size: 11px;
  font-weight: 800;
}

body:not(.report-page) .audit-score-proof-grid b {
  display: block;
  color: #f8fbff;
  font-size: 17px;
  line-height: 1.15;
}

body:not(.report-page) .audit-score-proof-grid p {
  margin-top: 7px;
  color: rgba(213, 226, 244, 0.74);
  font-size: 12px;
  line-height: 1.45;
}

body:not(.report-page) .audit-action-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(126, 164, 207, 0.18);
  border-radius: 18px;
  background: rgba(5, 11, 19, 0.34);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.2);
}

body:not(.report-page) .audit-action-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

body:not(.report-page) .audit-action-head h3 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
}

body:not(.report-page) .audit-action-head p {
  max-width: 980px;
  margin: 7px 0 0;
  color: rgba(213, 226, 244, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

body:not(.report-page) .audit-data-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body:not(.report-page) .audit-data-pills span {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(126, 164, 207, 0.2);
  border-radius: 999px;
  color: rgba(213, 226, 244, 0.72);
  background: rgba(7, 13, 22, 0.48);
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
}

body:not(.report-page) .audit-data-pills span.is-ok {
  color: #07140d;
  border-color: rgba(101, 223, 160, 0.38);
  background: #65dfa0;
}

body:not(.report-page) .audit-data-pills span.is-missing {
  color: rgba(255, 216, 106, 0.96);
  border-color: rgba(255, 216, 106, 0.3);
  background: rgba(255, 216, 106, 0.08);
}

body:not(.report-page) .audit-found-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body:not(.report-page) .audit-found-grid article,
body:not(.report-page) .audit-action-list article,
body:not(.report-page) .audit-score-expert {
  border: 1px solid rgba(126, 164, 207, 0.16);
  border-radius: 14px;
  background: rgba(7, 13, 22, 0.36);
}

body:not(.report-page) .audit-found-grid article {
  display: grid;
  gap: 5px;
  min-height: 76px;
  padding: 12px 13px;
}

body:not(.report-page) .audit-found-grid span {
  color: rgba(185, 201, 222, 0.72);
  font-size: 11px;
  font-weight: 900;
}

body:not(.report-page) .audit-found-grid strong {
  color: #ffd86a;
  font-size: 22px;
  line-height: 1.05;
}

body:not(.report-page) .audit-action-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

body:not(.report-page) .audit-action-list article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
}

body:not(.report-page) .audit-action-list b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #06121f;
  background: #65dfa0;
  font-size: 12px;
  font-weight: 950;
}

body:not(.report-page) .audit-action-list strong,
body:not(.report-page) .audit-action-list span {
  display: block;
}

body:not(.report-page) .audit-action-list strong {
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.25;
}

body:not(.report-page) .audit-action-list span {
  margin-top: 4px;
  color: rgba(185, 201, 222, 0.74);
  font-size: 11.5px;
  line-height: 1.35;
}

body:not(.report-page) .audit-score-expert {
  padding: 0;
  overflow: hidden;
}

body:not(.report-page) .audit-score-expert > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  color: rgba(213, 226, 244, 0.82);
  font-size: 12px;
  font-weight: 900;
}

body:not(.report-page) .audit-score-expert > summary::-webkit-details-marker {
  display: none;
}

body:not(.report-page) .audit-score-expert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

body:not(.report-page) .audit-score-expert-grid article {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(126, 164, 207, 0.12);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.28);
}

body:not(.report-page) .audit-score-expert-grid span,
body:not(.report-page) .audit-score-expert-grid strong,
body:not(.report-page) .audit-score-expert-grid p {
  display: block;
}

body:not(.report-page) .audit-score-expert-grid span {
  color: rgba(185, 201, 222, 0.72);
  font-size: 10px;
  font-weight: 900;
}

body:not(.report-page) .audit-score-expert-grid strong {
  margin-top: 4px;
  color: #65dfa0;
  font-size: 16px;
}

body:not(.report-page) .audit-score-expert-grid p {
  margin-top: 5px;
  color: rgba(213, 226, 244, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  body:not(.report-page) .audit-score-board {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .audit-score-main {
    min-height: 150px;
  }

  body:not(.report-page) .audit-action-head,
  body:not(.report-page) .audit-found-grid,
  body:not(.report-page) .audit-action-list,
  body:not(.report-page) .audit-score-expert-grid {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.report-page) .audit-data-pills {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  body:not(.report-page) .audit-score-ring {
    width: 112px;
    height: 112px;
  }

  body:not(.report-page) .score-dimension-top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:not(.report-page) .audit-score-proof-grid {
    grid-template-columns: 1fr;
  }

  body:not(.report-page) .audit-action-board {
    padding: 14px;
  }

  body:not(.report-page) .audit-action-head,
  body:not(.report-page) .audit-found-grid,
  body:not(.report-page) .audit-action-list,
  body:not(.report-page) .audit-score-expert-grid {
    grid-template-columns: 1fr;
  }
}

.health-shell {
  min-height: 100vh;
}

.health-card {
  max-width: 1180px;
  margin: 0 auto;
}

.health-controls {
  margin-top: 22px;
}

.health-control-row {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  gap: 12px;
  align-items: center;
}

.health-result {
  margin-top: 18px;
}

.health-status-card,
.health-error-card,
.health-mini-card {
  border: 1px solid rgba(126, 164, 207, 0.18);
  border-radius: 16px;
  background: rgba(7, 13, 22, 0.42);
}

.health-status-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}

.health-status-card h2,
.health-error-card h2,
.health-mini-card h3 {
  margin: 0;
  color: #f8fbff;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.health-mini-card {
  min-width: 0;
  padding: 16px;
}

.health-mini-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.health-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(126, 164, 207, 0.12);
}

.health-row span {
  color: rgba(185, 201, 222, 0.72);
  font-size: 12px;
}

.health-row strong {
  min-width: 0;
  color: #f8fbff;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 800;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #06121f;
  background: #65dfa0;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.health-badge-warn {
  background: #ffd86a;
}

.health-badge-fail,
.health-badge-forbidden {
  background: #ff7c7c;
}

.health-error-card {
  padding: 18px;
  border-color: rgba(255, 124, 124, 0.42);
}

.health-error-card p {
  margin-top: 8px;
  color: rgba(213, 226, 244, 0.78);
}

.health-error-card pre {
  max-height: 280px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(126, 164, 207, 0.16);
  border-radius: 12px;
  color: rgba(226, 236, 250, 0.92);
  background: rgba(0, 0, 0, 0.24);
  white-space: pre-wrap;
}

@media (max-width: 880px) {
  .health-grid {
    grid-template-columns: 1fr;
  }

  .health-status-card {
    display: block;
  }
}

@media (max-width: 620px) {
  .health-control-row {
    grid-template-columns: 1fr;
  }
}
