:root {
  color-scheme: light;
  --bg-desktop: #c8c8cc;
  --bg-desktop-glow: rgba(255, 255, 255, 0.45);
  --bg-window: #f2f2f7;
  --bg-sidebar: rgba(236, 236, 239, 0.78);
  --bg-sidebar-solid: #ececef;
  --bg-toolbar: rgba(246, 246, 248, 0.82);
  --bg-toolbar-solid: #f4f4f6;
  --bg-card: #ffffff;
  --bg-fill: #e8e8ed;
  --bg-fill-hover: #dcdce1;
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-tertiary: #8e8e93;
  --line: rgba(60, 60, 67, 0.12);
  --line-strong: rgba(60, 60, 67, 0.22);
  --window-border: rgba(255, 255, 255, 0.55);
  --hover: rgba(0, 0, 0, 0.05);
  --input-inset: 0 0.5px 0 rgba(255, 255, 255, 0.7) inset;
  --ring-track: #e5e5ea;
  --accent: #0a84ff;
  --accent-press: #0071e3;
  --ok: #34c759;
  --warn: #ff9f0a;
  --bad: #ff3b30;
  --locked: #8e8e93;
  --shadow-window: 0 18px 50px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  --r-window: 12px;
  --r-control: 6px;
  --r-card: 10px;
  --sidebar-w: 300px;
  --titlebar-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "SF Pro", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-desktop: #14110e;
  --bg-desktop-glow: rgba(80, 60, 40, 0.18);
  --bg-window: #241f1b;
  --bg-sidebar: rgba(32, 27, 21, 0.9);
  --bg-sidebar-solid: #201b15;
  --bg-toolbar: rgba(43, 36, 28, 0.92);
  --bg-toolbar-solid: #2b241c;
  --bg-card: #2b2620;
  --bg-fill: #3a332c;
  --bg-fill-hover: #4a4238;
  --ink: #f3eadf;
  --ink-secondary: #c4b59e;
  --ink-tertiary: #8d7f6e;
  --line: rgba(243, 234, 223, 0.12);
  --line-strong: rgba(243, 234, 223, 0.22);
  --window-border: rgba(243, 234, 223, 0.08);
  --hover: rgba(243, 234, 223, 0.06);
  --input-inset: 0 0.5px 0 rgba(243, 234, 223, 0.08) inset;
  --ring-track: #3a332c;
  --accent: #0a84ff;
  --accent-press: #409cff;
  --ok: #3d9a6e;
  --paper: #2b2620;
  --chip: #322c26;
  --warn: #ffd60a;
  --bad: #ff453a;
  --locked: #8e8e93;
  --shadow-window: 0 22px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-desktop-glow), transparent 55%),
    var(--bg-desktop);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, .display {
  font-family: var(--font);
  font-weight: 590;
  letter-spacing: -0.022em;
  color: var(--ink);
}
button, input, textarea { font: inherit; }

