/* /ip — проверка подключения для Claude. Опирается на style.css (шапка, меню, диалоги, кнопки).
   Плавное раскрытие — grid-template-rows 0fr → 1fr (Chrome, Edge, Safari 16+, Firefox);
   при «уменьшить движение» все переходы выключены. */
.ipx {
  --panel: #2e2d2a;
  --line: #49443d;
  --line-soft: #3e3b35;
  --good: #8cc46f;
  --good-ink: #a6d98d;
  --warn: #e0a253;
  --warn-ink: #edbd7e;
  --bad: #e0675a;
  --bad-ink: #f08f80;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: min(var(--ca-page), 100% - 2 * var(--ca-gutter)); /* 137.9.5: the page grid of ds.css */
  margin: 0 auto;
  padding: 30px 0 24px;
  display: grid;
  gap: 18px;
  flex: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ipx button:not(.button) {
  font: inherit;
  color: inherit;
}
.ipx :focus-visible {
  outline: 2px solid var(--ca-focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- шапка страницы ---------- */
.ipx[data-ring-launch] #recheck { display: none; }
.ip-launch { position: relative; grid-area: entry; width: 100%; min-width: 0; }
.ip-launch:has(input[hidden]):has(#target-status:empty) { display: none; }
.ip-launch input {
  width: 100%; min-height: 44px; box-sizing: border-box; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: #222220;
  color: var(--ink); font: inherit; font-size: 16px;
}
.ip-launch input::placeholder { color: var(--muted); opacity: 1; }
.ip-launch input:focus::placeholder { opacity: 0; }
.ip-launch p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.ip-launch p:empty { display: none; }
.ip-launch p[role="status"] { color: var(--ink); }
.ipx .ring-play {
  position: absolute; inset: 5%; z-index: 1; display: grid; place-items: center;
  padding: 0; border: none; border-radius: 50%; background: transparent; cursor: pointer;
}
.ring-play span {
  display: grid; place-items: center; width: 62%; height: 62%; border-radius: 50%;
  background: var(--ca-accent, #d97757); color: #231814;
}
.ring-play span::before { content: ""; width: 30%; height: 35%; margin-left: 5%; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.ring-play:hover:enabled span { background: #e99b7e; }
.ipx .ring-play:focus-visible { border-radius: 50%; }
.ipx .ring-play[hidden], .ipx .ring-play:disabled { display: none; }
.ipx[data-ring-launch] .score-card[data-state="done"] .ring-play {
  inset: auto 2% 2% auto; width: 44px; height: 44px;
}
.score-card[data-state="done"] .ring-play span { width: 78%; height: 78%; box-shadow: 0 0 0 3px var(--panel); }
.ipx[data-ring-launch] .score-card:not([data-state="done"]) .ring-center { visibility: hidden; }
@media (min-width: 651px) and (max-width: 900px) {
  .ipx[data-ring-launch] .score-card {
    grid-template-areas: "ring grade" "ring entry" "ring parts" "ring link";
  }
}
.ipx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.ipx-title {
  min-width: 0;
}
.ipx-title h1 {
  font:
    400 clamp(28px, 3.1vw, 42px) / 1.15 var(--ca-font-serif);
  letter-spacing: -0.8px;
  margin: 10px 0;
}
.ipx-title h1 {
  text-wrap: balance;
}
.ipx-title h1 em {
  color: #da8d6c;
  font-style: normal;
}
.lead {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 64ch;
}
.ipx-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #222220;
  color: #ddd5ca !important;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-ghost:hover:not(:disabled) {
  border-color: #a86749;
  color: #f0b49a !important;
}
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: default;
}
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #ddd5ca;
  cursor: pointer;
  min-height: 40px;
  user-select: none;
  -webkit-user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: #3a3733;
  border: 1px solid var(--line);
  position: relative;
  box-sizing: border-box;
  transition: background 0.25s;
}
.switch-track span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cfc6ba;
  transition:
    transform 0.25s var(--ease),
    background 0.25s;
}
.switch input:checked + .switch-track {
  background: #6b4535;
}
.switch input:checked + .switch-track span {
  transform: translateX(16px);
  background: #f0b49a;
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- главный блок: оценка и вывод ---------- */
.hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.hero > .score-card {
  align-self: start;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.hero-side > .verdict-card {
  flex: 1 0 auto;
}
.tiles {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tile a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #2b2a27;
  color: var(--ink);
  font-size: 13.5px;
  transition:
    border-color 0.2s,
    background 0.2s;
  animation: rise 0.5s var(--ease) both;
}
.tile:nth-child(2) a {
  animation-delay: 0.08s;
}
.tile:nth-child(3) a {
  animation-delay: 0.16s;
}
.tile:nth-child(4) a {
  animation-delay: 0.24s;
}
.tile a:hover {
  border-color: color-mix(in srgb, var(--good) 45%, var(--line));
  background: #2f2e2a;
}
.tile-sum {
  font-size: 12px;
  color: var(--good-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tile.is-fail .tile-sum {
  color: var(--bad-ink);
}
.score-card,
.verdict-card,
.addr-card,
.group,
.cli {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.score-card {
  --tone: #8b8275;
  position: relative;
  padding: 24px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: border-color 0.6s;
}
.score-card::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -45%;
  height: 340px;
  background: radial-gradient(closest-side, var(--tone), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s;
}
.score-card[data-state="done"]::before {
  opacity: 0.14;
}
.score-card[data-level="top"],
.score-card[data-level="good"] {
  --tone: var(--good);
}
.score-card[data-level="warn"] {
  --tone: var(--warn);
}
.score-card[data-level="bad"] {
  --tone: var(--bad);
}
.score-card[data-state="done"] {
  border-color: color-mix(in srgb, var(--tone) 40%, var(--line));
}
.ring {
  position: relative;
  width: 196px;
  height: 196px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ring circle {
  fill: none;
  stroke-width: 12;
  transform-origin: 100px 100px;
  transform: rotate(-90deg);
}
.ring-track {
  stroke: #3a3733;
}
.ring-value {
  stroke: var(--tone);
  stroke-linecap: round;
  stroke-dasharray: 552.92;
  stroke-dashoffset: 552.92;
  visibility: hidden;
  transition:
    stroke-dashoffset 1.15s var(--ease),
    stroke 0.6s;
}
.ring-spin {
  stroke: #8b8275;
  stroke-linecap: round;
  stroke-dasharray: 90 463;
  opacity: 0;
  transition: opacity 0.3s;
}
.score-card[data-state="loading"] .ring-spin {
  opacity: 0.85;
  animation: ring-spin 1.1s linear infinite;
}
@keyframes ring-spin {
  from {
    transform: rotate(-90deg);
  }
  to {
    transform: rotate(270deg);
  }
}
.ring-center {
  position: relative;
  display: grid;
  justify-items: center;
  line-height: 1;
}
.ring-center strong {
  font:
    400 58px/1 var(--ca-font-serif);
  letter-spacing: -2px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
  transition: color 0.6s;
}
.score-card[data-state="done"] .ring-center strong {
  color: color-mix(in srgb, var(--tone) 70%, #fff);
}
.ring-center span {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ca-text-3);
}
.score-card[data-state="done"] .ring {
  animation: ring-pop 0.7s var(--ease) 1.05s both;
}
@keyframes ring-pop {
  40% {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}
.grade {
  position: relative;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--tone) 70%, #fff); /* 137.9.5: 80 % gave 4.3:1 for the neutral «Нет данных» */
  border: 1px solid color-mix(in srgb, var(--tone) 50%, transparent);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  transition:
    color 0.6s,
    border-color 0.6s,
    background 0.6s;
}
.parts-box {
  width: 100%;
  position: relative;
}
.parts {
  width: 100%;
  display: grid;
  gap: 10px;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 6px 4px 4px;
  text-align: left;
  cursor: pointer;
}
.part {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  font-size: 12.5px;
  color: #bdb5a9;
}
.part b {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 99px;
  background: #3a3733;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #8b8275;
  transition:
    width 1.1s var(--ease) 0.15s,
    background-color 0.6s;
}
.bar span[data-l="good"] {
  background: var(--good);
}
.bar span[data-l="warn"] {
  background: var(--warn);
}
.bar span[data-l="bad"] {
  background: var(--bad);
}
.parts:disabled {
  cursor: default;
}
.parts:disabled .parts-more {
  visibility: hidden;
}
.parts-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #edab8b;
  padding-top: 2px;
}
.deductions {
  list-style: none;
  margin: 0;
  padding: 8px 4px 2px;
  display: grid;
  gap: 6px;
}
.deductions li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #cfc6ba;
  line-height: 1.4;
}
.deductions b {
  color: var(--bad-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.deductions .is-cap {
  color: var(--bad-ink);
}
.deductions .is-zero {
  color: var(--good-ink);
}
.link-btn {
  position: relative;
  background: none;
  border: 0;
  color: #a9a196 !important;
  font-size: 12px;
  padding: 6px;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
/* 137.9.5: a drawn «i» instead of the ⓘ glyph (glyphs are not icons, DESIGN.md) */
.link-btn .ca-icon {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
}
.link-btn:hover {
  color: #edab8b !important;
}

.verdict-card {
  --tone: #8b8275;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color 0.6s;
}
.verdict-card[data-level="good"] {
  --tone: var(--good);
}
.verdict-card[data-level="warn"] {
  --tone: var(--warn);
}
.verdict-card[data-level="bad"] {
  --tone: var(--bad);
}
.verdict-card[data-state="done"] {
  border-color: color-mix(in srgb, var(--tone) 35%, var(--line));
}
.verdict {
  font:
    400 clamp(22px, 2.2vw, 28px) / 1.25 var(--ca-font-serif);
  letter-spacing: -0.3px;
  margin: 0;
}
.verdict-card[data-state="done"] .verdict,
.verdict-card[data-state="done"] .verdict-sub {
  animation: rise 0.45s var(--ease) both;
}
.verdict-sub {
  color: #cfc6ba;
  font-size: 14px;
  line-height: 1.55;
}
.progress {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.verdict-card[data-state="done"] .progress {
  display: none;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ca-text-3);
  transition: color 0.3s;
}
.progress li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #4b4741;
  box-sizing: border-box;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.progress li[data-state="run"] {
  color: #ddd5ca;
}
.progress li[data-state="run"]::before {
  border-color: #da7756 #4b4741 #4b4741;
  animation: spin-flat 0.8s linear infinite;
}
.progress li[data-state="done"] {
  color: #cfc6ba;
}
.progress li[data-state="done"]::before {
  content: "✓";
  border-color: var(--good);
  background: color-mix(in srgb, var(--good) 20%, transparent);
  color: var(--good-ink);
}
.progress li[data-state="fail"]::before {
  content: "✕";
  border-color: var(--bad);
  color: var(--bad-ink);
}
@keyframes spin-flat {
  to {
    transform: rotate(360deg);
  }
}
.tally {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}
.verdict-card[data-state="done"][data-fine="true"] .tally {
  display: none;
}
.verdict-card[data-state="done"] .tally {
  display: flex;
  animation: rise 0.45s var(--ease) 0.1s both;
}
.tally span {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #cfc6ba;
}
.tally b {
  font-weight: 700;
  margin-right: 3px;
  font-variant-numeric: tabular-nums;
}
.t-pass b {
  color: var(--good-ink);
}
.t-warn b {
  color: var(--warn-ink);
}
.t-fail b {
  color: var(--bad-ink);
}
.fixes h3 {
  font-size: 13px;
  font-weight: 600;
  color: #ddd5ca;
  margin: 6px 0 10px;
  letter-spacing: 0.2px;
}
.fixes h3 span {
  font-weight: 400;
  color: var(--ca-text-3);
  margin-left: 6px;
}
.fix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fix {
  --c: var(--warn);
  /* 137.9.5: a full tinted border and the leading state icon instead of a bar down the left side */
  border: 1px solid color-mix(in srgb, var(--c) 42%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 6%, #2b2a27);
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms + 0.2s);
  overflow: hidden;
}
.fix.is-fail {
  --c: var(--bad);
}
.fix-head,
.check-head,
.group-head {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.fix-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 4px;
  min-height: 44px;
}
.fix-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.fix-pen {
  font-size: 12px;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 80%, #fff);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fix-box.is-open > .fix-short {
  display: none;
}
.fix-short {
  margin: 0;
  padding: 0 14px 12px 46px;
  font-size: 13px;
  line-height: 1.5;
  color: #cfc6ba;
}
.fix .collapse-in > div,
.fix .collapse-in > p {
  margin-left: 46px;
  margin-right: 14px;
}
.fix-val {
  font-size: 12.5px;
  color: #a9a196;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.st-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #1f1e1d;
  flex-shrink: 0;
}
.is-pass .st-ico {
  background: var(--good);
}
.is-warn .st-ico {
  background: var(--warn);
}
.is-fail .st-ico {
  background: var(--bad);
}
/* 137.9.5: «not checked» is a hollow ring (the dash on #6f685f was 3.0:1); the note disc is lighter (4.4 → 4.9:1) */
.is-unknown .st-ico {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #7d766c;
  color: var(--ca-text-3);
}
.is-note .st-ico {
  background: #928b80;
  font-family: var(--ca-font-serif);
  font-style: italic;
}
.note-line {
  color: var(--good-ink) !important;
}
.chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid #a9a196;
  border-bottom: 2px solid #a9a196;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
  justify-self: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
[aria-expanded="true"] .chev {
  transform: translateY(2px) rotate(225deg);
}
.howto {
  font-size: 13px;
  line-height: 1.55;
  color: #ddd5ca;
  padding-bottom: 14px;
}
.howto > b {
  display: block;
  color: #edab8b;
  font-weight: 600;
  margin-bottom: 4px;
}
.howto ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.other-os {
  margin-top: 8px;
  color: #bdb5a9;
}
.other-os summary {
  cursor: pointer;
  color: #a9a196;
  font-size: 12.5px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.other-os summary::-webkit-details-marker {
  display: none;
}
.other-os summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid #a9a196;
  border-bottom: 2px solid #a9a196;
  transform: rotate(-45deg);
  transition: transform 0.25s;
}
.other-os[open] summary::before {
  transform: rotate(45deg);
}
.other-os .os-name {
  margin: 8px 0 2px;
  font-weight: 600;
  color: #cfc6ba;
}
.other-os ul {
  margin: 0;
  padding-left: 20px;
}
.all-good small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #9fb38f;
}
.all-good {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--good) 10%, #2b2a27);
  border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line));
  color: var(--good-ink);
  font-size: 14px;
  margin: 0;
  animation: rise 0.5s var(--ease) 0.2s both;
}
.skipped {
  font-size: 12.5px;
  color: var(--ca-text-3);
  margin: 0;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- раскрытие (общий механизм) ---------- */
.collapse {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}
.is-open > .collapse {
  grid-template-rows: 1fr;
}
.collapse-in {
  min-height: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.22s,
    transform 0.34s var(--ease),
    visibility 0s linear 0.34s;
}
.is-open > .collapse > .collapse-in {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.3s 0.05s,
    transform 0.34s var(--ease),
    visibility 0s;
}

/* ---------- адреса ---------- */
.addr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.addr-card {
  padding: 15px 18px;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.addr-card.is-main {
  background: #352e27;
  border-color: #69503e;
}
.addr-label {
  font-size: 12px;
  color: #bbb3a7;
}
.ip-value {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.addr-card small {
  color: #a9a196;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ip-note {
  font-size: 13px;
  line-height: 1.55;
  color: #e7c3ad;
  background: #3a2e26;
  border: 1px solid #5d4434;
  border-radius: 12px;
  padding: 11px 14px;
  margin: 0;
}
.ipx[aria-busy="true"] .ip-value {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

/* ---------- подробная проверка ---------- */
.groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.groups-col {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.groups-title {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 600;
  color: #ddd5ca;
  margin: 8px 0 0;
}
.groups-title .groups-hint {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ca-text-3);
  margin-left: 8px;
}
.group {
  min-width: 0;
  overflow: hidden;
}
.group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  min-height: 56px;
}
.group-head:hover,
.check-head:hover,
.fix-head:hover,
.parts:hover {
  background: rgba(255, 255, 255, 0.03);
}
.group-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: grid;
  gap: 2px;
}
.group-name small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ca-text-3);
}
.group-sum {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #bdb5a9;
  white-space: nowrap;
}
.group-sum[data-state="pass"] {
  color: var(--good-ink);
  border-color: color-mix(in srgb, var(--good) 40%, var(--line));
}
.group-sum[data-state="warn"] {
  color: var(--warn-ink);
  border-color: color-mix(in srgb, var(--warn) 40%, var(--line));
}
.group-sum[data-state="fail"] {
  color: var(--bad-ink);
  border-color: color-mix(in srgb, var(--bad) 40%, var(--line));
}
.facts {
  margin: 0 16px;
  padding: 12px 0 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 12.5px;
  border-top: 1px solid var(--line-soft);
}
.fact {
  display: contents;
}
.fact dt {
  color: var(--ca-text-3);
}
.fact.is-sub dt {
  padding-left: 12px;
  color: var(--ca-text-3);
}
.fact.is-sub dd {
  color: #bdb5a9;
}
.fact dd {
  margin: 0;
  color: #ddd5ca;
  text-align: right;
  overflow-wrap: anywhere;
}
.tone-good {
  color: var(--good-ink) !important;
}
.tone-warn {
  color: var(--warn-ink) !important;
}
.tone-bad {
  color: var(--bad-ink) !important;
}
.tone-muted {
  color: var(--ca-text-3) !important;
}
.checks {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
}
.check {
  border-top: 1px solid var(--line-soft);
}
.check-head {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 14px;
  grid-template-areas: "ico title val chev";
  align-items: center;
  gap: 4px 10px;
  padding: 11px 16px;
  min-height: 48px;
}
.check-head .st-ico {
  grid-area: ico;
}
.check-title {
  grid-area: title;
  font-size: 13.5px;
  color: var(--ink);
}
.check-value {
  grid-area: val;
  font-size: 12px;
  color: #a9a196;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 30ch;
}
.check-head .chev {
  grid-area: chev;
}
.check .collapse-in > p,
.check .collapse-in > div {
  margin: 0 16px 0 48px;
}
.check .collapse-in > p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #c0b8ac;
  margin-bottom: 6px;
}
.check .collapse-in > p:last-child,
.check .howto {
  margin-bottom: 12px;
}
.check .collapse-in b {
  color: #ddd5ca;
  font-weight: 600;
}

/* ---------- терминал ---------- */
.cli {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  align-items: center;
}
.cli h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}
.cli p {
  font-size: 13px;
  line-height: 1.6;
  color: #c0b8ac;
  margin: 0;
}
.cli-box {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
}
.cli-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #222220;
}
.cli-tab {
  border: 0;
  background: none;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 7px;
  color: #aaa49a !important;
  cursor: pointer;
  min-height: 32px;
}
.cli-tab[aria-selected="true"] {
  background: #43332b;
  color: #f0b49a !important;
}
.cli-code {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  background: #1f1e1d;
  border: 1px solid #44413a;
  border-radius: 10px;
  padding: 11px 13px;
  color: #e6dfd5;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.ip-page .method-dialog p b {
  color: var(--ink);
}

/* ---------- 137.10.2: «Где вы на самом деле» и «Что, скорее всего, сделает Claude» ---------- */
.forecast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.forecast[data-single="true"] {
  grid-template-columns: minmax(0, 1fr);
}
.fc-card {
  --tone: #8b8275;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--line));
  border-radius: 16px;
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  animation: rise 0.45s var(--ease) both;
}
.fc-card + .fc-card {
  animation-delay: 0.08s;
}
.fc-card[data-tone="good"] {
  --tone: var(--good);
}
.fc-card[data-tone="warn"] {
  --tone: var(--warn);
}
.fc-card[data-tone="bad"] {
  --tone: var(--bad);
}
.fc-title {
  font:
    400 clamp(20px, 1.9vw, 24px) / 1.25 var(--ca-font-serif);
  letter-spacing: -0.3px;
  margin: 0;
  text-wrap: balance;
}
.fc-kicker {
  margin: -6px 0 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ca-text-3);
}
.fc-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.fc-body p {
  margin: 0;
}
.fc-place {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.fc-place-label {
  font-size: 13.5px;
  color: #cfc6ba;
}
.fc-place-value {
  font:
    400 24px / 1.2 var(--ca-font-serif);
  letter-spacing: -0.3px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.fc-card[data-tone="bad"] .fc-place-value {
  color: var(--bad-ink);
}
.fc-place-value.is-none {
  font-size: 18px;
  color: #ddd5ca;
}
.fc-meta {
  font-size: 12.5px;
  color: #bbb3a7;
}
.fc-compare {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #ddd5ca;
}
.fc-compare .st-ico {
  margin-top: -1px;
}
.fc-signals {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.fc-signal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.45;
}
.fc-sig-name {
  color: #cfc6ba;
  min-width: 0;
  overflow-wrap: anywhere;
}
.fc-sig-own {
  margin-left: 8px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: #a9a196;
}
.fc-sig-to {
  margin-left: auto; /* wrapped under a long name on a phone, it still ends at the right edge like the other rows */
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}
.fc-signal.is-out .fc-sig-to {
  color: var(--ca-text-3);
  font-weight: 400;
}
.fc-advice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #e7dccf;
  background: #3a2e26;
  border: 1px solid #5d4434;
}
.fc-advice.is-bad {
  background: color-mix(in srgb, var(--bad) 11%, var(--panel));
  border-color: color-mix(in srgb, var(--bad) 42%, var(--line));
}
.fc-advice b {
  color: var(--ink);
}
.fc-advice.is-bad b {
  color: var(--bad-ink);
}
.fc-steps {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  position: relative;
}
/* the rail between the rung numbers: the ladder reads as one scale, not four separate warnings. 137.10.5: drawn per
   rung, from the centre of its number to the next one (half a gap of 6 px + the 1 px border past each edge), so it
   never sticks out past the first or the last number whatever the height of the end rungs */
.rung:not(:first-child)::before,
.rung:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  width: 2px;
  margin-left: -1px;
  background: var(--line);
}
.rung:not(:first-child)::before {
  top: -4px;
  height: calc(50% + 4px);
}
.rung:not(:last-child)::after {
  top: 50%;
  bottom: -4px;
}
.rung {
  --rt: var(--good);
  --rt-ink: var(--good-ink);
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.rung[data-l="1"],
.rung[data-l="2"] {
  --rt: var(--warn);
  --rt-ink: var(--warn-ink);
}
.rung[data-l="3"] {
  --rt: var(--bad);
  --rt-ink: var(--bad-ink);
}
.rung-n {
  position: relative; /* 137.10.5: above the rail segments */
  z-index: 1;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1.5px solid #5a554d;
  background: var(--panel);
  color: #a9a196;
}
.rung-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.rung-text b {
  font-size: 14px;
  font-weight: 500;
  color: #b3ab9f;
}
.rung-text small {
  font-size: 12.5px;
  line-height: 1.45;
  color: #c4bcb0;
}
.rung-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #cfc6ba;
  white-space: nowrap;
}
.rung.is-main {
  border-color: color-mix(in srgb, var(--rt) 55%, var(--line));
  background: color-mix(in srgb, var(--rt) 12%, var(--panel));
}
.rung.is-main .rung-n {
  border-color: var(--rt);
  background: color-mix(in srgb, var(--rt) 30%, var(--panel));
  color: var(--ink);
}
.rung.is-main .rung-text b {
  color: var(--ink);
  font-weight: 600;
}
.rung.is-main .rung-tag {
  color: var(--rt-ink);
  border-color: color-mix(in srgb, var(--rt) 55%, var(--line));
  font-weight: 600;
}
.rung.is-maybe {
  border: 1px dashed color-mix(in srgb, var(--rt) 45%, var(--line));
}
.rung.is-maybe .rung-n {
  border-color: color-mix(in srgb, var(--rt) 65%, #5a554d);
  color: #ddd5ca;
}
.rung.is-maybe .rung-text b {
  color: #e7dccf;
}
.fc-blocked {
  font:
    400 26px / 1.2 var(--ca-font-serif);
  letter-spacing: -0.4px;
  color: var(--bad-ink);
}
.fc-text,
.fc-why {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cfc6ba;
}
.fc-why b {
  color: var(--ink);
}
.fc-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ca-text-3);
}
@media (max-width: 900px) {
  .forecast {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .fc-card {
    padding: 18px 16px;
  }
  .fc-signal {
    flex-wrap: wrap;
  }
  .fc-sig-to {
    text-align: left;
  }
  /* 137.10.5: the value under its name, so «→ Страна» stays on the first line of every row */
  .fc-sig-own {
    display: block;
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  .rung {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 9px 10px;
  }
  .rung::before,
  .rung::after {
    left: 23px;
  }
  /* the tag drops to a second row here: the number spans both, so it stays in the middle of the rung where the
     rail segments meet (137.10.5) */
  .rung:has(.rung-tag) .rung-n {
    grid-row: span 2;
  }
  .rung-tag {
    grid-column: 2;
    justify-self: start;
  }
}
@media (forced-colors: active) {
  .rung.is-main {
    border: 2px solid CanvasText;
  }
  .rung.is-maybe {
    border: 1px dashed CanvasText;
  }
}

/* ---------- ширины ---------- */
@media (min-width: 901px) {
  .hero .score-card {
    position: sticky;
    top: calc(var(--ca-top-h) + 16px); /* 137.9.1: below the sticky top bar */
  }
}
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .ring {
    width: 176px;
    height: 176px;
  }
}
@media (max-width: 900px) {
  .ipx-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .score-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "ring grade" "ring parts" "ring link";
    justify-items: start;
    align-items: center;
    column-gap: 22px;
  }
  .score-card .ring {
    grid-area: ring;
  }
  .score-card .grade {
    grid-area: grade;
    align-self: end;
  }
  .score-card .parts-box {
    grid-area: parts;
  }
  .score-card .link-btn {
    grid-area: link;
    align-self: start;
    padding-left: 4px;
  }
  .groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .groups-col {
    display: contents;
  }
  .group[data-g="net"] {
    order: 1;
  }
  .group[data-g="leak"] {
    order: 2;
  }
  .group[data-g="dev"] {
    order: 3;
  }
  .group[data-g="link"] {
    order: 4;
  }
  .groups-title {
    order: 0;
  }
  .cli {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .hero-side .addr {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-side .addr-card {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: baseline;
  }
  .hero-side .addr-card small {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .hero-side .addr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-side .addr-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .hero-side .addr,
  .addr {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .ipx {
    padding: 16px 0 14px;
    gap: 14px;
  }
  .ipx-title h1 {
    font-size: 27px;
    letter-spacing: -0.5px;
  }
  .lead {
    font-size: 13.5px;
  }
  .ipx-tools {
    width: 100%;
    justify-content: space-between;
  }
  .score-card {
    display: flex;
    align-items: center;
    padding: 18px 16px 12px;
    gap: 10px;
  }
  .score-card .grade,
  .score-card .link-btn {
    align-self: center;
  }
  .ring {
    width: 150px;
    height: 150px;
  }
  .ring-center strong {
    font-size: 46px;
  }
  .verdict-card {
    padding: 18px 16px;
  }
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .fix-head {
    padding: 12px 12px 4px;
    gap: 9px;
  }
  .fix-short {
    padding: 0 12px 12px 43px;
  }
  .fix .collapse-in > div,
  .fix .collapse-in > p {
    margin-left: 43px;
    margin-right: 12px;
  }
  .check-head {
    grid-template-columns: 22px minmax(0, 1fr) 14px;
    grid-template-areas: "ico title chev" "ico val chev";
    padding: 11px 14px;
  }
  .check-value {
    text-align: left;
    max-width: none;
  }
  .check .collapse-in > p,
  .check .collapse-in > div {
    margin: 0 14px 0 46px;
  }
  .facts {
    margin: 0 14px;
  }
  .group-head {
    padding: 14px;
  }
}
@media (max-width: 380px) {
  .ipx-tools {
    flex-wrap: wrap;
  }
  .group-head {
    grid-template-columns: minmax(0, 1fr) 14px;
  }
  .group-sum {
    grid-column: 1;
    justify-self: start;
  }
  .group-head .chev {
    grid-row: 1;
    grid-column: 2;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .fact dd {
    text-align: left;
    margin-bottom: 4px;
  }
}

/* ---------- сенсорные экраны: цели нажатия не меньше 44 px ---------- */
@media (pointer: coarse) {
  .link-btn,
  .cli-tab,
  .other-os summary {
    min-height: 44px;
  }
  .link-btn {
    display: inline-flex;
    align-items: center;
  }
}

/* ---------- уменьшенное движение ---------- */
@media (prefers-reduced-motion: reduce) {
  .ipx *,
  .ipx *::before,
  .ipx *::after,
  .ip-page .store-dialog {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .score-card[data-state="loading"] .ring-spin {
    animation: none;
    stroke-dasharray: 553 0;
    opacity: 0.25;
  }
}

/* ---------- шаг 156.7: подписка на проверку — заглушка, квота ---------- */
/* 137.10.5: the forecast of an earlier check must not stay on screen behind the paywall */
body[data-paywall="block"] .hero,
body[data-paywall="block"] .forecast,
body[data-paywall="block"] .groups {
  display: none;
}
.quota-note {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--ca-text-2);
  font-size: 14px;
  line-height: 1.5;
}
.quota-note[data-kind="sub"] {
  color: var(--good-ink);
}
/* 186: проверка по ссылке из чата */
.quota-note[data-kind="gift"] {
  color: var(--good-ink);
}
/* 172.5: окно ежедневной проверки */
.daily-dialog p { margin: 0 0 12px; }
.daily-dialog p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.daily-key kbd { padding: 1px 6px; border: 1px solid currentColor; border-radius: 6px; font: inherit; font-weight: 600; white-space: nowrap; }
.daily-remind { display: grid; gap: 10px; margin: 4px 0 12px; }
.daily-hour { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.daily-hour select { min-height: 40px; padding: 0 10px; border-radius: 10px; font: inherit; }
.daily-dialog .daily-note { margin: 0; font-size: 0.92em; opacity: 0.85; }
.daily-dialog .daily-skip { width: 100%; }
.quota-note .daily-link { margin-left: 6px; }
/* 172.6: следующий шаг лестницы бесплатных дней */
.quota-note .ladder-line { display: block; margin-top: 4px; }
.ladder-link { color: var(--ca-accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.quota-note .link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ca-accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.paywall {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.paywall[hidden] {
  display: none;
}
.ip-packs {
  box-sizing: border-box;
  width: min(100% - 28px, 520px);
  max-height: calc(100dvh - 32px);
  padding: clamp(18px, 4vw, 30px);
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ca-text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 80px rgb(0 0 0 / 35%);
}
.ip-packs::backdrop { background: rgb(16 15 14 / 75%); }
.pack-head, .pack-options label { display: flex; align-items: center; gap: 12px; }
.pack-head { justify-content: space-between; }
.pack-head h2 { margin: 0; font: 500 clamp(24px, 5vw, 32px)/1.15 var(--ca-font-serif); }
#pack-close {
  flex: 0 0 44px; height: 44px; font: 24px/1 var(--ca-font-sans);
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ca-text); cursor: pointer;
}
#pack-intro { margin: 8px 0 20px; color: var(--ca-text-2); line-height: 1.5; }
.pack-options { display: grid; gap: 8px; padding: 0; margin: 0 0 16px; min-width: 0; border: 0; }
.pack-options legend { margin-bottom: 8px; font-weight: 600; }
.pack-options[hidden] { display: none; }
.pack-options label {
  padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ca-sidebar); cursor: pointer;
}
.pack-options label:has(:checked) { border-color: var(--ca-accent); background: var(--ca-accent-soft, #3a2f28); }
.pack-options label:focus-within, #pack-close:focus-visible { outline: 2px solid var(--ca-focus, #f0a283); outline-offset: 2px; }
.pack-options input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ca-accent); }
.pack-options strong, .pack-options small { display: block; }
.pack-options small { margin-top: 3px; color: var(--ca-text-2); font-size: 13px; line-height: 1.4; }
.pack-options b { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
#paywall[data-exhausted] .pw-why, #paywall[data-exhausted] .pw-price, #paywall[data-exhausted] .pw-feat { display: none; }
#paywall[data-exhausted] .pw-act { padding-top: 0; border-top: 0; }
@media (max-width: 420px) {
  .ip-packs { padding: 16px; }
  .pack-options label { gap: 8px; padding: 10px; }
}
.pw-main {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pw-kicker {
  color: var(--ca-accent-text);
  font: 600 12px/1.3 var(--ca-font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pw-title {
  margin: 0;
  font: 400 clamp(24px, 2.4vw, 32px) / 1.2 var(--ca-font-serif);
  letter-spacing: -0.4px;
  text-wrap: balance;
}
.pw-title:focus {
  outline: none;
}
.pw-lead {
  margin: 0;
  color: var(--ca-text-2);
  line-height: 1.55;
  max-width: 60ch;
}
.pw-why {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.pw-why li {
  position: relative;
  padding-left: 22px;
  color: var(--ca-text-2);
  line-height: 1.55;
}
.pw-why li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ca-accent);
}
.pw-why b {
  color: var(--ca-text);
  font-weight: 600;
}
.pw-more {
  align-self: flex-start;
  color: var(--ca-accent-text);
  font-weight: 600;
  text-underline-offset: 3px;
}
.pw-plan {
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ca-sidebar);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.pw-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.pw-price b {
  font: 600 34px/1.1 var(--ca-font-sans);
  letter-spacing: -0.5px;
}
.pw-price span {
  color: var(--ca-text-2);
}
.pw-feat {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.pw-feat li {
  position: relative;
  padding-left: 24px;
}
.pw-feat li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good-ink);
  font-weight: 700;
}
.pw-act {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.pw-act .button {
  width: 100%;
}
.pw-act p {
  margin: 0;
  line-height: 1.5;
}
.pw-note {
  color: var(--ca-text-2);
  font-size: 14px;
}
.pw-small,
.pw-wait {
  color: var(--ca-text-3);
  font-size: 13px;
}
.pw-ok {
  color: var(--good-ink);
  font-weight: 600;
}
.pw-error {
  color: var(--bad-ink);
  font-size: 14px;
}
.pw-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ca-text-2);
}
.pw-field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ca-line);
  border-radius: var(--ca-radius-md);
  background: var(--ca-bg);
  color: var(--ca-text);
  font: 15px/1.3 var(--ca-font-sans);
}
.pw-field input:focus-visible {
  border-color: var(--ca-focus);
}
.pw-bal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.pw-bal input {
  width: 20px;
  height: 20px;
  accent-color: var(--ca-accent);
}
.pw-qr {
  align-self: center;
  width: min(100%, 260px);
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}
.pw-qr canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}
.pw-wait::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--warn);
  animation: pw-pulse 1.4s ease-in-out infinite;
}
@keyframes pw-pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pw-wait::before {
    animation: none;
  }
}
/* Телефон: цена и кнопка — сразу под заголовком, причины «зачем каждый день» — после них (не прятать оплату под
   прокрутку). .pw-main растворяется (display: contents), его части встают в общий столбец по order. */
@media (max-width: 860px) {
  .paywall {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 18px;
  }
  .pw-main {
    display: contents;
  }
  .pw-kicker {
    order: 1;
  }
  .pw-title {
    order: 2;
  }
  .pw-lead {
    order: 3;
  }
  .pw-plan {
    order: 4;
    margin: 4px -18px;
    padding: 22px 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .pw-why {
    order: 5;
  }
  .pw-more {
    order: 6;
  }
}
/* 156.7d: links inside the stub's text (the subscription terms, the e-mail gift) — underlined, as the footer's */
.pw-act p a {
  color: var(--ca-text-2);
  text-decoration: underline;
  text-decoration-color: var(--ca-line-strong);
  text-underline-offset: 3px;
}
.pw-act p a:hover {
  color: var(--ca-text);
}

/* ---------- 137.11.3: /ip на «кнопках-разделах» (sections.js) ---------- */
/* Классы ds-sec* ставит только скрипт и только при ширине ≤ 899 px — компьютер этих правил не видит. Итог в карточке
   («Есть риски…», открыт сразу), «Подробная проверка» и «Claude Code» — один список: data-sections-group="ip". */
.ipx button.ds-sec-row {
  color: var(--ca-text); /* .ipx button:not(.button) — color: inherit */
}
.ipx button.ds-sec-next {
  font: 500 14.5px/1.25 var(--ca-font-sans); /* .ipx button:not(.button) — font: inherit */
  color: var(--ca-text);
}
.ipx.ds-sec {
  /* контейнер здесь — весь main: с overflow-anchor: none (ds.css) якорем прокрутки становится подвал, и Firefox
     проматывал страницу на рост раскрывающейся группы (плитка «всё в порядке» → группа уезжала за верх на 273 px);
     разделы /ip открываются с явной прокруткой к заголовку, якорь внутри main им не мешает */
  overflow-anchor: auto;
}
.verdict-card.ds-sec {
  gap: 0; /* у карточки два ребёнка — заголовок и панель; шаг 12 px держит панель */
}
.verdict-card .ds-sec-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.groups.ds-sec-wrap,
.cli.ds-sec-wrap {
  min-width: 0; /* main.ipx — сетка: суть строки в одну строку (nowrap) иначе раздвинула бы страницу вбок */
}
.groups.ds-sec-wrap {
  display: block;
}
.groups-title.ds-sec-head .groups-hint {
  display: none; /* подсказка к пунктам — не часть названия строки */
}
.groups .ds-sec-panel:not([hidden]) {
  display: grid; /* .groups-col { display: contents } — группы ложатся сюда с прежними order */
  gap: 12px;
}
.groups .ds-sec-next {
  order: 9;
}
.cli.ds-sec-wrap {
  display: block;
  background: none;
  border-radius: 0;
}
.cli .ds-sec-panel .cli-box {
  margin-top: 14px;
}

/* 171.12a: карточка B под итогом первой бесплатной проверки и карточка после входа (web/ip-first.js; токены --ca-*).
   Дописывается в конец ip.css слоем patches17112a.py. */
.ipf { margin: var(--ca-space-6) 0 0; border: 1px solid var(--ca-line); border-radius: var(--ca-radius-xl); background: var(--ca-raised); padding: var(--ca-space-8); }
.ipf > * { min-width: 0; }
.ipf-title { font-family: var(--ca-font-serif); font-weight: 600; font-size: 28px; line-height: 1.2; margin: 0 0 var(--ca-space-3); color: var(--ca-text); }
.ipf-title:focus { outline: none; }
.ipf-lead { margin: 0 0 var(--ca-space-4); color: var(--ca-text-2); font-size: 17px; line-height: 1.55; }
.ipf-lead b { color: var(--ca-text); }
.ipf-small { margin: var(--ca-space-3) 0 0; color: var(--ca-text-3); font-size: 14px; line-height: 1.5; }
.ipf-small a, .ipf-small .ladder-link { color: var(--ca-accent-text); }
.ipf-go { display: inline-flex; align-items: center; gap: 10px; }
.ipf-skip { background: none; border: 0; color: var(--ca-text-3); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 6px; }
.ipf-skip:hover { color: var(--ca-text-2); }
.ipf-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ca-space-4); }

.ipf-b { display: grid; grid-template-columns: 220px 1fr; gap: var(--ca-space-8); align-items: start;
  border-color: color-mix(in srgb, var(--ca-accent) 55%, var(--ca-line)); background: linear-gradient(135deg, var(--ca-accent-soft), var(--ca-raised) 55%); }
.ipf-ticket { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--ca-space-6) var(--ca-space-4); border: 2px dashed color-mix(in srgb, var(--ca-accent) 70%, transparent); border-radius: var(--ca-radius-lg); }
.ipf-tag { color: var(--ca-accent-text); font-weight: 700; font-size: 14px; }
.ipf-big { font-family: var(--ca-font-serif); font-size: 46px; line-height: 1; color: var(--ca-text); }
.ipf-sub { color: var(--ca-text-2); font-size: 15px; }
.ipf-ladder { list-style: none; margin: 0 0 var(--ca-space-5); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: ipf; }
.ipf-ladder li { min-width: 0; position: relative; padding: 12px 12px 12px 44px; border: 1px solid var(--ca-line); border-radius: var(--ca-radius-md); background: var(--ca-bg); counter-increment: ipf; }
.ipf-ladder li::before { content: counter(ipf); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--ca-hover); color: var(--ca-text-2); }
.ipf-ladder li.is-done::before { content: "✓"; background: var(--ca-success); color: #14210e; }
.ipf-ladder li.is-now { border-color: var(--ca-accent); }
.ipf-ladder li.is-now::before { background: var(--ca-accent); color: var(--ca-on-accent); }
.ipf-ladder b { display: block; font-size: 14px; color: var(--ca-text); line-height: 1.3; }
.ipf-ladder span { display: block; font-size: 13px; color: var(--ca-text-3); margin-top: 2px; }
.ipf-ladder li.is-done span { color: var(--ca-success); }
.ipf-ladder li.is-now span { color: var(--ca-accent-text); }

.ipf-line { padding: var(--ca-space-3) var(--ca-space-5); border-radius: var(--ca-radius-lg); color: var(--ca-text-2); font-size: 15px; line-height: 1.5; }
.ipf-line-go { color: var(--ca-accent-text); font-weight: 600; }

.ipf-after { display: grid; grid-template-columns: 360px 1fr; gap: var(--ca-space-8); border-color: color-mix(in srgb, var(--ca-success) 45%, var(--ca-line)); }
.ipf-ok { padding: var(--ca-space-5); border-radius: var(--ca-radius-lg); background: color-mix(in srgb, var(--ca-success) 10%, var(--ca-bg)); align-self: start; }
.ipf-done { margin: 0 0 var(--ca-space-2); color: var(--ca-success); font-size: 16px; line-height: 1.5; font-weight: 600; }
.ipf-note { margin: 0 0 var(--ca-space-2); color: var(--ca-text-2); font-size: 15px; line-height: 1.5; }
.ipf-ok .link-btn { font-size: 14px; }
.ipf-link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--ca-radius-md); border: 1px solid var(--ca-accent); background: var(--ca-sidebar); min-width: 0; }
.ipf-link-text { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ca-text); font-family: var(--ca-font-mono); font-size: 15px; padding: 6px 0; text-overflow: ellipsis; }
.ipf-link-text:focus { outline: none; }
.ipf-copy { flex: none; }
.ipf-copied:empty { display: none; }

@media (max-width: 899px) {
  .ipf { padding: var(--ca-space-5); border-radius: var(--ca-radius-lg); }
  .ipf-title { font-size: 23px; }
  .ipf-lead { font-size: 16px; }
  .ipf-b, .ipf-after { grid-template-columns: 1fr; gap: var(--ca-space-5); }
  .ipf-ticket { flex-direction: row; justify-content: center; flex-wrap: wrap; padding: var(--ca-space-4); }
  .ipf-big { font-size: 34px; }
  .ipf-ladder { grid-template-columns: 1fr 1fr; }
  .ipf-row .ipf-go { width: 100%; justify-content: center; }
  .ipf-row { gap: 4px; justify-content: center; }
  .ipf-link { flex-wrap: wrap; }
  .ipf-link .ipf-copy { width: 100%; }
}
@media (max-width: 360px) {
  .ipf-ladder { grid-template-columns: 1fr; }
}
