:root {
  --bg: #f4f7fb;
  --card: #fff;
  --ink: #1a2030;
  --muted: #6d7688;
  --line: #e3e0db;
  --red: #d93a32;
  --ext-bg: #f6f4f1;
  --sans: Manrope, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 500 14px/1.4 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
button, input, textarea { font: inherit; }
.bench {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  min-height: 100vh;
  padding: 16px;
  align-items: start;
}

.ext {
  background: var(--ext-bg);
  border-radius: 16px;
  padding: 14px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.power {
  width: 148px; height: 148px; margin: 4px auto 0; border-radius: 50%;
  display: grid; place-items: center; position: relative; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 10px #efe8e4;
}
.power input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.power .ring { width: 86px; height: 86px; border-radius: 50%; border: 7px solid #d5d1cb; }
.power input:checked + .ring { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 10px rgba(217, 58, 50, 0.16); }
.power-label { margin: 10px 0 0; text-align: center; font-weight: 800; }
.power-label::after { content: "Фильтр включён"; }
.ext.off .power-label::after { content: "Фильтр выключен"; }
#open-settings {
  display: block; width: 100%; margin: 10px 0 12px; padding: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; cursor: pointer;
}
.ext .settings { display: none; }
.ext.show-settings .settings { display: block; }
.ext header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ext header img { width: 28px; height: 28px; }
.ext h1 { margin: 0; font-size: 16px; flex: 1; letter-spacing: -0.03em; }
.ext h1 small { display: block; font-weight: 500; font-size: 11px; color: #6b6b70; }
.ext .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.ext .card h2 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6b70;
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; }
.row label { cursor: pointer; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; inset: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #c9c6c1; border-radius: 22px; }
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s;
}
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(16px); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--ext-bg); border-radius: 8px; padding: 6px 10px; }
.stat b { display: block; font-size: 20px; line-height: 1.1; color: var(--red); }
.stat span { font-size: 11px; color: #6b6b70; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label { flex: 1; text-align: center; padding: 6px 4px; cursor: pointer; background: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--red); color: #fff; }
textarea {
  width: 100%; min-height: 72px; resize: vertical;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  background: #fff; color: var(--ink);
}
.hint { margin: 4px 0 0; font-size: 11px; color: #6b6b70; }
.ext.off .dim { opacity: .45; pointer-events: none; }

.stage { min-width: 0; }
.probe {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.probe label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.probe input {
  height: 44px; border-radius: 12px; border: 1px solid rgba(26,32,48,.1);
  padding: 0 12px; background: var(--bg); color: var(--ink); text-transform: none; font-weight: 600; letter-spacing: 0;
}
.result { margin: 0; min-height: 1.3em; font-weight: 700; }
.result.is-hit { color: var(--red); }
.result.is-ok { color: #1f8a4c; }
.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-post {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  min-height: 180px;
}
.card-post img { width: 100%; height: 140px; object-fit: cover; display: block; background: #1a2030; }
.card-post .body { padding: 10px 12px 12px; }
.card-post .who { margin: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.card-post .text { margin: 4px 0 0; font-weight: 700; }
.card-post.is-blur .body, .card-post.is-blur img { filter: blur(6px); }
.card-post.is-hide { display: none; }
.card-post.is-skip .body, .card-post.is-skip img { display: none; }
.card-post.is-skip { min-height: 52px; background: #1a2030; color: #fff; display: flex; align-items: center; justify-content: center; }
.mask {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(26, 32, 48, 0.28); color: #fff; text-align: center; padding: 12px;
}
.stamp {
  background: var(--red); color: #fff; border-radius: 8px; padding: 4px 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.why { font-weight: 700; font-size: 13px; }
.reveal, .shield-btn {
  border: 0; border-radius: 999px; min-height: 32px; padding: 0 12px;
  background: #fff; color: var(--ink); font-weight: 800; cursor: pointer;
}
.shield-btn {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0;
  border-radius: 50%; background: #fff; color: var(--red); font-size: 16px;
}
.menu {
  position: absolute; top: 44px; right: 8px; z-index: 2;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,.16); display: grid; min-width: 180px;
}
.menu button {
  border: 0; background: transparent; text-align: left; padding: 8px 10px;
  border-radius: 8px; font-weight: 700; cursor: pointer;
}
.menu button:hover { background: var(--bg); }
@media (max-width: 860px) {
  .bench { grid-template-columns: 1fr; }
  .ext { position: static; max-height: none; }
  .probe, .feed { grid-template-columns: 1fr; }
}