.desktop {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 16px 28px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.os-window {
  width: min(1180px, 100%);
  min-height: calc(100vh - 46px);
  min-height: calc(100dvh - 46px);
  background: var(--bg-window);
  border-radius: var(--r-window);
  box-shadow: var(--shadow-window);
  border: 1px solid var(--window-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.titlebar {
  min-height: var(--titlebar-h);
  height: auto;
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-toolbar);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.titlebar-title {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 590;
  color: var(--ink);
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-toggle {
  width: auto;
  background: var(--bg-fill);
  color: var(--ink);
  font-size: 12px;
  font-weight: 590;
  padding: 6px 10px;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.28);
}
.theme-toggle:hover { background: var(--bg-fill-hover); }
.titlebar-action {
  font-size: 13px;
  color: var(--accent);
  padding: 6px 4px;
  white-space: nowrap;
}

.cabinet {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: grid;
}
@media (min-width: 960px) {
  .cabinet { grid-template-columns: var(--sidebar-w) 1fr; }

  /* Desktop home: brand + audit CTA + SOCO fill first viewport (no empty stage) */
  #cabinet.is-home .cabinet {
    grid-template-columns: 1fr;
  }
  #cabinet.is-home .cabinet-main {
    display: none;
  }
  #cabinet.is-home .sidebar {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px 28px;
    padding: 18px 22px 20px;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    border-right: 0;
  }
  #cabinet.is-home .logo {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    text-align: center;
  }
  #cabinet.is-home #cabinet-audit-panel {
    display: contents;
  }
  #cabinet.is-home .sidebar-lead {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    text-align: center;
  }
  #cabinet.is-home .sidebar-lead .brand-headline {
    font-size: 17px;
    margin-bottom: 6px;
  }
  #cabinet.is-home .sidebar-lead .audit-subline {
    font-size: 13px;
  }
  #cabinet.is-home #audit-form {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    padding: 0;
  }
  #cabinet.is-home .soco-case {
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 22px;
    gap: 10px;
    overflow: auto;
    min-height: 0;
    align-content: start;
  }
  #cabinet.is-home .soco-section-title {
    font-size: 16px;
  }
  #cabinet.is-home .soco-compare {
    font-size: 13px;
  }
  #cabinet.is-home .soco-text,
  #cabinet.is-home .soco-shot-detail {
    font-size: 12px;
  }
  #cabinet.is-home .soco-metrika {
    margin: 2px 0 8px;
    padding-bottom: 8px;
  }
  #cabinet.is-home .soco-shot-metrika {
    max-height: min(38vh, 340px);
  }
  #cabinet.is-home .soco-shot-metrika img {
    max-height: min(38vh, 340px);
    width: 100%;
    object-fit: cover;
    object-position: left top;
  }
  #cabinet.is-home .soco-shots-payments {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #cabinet.is-home .soco-money {
    font-size: 16px;
    margin-bottom: 4px;
  }
  #cabinet.is-home .soco-shot img {
    padding: 4px 2px;
  }
}

.sidebar {
  background: var(--bg-sidebar-solid);
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(20px)) {
  .sidebar {
    background: var(--bg-sidebar);
    backdrop-filter: saturate(160%) blur(22px);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
  }
}
@media (min-width: 960px) {
  .sidebar {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow: auto;
  }
}
.sidebar .logo {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  padding: 2px 8px 0;
  text-align: center;
}
.sidebar-panel[hidden] { display: none !important; }
.pricing-sidebar-panel {
  padding: 8px 8px 4px;
}
.pricing-sidebar-title {
  margin: 0;
  padding: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}
