/* Mini App «Отклики». Цвета — из темы Telegram (--tg-theme-*), свои — только акценты и
   запасные значения для браузера. Дизайн: docs/design/miniapp-analytics.html. */
:root {
  --bg: var(--tg-theme-secondary-bg-color, #f2f3f0);
  --surface: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #ffffff));
  --ink: var(--tg-theme-text-color, #15191b);
  --muted: var(--tg-theme-hint-color, #646c69);
  --line: color-mix(in srgb, var(--muted) 22%, transparent);
  --accent: #1d6a55;
  --accent-soft: #e3efe9;
  --on-accent: #ffffff;
  --pending: #9a5f0c;
  --pending-soft: #f6ecdb;
  --danger: #a33a2f;
  --danger-soft: #f6e3e0;
  --bar-empty: color-mix(in srgb, var(--muted) 35%, transparent);
  --sans: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--tg-theme-secondary-bg-color, #0f1312);
  --surface: var(--tg-theme-section-bg-color, var(--tg-theme-bg-color, #181d1c));
  --ink: var(--tg-theme-text-color, #e8ecea);
  --muted: var(--tg-theme-hint-color, #95a09c);
  --accent: #5cc3a1;
  --accent-soft: #19302a;
  --on-accent: #0f1312;
  --pending: #e6b25c;
  --pending-soft: #33291a;
  --danger: #f0978b;
  --danger-soft: #3a211e;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.scroll {
  max-width: 560px; margin: 0 auto;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 16px;
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ——— шапка ——— */
.who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who-name { font-size: 15px; font-weight: 600; }
.who-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status b { font-weight: 600; }
.status.warn .dot { background: var(--pending); box-shadow: 0 0 0 4px var(--pending-soft); }
.status.bad .dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.status .action { margin-top: 8px; display: block; }

/* ——— показатели ——— */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.kpi .label { font-size: 12px; color: var(--muted); }
.kpi .value { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .value small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 2px; }
.kpi .hint { font-size: 12px; color: var(--muted); }
.kpi.pending { background: var(--pending-soft); border-color: transparent; color: var(--pending); }
.kpi.pending .label, .kpi.pending .hint { color: var(--pending); }
.kpi.pending a { color: inherit; }
.funnel { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.funnel b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel .arr { opacity: .5; }
.funnel > span { white-space: nowrap; }

/* ——— график ——— */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.chart-title { font-size: 15px; font-weight: 600; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bars { height: 132px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line); }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.bars .n { font-family: var(--mono); font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .b { width: 100%; max-width: 26px; border-radius: 5px 5px 2px 2px; background: var(--accent); transition: height .35s ease; }
.bars .b.zero { background: none; border: 1px dashed var(--bar-empty); height: 6px !important; }
.bars .b.none { background: var(--bar-empty); opacity: .5; height: 2px !important; border-radius: 1px; }
.bars .col.today .b { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.axis { display: flex; gap: 4px; margin-top: 6px; }
.axis span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); font-family: var(--mono); min-width: 0; overflow: hidden; }
.chart-note { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .bars .b { transition: none; } }

/* ——— лента ——— */
.feed-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.feed-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.feed-head span { font-size: 13px; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 8px; }
.app { display: flex; flex-direction: column; gap: 10px; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.app-top > div { min-width: 0; }
.company { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.role { font-size: 14px; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.role a { color: inherit; text-decoration: none; }
.chip { flex: none; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.chip.sent { background: var(--accent-soft); color: var(--accent); }
.chip.wait { background: var(--pending-soft); color: var(--pending); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.tag.money { color: var(--ink); font-family: var(--mono); }
.timeline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.timeline time { font-family: var(--mono); color: var(--ink); }
.timeline .line { flex: 1; height: 1px; background: var(--line); }
.timeline .speed { color: var(--accent); font-weight: 500; white-space: nowrap; }
.timeline .speed.slow { color: var(--muted); font-weight: 400; }
.fold { border-top: 1px solid var(--line); padding-top: 8px; }
.fold > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 6px 0; min-height: 36px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; }
.fold > button svg { transition: transform .2s ease; color: var(--muted); flex: none; }
.fold > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.fold .body { font-size: 13px; line-height: 1.55; color: var(--muted); white-space: pre-line; padding-bottom: 4px; overflow-wrap: anywhere; }
.fold .body.letter { color: var(--ink); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.fold .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.why { font-size: 12px; line-height: 1.5; color: var(--muted); }
.actions { display: flex; gap: 8px; }
.btn { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.small { flex: none; min-height: 36px; padding-inline: 14px; font-size: 13px; }
.btn.more { flex: none; width: 100%; }
.done-note { font-size: 13px; color: var(--muted); text-align: center; padding: 6px 0; }

/* ——— пустые, ошибки, загрузка ——— */
.empty { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .big { font-size: 15px; font-weight: 600; }
.empty p { margin: 0; font-size: 13px; color: var(--muted); max-width: 32ch; line-height: 1.5; }
.progress { width: 100%; max-width: 220px; height: 6px; border-radius: 3px; background: var(--bar-empty); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.skeleton { display: flex; flex-direction: column; gap: 16px; }
.sk { background: var(--surface); border-radius: 14px; animation: pulse 1.4s ease-in-out infinite; }
.sk-head { height: 40px; width: 60%; border-radius: 20px; }
.sk-status { height: 60px; }
.sk-kpi { height: 84px; }
.sk-chart { height: 200px; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 528px; margin: 0 auto; background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 12px; font-size: 13px; }

/* ——— приветствие с Саввой (welcome.js) ——— */
body.welcome-open { overflow: hidden; }
.welcome {
  position: fixed; inset: 0; z-index: 10; background: var(--bg);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.welcome > * { width: 100%; max-width: 420px; }
.welcome:focus { outline: none; }
.welcome-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.welcome-step { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.welcome-skip { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 10px 0 10px 12px; cursor: pointer; }
.welcome-scene { flex: 1; min-height: 0; display: grid; place-items: center; }
.welcome-scene svg { width: 100%; max-width: 300px; max-height: 100%; aspect-ratio: 240 / 220; background: radial-gradient(circle at 50% 55%, var(--accent-soft) 0 58%, transparent 59%); }
.welcome-text { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 24px; min-height: 150px; }
.welcome-text h1 { margin: 0; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.welcome-text p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.welcome-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.welcome-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.welcome-arrow.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.welcome-arrow[disabled] { opacity: .35; cursor: default; }
.welcome-dots { display: flex; gap: 6px; }
.welcome-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--bar-empty); cursor: pointer; transition: width .25s ease, background .25s ease; }
.welcome-dots button[aria-current="true"] { width: 22px; background: var(--accent); }
.welcome-start { flex: none; min-height: 52px; padding-inline: 20px; border-radius: 26px; border: 0; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; cursor: pointer; }

@keyframes w-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes w-blink { 0%,92%,100% { transform: scaleY(1) } 95% { transform: scaleY(.1) } }
@keyframes w-look { 0%,20% { transform: translateX(-5px) } 45%,65% { transform: translateX(5px) } 90%,100% { transform: translateX(-5px) } }
@keyframes w-wave { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-18deg) } 75% { transform: rotate(10deg) } }
@keyframes w-spark { 0%,60%,100% { opacity: 0; transform: scale(.6) } 75% { opacity: 1; transform: scale(1) } }
@keyframes w-feed { from { transform: translateY(0) } to { transform: translateY(-176px) } }
@keyframes w-glass { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-6px,4px) } }
@keyframes w-draw { 0% { stroke-dashoffset: 90 } 40%,100% { stroke-dashoffset: 0 } }
@keyframes w-quill { 0%,100% { transform: rotate(-4deg) translateX(-3px) } 50% { transform: rotate(5deg) translateX(3px) } }
@keyframes w-fly { 0% { transform: translate(0,0) rotate(0); opacity: 0 } 15% { opacity: 1 } 80% { opacity: 1 } 100% { transform: translate(78px,-86px) rotate(14deg); opacity: 0 } }
@keyframes w-pop { 0%,35% { transform: scale(0) } 50% { transform: scale(1.15) } 60%,100% { transform: scale(1) } }
@keyframes w-open { 0%,30% { transform: translateY(0) } 45%,100% { transform: translateY(-8px) } }
.welcome svg * { transform-box: fill-box; }
.w-bob { animation: w-bob 3.2s ease-in-out infinite; }
.w-eye { animation: w-blink 4.5s infinite; transform-origin: center; }
.w-look { animation: w-look 5s ease-in-out infinite; }
.w-wave { animation: w-wave 1.4s ease-in-out infinite; transform-origin: 0% 100%; }
.w-spark { animation: w-spark 2.8s ease-in-out infinite; transform-origin: center; }
.w-spark.w-late { animation-delay: 1.3s; }
.w-feed { animation: w-feed 8.8s linear infinite; }
.w-glass { animation: w-glass 2.2s ease-in-out infinite; }
.w-line { stroke-dasharray: 90; animation: w-draw 3s ease-out infinite; }
.w-line.w-l2 { animation-delay: .5s; }
.w-line.w-l3 { animation-delay: 1s; }
.w-quill { animation: w-quill .8s ease-in-out infinite; transform-origin: 20% 100%; }
.w-fly { animation: w-fly 2.4s ease-in infinite; }
.w-trail { animation: w-spark 2.4s ease-in-out infinite; }
.w-open { animation: w-open 3s ease-out infinite; }
.w-check { animation: w-pop 3s ease-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .welcome svg *, .welcome-dots button { animation: none !important; transition: none !important; }
  .w-line { stroke-dashoffset: 0; }
  .w-check, .w-spark, .w-trail { transform: none; opacity: 1; }
}

/* ——— шапка-кнопка → профиль ——— */
button.who { width: 100%; background: none; border: 0; padding: 4px 0; text-align: left; color: inherit; cursor: pointer; border-radius: 12px; }
.who-go { margin-left: auto; color: var(--muted); flex: none; }

/* ——— профиль ——— */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 4px; }
.avatar.big { width: 56px; height: 56px; font-size: 19px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; align-self: flex-start; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.group { display: flex; flex-direction: column; gap: 8px; }
.group-title { margin: 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card.list { padding: 0 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-title { font-size: 15px; overflow-wrap: anywhere; }
.row-hint { font-size: 12px; color: var(--muted); line-height: 1.4; }
.row-value { font-size: 14px; color: var(--muted); text-align: right; flex: none; max-width: 60%; overflow-wrap: anywhere; }
.row-value.ok { color: var(--accent); font-weight: 500; }
.row-value.bad { color: var(--danger); font-weight: 500; }
.switch { flex: none; width: 51px; height: 31px; border-radius: 16px; border: 0; padding: 2px; background: var(--bar-empty); cursor: pointer; transition: background .2s ease; }
.switch i { display: block; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.btn.danger { background: none; border-color: var(--line); color: var(--danger); flex: none; width: 100%; }
.btn.wide { flex: none; width: 100%; }
.fine { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.fine.center { text-align: center; padding-top: 8px; }

/* ——— лист снизу ——— */
body.sheet-open { overflow: hidden; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; animation: rise .25s ease; }
.sheet-grip { width: 36px; height: 5px; border-radius: 3px; background: var(--bar-empty); align-self: center; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-x { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.sheet-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.field-label { font-size: 13px; font-weight: 500; }
.field { width: 100%; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.sheet-error { margin: 0; font-size: 13px; line-height: 1.5; color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; }
.sheet-state { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 18px 0 6px; }
.sheet-state p { margin: 0; font-size: 15px; line-height: 1.5; }
.sheet-state .actions { width: 100%; }
.big-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; font-weight: 600; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet-backdrop, .sheet, .switch, .switch i { animation: none; transition: none; } .spinner { animation-duration: 3s; } }

/* ——— поля кук ——— */
.cfields { display: flex; flex-direction: column; gap: 12px; }
.cfield { display: flex; flex-direction: column; gap: 5px; }
.cfield label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.cfield label code { font-family: var(--mono); font-weight: 500; }
.cfield-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cfield-box { position: relative; }
.cfield-box .field { padding-right: 36px; resize: none; min-height: 44px; }
.cfield-ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; opacity: 0; transition: opacity .2s ease; }
.cfield.good .cfield-ok { opacity: 1; }
.cfield.bad .field { border-color: var(--danger); background: var(--danger-soft); }
.cfield-hint { font-size: 12px; line-height: 1.4; color: var(--muted); }
.cfield.bad .cfield-hint { color: var(--danger); }
.guide-link { align-self: flex-start; background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }

/* ——— гайд «Как подключить hh.ru» (guide.js) ——— */
.welcome.guide { z-index: 30; overflow-y: auto; }
.guide-shot { flex: none; padding: 4px 0 12px; }
.guide-shot svg { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.guide-text { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; }
.guide-text h1 { margin: 0; font-size: 20px; line-height: 1.25; text-wrap: balance; }
.guide-text p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.g-keys { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.g-keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.g-keylabel { min-width: 76px; color: var(--muted); }
.g-combo { display: inline-flex; align-items: center; gap: 3px; }
.g-or, .kbd-plus { color: var(--muted); font-size: 12px; }
.g-keys kbd { font-family: var(--mono); font-size: 12px; min-width: 26px; text-align: center; padding: 4px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); color: var(--ink); }
.guide-shot .g-pulse { animation: g-pulse 1.6s ease-in-out infinite; }
.guide-shot .g-caret { animation: g-blink 1s steps(1) infinite; }
@keyframes g-pulse { 50% { opacity: .55; } }
@keyframes g-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .guide-shot .g-pulse, .guide-shot .g-caret { animation: none; } }

/* ——— вкладки «Отклики / Ответы» ——— */
.tabs { display: flex; gap: 3px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { flex: 1; min-height: 38px; border: 0; background: none; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.badge { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--pending); color: #fff; font: 600 11px/20px var(--mono); text-align: center; }

/* ——— раздел «Ответы» ——— */
.resp-sum { display: flex; flex-direction: column; gap: 10px; }
.rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.resp-sum h3, .card-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stamp { font: 400 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.outcome { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outcome div { display: flex; flex-direction: column; gap: 2px; }
.outcome .n { font: 500 26px/1.1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.outcome .l { font-size: 12px; color: var(--muted); }
.n.inv { color: var(--accent); } .n.dis { color: var(--danger); } .n.sil { color: var(--muted); }
.stack, .rbar { display: flex; overflow: hidden; background: var(--bar-empty); }
.stack { height: 10px; border-radius: 5px; }
.rbar { grid-column: 1 / -1; height: 6px; border-radius: 3px; }
.stack i, .rbar i { display: block; height: 100%; }
i.inv { background: var(--accent); }
i.dis { background: color-mix(in srgb, var(--danger) 60%, transparent); }
i.sil { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filters button span { font: 500 12px var(--mono); color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters button[aria-pressed="true"] span { color: inherit; opacity: .7; }

.chat-card { display: flex; flex-direction: column; gap: 10px; }
.chat-card .role { font-size: 15px; font-weight: 600; line-height: 1.3; }
.chip.inv { background: var(--accent-soft); color: var(--accent); }
.chip.ask { background: var(--pending-soft); color: var(--pending); }
.chip.dis { background: var(--danger-soft); color: var(--danger); }
.chip.sil { background: var(--bg); color: var(--muted); }
.msg { font-size: 13px; line-height: 1.5; padding: 9px 11px; border-radius: 12px; background: var(--bg); overflow-wrap: anywhere; white-space: pre-line; }
.msg b { font-weight: 600; }
.unread { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pending); margin-right: 6px; vertical-align: 1px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.insight { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; margin: 10px 0 12px; }
.insight .big { font: 500 28px/1 var(--mono); color: var(--accent); flex: none; }
.hist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; height: 118px; }
.hcol { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 0; }
.hcol .v { font: 500 11px var(--mono); text-align: center; margin-bottom: 3px; }
.hcol .b.inv { background: var(--accent); }
.hcol .b.dis { background: color-mix(in srgb, var(--danger) 55%, transparent); border-radius: 4px 4px 0 0; }
.hcol .b.dis[data-h="0"] + .b.inv { border-radius: 4px 4px 0 0; }
.haxis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rr-list { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.rr { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; }
.rr .pct { font: 500 12px var(--mono); color: var(--muted); }

/* ——— черновик ответа Саввы ——— */
.draft { font-size: 13px; line-height: 1.5; padding: 9px 11px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent-soft) 50%, transparent); white-space: pre-line; overflow-wrap: anywhere; }
.draft .who { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
.draft.note { border-style: solid; border-color: var(--line); background: var(--bg); color: var(--muted); }
.draft.note .who { color: var(--muted); }
.draft-edit { font-family: var(--sans); font-size: 14px; resize: vertical; min-height: 110px; }
.draft-hint { color: var(--pending); }
.chat-card .actions { flex-wrap: wrap; }
.chat-card .actions .btn { min-width: 0; }

/* ——— исследование ——— */
.study { display: flex; flex-direction: column; gap: 14px; }
.study .eyebrow { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.study h1 { margin: 0; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.study .lead { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.study .card { display: flex; flex-direction: column; gap: 10px; }
.study h2 { margin: 0; font-size: 17px; }
.study .card p { margin: 0; font-size: 14px; line-height: 1.55; }
.study .tip { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; }
.study .method { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hb { display: grid; grid-template-columns: 112px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; }
.hb-l { color: var(--muted); }
.hb-bar { height: 10px; border-radius: 5px; background: var(--bar-empty); overflow: hidden; display: block; }
.hb-bar i { display: block; height: 100%; }
.hb-n { font: 500 12px var(--mono); text-align: right; }

/* ——— «Почему Савва» ——— */
.card.promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.card.promo img { flex: none; border-radius: 12px; }
.promo-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.promo-text b { font-size: 15px; }
.promo-text span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.about { display: flex; flex-direction: column; gap: 14px; }
.about-hero { display: flex; flex-direction: column; gap: 10px; }
.about-hero .hero-img { width: 100%; height: auto; border-radius: 16px; aspect-ratio: 2 / 1; object-fit: cover; }
.about .eyebrow { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.about h1 { margin: 0; font-size: 25px; line-height: 1.2; text-wrap: balance; }
.about h2 { margin: 0 0 4px; font-size: 17px; }
.about .lead { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.about .card { display: flex; flex-direction: column; gap: 10px; }
.about .card p { margin: 0; font-size: 14px; line-height: 1.55; }
.hero-num { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.hero-num .n { font: 500 52px/1 var(--mono); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-num .u { font-size: 18px; color: var(--muted); }
.hero-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.wfunnel { display: flex; flex-direction: column; gap: 6px; }
.f-row { display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 10px; }
.f-n { font: 500 20px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.f-l { font-size: 13.5px; color: var(--muted); }
.diff { display: flex; flex-direction: column; gap: 8px; }
.diff > h2 { margin: 6px 0 2px; }
.diff-item { flex-direction: row !important; align-items: flex-start; gap: 12px !important; }
.diff-i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 13px var(--mono); display: grid; place-items: center; }
.diff-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.diff-item p { color: var(--muted); font-size: 13.5px !important; }
.example { background: var(--bg) !important; }
.ex-label { font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ex-bad { color: var(--danger); }
.ex-good { color: var(--accent); font-weight: 500; }
.rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.rules.muted { color: var(--muted); }
.about .method { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.kpi-btn { font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* ——— условия работы ——— */
.cond { display: flex; flex-direction: column; gap: 8px; }
.cond-title { font-size: 13px; font-weight: 600; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.fchip { flex: 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.cond-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-top: 6px; }
.cond-row output { font: 500 16px var(--mono); font-variant-numeric: tabular-nums; }
.cond input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.cond .btn.wide { margin-top: 8px; }
.answers { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.arow { display: flex; flex-direction: column; gap: 6px; }
.alabel { font-size: 13px; color: var(--muted); }
.fchip.small { flex: 1 1 auto; min-height: 34px; font-size: 13px; padding-inline: 12px; white-space: nowrap; }
.field.small { font-family: var(--sans); font-size: 14px; padding: 8px 10px; }

/* ——— тесты работодателей ——— */
.test-card .role { font-size: 15px; font-weight: 600; line-height: 1.3; }
.test-err { color: var(--danger); }
.test-head { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 2px; }
.test-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
.test-head .chip { align-self: flex-start; }
.test-desc { white-space: pre-line; overflow-wrap: anywhere; }
.test-task { display: flex; flex-direction: column; gap: 8px; }
.test-task.needs { border-color: var(--pending); box-shadow: 0 0 0 1px var(--pending-soft); }
.test-q { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.test-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--muted); font: 600 12px/24px var(--mono); text-align: center; }
.test-note { color: var(--pending); }
.test-task .fchip.small { white-space: normal; text-align: left; line-height: 1.3; padding-block: 7px; }
.test-task .fchips { flex-direction: column; margin-bottom: 0; }
.fchip[disabled] { opacity: .6; cursor: default; }
.test-actions { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.test-step { font-size: 13px; color: var(--ink); }
.test-step.test-err { color: var(--danger); }

/* ——— источники вакансий: hh.ru и Хабр Карьера ———
   Цвет бренда — полоса слева, лёгкий отсвет в углу и значок; заливать карточку целиком не стали:
   красный у нас — цвет отказов и ошибок, а длинный текст на цветном фоне читается хуже. */
:root { --hh: #d6001c; --habr: #3a7fc4; }
:root[data-theme="dark"] { --hh: #ff5a6a; --habr: #6cb2f2; }
.src-hh { --src: var(--hh); }
.src-habr { --src: var(--habr); }
.card.src-hh, .card.src-habr {
  border-left: 3px solid var(--src);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--src) 9%, transparent), transparent 55%), var(--surface);
}
.src-badge { flex: none; font: 600 11px/1 var(--sans); letter-spacing: .01em; color: var(--src); background: color-mix(in srgb, var(--src) 13%, transparent); padding: 5px 8px; border-radius: 7px; white-space: nowrap; }
.app-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.app-head { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.app-head > div { min-width: 0; }
.logo { flex: none; width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.logo.initials { display: grid; place-items: center; background: var(--bg); color: var(--muted); font: 600 13px/1 var(--sans); }
.btn.src-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 6px 12px; text-decoration: none; background: var(--src); border-color: var(--src); color: var(--on-accent); font-weight: 600; }
.actions.wrap { flex-wrap: wrap; }
.actions.wrap .btn { min-width: 0; }
.src-seg { align-self: flex-start; }
.feed-note { margin: -4px 2px 0; }
.habr-card { display: flex; flex-direction: column; gap: 10px; }
.habr-form { display: flex; flex-direction: column; gap: 6px; }
.habr-steps { margin: 0 0 6px; padding-left: 18px; }
.pill:not(.ok):not(.bad) { background: var(--bg); color: var(--muted); }

/* ——— «Ждут вас»: плитки над лентой ——— */
.todo { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
.todo::-webkit-scrollbar { display: none; }
.todo-tile { flex: none; width: 132px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; text-align: left; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.todo-tile b { font: 600 22px/1 var(--mono); font-variant-numeric: tabular-nums; }
.todo-tile span { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.todo-tile.warn b { color: var(--pending); }
.todo-tile.danger b { color: var(--danger); }
.todo-tile.habr b { color: var(--habr); }
.todo-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.todo-head h1 { margin: 4px 2px 0; font-size: 20px; font-weight: 600; }
.todo-note { margin: 6px 2px 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hint.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; text-align: left; }

/* ——— экран переписки ——— */
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 2px 2px 8px; border-bottom: 1px solid var(--line); }
.chat-head > div { min-width: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; padding-block: 8px; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.bubble time { display: block; margin-top: 3px; font: 400 11px var(--mono); color: var(--muted); text-align: right; }
.bubble .bw { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 4px; }
.bubble.sys { align-self: center; max-width: 100%; padding: 2px 8px; font-size: 12.5px; color: var(--accent); }
.day-sep { display: flex; justify-content: center; }
.day-sep span { font: 500 11px var(--mono); color: var(--muted); background: var(--surface); border-radius: 8px; padding: 2px 8px; }
.composer { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 8px; margin-inline: -16px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.composer .draft { max-height: 38vh; overflow-y: auto; }
.qchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qchip { flex: none; font: 500 12.5px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.qchip[disabled] { opacity: .5; }
.ask { display: flex; gap: 6px; }
.ask .field { flex: 1; font-family: var(--sans); font-size: 14px; }
.ask-send { flex: none; width: 44px; font-size: 18px; }
.draft.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Geekjob — зелёно-бирюзовый: его кнопки на сайте зелёные, а наш акцент — другой оттенок. */
:root { --geekjob: #0f8f7a; }
:root[data-theme="dark"] { --geekjob: #3fd0b4; }
.src-geekjob { --src: var(--geekjob); }
.card.src-geekjob {
  border-left: 3px solid var(--src);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--src) 9%, transparent), transparent 55%), var(--surface);
}

/* ——— «Ответы»: статусы откликов Хабра и Geekjob ——— */
.site-list { padding: 0 12px; }
.site-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.site-row:last-child { border-bottom: 0; }
.site-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-row .co { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-row .ti { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-row .logo { width: 32px; height: 32px; }

/* Спорная вакансия: письмо после «Откликнуться», правка перед отправкой */
.letter-ready { margin-top: 10px; }
.letter-ready-head { font-size: 13px; color: var(--muted); margin: 0 2px 6px; }
.letter-ready .body.letter { font-size: 13px; line-height: 1.55; color: var(--ink); background: var(--bg); border-radius: 10px; padding: 10px 12px; white-space: pre-line; overflow-wrap: anywhere; }
.letter-edit { margin-top: 10px; }
.letter-area { width: 100%; box-sizing: border-box; min-height: 220px; resize: vertical; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.letter-area:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.link { background: none; border: 0; color: var(--muted); text-decoration: underline; }

/* Условия и согласие: до отметок приложение показывает только этот экран */
.consent { max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; }
.consent img { display: block; margin: 0 0 12px; }
.consent h1 { font-size: 22px; margin: 0 0 8px; }
.consent p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.consent-row input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.consent-opt { color: var(--muted); font-size: 13px; }
.consent .consent-note { font-size: 13px; margin-top: 14px; }
.btn.wide { width: 100%; min-height: 48px; }
.consent a { color: var(--accent); }

/* Вход на hh по номеру и коду */
.seg { display: flex; gap: 6px; margin: 0 0 10px; }
.seg button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.login-code { letter-spacing: .3em; font-size: 22px; text-align: center; }
.login-captcha { display: block; max-width: 100%; margin: 0 auto 10px; border-radius: 8px; background: #fff; }

/* ——— «Состояние сервиса» (только владельцу) ——— */
.card.ops-entry { display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.card.ops-entry .row { border-bottom: 0; }
.ops-alerts { border-color: var(--danger); background: var(--danger-soft); }
.study .row-value { font-variant-numeric: tabular-nums; }

/* ——— настройка поиска (конец онбординга) ——— */
.card.setup { display: flex; flex-direction: column; gap: 8px; }
.setup-title { margin: 0 0 4px; font-size: 18px; }
.card.setup .field { font-family: var(--sans); font-size: 15px; resize: none; }
.card.setup .field-label { margin-top: 6px; }
.setup-group { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.setup-group .card.list { background: var(--bg); }
.card.setup .btn.primary { margin-top: 8px; min-height: 48px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.field-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field-error { min-height: 0; font-size: 12.5px; color: var(--danger); }
.field-error:empty { display: none; }
.field[aria-invalid="true"] { border-color: var(--danger); }
.cost-user { margin-bottom: 8px; }
.cost-user .row-value small { font-size: 11px; color: var(--muted); }
.captcha-desk { border-color: var(--pending); display: flex; flex-direction: column; gap: 10px; }
.captcha-task { display: flex; flex-direction: column; gap: 8px; }
.captcha-img { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; image-rendering: auto; }
.captcha-row { display: flex; gap: 8px; }
.captcha-row .field { flex: 1; font-family: var(--mono); font-size: 18px; letter-spacing: .08em; resize: none; }

/* «Своё письмо» (letter.js) */
.row-btn { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.own-modes { flex-direction: column; }
.fchip.own-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; }
.fchip.own-mode span { font-size: 12px; font-weight: 400; color: var(--muted); }
.own-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.own-tools .fchip.small { flex: 0 0 auto; }
.own-tools .fine { margin-left: auto; }
.fine.bad { color: var(--danger); }
.own-preview { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; }
.own-preview.small { font-size: 13px; color: var(--muted); }
.own-warn { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--pending-soft); color: var(--ink); font-size: 13px; }
.own-warn p { margin: 0 0 4px; }
.own-warn p:last-child { margin-bottom: 0; }
