:root {
  --bg: #f4f6fa; --card: #fff; --ink: #172033; --muted: #5c6780; --line: #e2e7f0;
  --brand: #2f5bea; --brand-ink: #fff; --brand-soft: #e8eefe;
  --ok: #17803d; --ok-bg: #e0f4e8; --warn: #a15c00; --warn-bg: #fff1d6;
  --bad: #b42318; --bad-bg: #fde7e4; --info: #1d4fb8; --info-bg: #e3ecff; --grey-bg: #eceff5;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; } h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .prewrap { white-space: pre-wrap; }
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: 0 1.5rem; background: #101a33; color: #fff; min-height: 58px; flex-wrap: wrap; }
.topbar a { color: #c9d3ee; } .topbar a:hover { color: #fff; text-decoration: none; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff !important; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; }
.topbar nav { display: flex; gap: .25rem; flex: 1; flex-wrap: wrap; }
.topbar nav a { padding: .45rem .8rem; border-radius: 8px; }
.topbar nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.userbox { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: .9rem; }
.tag { background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.75rem 1.5rem 3rem; flex: 1; }
.container.narrow { max-width: 440px; display: grid; align-content: center; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 1px 2px rgba(16,26,51,.04); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.card-head h1, .card-head h2 { margin: 0; }
.page-head { margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.grid2.wide-left { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 860px) { .grid2, .grid2.wide-left { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; border-left: 4px solid var(--brand); }
.stat.warn { border-left-color: #e08a00; }
.stat-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.2; } .stat-hint { color: var(--muted); font-size: .85rem; }
.stat.warn .stat-hint { color: var(--warn); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
tfoot th { font-size: 1rem; color: var(--ink); text-transform: none; border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; } th.num { text-align: right; }
.empty { color: var(--muted); padding: .5rem 0; }
.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--grey-bg); color: var(--muted); white-space: nowrap; }
.badge-paid, .badge-resolved, .badge-live, .badge-active, .badge-trialing { background: var(--ok-bg); color: var(--ok); }
.badge-high, .badge-declined, .badge-past_due, .badge-unpaid, .badge-uncollectible, .badge-canceled { background: var(--bad-bg); color: var(--bad); }
.badge-pending, .badge-modify_requested, .badge-preview_ready, .badge-approved, .badge-incomplete { background: var(--warn-bg); color: var(--warn); }
.badge-open, .badge-requested, .badge-in_progress { background: var(--info-bg); color: var(--info); }
.stack { display: grid; gap: .9rem; } .form-row { grid-template-columns: 1fr 1fr auto; align-items: end; margin-top: 1rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .88rem; }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid #c5cddd; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(47,91,234,.3); border-color: var(--brand); }
textarea { resize: vertical; }
.btn { font: inherit; font-weight: 600; padding: .55rem 1rem; border-radius: 8px; border: 1px solid #c5cddd; background: #fff; color: var(--ink); cursor: pointer; display: inline-block; }
.btn:hover { text-decoration: none; background: #f2f5fb; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn-primary:hover { background: #2349c4; }
.btn-small { padding: .25rem .65rem; font-size: .85rem; } .btn-ghost { background: transparent; border-color: transparent; color: inherit; }
.topbar .btn-ghost { color: #c9d3ee; border-color: rgba(255,255,255,.25); } .topbar .btn-ghost:hover { background: rgba(255,255,255,.1); }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 0; } td .inline-form { margin: 0; }
.flash, .alert { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash { background: var(--ok-bg); color: var(--ok); } .alert { background: var(--bad-bg); color: var(--bad); }
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; }
.tabs a { padding: .35rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a.active { background: var(--brand); color: #fff; } .tabs a:hover { text-decoration: none; background: var(--brand-soft); } .tabs a.active:hover { background: var(--brand); }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; box-shadow: 0 10px 30px rgba(16,26,51,.08); }
.login-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.5rem; } .login-brand .logo { width: 46px; height: 46px; font-size: 1.4rem; border-radius: 12px; }
.login-brand h1 { margin: 0; font-size: 1.4rem; } .login-brand p { margin: 0; color: var(--muted); }
.meta { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; } .meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; } .meta dd { margin: 0; font-weight: 600; }
.thread { display: grid; gap: .75rem; margin: 1rem 0 1.5rem; }
.comment { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; background: #fafbfd; } .comment.staff { background: var(--brand-soft); border-color: #cddafb; } .comment p { margin: .35rem 0 0; }
.quote-box { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 8px; padding: .9rem 1.1rem; margin: 1rem 0; } .quote-box strong { font-size: 1.3rem; }

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-danger { background: #fff; border-color: #e3a29a; color: var(--bad); } .btn-danger:hover { background: var(--bad-bg); }
.notice { background: var(--warn-bg); color: #6b4300; border-radius: 8px; padding: .7rem 1rem; margin: 1rem 0; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fafbfd; display: flex; flex-direction: column; }
.plan form { margin-top: auto; padding-top: .5rem; }
.plan-features { margin: .25rem 0 1rem; padding-left: 1.1rem; font-size: .9rem; } .plan-features li { margin: .2rem 0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { margin: 0 0 .25rem; font-size: 1rem; } .price { font-size: 2rem; font-weight: 700; } .price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.preview { border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1rem; margin: .75rem 0; background: #fafbfd; }
.preview.current { border-color: #b9c9fa; background: var(--brand-soft); }
.decision { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.actions { display: grid; gap: 1.5rem; } .actions h3 { margin: 0; font-size: 1rem; }
button[disabled] + span, .stack .small { margin: 0; }

/* Attachments */
.badge-needs_info { background: var(--warn-bg); color: var(--warn); }
.tag-staff { background: var(--grey-bg); color: var(--muted); }
.uploader { display: grid; gap: .5rem; }
.dropzone { display: block; border: 1.5px dashed #b9c4dc; border-radius: 8px; padding: .75rem 1rem; background: #fafbfd; cursor: pointer; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type=file] { display: block; margin-top: .4rem; font-size: .85rem; }
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.upload-item { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; background: #fff; }
.upload-item progress { grid-column: 2 / 4; width: 100%; height: 6px; }
.upload-item.upload-failed { border-color: #f0b4ad; background: var(--bad-bg); }
.upload-thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--grey-bg); display: grid; place-items: center; overflow: hidden; font-size: .6rem; font-weight: 700; color: var(--muted); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.upload-remove { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; }
.gallery { list-style: none; margin: .75rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.gallery li { display: grid; gap: .25rem; max-width: 220px; }
.gallery li.video { max-width: 320px; }
.thumb { width: 200px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--grey-bg); display: block; }
.player { width: 300px; max-width: 100%; border-radius: 8px; background: #000; }
.cap { font-size: .78rem; color: var(--muted); word-break: break-all; }

/* Change activity */
.timeline { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; border-left: 2px solid var(--line); display: grid; gap: .85rem; }
.ev { position: relative; }
.ev::before { content: ""; position: absolute; left: -1.38rem; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: #b9c4dc; }
.ev p { margin: .2rem 0 0; }
.ev-question::before { background: var(--warn); }
.ev-answer::before { background: var(--brand); }
.ev-error::before { background: var(--bad); }
.ev-staff { color: var(--muted); }

.review-cta { margin: 1rem 0 .25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

.round-head { margin: 1.1rem 0 .4rem; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ev-feedback { border-left-color: #b9c9fa; }
.live-flash { margin: 0 0 1rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Site changes timeline */
.tl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 1.1rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 2px; }
.seg-btn { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; padding: .35rem .9rem; border-radius: 999px; cursor: pointer; min-height: 2rem; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.seg-btn:focus-visible, .tl-rejected input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tl-rejected { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); cursor: pointer; }
.sitetl { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.sitetl::before { content: ""; position: absolute; left: .42rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: .55rem 0 .9rem; }
.tl-dot { position: absolute; left: -1.4rem; top: .85rem; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 2px solid var(--muted); box-sizing: border-box; }
.tl-published .tl-dot, .tl-initial .tl-dot, .tl-rollback .tl-dot { border-color: var(--brand); background: var(--brand); }
.tl-declined .tl-dot { border-color: var(--line); }
.tl-declined .tl-head a { color: var(--muted); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.tl-body p { margin: .2rem 0 0; }
.tl-body .inline-form { margin-top: .5rem; }
.tl[data-view="published"] .tl-item[data-published="0"],
.tl[data-show-rejected="0"] .tl-item[data-declined="1"] { display: none; }
@media (max-width: 600px) { .seg { width: 100%; } .seg-btn { flex: 1; } }
.tl-rejected input { width: auto; margin: 0; padding: 0; }
.tl-rejected { white-space: nowrap; }

/* Admin clients */
.client-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; }
.client-search { flex: 1 1 18rem; max-width: 28rem; }
.client-search input { width: 100%; }
.client-tools .btn-primary { margin-left: auto; }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--brand-soft); }
.row-link:focus-within td { background: var(--brand-soft); }
.row-link .row-main { font-weight: 600; }
.dialog { border: 0; border-radius: var(--radius); padding: 1.4rem; width: min(30rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow: auto; box-shadow: 0 20px 50px rgba(10, 16, 34, .35); color: var(--ink); }
.dialog::backdrop { background: rgba(10, 16, 34, .55); }
.dialog h2 { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.field-error { color: var(--bad); font-weight: 500; font-size: .85rem; }
[aria-invalid="true"] { border-color: var(--bad); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 .75rem; }
.facts dt { color: var(--muted); font-size: .85rem; } .facts dd { margin: 0; word-break: break-word; }

.reject-change { margin: 1rem 0; }
.reject-change summary { display: inline-block; cursor: pointer; list-style: none; }
.reject-change summary::-webkit-details-marker { display: none; }
.reject-change[open] summary { margin-bottom: .75rem; }
.reject-change form { max-width: 28rem; }

/* Leads, providers and the inbox */
a.seg-btn { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; }
a.seg-btn:hover { text-decoration: none; }
a.seg-btn[aria-current="page"] { background: var(--brand); color: #fff; }
a.seg-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg-count { font-size: .75rem; opacity: .8; font-weight: 500; }
.badge-outreach-interested, .badge-outreach-signed_up, .badge-lifecycle-customer { background: var(--ok-bg); color: var(--ok); }
.badge-outreach-replied, .badge-lifecycle-lead { background: var(--info-bg); color: var(--info); }
.badge-outreach-contacted { background: var(--warn-bg); color: var(--warn); }
.client-tools #add-lead-open { margin-left: auto; }
.client-tools .btn-primary.btn-after { margin-left: 0; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: .2rem; width: auto; }
.stats-table .total td { font-weight: 700; border-top: 2px solid var(--line); }
.email-body { white-space: pre-wrap; margin: .6rem 0; padding: .7rem .9rem; border-left: 3px solid var(--line); background: var(--grey-bg); border-radius: 6px; max-height: 14rem; overflow: auto; font-size: .92rem; overflow-wrap: anywhere; }
.triage-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.triage-actions form { margin: 0; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.act-item { padding-left: .9rem; border-left: 3px solid var(--line); }
.act-item > div { margin: .1rem 0; }
.inbound .card-head h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 600px) { a.seg-btn { flex: 1; justify-content: center; } }
.triage-actions select { width: auto; min-width: 15rem; max-width: 100%; }
.userbox a { color: inherit; text-decoration: none; font-weight: 500; } .userbox a:hover, .userbox a.active { text-decoration: underline; }
.page-head.split { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .page-head.split h1 { margin: 0; }
.row2, .row3 { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
details.editor { margin-top: .75rem; } details.editor > summary { display: inline-block; cursor: pointer; list-style: none; } details.editor > summary::-webkit-details-marker { display: none; }
details.editor[open] > summary { margin-bottom: .75rem; } details.editor form + form { margin-top: .75rem; }
.tier { border-top: 1px solid var(--line); padding: 1rem 0; } .tier h3 { margin: 0; }
table.features td { padding: .25rem .4rem; } table.features .inline-form { margin: 0; } 
table.compare th, table.compare td { white-space: nowrap; } table.compare th.feat, table.compare td.feat { text-align: center; font-size: .85rem; }
table.compare tr.excluded { opacity: .6; } .yes { color: var(--ok); font-weight: 600; } .no { color: var(--bad); }
.feature-form { display: grid; grid-template-columns: minmax(9rem, 2fr) auto minmax(6rem, 1fr) auto; gap: .5rem; align-items: center; margin: 0; }
.feature-form input:not([type=hidden]):not([type=checkbox]) { width: 100%; } .feature-form .check { white-space: nowrap; }
.tier > .feature-form { margin-top: .5rem; }
@media (max-width: 640px) { .feature-form { grid-template-columns: 1fr 1fr; } }

/* Prospect sites (staff) */
.site-filters { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); align-items: end; }
.site-filters .wide { grid-column: 1 / -1; }
.site-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.sites-table th a { color: inherit; text-decoration: none; white-space: nowrap; }
.sites-table td { vertical-align: top; }
.pager { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.cap-full { color: var(--bad); font-weight: 600; }
.site-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem 1.25rem; margin: 0; }
.site-fact dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.site-fact dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.badge-verdict-pass { background: #e3f6ea; color: #14683a; }
.badge-verdict-fail { background: #fde8e6; color: #a1281c; }
.badge-verdict-hold { background: #fff3d6; color: #8a5a00; }
.badge-pipeline-none { background: var(--grey-bg); color: var(--muted); }
.badge-pipeline-demo_built, .badge-pipeline-contacted, .badge-pipeline-replied { background: var(--brand-soft); color: var(--brand); }
.badge-pipeline-signed_up { background: #e3f6ea; color: #14683a; }
.badge-pipeline-do_not_contact { background: #fde8e6; color: #a1281c; }
.badge-switch-easy { background: #e3f6ea; color: #14683a; }
.badge-switch-dns_only { background: var(--brand-soft); color: var(--brand); }
.badge-switch-hard { background: #fdf1dc; color: #8a5300; }
.badge-switch-unknown { background: var(--grey-bg); color: var(--muted); }
.badge-switch-excluded { background: #fde8e6; color: #a1281c; }
.check-group { border: 0; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.check-group legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
form.inline { display: inline; }

/* Edit counter (Site changes) */
.edit-meter { margin: 0 0 1rem; }
.edit-meter-text { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.edit-meter-bar { display: block; width: 100%; height: 8px; margin-top: .4rem; border: 0; border-radius: 999px; background: var(--grey-bg); overflow: hidden; appearance: none; }
.edit-meter-bar::-webkit-progress-bar { background: var(--grey-bg); border-radius: 999px; }
.edit-meter-bar::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.edit-meter-bar::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.edit-meter.at-limit .edit-meter-bar::-webkit-progress-value { background: var(--warn); }
.edit-meter.at-limit .edit-meter-bar::-moz-progress-bar { background: var(--warn); }
.limit-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: .75rem 0; }
.limit-option { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; }
.limit-option-main { border: 2px solid var(--brand); }
.limit-option h3 { margin: 0 0 .25rem; font-size: 1rem; }
.limit-option p { margin: 0 0 .6rem; }

/* Get reviews ($129 plan) */
.reviews-card h2.gr-h { font-size: 1rem; margin: 1rem 0 .5rem; }
.gr-bubble { background: #eef2fb; border-radius: 16px; padding: .85rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 36rem; }
.gr-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 .4rem; }
.gr-actions .btn { min-width: 7.5rem; text-align: center; padding: .7rem 1.1rem; }
.gr-email { margin: .75rem 0; } .gr-email summary { cursor: pointer; font-weight: 600; }
.gr-email-body { background: #f7f8fb; border: 1px solid var(--line); border-radius: 8px; padding: .75rem; overflow-wrap: anywhere; }
.reviews-card a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .gr-actions .btn { flex: 1 1 100%; } }
.reviews-card [hidden] { display: none !important; }

/* ---------- Prospect landing page (/trial): tabs Go live, Your pages, Changes. Phone first: most visitors scan the postcard QR. ---------- */
.trial-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: .25rem; margin: -.5rem 0 1rem; padding: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 8px rgba(16,26,51,.06); }
.trial-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: .35rem .5rem; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .95rem; text-align: center; line-height: 1.15; }
.trial-tabs a:hover { text-decoration: none; background: var(--brand-soft); }
.trial-tabs a.active { background: var(--brand); color: #fff; }
.tab-count { font-size: .7rem; font-weight: 600; opacity: .85; }
.btn-big { padding: .75rem 1.25rem; font-size: 1.02rem; border-radius: 10px; }
.trial-hero { text-align: center; padding: 1.75rem 1.25rem; }
.trial-hero h1 { font-size: 1.7rem; margin: .5rem 0; }
.trial-domain-label { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.trial-domain { margin: .1rem 0 .25rem; font-size: clamp(1.15rem, 5.4vw, 2.4rem); font-weight: 800; color: var(--brand); overflow-wrap: anywhere; line-height: 1.15; }
.trial-cta-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0 .5rem; }
.try-box { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.try-box h2 { font-size: 1.3rem; }
.trial-left { margin: .75rem 0; }
.trial-left .trial-left-num { color: var(--brand); }
.trial-left-big { font-size: 1.1rem; }
.trial-left-big .trial-left-num { font-size: 1.6rem; }
.trial-left.at-limit .trial-left-num { color: var(--warn); }
.idea-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.idea-chip { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .85rem; border: 1px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); font-weight: 600; font-size: .92rem; }
.idea-chip::before { content: "+"; margin-right: .35rem; font-weight: 800; }
.idea-chip:hover { text-decoration: none; background: var(--brand-soft); }
.site-thumb { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--grey-bg); }
.site-thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.site-thumb-big { aspect-ratio: 4 / 3; max-width: 760px; margin: 0 auto; }
@media (min-width: 861px) { .site-thumb-big { aspect-ratio: 16 / 10; } .try-fab { display: none; } }
.site-thumb-big iframe { width: 250%; height: 250%; transform: scale(.4); }
.preview-frame-link { display: block; }
.trial-plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: .5rem; }
.trial-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.trial-plan-mid { border-color: var(--brand); }
.trial-plan h3 { margin: 0; }
.trial-plan-price { margin: .2rem 0 .5rem; font-size: 1.6rem; font-weight: 800; }
.trial-plan-price span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.trial-plan ul { margin: 0; padding-left: 1.1rem; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.page-card { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.page-card h3 { margin: .4rem 0 0; }
.page-card p { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.page-group summary { cursor: pointer; min-height: 32px; }
.page-list { list-style: none; margin: .75rem 0 0; padding: 0; }
.page-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.open-change { border: 2px solid var(--brand); }
.option-list { display: grid; gap: .5rem; margin: .75rem 0; }
.option-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.option-row .inline-form { margin: 0; }
.change-history { list-style: none; margin: 0; padding: 0; }
.change-history li { padding: .55rem 0; border-top: 1px solid var(--line); }
.change-history li:first-child { border-top: 0; }
.try-form textarea { font-size: 1rem; }
.try-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 6; padding: .8rem 1.15rem; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(47,91,234,.35); }
.try-fab:hover { text-decoration: none; color: #fff; }
@media (max-width: 860px) { .trial-plan-cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .trial-landing ~ .try-fab, .try-fab { left: 1rem; right: 1rem; text-align: center; }
  .trial-landing { padding-bottom: 4rem; }
  .trial-tabs { margin-top: -1rem; border-radius: 14px; }
  .trial-tabs a { border-radius: 10px; font-size: .9rem; }
  .trial-cta-row .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .page-actions .btn { flex: 1 1 100%; text-align: center; justify-content: center; }
  .page-grid { gap: .6rem; }
  .page-card { display: grid; grid-template-columns: 120px 1fr; grid-template-areas: "thumb name" "thumb url" "acts acts"; column-gap: .75rem; row-gap: .2rem; padding: .85rem; }
  .page-card > a:first-child { grid-area: thumb; }
  .page-card h3 { grid-area: name; margin: 0; align-self: end; }
  .page-card > p { grid-area: url; align-self: start; }
  .page-card .page-actions { grid-area: acts; margin-top: .5rem; flex-wrap: nowrap; }
  .page-card .page-actions .btn { flex: 0 0 auto; }
  .page-card .page-actions .btn-primary { flex: 1 1 auto; }
  .try-form .btn-big, .try-box .btn-big { width: 100%; text-align: center; justify-content: center; }
}
/* Terms, What you own, Get your domain back (2026-10-28) */
.legal { max-width: 46rem; margin: 0 auto 1.25rem; line-height: 1.6; }
.legal h1 { margin-top: 0; } .legal h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.legal .updated { color: var(--muted); margin-top: 0; } .legal .lead { font-size: 1.05rem; }
.legal ul, .legal ol { padding-left: 1.25rem; } .legal li { margin: .3rem 0; }
.legal-faq { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .5rem; }
.footer a { color: inherit; }
.switch-free { background: #eef6f1; border: 1px solid #cfe5d8; border-radius: var(--radius); padding: .75rem 1rem; margin: .75rem 0; }
.content-rights { display: flex; gap: .5rem; align-items: flex-start; margin: .75rem 0; font-size: .92rem; }
.content-rights input { margin-top: .25rem; flex: none; }
.container.narrow:has(> .legal) { max-width: 50rem; display: block; }

/* Prospect sites dashboard: server-rendered SVG line charts (src/views/line-chart.ts). Wide chart on desktop, compact on phones. */
.ch-fig { margin: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-half, .chart-narrow { display: none; }
@media (max-width: 600px) { .chart-full { display: none; } .chart-narrow { display: block; } }
/* Side by side on wide screens, stacked below. */
@media (min-width: 1000px) {
  .ch-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
  .ch-pair > .card { margin-bottom: 0; }
  .chart-full { display: none; } .chart-half { display: block; }
}
.ch-pair { margin-bottom: 1.25rem; }
.ch-hint { margin-top: -.5rem; }
/* Hover readout (public/prospect-charts.js). */
.ch-plot { position: relative; }
.ch-live .chart { cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ch-cross { stroke: #7a849a; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
circle.ch-hi { stroke: #fff; stroke-width: 2; pointer-events: none; }
.ch-tip { position: absolute; top: .25rem; z-index: 2; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16,26,51,.14); padding: .45rem .6rem; font-size: .82rem; line-height: 1.35; min-width: 9.5rem; white-space: nowrap; }
.ch-tip[hidden] { display: none; }
.ch-tip-day { font-weight: 700; margin-bottom: .2rem; }
.ch-tip-grid { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .1rem .45rem; }
.ch-tip-h { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.ch-tip-label { padding-right: .5rem; }
.ch-tip-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-tip-chg { font-weight: 600; color: var(--muted); padding-left: .35rem; }
.ch-tip-chg.up { color: var(--ok); } .ch-tip-chg.down { color: var(--bad); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: #b8c1d3; stroke-width: 1; }
.ch-xlab, .ch-ylab { fill: var(--muted); }
.ch-line { stroke: #6b4fbb; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: #6b4fbb; stroke: #fff; stroke-width: 1; }
.ch-total { stroke: var(--brand); fill: var(--brand); }
.ch-line.ch-total { stroke-dasharray: 6 4; }
polyline.ch-line { fill: none; }
.ch-pass { stroke: var(--ok); fill: var(--ok); }
.ch-hold { stroke: #e08a00; fill: #e08a00; }
.ch-fail { stroke: var(--bad); fill: var(--bad); }
.ch-unchecked { stroke: #8a94a8; fill: #8a94a8; }
.ch-excluded { stroke: #8a94a8; fill: #8a94a8; }
.ch-legend { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.ch-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.ch-swatch { display: inline-block; width: 1.1rem; height: .3rem; border-radius: 2px; background: currentColor; }
.ch-swatch.ch-total { background: var(--brand); } .ch-swatch.ch-pass { background: var(--ok); } .ch-swatch.ch-hold { background: #e08a00; }
.ch-swatch.ch-fail { background: var(--bad); } .ch-swatch.ch-unchecked, .ch-swatch.ch-excluded { background: #8a94a8; }
.stat.ch-stat-pass { border-left-color: var(--ok); }
@media (max-width: 600px) { .ch-legend { flex-direction: column; } }
.ch-live .chart:focus { outline: none; }
.ch-live .chart:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Admin dashboard cost cards (src/views/admin-costs.ts). */
.costs { margin-bottom: 1.25rem; }
.costs-head { margin-bottom: .75rem; } .costs-head form { margin: 0; }
.alert.alert-warn { background: var(--warn-bg); color: var(--warn); }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; align-items: start; }
.cost-card { margin-bottom: 0; border-top: 4px solid var(--line); }
.cost-card h3 { margin: 0; font-size: 1.02rem; }
.cost-ok { border-top-color: var(--ok); } .cost-warn { border-top-color: #e08a00; } .cost-bad { border-top-color: var(--bad); } .cost-info { border-top-color: var(--brand); }
.cost-badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.cost-badge-ok { background: var(--ok-bg); color: var(--ok); } .cost-badge-warn { background: var(--warn-bg); color: var(--warn); }
.cost-badge-bad { background: var(--bad-bg); color: var(--bad); } .cost-badge-info { background: var(--info-bg); color: var(--info); }
.cost-headline { font-size: 1.7rem; font-weight: 700; line-height: 1.2; margin: .25rem 0 .2rem; }
.cost-est { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); background: var(--warn-bg); padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; }
.cost-status { margin: 0 0 .75rem; font-weight: 600; }
.cost-warn .cost-status { color: var(--warn); } .cost-bad .cost-status { color: var(--bad); } .cost-ok .cost-status { color: var(--ok); }
.cost-facts { margin: 0; display: grid; gap: .35rem; }
.cost-facts > div { display: grid; grid-template-columns: 8.75rem 1fr; gap: .5rem; font-size: .9rem; }
.cost-facts dt { color: var(--muted); } .cost-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.cost-notes { margin: .75rem 0 .25rem; padding-left: 1.1rem; }
.cost-error { color: var(--bad); margin: .6rem 0 0; }
@media (max-width: 600px) { .cost-facts > div { grid-template-columns: 1fr; gap: 0; } }

/* ===== Staff area on phones and small tablets (Peter, 2026-11-01: "Menu and site for admin not mobile friendly").
   Everything is scoped to body.admin so client and prospect pages are unchanged. ===== */
.admin-topbar .nav-current, .admin-topbar .nav-menu { display: none; }
.filters-check { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.filter-card { position: relative; }
.filters-toggle { display: none; }
@media (max-width: 860px) {
  body.admin .admin-topbar { position: sticky; top: 0; z-index: 20; gap: .75rem; padding: 0 .75rem 0 1rem; min-height: 56px; flex-wrap: nowrap; }
  body.admin .admin-topbar .nav-wide { display: none; }
  body.admin .admin-topbar .nav-current { display: block; flex: 1; min-width: 0; color: #c9d3ee; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.admin .admin-topbar .brand { flex: 0 0 auto; }
  body.admin .admin-topbar .nav-menu { display: block; margin-left: auto; }
  body.admin .nav-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(255,255,255,.28);
    border-radius: 10px; color: #fff; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  body.admin .nav-menu > summary::-webkit-details-marker { display: none; }
  body.admin .nav-menu > summary:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; }
  body.admin .nav-burger, body.admin .nav-burger::before, body.admin .nav-burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
  body.admin .nav-burger::before { position: absolute; top: -6px; } body.admin .nav-burger::after { position: absolute; top: 6px; }
  body.admin .nav-menu[open] .nav-burger { background: transparent; }
  body.admin .nav-menu[open] .nav-burger::before { top: 0; transform: rotate(45deg); } body.admin .nav-menu[open] .nav-burger::after { top: 0; transform: rotate(-45deg); }
  body.admin .nav-menu[open] > summary { background: rgba(255,255,255,.12); }
  body.admin .nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: #101a33; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(16,26,51,.35);
    padding: .4rem .75rem .9rem; max-height: calc(100vh - 56px); overflow-y: auto; }
  body.admin .nav-panel nav { display: flex; flex-direction: column; }
  body.admin .nav-panel nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 .85rem; border-radius: 10px; color: #dfe6f7; font-size: 1.05rem; }
  body.admin .nav-panel nav a + a { border-top: 1px solid rgba(255,255,255,.07); }
  body.admin .nav-panel nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; box-shadow: inset 4px 0 0 var(--brand); }
  body.admin .nav-here { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #9fb4ff; }
  body.admin .nav-account { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .6rem 0 0; padding: .7rem .85rem 0; border-top: 1px solid rgba(255,255,255,.15); }
  body.admin .nav-account a { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; color: #dfe6f7; }
  body.admin .nav-account .btn { min-height: 44px; }

  /* Inputs at 16px so iOS does not zoom in on focus. */
  body.admin input, body.admin select, body.admin textarea { font-size: 16px; }
  body.admin .container { padding: 1.25rem 1rem 2.5rem; }
}
@media (max-width: 640px) {
  body.admin main { overflow-wrap: anywhere; }
  body.admin .card { padding: 1rem; }
  body.admin .page-head.split { flex-direction: column; align-items: stretch; gap: .75rem; }
  body.admin .card-head { flex-wrap: wrap; }
  /* Forms: one column, full-width fields and buttons with 44px targets. */
  body.admin .inline-form { flex-direction: column; align-items: stretch; }
  body.admin .inline-form > *, body.admin .inline-form label, body.admin .inline-form input, body.admin .inline-form select { width: 100%; max-width: none; }
  body.admin main form .btn, body.admin main form button, body.admin main .btn { min-height: 44px; }
  body.admin main form .btn { width: 100%; text-align: center; justify-content: center; }
  body.admin .costs-head .btn { width: auto; }
  body.admin .seg { overflow-x: auto; scrollbar-width: none; } body.admin .seg::-webkit-scrollbar { display: none; }
  body.admin .seg-btn, body.admin a.seg-btn { flex: 1 0 auto; white-space: nowrap; min-height: 40px; }
  body.admin .site-filter-actions { display: flex; flex-direction: column; gap: .5rem; }
  body.admin input:not([type=checkbox]):not([type=radio]), body.admin select { min-height: 44px; }
  /* Filters collapse behind a "Filters" toggle (checkbox, no JS needed). */
  body.admin .filters-toggle { display: flex; justify-content: center; width: 100%; min-height: 44px; align-items: center; margin: 0; }
  body.admin .filters-body { display: none; margin-top: 1rem; }
  body.admin .filters-check:checked ~ .filters-body { display: grid; grid-template-columns: 1fr; }
  body.admin .filters-check:focus-visible + .filters-toggle { outline: 3px solid rgba(47,91,234,.3); }
  /* Tables become stacked cards: one card per row, header text as each value's label (data-label from labelTables).
     .table-scroll keeps a wide matrix as a sideways scroll with a sticky first column instead. */
  body.admin .table-wrap:not(.table-scroll) table, body.admin .table-wrap:not(.table-scroll) tbody { display: block; width: 100%; }
  body.admin .table-wrap:not(.table-scroll) thead { display: none; }
  body.admin .table-wrap:not(.table-scroll) tr { display: block; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; margin-bottom: .7rem; background: #fff; }
  /* Classic stacked layout: the label sits in a left gutter, everything in the cell stays in the right column. */
  body.admin .table-wrap:not(.table-scroll) td { display: block; position: relative; min-height: 1.9rem; border: 0; padding: .3rem 0 .3rem 38%; text-align: left; white-space: normal; }
  body.admin .table-wrap:not(.table-scroll) td::before { content: attr(data-label); position: absolute; left: 0; top: .4rem; width: 35%; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }
  body.admin .table-wrap:not(.table-scroll) td[data-label=""] { padding-left: 0; min-height: 0; }
  body.admin .table-wrap:not(.table-scroll) td[data-label=""]::before { display: none; }
  body.admin .table-wrap:not(.table-scroll) td:first-child { padding: .3rem 0 .5rem; font-size: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .25rem; min-height: 0; }
  body.admin .table-wrap:not(.table-scroll) td:first-child::before { display: none; }
  body.admin .table-wrap:not(.table-scroll) td:only-child { border-bottom: 0; margin: 0; }
  body.admin .table-wrap:not(.table-scroll) td.num { text-align: left; }
  body.admin .table-wrap:not(.table-scroll) td .inline-form { flex-direction: row; flex-wrap: wrap; }
  body.admin .table-scroll { -webkit-overflow-scrolling: touch; }
  body.admin .table-scroll th:first-child, body.admin .table-scroll td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); min-width: 9.5rem; max-width: 11rem; white-space: normal; }
  body.admin .tabs { flex-wrap: wrap; }
  body.admin .tabs a { min-height: 40px; display: inline-flex; align-items: center; }
}