.sidebar-lead {
  margin: 0;
  padding: 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
  text-align: center;
}
.brand-headline {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink);
}
.sidebar-lead .brand-headline { font-size: 14px; margin-bottom: 8px; }
.stage-brand .brand-headline {
  font-size: clamp(22px, 3.2vw, 28px);
  max-width: 28ch;
}
.audit-subline {
  margin: 0;
  font-size: 13px;
  font-weight: 590;
  color: var(--ink-secondary);
}
.stage-brand .audit-subline {
  font-size: 15px;
  margin-top: 4px;
}
.soco-case {
  margin-top: auto;
  padding: 12px 8px 4px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.soco-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.soco-case .kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.soco-compare {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
}
.soco-ymaps {
  white-space: nowrap;
  word-break: keep-all;
}
.soco-money-was {
  color: var(--bad);
  white-space: nowrap;
}
.soco-money-now {
  color: var(--ok);
  white-space: nowrap;
}
.soco-block { display: grid; gap: 4px; }
.soco-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.soco-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.88;
}
html[data-theme="light"] .soco-text {
  opacity: 1;
  color: #3a3a3c;
}
.soco-shots {
  display: grid;
  gap: 10px;
}
.soco-shots-payments {
  margin-top: 4px;
}
.soco-money {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.soco-shot-after .soco-money {
  color: var(--ok);
}
.soco-shot-before .soco-money {
  color: var(--bad);
}
.soco-shot {
  margin: 0;
  display: grid;
  gap: 4px;
}
.soco-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-control);
  background: #f5f5f5;
  border: 1px solid var(--line);
  padding: 6px 4px;
  object-fit: contain;
}
.soco-shot-cap {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.soco-shot-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 590;
  color: var(--ink);
  opacity: 0.9;
}
html[data-theme="light"] .soco-shot-detail {
  opacity: 1;
  color: #3a3a3c;
}
.soco-shot figcaption {
  font-size: 11px;
  font-weight: 590;
  color: var(--ink);
  opacity: 0.75;
}
.soco-metrika {
  display: grid;
  gap: 6px;
  margin: 4px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.soco-metrika-caption { margin: 0; }
.soco-metrika-figures {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}
.soco-money-june,
.soco-money-period {
  margin: 0;
  font-size: 18px;
}
.soco-money-june { color: var(--ok); }
.soco-money-period { color: var(--accent); }
.soco-metrika-sep {
  color: var(--ink);
  opacity: 0.45;
}
.soco-metrika-note {
  width: 100%;
  font-size: 11px;
  font-weight: 590;
  color: var(--ink);
  opacity: 0.7;
}
.soco-shot-metrika {
  overflow: hidden;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: #fff;
}
.soco-shot-metrika picture {
  display: block;
  width: 100%;
}
.soco-shot-metrika img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: left top;
}
.audit-heading {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.sidebar-lead .audit-heading { font-size: 16px; margin-bottom: 8px; }
.audit-intro .stack-p,
.audit-block .stack-p,
.stack-p {
  margin: 0 0 10px;
  max-width: 40em;
  line-height: 1.5;
}
.stack-p:last-child { margin-bottom: 0; }
.item-copy { min-width: 0; display: block; }
.item-title, .item-detail { margin: 0; }
.item-title { font-weight: 590; }
.item-detail { margin-top: 4px; color: var(--ink-secondary); }
.item-detail-stack {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.item-detail-stack .item-detail { margin-top: 0; }
.rank-float-note {
  margin: 10px 0 14px;
  max-width: 42rem;
  line-height: 1.45;
}
.audit-block { margin-top: 20px; padding: 18px 20px; }
.audit-subtitle {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 590;
  color: var(--ink-secondary);
}
.report-7 .audit-heading,
.report-8 .audit-heading { margin-bottom: 16px; }
.report-results-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.report-org-name {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}
.report-section { margin-top: 32px; }
.report-h {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.org-name {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rank-block { margin-top: 16px; }
.rank-block .rubric-heading {
  margin: 0 0 8px;
  padding: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 700;
}
.rank-card { overflow: hidden; margin-top: 8px; }
.seo-locked {
  color: var(--bad);
  font-weight: 590;
  margin: 16px 0 0;
}
.score-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 280px;
}
.score-factors {
  width: 100%;
  margin-top: 4px;
}
.score-factors-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
}
.score-factors-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.score-factors-list li {
  margin: 0;
  font-size: 12px;
  font-weight: 590;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
}
.score-factor-x {
  color: var(--bad);
}
.score-cap {
  color: var(--bad);
  font-weight: 590;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  margin: 0;
}
.pricing-cta {
  margin-top: 28px;
  padding-top: 8px;
  display: flex;
  justify-content: flex-start;
}
.pricing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 240px;
  text-decoration: none;
  text-align: center;
}
.pricing-cta-btn:hover {
  text-decoration: none;
}
.pricing-page {
  padding-top: 8px;
  max-width: 640px;
}
.pricing-back {
  margin: 0 0 18px;
}
.pricing-hero {
  margin-bottom: 28px;
}
.pricing-brand {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pricing-lead {
  margin: 0;
  max-width: 36em;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.5;
}
.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.pricing-offer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.pricing-offer:first-child {
  border-top: 0;
  padding-top: 0;
}
.pricing-offer h2 {
  margin: 4px 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.pricing-price {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pricing-price strong {
  font-weight: 700;
}
.pricing-items {
  margin: 8px 0 0;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 6px;
  color: var(--ink);
  line-height: 1.45;
}
.pricing-items li {
  padding-left: 2px;
}
.pricing-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.pricing-note h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 590;
}
.pricing-note p {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 40em;
}
.pricing-note p:last-child {
  margin-bottom: 0;
}
.pricing-offer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pricing-offer-copy {
  flex: 1;
  min-width: 0;
}
.pricing-timing {
  margin: 8px 0 0;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 590;
}
.pricing-gift {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  max-width: 40em;
}
.pricing-extra {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.pricing-offer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
}
.btn-cart-add,
button.btn-cart-add {
  width: 40px;
  min-width: 40px;
  padding: 7px 0;
  font-size: 18px;
  line-height: 1;
  background: var(--bg-fill);
  color: var(--ink);
}
.btn-cart-add:disabled {
  opacity: 0.55;
  cursor: default;
  color: var(--ok);
}
.cart-mini {
  margin: 12px 0 0;
  font-weight: 590;
}
.cart-page {
  padding-top: 8px;
  max-width: 640px;
}
.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cart-line:first-child { border-top: 0; }
.cart-totals {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  display: grid;
  gap: 8px;
}
.cart-totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.cart-totals .cart-note {
  display: block;
  font-size: 12px;
}
.rep-role-warn {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.btn-order,
button.btn-order,
a.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 112px;
  flex: none;
  background: var(--ok);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0.5px 1px rgba(52, 199, 89, 0.35);
}
.btn-order:hover,
button.btn-order:hover,
a.btn-order:hover {
  background: #2fb350;
  text-decoration: none;
  color: #fff;
}
.btn-later,
button.btn-later,
a.btn-later {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  background: var(--bg-fill);
  color: var(--ink-secondary);
  text-decoration: none;
}
.btn-later:disabled,
button.btn-later:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  color: var(--ink-tertiary);
}
.order-page,
.brief-page {
  padding-top: 8px;
  max-width: 640px;
}
.order-form {
  display: grid;
  gap: 6px;
  max-width: 420px;
}
.order-form .btn-primary {
  margin-top: 10px;
  width: auto;
  justify-self: start;
}
.field-hint {
  margin: 0 0 8px;
  color: var(--ink-tertiary);
  font-size: 12px;
  line-height: 1.4;
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.brief-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.brief-section:first-of-type {
  border-top: 0;
}
.brief-section h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.optional-tag {
  font-size: 11px;
  font-weight: 590;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.photo-actions .btn {
  width: auto;
}
.photo-status {
  margin: 8px 0 0;
  font-weight: 590;
}
.photo-ok { color: var(--ok); }
.photo-bad { color: var(--bad); }
.photo-status .mark {
  font-weight: 700;
  margin-right: 4px;
}
.link-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.link-row input { flex: 1; }
.link-row .btn-primary { width: auto; flex: none; }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.rep-login {
  margin: 0 0 10px;
  line-height: 1.45;
}
.rep-login code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-fill);
  padding: 2px 6px;
  border-radius: 4px;
}
.rep-steps {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.rep-shot {
  margin: 0 0 12px;
}
.rep-shot-placeholder {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-tertiary);
  background: var(--bg-fill);
  font-size: 12px;
  line-height: 1.4;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.check-row input {
  width: auto;
  margin-top: 2px;
}
.brief-submit {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.brief-submit .btn,
.brief-submit button {
  width: auto;
  min-width: 200px;
}
.ok-msg {
  color: var(--ok);
  font-weight: 590;
  margin: 8px 0 0;
}
.sidebar form { display: grid; gap: 8px; padding: 0 4px; }
.sidebar .ghost,
button.ghost {
  width: auto;
  background: none;
  color: var(--accent);
  box-shadow: none;
  padding: 4px 8px;
}
.sidebar .ghost:hover,
button.ghost:hover {
  background: rgba(10, 132, 255, 0.16);
  text-decoration: none;
}

.kicker {
  margin: 0 0 6px;
  padding: 0 8px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  font-weight: 590;
}
.muted { color: var(--ink-secondary); }
.err { color: var(--bad); font-size: 12px; margin: 0; }

.history { display: grid; gap: 2px; }
.hist {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
}
.hist:hover {
  background: var(--hover);
  text-decoration: none;
}
.hist.on {
  background: var(--accent);
  color: #fff;
}
.hist.on .muted { color: rgba(255, 255, 255, 0.78); }
.hist.on .hist-score {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.hist strong, .hist .muted { display: block; }
.hist strong { font-size: 13px; font-weight: 590; }
.hist .muted { font-size: 11px; margin-top: 1px; }
.hist-score {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-fill);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cabinet-main {
  min-width: 0;
  background: var(--bg-window);
  display: flex;
  flex-direction: column;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 6px;
  color: var(--ink-secondary);
  font-size: 12px;
}
.cabinet-main .wrap { padding-top: 4px; }

.wrap { max-width: none; margin: 0; padding: 0 20px 48px; }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 6px;
}

h1 { font-size: 28px; line-height: 1.15; margin: 4px 0 0; }
.lead { font-size: 15px; line-height: 1.5; max-width: 560px; color: var(--ink-secondary); }
.stage-empty { padding-top: 18px; }
.stage-empty h1 { font-size: clamp(26px, 4vw, 34px); }
.hero-accent { color: var(--accent); }

label {
  display: block;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}
input, button, textarea { width: 100%; }
input, textarea {
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: var(--r-control);
  padding: 7px 10px;
  outline: none;
  color: var(--ink);
  box-shadow: var(--input-inset);
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.28);
}
button,
.btn {
  border: 2px solid var(--line-strong);
  border-radius: 16px;
  padding: 7px 12px;
  background: var(--bg-fill);
  color: var(--ink);
  cursor: pointer;
  font-weight: 590;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.12);
}
button:hover,
.btn:hover { background: var(--bg-fill-hover); }
button:active,
.btn:active { transform: translateY(0.5px); }
button.btn-primary,
.btn-primary,
button.rust {
  background: var(--accent);
  color: #fff;
  border: 2px solid #0066cc;
  border-radius: 16px;
  box-shadow: 0 0.5px 1px rgba(10, 132, 255, 0.35);
}
button.btn-primary:hover,
.btn-primary:hover,
button.rust:hover { background: var(--accent-press); }
button:disabled { opacity: 0.55; cursor: wait; }

.audit-go {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.audit-go .audit-go-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 0;
}
.audit-go .audit-go-label {
  position: relative;
  z-index: 1;
}
.audit-go.is-loading {
  cursor: wait;
  opacity: 1;
}
button.audit-go.is-loading:disabled {
  opacity: 1;
  cursor: wait;
}
.audit-go.is-loading .audit-go-fill {
  animation: audit-go-progress 14s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.audit-go.is-done .audit-go-fill {
  width: 100%;
  animation: none;
  transition: width 0.35s ease-out;
}
@keyframes audit-go-progress {
  0% { width: 0%; }
  15% { width: 18%; }
  40% { width: 42%; }
  70% { width: 68%; }
  100% { width: 88%; }
}

.audit-results-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2px solid #248a3d;
  background: var(--ok);
  color: #fff;
  font-weight: 590;
  cursor: pointer;
  box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
}
.audit-results-btn:hover { background: #2fb350; color: #fff; }
.audit-results-btn[hidden] { display: none !important; }

.card, .panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.panel { padding: 16px; }

.grid3, .grid2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr 1fr; } }
.tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.steps { display: grid; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }

.identity { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 16px 18px; }
.identity-photo {
  margin: 0;
  width: 196px;
  flex: none;
  display: grid;
  gap: 8px;
}
.identity-photo img,
.identity img {
  display: block;
  width: 196px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}
.identity-photo-caption {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 590;
  color: var(--ink);
  opacity: 0.88;
  max-width: 196px;
}
html[data-theme="light"] .identity-photo-caption {
  opacity: 1;
  color: #3a3a3c;
}
.identity-main {
  flex: 1;
  min-width: 180px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.identity-main > * { margin: 0; }
.identity-address {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-secondary);
}
.identity-meta {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 590;
  color: var(--ink);
}
.identity-reviews {
  font-weight: 700;
}
.identity-meta-sep {
  color: var(--ink-tertiary);
  font-weight: 400;
}
.identity-extra,
.identity-link {
  font-size: 13px;
}
.report-section .demand-hero {
  margin: 8px 0 12px;
  display: grid;
  gap: 4px;
}
.demand-hero {
  margin-top: 4px;
  display: grid;
  gap: 4px;
}
.reviews-rank-h {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.demand-hero-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 590;
  color: var(--ink);
}
.demand-hero-label {
  color: var(--ink-secondary);
  font-weight: 600;
}
.demand-hero-n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.demand-hero-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.demand-hero-src {
  opacity: 0.75;
}
.demand-hero-empty {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-secondary);
}
.work-plan-lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.work-plan-group {
  margin-top: 18px;
}
.work-plan-group-h {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.work-plan-list {
  display: grid;
  gap: 12px;
}
.work-plan-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.work-plan-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.work-plan-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}
.work-plan-will {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.work-plan-will-label {
  font-weight: 700;
  color: var(--ink-secondary);
}
.work-plan-cta {
  margin-top: 22px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.work-plan-cta-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 42rem;
}
.optimize-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 6, 4, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}
.optimize-pay-dialog {
  position: relative;
  width: min(440px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.optimize-pay-dialog h2 {
  margin: 0 28px 12px 0;
  font-size: 20px;
}
.optimize-pay-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.optimize-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.optimize-pay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-tertiary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.optimize-pay-close:hover,
.optimize-pay-close:focus-visible {
  color: var(--ink);
}
.identity h1,
.identity .org-name { font-size: 26px; margin: 0; }
.score-aside-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  text-align: center;
}
.ring {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--ring-track) 0);
}
.ring-inner {
  width: 94px; height: 94px; border-radius: 50%; background: var(--bg-card);
  display: grid; place-items: center; text-align: center;
}
.ring-inner b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

.pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 590;
  color: #fff;
  white-space: nowrap;
  height: fit-content;
}
.ok { background: var(--ok); }
/* Егор: все плохие пункты — красный, не жёлтый. warn = bad until soft-warn returns. */
.warn { background: var(--bad); }
.bad { background: var(--bad); }
.locked { background: var(--bg-fill); color: var(--ink-secondary); }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--bad); }
.dot.bad { background: var(--bad); }
.dot.locked { background: var(--locked); }
.row { display: flex; gap: 10px; font-size: 13px; min-width: 0; }
.list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  background: transparent;
}
.list .row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.list .row:last-child { border-bottom: 0; }

.rank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.rank-row:first-child { border-top: 0; }
.rank-row.you { background: rgba(10, 132, 255, 0.18); }
.rank-meta {
  flex: none;
  text-align: right;
  white-space: nowrap;
}
.tag-ads {
  color: var(--ok);
  font-weight: 590;
}
.tag-organic {
  color: var(--warn);
  font-weight: 590;
}
.content-quality { margin-top: 18px; }
.content-quality-h {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}
.content-quality-sub { margin: 0 0 10px; font-size: 13px; }
.wordstat-coverage { margin: 8px 0 16px; }
.covers { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); }
.content-quality .covers { margin-top: 0; }
.cover {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.cover.you { outline: 2px solid var(--accent); outline-offset: -1px; }
.cover img, .cover-empty { width: 100%; height: 112px; object-fit: cover; display: block; background: var(--bg-fill); }
.cover-empty { display: grid; place-items: center; color: var(--ink-tertiary); font-size: 12px; }
.cover p { margin: 8px 10px; font-size: 13px; }
.sample { display: grid; gap: 12px; padding: 14px; }
@media (min-width: 800px) { .sample { grid-template-columns: 1fr 1fr; } }
.draft {
  background: var(--bg-fill);
  border-radius: 8px;
  padding: 12px;
}

.dark {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dark .muted { color: var(--ink-secondary); }
.dark input {
  background: var(--bg-window);
  color: var(--ink);
  border-color: var(--line-strong);
}
.dark .mod {
  border: 1px solid var(--line);
  background: var(--bg-window);
  border-radius: 8px;
  padding: 12px;
}
.lead-form { display: grid; gap: 8px; margin-top: 18px; }
@media (min-width: 800px) { .lead-form { grid-template-columns: 1fr 1fr auto; align-items: start; } }
.center { text-align: center; padding: 72px 20px; color: var(--ink-tertiary); }

.voice { margin: 16px 0 8px; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 0; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--bg-fill);
  color: var(--ink);
  border-radius: 0;
  padding: 6px 12px;
  width: auto;
  font-size: 12px;
  font-weight: 590;
  box-shadow: none;
  margin: 0;
}
.chip:first-child { border-radius: 7px 0 0 7px; }
.chip:last-child { border-radius: 0 7px 7px 0; }
.chip:not(:first-child) { margin-left: -1px; }
.chip.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  z-index: 1;
  position: relative;
}
.chip small { display: block; font-size: 10px; opacity: 0.7; font-weight: 400; }

