/* Lead Insights — RR Web Services colours: navy #00112D, blue #005CF6 */
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #f3f5f9; --card: #fff; --ink: #00112d; --text: #1f2a3d; --muted: #5d6879; --line: #dfe4ec; --line-2: #ebeef3;
  --accent: #005cf6; --accent-dark: #0047c2; --accent-soft: #e8f0fe; --top: #0b1120; --field: #cdd4df;
  --a: #9db6dc; --b: #005cf6;
  --good: #137a4b; --good-bg: #e3f4ea; --warn: #8a5a00; --warn-bg: #fdf1d6; --bad: #b3261e; --bad-bg: #fbe9e7; --info: #1f56b8; --info-bg: #e8f0fe;
  --radius: 10px; --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.25; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h1 { font-size: 23px; letter-spacing: -.015em; }
h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.005em; }
h3 { font-size: 14px; margin: 18px 0 8px; }
code { font: 13px var(--mono); background: #eef1f6; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top bar */
.top { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: var(--top); color: #dfe3ea; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.top .brand, .top .brand:hover { color: #fff; }
.brand__badge { display: block; flex: none; }
.brand__logo { display: block; max-width: 160px; object-fit: contain; }
.brand__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; font: 700 12px var(--display); letter-spacing: .02em; flex: none; }
.top__site select { background: #19213a; color: #fff; border: 1px solid #2b3550; border-radius: 7px; padding: 6px 10px; font: inherit; font-size: 14px; max-width: 220px; }
.top__site--one { color: #fff; font-weight: 600; font-size: 14px; padding: 6px 10px; background: #19213a; border-radius: 7px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: 6px; }
.nav a { color: #b4bccb; text-decoration: none; padding: 7px 11px; border-radius: 7px; font-size: 14px; position: relative; }
.nav a:hover { background: #19213a; color: #fff; }
.nav a.is-on { color: #fff; font-weight: 600; background: #19213a; }
.nav a.is-on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -11px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.top__user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.top__user a { color: #dfe3ea; text-decoration: none; }
.top__user form { margin: 0; }
.top__user .linkbtn { color: #aab3c2; }
.top__burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }

/* layout */
.main { max-width: 1280px; margin: 0 auto; padding: 24px 24px 60px; }
.head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { margin-right: auto; }
.head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.card--flush { padding: 0; overflow: hidden; }
.card > :last-child { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid2--wide { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.grid2 > * { min-width: 0; }
h2 .more { float: right; font-size: 13px; font-weight: 500; }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: 600 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #aab4c3; color: var(--ink); background: #f7f9fc; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:focus-visible { outline-color: var(--ink); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn--danger:hover { background: #8f1e18; color: #fff; }
.btn--small { padding: 5px 10px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13px; }
.linkbtn--bad { color: var(--bad); }
.form label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea, .filters input, .filters select, .range select, .range input, .inline-form input:not([type="checkbox"]) {
  display: block; width: 100%; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--field); border-radius: 8px; font: 14px var(--font); background: #fff; color: var(--text); }
.form textarea { resize: vertical; }
.form label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.form--narrow { max-width: 460px; }
.form--inline { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.form--inline h2 { width: 100%; margin-bottom: 4px; }
.form--inline label { margin: 0; flex: 1 1 180px; }
.form--row { display: flex; gap: 10px; align-items: flex-end; }
.form--row label { margin: 0; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
textarea.code, pre.code { width: 100%; font: 12.5px/1.5 var(--mono); background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px; padding: 12px; white-space: pre-wrap; word-break: break-word; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert--ok { background: var(--good-bg); color: #145a3a; }
.alert--bad { background: var(--bad-bg); color: #8a1d16; }
.alert--warn { background: var(--warn-bg); color: #6d4700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: flex-end; }
.filters input[type="search"] { flex: 1 1 280px; width: auto; margin: 0; }
.filters select { width: auto; margin: 0; }
.filters label { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.danger { border-color: #f0c9c5; }

/* range picker */
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range select { width: auto; margin: 0; }
.range input[type="date"] { width: auto; margin: 0; display: inline-block; }
.range__label { font-size: 13px; color: var(--muted); }
.range__custom { display: inline-flex; align-items: center; gap: 6px; }

/* tabs */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 3px; font-size: 13px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile p { margin: 0; }
.tile__label { font-size: 13px; color: var(--muted); }
.tile__n { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin: 2px 0 4px !important; font-variant-numeric: tabular-nums; }
.tile__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px !important; }
.delta { font-size: 12.5px; font-weight: 600; }
.delta--good { color: var(--good); }
.delta--bad { color: var(--bad); }
.delta--flat, .delta--none { color: var(--muted); font-weight: 400; }

/* findings */
.finds { list-style: none; margin: 0; padding: 0; }
.find { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.find:first-child { border-top: 0; padding-top: 0; }
.find__tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; align-self: start; text-align: center; }
.find--good .find__tag { background: var(--good-bg); color: var(--good); }
.find--bad .find__tag { background: var(--bad-bg); color: var(--bad); }
.find--tip .find__tag { background: var(--warn-bg); color: var(--warn); }
.find--info .find__tag { background: var(--info-bg); color: var(--info); }

/* charts */
.chart { margin: 0 0 14px; }
.chart:last-child { margin-bottom: 0; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chart__title { font-size: 13px; font-weight: 600; color: var(--muted); }
.chart__total { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart__plot { position: relative; padding-left: 30px; }
.chart__ymax { position: absolute; left: 0; top: -2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart__svg { display: block; width: 100%; height: 130px; overflow: visible; }
.chart__grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__base { stroke: var(--field); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__bar--a { fill: var(--a); }
.chart__bar--b { fill: var(--b); }
.chart__hit { fill: transparent; cursor: crosshair; }
.chart__hit:hover { fill: rgba(0, 17, 45, .05); }
.chart__x { display: flex; justify-content: space-between; padding-left: 30px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tip { position: fixed; z-index: 50; background: var(--ink); color: #fff; font-size: 12.5px; padding: 5px 9px; border-radius: 6px; pointer-events: none; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* funnel */
.funnel { list-style: none; margin: 0 0 8px; padding: 0; }
.funnel li { display: grid; grid-template-columns: minmax(150px, 290px) 1fr 110px; gap: 12px; align-items: center; padding: 5px 0; font-size: 14px; }
.funnel__bar { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.funnel__bar span { display: block; height: 100%; background: var(--a); border-radius: 4px; }
.funnel li:nth-child(n+4) .funnel__bar span { background: var(--b); }
.funnel__n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.funnel__n small { color: var(--muted); font-weight: 400; margin-left: 4px; }

/* tables */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line); white-space: nowrap; background: #f7f9fc; }
.card--flush .table th:first-child, .card--flush .table td:first-child { padding-left: 18px; }
.table tfoot th { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 700; color: var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody tr:hover { background: #f8fafd; }
.table--sort thead th { cursor: pointer; user-select: none; }
.table--sort thead th[data-dir="asc"]::after { content: " ▲"; font-size: 9px; }
.table--sort thead th[data-dir="desc"]::after { content: " ▼"; font-size: 9px; }
.table--form td { vertical-align: middle; }
.table--form input { width: 100%; padding: 6px 8px; border: 1px solid var(--field); border-radius: 6px; font: inherit; }
.table--form tr.is-new td { background: #fffaf0; }
.table tr.is-off td { opacity: .55; }
.table td.actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.table td.actions form { margin: 0; }
.inline-pw { display: inline-flex; gap: 4px; }
.inline-pw input { padding: 3px 6px; border: 1px solid var(--field); border-radius: 6px; font-size: 12.5px; width: 130px; }
.path { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; }

/* verdicts and quality */
.vd { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.vd--good { background: var(--good-bg); color: var(--good); }
.vd--ok { background: #eef0f3; color: #4b5263; }
.vd--weak { background: var(--warn-bg); color: var(--warn); }
.vd--bad { background: var(--bad-bg); color: var(--bad); }
.vd--early { background: transparent; color: var(--muted); font-weight: 500; border: 1px dashed var(--field); }
.q { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.q--none { background: #eef0f3; color: #6a7182; font-weight: 500; }
.q--valid { background: var(--good-bg); color: var(--good); }
.q--high { background: #fff0cc; color: #7a4f00; }
.q--converted { background: #dfeafa; color: #1d4f8a; }
.q--invalid { background: var(--bad-bg); color: var(--bad); }
.qcell { min-width: 170px; }
.qcell__badge { display: block; margin-bottom: 6px; }
.qquick { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.qquick button { border: 0; background: #fff; padding: 3px 8px; font: 600 12px var(--font); color: var(--muted); cursor: pointer; }
.qquick button + button { border-left: 1px solid var(--line); }
.qquick button:hover { background: var(--accent-soft); color: var(--ink); }
.qquick button[data-q="invalid"]:hover { background: var(--bad-bg); color: var(--bad); }
.qpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.form .qpick__opt { margin: 0; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); }
.qpick__opt:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 1px currentColor inset; }
.qpick__opt.q--valid { color: var(--good); } .qpick__opt.q--high { color: #7a4f00; } .qpick__opt.q--converted { color: #1d4f8a; } .qpick__opt.q--invalid { color: var(--bad); } .qpick__opt.q--none { color: #4b5263; }
.qpick__opt span { color: var(--ink); }

/* lead page */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0 0 18px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
.dl--tight { grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13.5px; }
.journey { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.journey__visit { position: relative; padding: 0 0 14px 12px; }
.journey__visit::before { content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #aab4c3; }
.journey__visit.is-lead::before { background: var(--accent); border-color: var(--accent); }
.journey__visit p { margin: 0 0 3px; font-size: 14px; }

/* websites page */
.copy { display: flex; gap: 8px; align-items: flex-start; background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; }
.copy code { flex: 1; background: none; padding: 0; font-size: 12.5px; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.status { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.status--ok { background: var(--good-bg); color: #145a3a; }
.status--wait { background: var(--warn-bg); color: var(--warn); }
.help ul { margin: 10px 0 0; padding-left: 20px; font-size: 14px; }
.help li { margin-bottom: 6px; }
.help summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* sign-in and installer */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth__box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; width: min(400px, 100%); }
.auth__box--wide { width: min(560px, 100%); }
.auth__box .brand { color: var(--ink); margin: 0 0 18px; }
.auth__box h1 { margin-bottom: 14px; }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid2, .grid2--wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top { padding: 10px 16px; gap: 10px; }
  .top__burger { display: block; }
  .nav, .top__user { display: none; width: 100%; }
  .nav-open .nav, .nav-open .top__user { display: flex; }
  .nav { flex-direction: column; margin: 0; }
  .top__user { margin: 0; justify-content: space-between; }
  .main { padding: 18px 16px 50px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .find { grid-template-columns: 1fr; gap: 4px; }
  .find__tag { justify-self: start; }
  .funnel li { grid-template-columns: 1fr 80px; }
  .funnel__bar { grid-column: 1 / -1; grid-row: 2; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dt { margin-top: 8px; }
  .row3 { grid-template-columns: 1fr; }
}

/* 1.1 Google Ads */
.tile--warn { border-color: #f0c9a8; background: #fffaf3; }
.tile--warn .tile__n { color: #9a4a00; }
.bad { color: var(--bad); }
form.inline { display: inline; margin: 0; }
.sugs { list-style: none; margin: 0 0 8px; padding: 0; }
.sug { display: flex; gap: 16px; padding: 12px 0 12px 14px; border-top: 1px solid var(--line-2); border-left: 3px solid transparent; }
.sug:first-child { border-top: 0; }
.sug--bad { border-left-color: var(--bad); }
.sug--good { border-left-color: var(--good); }
.sug--tip { border-left-color: #d9a400; }
.sug__main { flex: 1; min-width: 0; }
.sug__main p { margin: 0 0 3px; }
.sug__title { font-weight: 700; color: var(--ink); }
.sug__why { font-size: 14px; }
.sug__do { font-size: 14px; color: var(--muted); }
.sug__do b { color: var(--text); }
.sug__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 110px; font-size: 13px; }
.sug__money { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.int { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; text-decoration: none; }
.int.int-action { background: var(--good-bg); color: var(--good); }
.int.int-research { background: var(--info-bg); color: var(--info); }
.int.int-brand { background: #efe8fa; color: #5b3a96; }
.int.int-wrong { background: var(--bad-bg); color: var(--bad); }
.int.int-other { background: #eef0f3; color: #4b5263; }
.funnel__bar span.int-action { background: var(--good) !important; } .funnel__bar span.int-research { background: var(--info) !important; } .funnel__bar span.int-brand { background: #6f4fb0 !important; }
.funnel__bar span.int-wrong { background: var(--bad) !important; } .funnel__bar span.int-other { background: #9aa1ad !important; }
.hours { display: grid; gap: 3px; }
.hours__row { display: grid; grid-template-columns: 26px 1fr 70px 52px; gap: 8px; align-items: center; font-size: 12.5px; cursor: default; }
.hours__row:hover { background: #f7f9fc; }
.hours__h { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours__bar { height: 10px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.hours__bar span { display: block; height: 100%; background: var(--a); }
.hours__n { text-align: right; font-variant-numeric: tabular-nums; }
.hours__g { color: var(--b); letter-spacing: -1px; font-size: 11px; }
.copy--code { flex-direction: column; }
.copy--code pre { margin: 0; max-height: 320px; overflow: auto; width: 100%; font: 12px/1.45 var(--mono); white-space: pre; }
.actionsbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 760px) { .sug { flex-direction: column; gap: 8px; } .sug__side { flex-direction: row; align-items: center; flex-wrap: wrap; } }

/* 1.2: spam, replies, alerts */
.q--spam { background: #f3e3f7; color: #7a2a8a; margin-left: 4px; cursor: help; }
.qquick button.is-spam { color: #7a2a8a; font-weight: 700; }
.qquick button.is-spam:hover { background: #f3e3f7; }
.qreply { display: block; margin-top: 6px; font-size: 12.5px; }
.replied { color: var(--good); font-weight: 600; font-size: 13px; }
.notice { border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.notice--bad { background: var(--bad-bg); color: #8a1d16; }
.notice--warn { background: var(--warn-bg); color: #6d4700; }
.notice--info { background: var(--info-bg); color: #24496d; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form label { display: flex; gap: 6px; align-items: center; margin: 0; white-space: nowrap; }
.inline-form input[type="datetime-local"] { width: auto; }
.alerts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.alerts li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--bad-bg); color: #8a1d16; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.alerts li.is-warn { background: var(--warn-bg); color: #6d4700; }
.alerts form { flex: none; }
.adcopy { font-size: 13px; line-height: 1.45; min-width: 300px; }
.adcopy b { color: #1a0dab; font-weight: 600; }
.adcopy .path { display: block; color: #1e7d3c; }
.strength { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.strength--excellent, .strength--good { color: var(--good); } .strength--average { color: var(--warn); } .strength--poor { color: var(--bad); }
.tabs--sub { margin-top: -6px; }
.tabs--sub a { font-size: 13px; }
.card__head { padding: 14px 16px 0; margin-bottom: 8px; }
.card__head .muted { font-weight: 400; margin-left: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.kind { display: inline-block; font-size: 11.5px; font-weight: 600; margin-top: 2px; color: #4b5263; }
.kind--quality { color: var(--good); } .kind--soft { color: var(--bad); } .kind--form { color: var(--info); }
tr.is-dim td { opacity: .6; }
.top__user a.is-on { color: #fff; font-weight: 600; }
.inline-form input:not([type="checkbox"]) { display: inline-block; width: auto; min-width: 220px; margin-top: 0; }

/* 1.3: trends and charts */
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.up, .down { color: var(--muted); font-size: 10px; }
.card__foot { padding: 10px 16px 14px; margin: 0; }
tr.is-you td { background: #eef4ff; }
.table--months td, .table--months th { white-space: nowrap; }
@media (max-width: 600px) {
  .card:has(> svg.viz) { overflow-x: auto; }
  .card > svg.viz { min-width: 540px; }
}
.sitepick { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 10px; }
.sitepick .check { margin: 0; }
details.access { display: inline-block; }
details.access[open] { display: block; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
details.access summary { list-style: none; cursor: pointer; display: inline; }
.bad-text { color: var(--bad); }
.label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.gems { list-style: none; margin: 0; padding: 0; }
.gems li { padding: 12px 16px; border-top: 1px solid var(--line-2); border-left: 3px solid var(--good); }
.gems li:first-child { border-top: 0; }
.gem__name { font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.gem__why { margin: 0 0 3px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; background: #eef0f3; color: #4b5263; vertical-align: 1px; margin-left: 4px; }
.tag--family { background: #e8eff7; color: #24496d; } .tag--combo { background: #f3e9dc; color: #6d4700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* 1.6 billing */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; margin: 4px 0 12px; max-height: 220px; overflow: auto; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.plain li:last-child { border-bottom: 0; }
@media (max-width: 1380px) and (min-width: 761px) {
  .top { gap: 10px; padding: 10px 18px; }
  .nav { margin-left: 0; }
  .nav a { padding: 7px 8px; font-size: 13.5px; }
  .top__user { gap: 10px; font-size: 13px; }
}
.inline-form select { width: auto; padding: 6px 8px; border: 1px solid var(--field); border-radius: 6px; font: inherit; background: #fff; }
/* 1.7 setup check */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.checklist__item:last-child { border-bottom: 0; }
.checklist__item > div { flex: 1; min-width: 0; }
.checklist__item p { margin: 0; }
.checklist__title { font-weight: 600; color: var(--ink); }
.checklist__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.is-ok .checklist__icon { background: var(--good-bg); color: var(--good); }
.is-warn .checklist__icon { background: var(--warn-bg); color: var(--warn); }
.is-bad .checklist__icon { background: var(--bad-bg); color: var(--bad); }
.is-off .checklist__icon { background: #eef0f3; color: #6a7182; }
.chg { font-weight: 600; white-space: nowrap; }
.chg--pos { color: #1b7a4f; } .chg--neg { color: #b4372b; } .chg--flat { color: var(--muted); font-weight: 400; }
/* 1.8 pages, help */
.helpdot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eef0f3; color: #4b5263; font-size: 13px; font-weight: 700; text-decoration: none; margin-left: 10px; vertical-align: 4px; }
.helpdot:hover { background: var(--accent); color: #fff; }
.helpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.helpgrid .plain li { padding: 8px 0; }
.helpsearch-app { display: flex; gap: 8px; align-items: center; }
.helpsearch-app input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--field); border-radius: 8px; }
.table tr.is-draft td { color: var(--muted); }

.pageedit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.pageedit__side .card { margin-bottom: 14px; }
.pageedit__side h3 { margin-top: 0; }
.pageedit__title input { width: 100%; border: 0; border-bottom: 1px solid var(--line); font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--ink); padding: 4px 0 10px; margin-bottom: 12px; background: transparent; }
.pageedit__title input:focus { outline: none; border-bottom-color: var(--accent); }
.slug { display: flex; align-items: center; gap: 2px; font-size: 13px; border: 1px solid var(--field); border-radius: 6px; padding: 0 0 0 8px; background: #fff; overflow: hidden; }
.slug span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.slug input { border: 0 !important; margin: 0 !important; min-width: 0; }
.keys { border: 0; padding: 0; margin: 6px 0 10px; max-height: 210px; overflow: auto; }
.editor { border: 1px solid var(--field); border-radius: 10px; background: #fff; }
.editor__bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #f7f9fc; border-radius: 10px 10px 0 0; position: sticky; top: 58px; z-index: 5; }
.editor__bar button, .editor__bar select { font: inherit; max-width: 130px; font-size: 13px; padding: 5px 9px; border: 1px solid transparent; background: transparent; border-radius: 6px; cursor: pointer; color: var(--ink); }
.editor__bar button:hover, .editor__bar select:hover { background: #fff; border-color: var(--line); }
.editor__bar .is-on { background: var(--ink); color: #fff; }
.editor__sep { width: 1px; background: var(--line); margin: 2px 4px; }
.editor__area { min-height: 420px; padding: 18px 22px; outline: none; }
.editor__src { width: 100%; min-height: 420px; border: 0; padding: 16px; font: 13px/1.5 var(--mono, monospace); border-radius: 0 0 10px 10px; }

/* page text inside the dashboard (help, the editor) */
.page-content { font-size: 15.5px; line-height: 1.65; }
.page-content h2 { font-size: 21px; margin: 1.6em 0 .45em; color: var(--ink); }
.page-content h3 { font-size: 17px; margin: 1.4em 0 .35em; color: var(--ink); }
.page-content p, .page-content ul, .page-content ol { margin: 0 0 .9em; max-width: 72ch; }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.page-content figure { margin: 1.2em 0; }
.page-content blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: 2px 0 2px 16px; color: var(--ink); }
.page-content table { border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.page-content th { background: #f7f9fc; }
.page-content .callout { background: #f7f9f8; border-left: 4px solid var(--accent); border-radius: 6px; padding: 10px 14px; margin: 1em 0; }
.page-content .callout.tip { border-left-color: #c2922a; background: #fffaf0; }
.page-content .callout.warn { border-left-color: #b4372b; background: #fdf3f1; }
.page-content a.button { display: inline-block; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 7px; text-decoration: none; font-weight: 600; }
.page-content a.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.page-content [data-block] { border: 1px dashed #b3bccb; border-radius: 8px; padding: 14px; margin: 1em 0; color: var(--muted); font-size: 13px; }
.editor__area [data-block]::before { content: "Live block: " attr(data-block) " (filled in on the website)"; }
.page-content .columns, .page-content .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.page-content .card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
@media (max-width: 1000px) { .pageedit { grid-template-columns: 1fr; } }
/* 1.9: the administrators' menu */
.topmenu { position: relative; }
.topmenu summary { cursor: pointer; list-style: none; color: #dfe3ea; }
.topmenu summary::-webkit-details-marker { display: none; }
.topmenu summary::after { content: " ▾"; font-size: 10px; }
.topmenu summary.is-on { color: #fff; font-weight: 600; }
.topmenu__list { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 24, 33, .14); padding: 6px; min-width: 160px; z-index: 40; display: grid; }
.topmenu__list a { color: var(--ink) !important; padding: 7px 10px; border-radius: 6px; font-size: 14px; }
.topmenu__list a:hover, .topmenu__list a.is-on { background: #eef2f8; }
@media (max-width: 760px) { .topmenu__list { position: static; box-shadow: none; border: 0; background: transparent; padding: 0; } .topmenu__list a { color: #dfe3ea !important; } }
.platcell { min-width: 220px; }
.platnotes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.platnotes .vd { white-space: normal; }
/* 1.10: RR look, sign-in, overview */
@media (max-width: 760px) { .nav a.is-on::after { display: none; } }
.btn--wide { width: 100%; padding: 10px 14px; }
.signin { margin: 0; display: grid; grid-template-columns: minmax(340px, 42%) 1fr; min-height: 100vh; background: var(--paper); }
.signin__side { position: relative; overflow: hidden; background: var(--top); color: #c3cbd9; padding: 40px 48px; display: flex; flex-direction: column; }
.signin__side::after { content: ""; position: absolute; right: -18%; bottom: -6%; width: 115%; aspect-ratio: 1330 / 735; background: url(rr-ghost.svg) no-repeat center / contain; pointer-events: none; }
.signin__side .brand { color: #fff; margin: 0; position: relative; z-index: 1; }
.signin__side .brand__name { font-size: 19px; }
.signin__points { list-style: none; margin: auto 0; padding: 0; max-width: 400px; position: relative; z-index: 1; }
.signin__points li { font: 600 19px/1.4 var(--display); color: #fff; letter-spacing: -.01em; padding: 0 0 0 18px; margin: 0 0 22px; border-left: 3px solid var(--accent); }
.signin__lead { margin: auto 0; max-width: 380px; font: 600 22px/1.35 var(--display); color: #fff; position: relative; z-index: 1; }
.signin__by { margin: 0; font-size: 13px; color: #8994a8; position: relative; z-index: 1; }
.signin__main { display: grid; place-items: center; padding: 32px 20px; }
.signin__box { width: min(360px, 100%); }
.signin__box h1 { font-size: 26px; margin-bottom: 18px; }
.signin__box .form input:not([type="checkbox"]) { padding: 10px 12px; }
.auth .brand { color: var(--ink); }
@media (max-width: 820px) {
  .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .signin__side { padding: 22px 20px 26px; }
  .signin__points, .signin__by { display: none; }
  .signin__lead { margin: 14px 0 0; font-size: 17px; }
  .signin__side::after { width: 70%; right: -10%; bottom: -30%; }
  .signin__main { place-items: start center; padding-top: 36px; }
}

/* the overview's headline: cost per good lead */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); background: var(--top); color: #c3cbd9; border-radius: 14px; margin-bottom: 14px; overflow: hidden; position: relative; }
.hero__main { padding: 22px 26px 24px; position: relative; }
.hero__label { margin: 0; font-size: 13.5px; color: #9aa6ba; }
.hero__n { margin: 4px 0 6px; font: 700 46px/1.05 var(--display); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__n small { font-size: 17px; font-weight: 600; color: #9aa6ba; letter-spacing: 0; margin-left: 6px; }
.hero__say { margin: 0; font-size: 14px; line-height: 1.5; max-width: 42ch; }
.hero__say b { color: #fff; font-weight: 600; }
.hero .delta { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.hero .delta--good { color: #5fd69a; } .hero .delta--bad { color: #ff8a7f; } .hero .delta--flat, .hero .delta--none { color: #9aa6ba; }
.hero__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #111a30; }
.hero__stat { padding: 22px 20px; border-left: 1px solid #1f2a45; }
.hero__stat p { margin: 0; }
.hero__stat .k { font-size: 13px; color: #9aa6ba; }
.hero__stat .v { font: 700 28px/1.2 var(--display); color: #fff; margin: 4px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero__stat .s { font-size: 12.5px; color: #9aa6ba; }
.hero__stat .s a { color: #8fb6ff; }
.hero__stat .delta { margin: 0 0 4px; background: none; padding: 0; }
.hero__cta { color: #8fb6ff; font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline; padding: 4px 4px 0; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.strip b { font: 700 16px var(--display); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.strip .warn b { color: #9a4a00; }
.strip a { color: inherit; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stat:first-child { border-left: 0; }
}
@media (max-width: 560px) {
  .hero__main { padding: 18px 18px 20px; }
  .hero__n { font-size: 38px; }
  .hero__side { grid-template-columns: 1fr; }
  .hero__stat { border-left: 0; border-top: 1px solid #1f2a45; padding: 12px 18px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; }
  .hero__stat .k { grid-column: 1; }
  .hero__stat .v { grid-column: 2; grid-row: 1 / span 3; font-size: 24px; margin: 0; align-self: center; }
  .hero__stat .delta, .hero__stat .s { grid-column: 1; }
}
.wl-logo { display: flex; align-items: center; gap: 14px; background: var(--top); border-radius: 8px; padding: 10px 14px; margin: -4px 0 12px; }
.wl-logo img { max-width: 200px; object-fit: contain; }
.wl-logo .check { color: #fff; margin: 0; }
.signin--white .signin__side::after { display: none; }
.signin--white .signin__side { background: linear-gradient(160deg, var(--top) 55%, color-mix(in srgb, var(--accent) 35%, var(--top))); }
.auth .brand__logo { max-height: 34px; }
.form input[type="color"] { height: 40px; padding: 4px !important; cursor: pointer; }
