:root {
  color-scheme: light;
  --ink: #0b0c1d;
  --muted: rgba(11, 12, 29, 0.62);
  --line: rgba(11, 12, 29, 0.1);
  --blue: #1e42ff;
  --paper: #fff;
  --night: #0b0c26;
  --ok: #16803c;
  --mid: #b86e00;
  --bad: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.45 Inter, Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a, .top nav span { color: var(--ink); font-size: 14px; text-decoration: none; }
.top button { padding: 8px 14px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 64px; }

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 28px 28px;
  color: var(--muted);
  font-size: 13px;
}
.foot a { color: var(--muted); }

h1 {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h2 { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }

.launch {
  background: var(--night);
  color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 72px max(24px, calc(50vw - 540px)) 56px;
}
.launch h1 { max-width: 16ch; }
.launch .form { max-width: 720px; display: grid; gap: 10px; }
.launch input[type="url"],
.launch input[type="text"],
.launch input[type="password"] {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px 18px;
  font: inherit;
  color: var(--ink);
}
.launch .ids {
  font-size: 13px;
  padding: 6px 0;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
}
.launch .ids::placeholder { color: rgba(255, 255, 255, 0.45); }
.launch .hint { color: rgba(255, 255, 255, 0.68); font-size: 13px; margin: 0; }
.launch .quota {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.launch .quota.ok { background: rgba(22, 163, 74, 0.22); color: #b7f7cf; }
.launch .quota.warn { background: rgba(217, 119, 6, 0.24); color: #ffe4b3; }
.launch .quota.bad { background: rgba(217, 45, 32, 0.26); color: #ffd7d4; }
.launch-note { margin: 0 0 14px; font-size: 14px; }
.launch-note.ok { color: #b7f7cf; }
.quota-box {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #f79009;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.5;
}
.quota-box p { margin: 0 0 6px; }
.quota-box p:last-child { margin: 0; }
.job-actions { margin: 0 0 14px; font-size: 14px; }
.job-actions a { color: var(--bad); }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions a { font-size: 13px; color: var(--muted); text-decoration: none; }
.row-actions a:hover { color: var(--bad); }
button.danger { background: var(--bad); }
.banner { margin: 12px 0; font-size: 15px; }
.launch .warn { color: #ffd7d4; font-size: 14px; }
.field-error {
  margin: 0;
  padding: 10px 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  background: #d92d20;
  border-radius: 8px;
}
.launch input[aria-invalid="true"] {
  outline: 2px solid #ff5a44;
  outline-offset: 2px;
}
.launch-field { display: grid; gap: 8px; }
.launch-field > span { color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.job-state { font-size: 14px; }
.job-state.ok { color: var(--ok); }
.job-state.run { color: var(--blue); }
.job-state.bad { color: var(--bad); }
.job-state.warn { color: #b54708; }
.job-stage {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}
.progress-stage {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.62);
}

button, .button {
  font: inherit;
  font-weight: 500;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.ghost, .button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.launch button { justify-self: start; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
#preview-hint { white-space: pre-line; }
.stop-form { margin: 10px 0 0; }
.launch .stop-form button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 9px 16px;
}
.stop-form button.quiet { background: #fff; color: var(--bad); border: 1px solid #fecaca; }
.warn-box {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #f79009;
  background: #fffaeb;
  color: #7a2e0e;
  font-size: 14px;
  line-height: 1.5;
}
.warn-box ul { margin: 6px 0 0; padding-left: 18px; }

.progress {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 8px 0;
}
.feed { list-style: none; padding: 0; margin: 12px 0 0; }
.feed li { color: rgba(255, 255, 255, 0.82); padding: 4px 0; }
.launch details { color: rgba(255, 255, 255, 0.82); }
.launch summary { cursor: pointer; }

.history h2 { margin-bottom: 12px; }

details:not([open]) > *:not(summary) { display: none; }

table { width: 100%; border-collapse: collapse; }th, td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: rgba(30, 66, 255, 0.04); }
tr.hidden { display: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 22px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.stat b {
  display: block;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span { color: var(--muted); font-size: 14px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.clickable-stat {
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  width: 100%;
}
.clickable-stat.on, .clickable-stat:hover { border-color: var(--blue); }
.crumb { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.summary {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 62ch;
  margin: 0 0 22px;
}
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.2; cursor: pointer; }
.switch input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}
.tile.all { width: auto; color: var(--muted); }
.reason { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.missed { margin: 18px 0 0; }
.missed-what { margin: 0 0 6px; font-weight: 500; }
.missed .quote { margin: 8px 0; }
.missed-ask { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.missed-note { color: var(--ink); }
.exchange { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--line); background: rgba(15, 23, 42, 0.03); border-radius: 8px; }
.exchange-line { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.exchange-line:last-child { margin-bottom: 0; }
.exchange-line b { font-weight: 500; color: var(--muted); }
.questions { margin: 18px 0 0; }
.question-row { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.question-row:first-of-type { border-top: 0; }
.question-state { font-weight: 500; }
.question-row.no .question-state { color: var(--bad); }
.question-row.yes .question-state { color: var(--ok); }
.question-row.unclear .question-state { color: #b54708; }
.question-note { grid-column: 2; color: var(--muted); font-size: 13px; }

.call-review { margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.call-review > summary { cursor: pointer; font-weight: 500; }
.call-review > summary::-webkit-details-marker { display: none; }
.call-review > summary::before { content: "▸ "; color: var(--muted); }
.call-review[open] > summary::before { content: "▾ "; }
.call-summary { margin: 12px 0 0; }
.client-facts { list-style: none; padding: 0; margin: 10px 0; }
.client-facts li { margin: 0 0 10px; }
.client-facts .quote { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stages { display: grid; gap: 12px; margin: 10px 0 18px; }
.stage { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stage-name { margin: 0; font-weight: 500; }
.stage-goal { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stage-heard { margin: 8px 0 0; font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 9px; }
.stage-lines { list-style: none; padding: 0; margin: 8px 0 0; }
.stage-lines li { margin: 0 0 4px; font-size: 15px; line-height: 1.45; }
.stage-lines li::before { content: "— "; color: var(--muted); }
.stage-variant { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.stage-if { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.pivots { list-style: none; padding: 0; margin: 10px 0 18px; }
.pivots li { margin: 0 0 12px; }
.pivots .quote { margin: 0; }
.pivot-better { display: block; margin-top: 4px; font-size: 14px; }
.pivot-better::before { content: "→ "; color: var(--muted); }
.next-step { padding: 10px 12px; border-radius: 10px; background: #eef2ff; border: 1px solid #dbe2ff; }
.next-step p { margin: 0 0 4px; }
.review-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 14px; }
.review-warn p { margin: 0 0 4px; }
.review-warn ul { margin: 0; padding-left: 18px; }
.call-review-actions { margin-top: 14px; }
.fast-table td { vertical-align: top; }
.fast-table q { quotes: "«" "»"; }
td .basket { display: block; }
td.priority { white-space: nowrap; }
.conclusion { margin: 0 0 4px; max-width: 68ch; }
.conclusion p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.baskets-list { list-style: none; padding: 0; margin: 0 0 8px; }
.baskets-list li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.baskets-list li:last-child { border-bottom: 0; }
button.small { padding: 8px 14px; font-size: 13px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.tile {
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 12px;
  width: 100%;
}
.tile.on { border-color: var(--blue); }
.tile .count { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.tile .name { display: block; margin-top: 6px; font-size: 14px; }
.heat-1 { color: #1e42ff; }
.heat-2 { color: #3d4fe8; }
.heat-3 { color: #5c5cd0; }
.heat-4 { color: #7468b4; }
.heat-5 { color: #8a7598; }
.heat-6 { color: #5c6178; }
.heat-7 { color: #0b0c1d; }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 8px 0 4px;
}
.switches { display: flex; gap: 16px; font-size: 14px; }
.switches label { display: flex; gap: 8px; align-items: center; font-weight: 400; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 6px;
}
.dot.высокая { background: var(--ok); }
.dot.средняя { background: var(--mid); }
.dot.низкая, .dot.неясно { background: var(--bad); }
.stars { letter-spacing: 1px; color: var(--ink); }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 29, 0.28);
  display: none;
  z-index: 20;
}
.sheet.open { display: block; }
.panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  background: #fff;
  overflow: auto;
  padding: 28px 24px 48px;
  box-shadow: -12px 0 40px rgba(11, 12, 29, 0.12);
}
.panel h2.verdict { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; }
.quote {
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin: 12px 0;
}
.quote a { color: var(--ink); }
.checks { list-style: none; padding: 0; }
.checks li { margin: 12px 0; }
.mark { font-weight: 500; }
.mark.yes { color: var(--ok); }
.mark.no { color: var(--bad); }
.mark.unclear { color: var(--mid); }
.mark.да { color: var(--ok); }
.mark.нет { color: var(--bad); }
.mark.неясно { color: var(--mid); }
.hook { font-size: 18px; }
.manager { color: var(--muted); }
.lines { display: grid; gap: 8px; margin: 18px 0; }
.lines div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.lines dt { color: var(--muted); }
.lines dd { margin: 0; }
.event { padding: 10px 0; border-bottom: 1px solid var(--line); }
.event header { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.event p { margin: 6px 0 0; white-space: pre-wrap; }
.panel img { max-width: 100%; border-radius: 10px; }
.panel-head { display: grid; gap: 6px; margin-bottom: 18px; }
.panel-id { color: var(--muted); font-size: 13px; margin: 0; }
.panel-title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.panel-basket { margin: 0; font-size: 16px; font-weight: 500; }
.panel-reason { margin: 0; color: var(--ink); line-height: 1.45; }
.panel-meta { margin: 0; color: var(--muted); font-size: 14px; }
.panel-outcome { margin: 18px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.screen-block { margin-top: 4px; }
.screen-extra { margin: 8px 0 0; line-height: 1.45; }
.panel-main { margin: 0; color: var(--ink); line-height: 1.45; }
.panel-main b { font-weight: 500; }
.panel-subtype { margin: 0; color: var(--muted); font-size: 13px; }
.panel-amo { margin: 0; color: var(--muted); font-size: 13px; }
.panel-head .button { justify-self: start; margin-top: 6px; }
.panel-h { font-size: 15px; font-weight: 500; color: var(--muted); margin: 26px 0 8px; letter-spacing: 0.02em; }
.dont {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecaca;
}
.first-message { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.first-message .who-label { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.first-message .hook { font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
.review-actions { display: flex; gap: 10px; align-items: start; flex-wrap: wrap; }
.review-actions form { margin: 0; }
.fix > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  user-select: none;
}
.fix > summary:hover { border-color: var(--blue); color: var(--blue); }
.fix summary::-webkit-details-marker { display: none; }
.fix[open] > summary { margin-bottom: 12px; }
.panel-more { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 12px; }
.panel-more > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
}
.panel-more h4 { font-size: 15px; margin: 20px 0 8px; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li { margin: 0 0 12px; line-height: 1.45; }
.why-list a { color: var(--ink); }
.why-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.checks-fold > summary { cursor: pointer; font-size: 15px; }
.check-note { display: block; margin-top: 4px; font-size: 13px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts time { color: var(--muted); display: inline-block; min-width: 62px; }
.call audio { width: 100%; margin-top: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.close {
  position: sticky;
  top: 0;
  float: right;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 16px 0;
}
.form { display: grid; gap: 12px; }
.transcript { white-space: pre-wrap; margin: 8px 0 0; line-height: 1.45; }
.fold { margin: 22px 0 8px; }
.fold > summary {
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
label.check input { width: auto; }
input, textarea, select {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  color: var(--ink);
  background: #fff;
}
.muted, .hint { color: var(--muted); }
.error-line, .banner.bad { color: var(--bad); }
.row { display: flex; gap: 12px; align-items: end; }
.row.spread { justify-content: space-between; align-items: center; }
button.quiet { background: #fff; color: var(--bad); border: 1px solid #fecaca; }
.when { margin: 8px 0 0; padding-left: 18px; }

/* Лендинг на странице входа */
.landing { background: var(--paper); }
.lp-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px max(24px, calc(50vw - 540px));
}
.lp-top .brand { color: #fff; }
.lp-top-link { color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.lp-top-link:hover { color: #fff; text-decoration: none; }

.lp-hero {
  background: var(--night);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 108px max(24px, calc(50vw - 540px)) 72px;
}
.lp-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.lp-hero h1 { margin: 0 0 18px; font-size: 46px; font-weight: 400; letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; }
.lp-lead { margin: 0 0 18px; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); max-width: 48ch; }
.lp-note { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.6); max-width: 44ch; }

.lp-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.lp-card h2 { margin: 0 0 4px; font-size: 26px; }
.lp-card-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.lp-card .form { display: grid; gap: 10px; }
.lp-card button { justify-self: stretch; padding: 13px 18px; }
.lp-card input { background: rgba(11, 12, 29, 0.04); border-color: transparent; }
.lp-card input:focus { outline: 2px solid rgba(30, 66, 255, 0.35); outline-offset: 1px; }
.lp-card-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.lp-h { margin: 0 0 22px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.lp-steps {
  padding: 52px max(24px, calc(50vw - 540px)) 44px;
  border-bottom: 1px solid var(--line);
}
.lp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-num { display: inline-block; margin-bottom: 10px; color: var(--blue); font-size: 13px; letter-spacing: 0.06em; }
.lp-step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.lp-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.lp-out { padding: 48px max(24px, calc(50vw - 540px)) 56px; border-bottom: 1px solid var(--line); }
.lp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.lp-tile { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.lp-tile b { display: block; font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.lp-tile span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.lp-honest {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 40px max(24px, calc(50vw - 540px));
  background: rgba(11, 12, 29, 0.035);
}
.lp-honest h2 { margin: 0 0 8px; font-size: 20px; }
.lp-honest p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 15px; line-height: 1.55; }
.lp-honest .button { flex: none; }

.lp-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px max(24px, calc(50vw - 540px)) 32px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.lp-foot a { color: var(--muted); }

@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 92px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-lead { font-size: 16px; }
  .lp-steps-grid { grid-template-columns: 1fr; gap: 22px; }
  .lp-h { font-size: 22px; }
  .lp-tiles { grid-template-columns: 1fr 1fr; }
  .lp-honest { flex-direction: column; align-items: flex-start; gap: 18px; }
}

.docs { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 40px; padding-top: 32px; align-items: start; }
.docs-nav { position: sticky; top: 20px; font-size: 14px; }
.docs-nav-h { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); }
.docs-nav a:hover { background: rgba(11, 12, 29, 0.05); text-decoration: none; }
.docs-nav a.on { background: rgba(30, 66, 255, 0.08); color: var(--blue); font-weight: 500; }

.doc-body { max-width: 760px; font-size: 15.5px; line-height: 1.6; }
.doc-body h1 { font-size: 34px; margin-bottom: 20px; }
.doc-body h2 { margin: 34px 0 12px; }
.doc-body h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 500; }
.doc-body p { margin: 0 0 12px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin: 0 0 6px; }
.doc-body img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0 18px; }
.doc-body code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(11, 12, 29, 0.06); padding: 2px 5px; border-radius: 5px; }
.doc-body pre { background: var(--night); color: #e8e9f5; padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 0 0 18px; }
.doc-body pre code { background: none; color: inherit; padding: 0; font-size: 13px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.doc-body blockquote { margin: 0 0 16px; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

@media (max-width: 800px) {
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docs-nav { position: static; }
}

/* Админка: таблица клиентов и служебные метрики */
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 0 18px; }
.admin-head h1 { margin: 0 0 6px; font-size: 34px; }
.admin-head p { margin: 0; }
.admin-head .row { flex: none; align-items: center; }

.admin-table { font-size: 14.5px; }
.admin-table th { white-space: nowrap; }
.admin-table td { padding: 14px 10px; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover { background: rgba(30, 66, 255, 0.04); }
.admin-table .mono { font-variant-numeric: tabular-nums; color: var(--muted); }
.cell-title { display: block; line-height: 1.35; }
.cell-note { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.admin-links { white-space: nowrap; font-size: 13px; }
.admin-links a { margin-left: 10px; }
.admin-links a:first-child { margin-left: 0; }

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
  background: rgba(11, 12, 29, 0.06);
  color: var(--muted);
}
.badge.ok { background: rgba(22, 128, 60, 0.1); color: var(--ok); }
.badge.warn { background: rgba(245, 158, 11, 0.14); color: #92400e; }
.badge.bad { background: rgba(180, 35, 24, 0.1); color: var(--bad); }
.badge.none { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

.acting {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(24px, calc(50vw - 540px));
  background: #fff7e6;
  border-bottom: 1px solid #f3d9a4;
  color: #7a2e0e;
  font-size: 13.5px;
}
.acting form { margin: 0; }
.acting button { padding: 6px 12px; background: #fff; color: #7a2e0e; border: 1px solid #f3d9a4; }

.form-narrow { max-width: 560px; }
.section-links { display: flex; gap: 18px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }

/* «О компании»: один текст на аккаунт */
.company-hint {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  background: rgba(30, 66, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
}
.company-hint p { margin: 0 0 6px; }
.company-hint ul { margin: 0 0 6px; padding-left: 18px; }
.company-hint li { margin: 2px 0; }
.company-field { border: 0; padding: 0; margin: 22px 0 0; }
.company-field legend { font-weight: 500; margin-bottom: 4px; }
.company-field textarea { width: 100%; }
.banner.ok { color: var(--ok); }
.warn-note { color: #92400e; }

@media (max-width: 800px) {
  .admin-head { flex-direction: column; gap: 14px; }
  .admin-table { display: block; overflow-x: auto; }
  .acting { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 800px) {
  .stats, .tiles { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 32px; }
  .toolbar, .lines div { display: block; }
  .lines dt { margin-top: 8px; }
}
@media print {
  .top, .foot, .toolbar, .sheet, .no-print { display: none !important; }
  .tiles { display: none; }
  body { background: #fff; }
}

/* Корзины: цветные плашки и редактор набора */
.basket-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--chip, #64748b);
  vertical-align: middle;
}
.run-baskets {
  display: grid;
  gap: 8px;
  margin: 6px 0 2px;
  max-width: 100%;
}
.run-baskets-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.run-baskets-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  background: color-mix(in srgb, var(--chip, #64748b) 10%, #fff);
  border-color: color-mix(in srgb, var(--chip, #64748b) 34%, #fff);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip, #64748b);
}
.chip.removable { padding-right: 4px; }
.chip-x {
  border: 0;
  background: none;
  color: rgba(11, 12, 29, 0.55);
  font-size: 11px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}
.chip-x:hover { color: var(--bad); }
.chip-add {
  flex: 0 0 auto;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: 1px 9px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.chip-add:disabled { opacity: 0.4; cursor: not-allowed; }
.chip-add::before { display: none; }
.chip-add:disabled { opacity: 0.4; cursor: default; }
.tile { border-left: 4px solid var(--chip, var(--line)); }

.modal {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: calc(100% - 32px);
  max-width: 460px;
}
.modal::backdrop { background: rgba(11, 12, 29, 0.35); }
.modal .form { padding: 20px; }
.modal h2 { margin: 0 0 12px; font-size: 18px; }

.basket-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 22px;
}
.basket-editor legend { font-weight: 500; padding: 0 6px; }
.basket-rows { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.basket-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.basket-row-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.basket-title { flex: 1 1 180px; }
.basket-color { flex: 0 0 auto; }
.basket-return { white-space: nowrap; font-size: 13px; }
.basket-desc { width: 100%; margin-top: 8px; font-size: 13px; }
.basket-editor-foot { align-items: center; }