@media (max-width: 959px) {
  .desktop { padding: 0; }
  .os-window {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .titlebar {
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    gap: 6px;
  }
  .titlebar-title { font-size: 15px; }
  .theme-toggle,
  .titlebar-action,
  .sidebar button,
  .sidebar input,
  .hist {
    min-height: 44px;
  }
  .titlebar-action {
    display: grid;
    place-items: center;
    padding: 8px 10px;
  }
  .sidebar {
    padding: 12px 12px 16px;
  }
  .sidebar .logo { font-size: 20px; }
  .history {
    max-height: min(40vh, 280px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .soco-shots,
  .soco-shots-payments {
    grid-template-columns: 1fr;
  }
  .wrap { padding: 0 14px 36px; }
  .stage-empty h1,
  .stage-empty .audit-heading { font-size: clamp(22px, 7vw, 28px); }
  .report-h { font-size: 18px; }
  .org-name,
  .report-org-name { font-size: 22px; word-break: break-word; }
  input, textarea { font-size: 16px; }
  .identity { flex-direction: column; align-items: stretch; }
  .identity-photo { width: 100%; }
  .identity-photo img,
  .identity img { width: 100%; height: 160px; }
  .identity-photo-caption { max-width: none; }
  .identity h1,
  .identity .org-name { font-size: 22px; word-break: break-word; }
  .score-aside { max-width: none; align-self: center; }
  .tile h2, .display { font-size: 20px !important; }
  .chips { gap: 8px; }
  .chip,
  .chip:first-child,
  .chip:last-child {
    border-radius: 7px;
    margin-left: 0;
  }
  .chip:not(:first-child) { margin-left: 0; }
  .lead-form { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; }
  .pricing-cta { justify-content: stretch; }
  .pricing-cta-btn { width: 100%; min-width: 0; min-height: 44px; }
  .pricing-brand { font-size: 24px; }
  .pricing-page { max-width: none; }
  .pricing-offer-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pricing-offer-actions {
    width: 100%;
  }
  .btn-order,
  a.btn-order,
  button.btn-order {
    width: 100%;
    min-height: 44px;
  }
  .btn-cart-add {
    min-height: 44px;
  }
  .link-row { flex-direction: column; align-items: stretch; }
  .link-row .btn-primary { width: 100%; }
  .brief-submit .btn,
  .brief-submit button { width: 100%; }
}

@media (prefers-reduced-transparency: reduce) {
  .sidebar, .titlebar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-sidebar-solid);
  }
  .titlebar { background: var(--bg-toolbar-solid); }
}

/* M5 — guest reply teaser (only drafts blurred, not the whole report) */
.reply-teaser {
  margin: 18px 0 8px;
  display: grid;
  gap: 12px;
}
.reply-teaser-h {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.reply-teaser-lead,
.reply-teaser-foot {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.reply-teaser-list {
  display: grid;
  gap: 12px;
}
.reply-teaser-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  display: grid;
  gap: 8px;
}
.reply-teaser-meta {
  margin: 0;
  font-size: 12px;
}
.reply-teaser-review {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.reply-teaser-draft {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.reply-teaser-draft-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.reply-teaser-card.is-blurred .reply-teaser-draft {
  position: relative;
  overflow: hidden;
}
.reply-teaser-card.is-blurred .reply-teaser-blur-text {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.72;
}
.reply-teaser-paywall {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 4px;
}
.reply-teaser-more {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.reply-teaser-soft {
  gap: 6px;
}

/* S1 — public 890 subscription block on /pricing */
.pricing-sub-hero {
  margin: 8px 0 28px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  display: grid;
  gap: 10px;
}
.pricing-sub-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}
.pricing-sub-price {
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pricing-sub-per {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-secondary);
}
.pricing-sub-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  max-width: 40em;
}
.pricing-sub-includes {
  margin: 4px 0 0;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}
.pricing-sub-note {
  margin: 0;
  font-size: 13px;
}
.pricing-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.pricing-extra-h {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
}
.pricing-extra-lead {
  margin: 0 0 12px;
  font-size: 13px;
}

/* M3 — bars «вы vs среднее топа / лидер» (visual only, no score change) */
.vs-top {
  margin: 16px 0 4px;
  display: grid;
  gap: 14px;
}
.vs-top-h {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.vs-top-basis {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.vs-top-row {
  display: grid;
  gap: 6px;
}
.vs-top-metric {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vs-top-lines {
  display: grid;
  gap: 5px;
}
.vs-top-line {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.vs-top-k {
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.vs-top-n {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 700;
}
.vs-top-track {
  height: 10px;
  border-radius: 3px;
  background: var(--ring-track);
  overflow: hidden;
}
.vs-top-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
  /* solid only — no stripes/hatch/gradient patterns */
  background-image: none !important;
}
.vs-top-fill.you {
  background: #0a84ff;
}
.vs-top-fill.avg {
  background: #8d7f6e;
}
html:not([data-theme="dark"]) .vs-top-fill.avg {
  background: #8e8e93;
}
.vs-top-fill.leader {
  background: #e7d3b0;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 223, 0.55);
}
html:not([data-theme="dark"]) .vs-top-fill.leader {
  background: #c7c7cc;
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.28);
}
.vs-top-note {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}
.vs-top-empty {
  gap: 6px;
}
@media (max-width: 640px) {
  .vs-top-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
