:root {
  /* Same palette and type as iamheretohelp.net */
  --bg: #0B0E11; --panel: #12161B; --panel-2: #1A2028; --ink: #F5F7F9; --muted: #9BA7B4; --faint: #6B7684; --line: #262D36;
  --accent: #45E0C4; --accent-ink: #0B0E11; --green: #3DDC97; --amber: #FFB454; --red: #FF6B6B; --grey: #6B7684;
  --in: #1A2028; --out: #45E0C4; --out-ink: #0B0E11; --owner: #231d12;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; font-size: 17px; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--ink); }
.banner { background: #231d12; color: var(--amber); padding: 10px 24px; font-size: 14px; border-bottom: 1px solid #4a3818; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tile b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 13px; }
a.tile-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.tile-link:hover { border-color: var(--accent); transform: translateY(-1px); }
a.tile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--panel) 92%, var(--ink)); }
tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: color-mix(in srgb, var(--panel) 94%, var(--accent)); }
td.num { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-green { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.s-amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.s-red { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.s-paused, .s-new, .s-pending, .s-skipped { color: var(--grey); background: color-mix(in srgb, var(--grey) 14%, transparent); }
.s-pass { color: var(--green); } .s-fail { color: var(--red); }
.reasons { margin: 4px 0 0; padding-left: 16px; font-size: 13px; color: var(--muted); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
button, .btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover, a.btn.primary:hover { background: #5CE9CF; }
button.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, transparent); }
button.danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
button:hover, .btn:hover { border-color: var(--accent); }
button:disabled { opacity: .5; cursor: wait; }
code, .code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--in); padding: 2px 6px; border-radius: 5px; }
.bigcode { display: inline-block; font-size: 20px; padding: 8px 14px; margin: 6px 0; user-select: all; }

form.client label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 4px; }
form.client .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, textarea, select { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
.error { color: var(--red); font-weight: 600; }

.thread { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border-radius: 10px; max-height: 480px; overflow-y: auto; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; font-size: 14px; }
.bubble.in { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bubble.out { align-self: flex-start; background: var(--in); border-bottom-left-radius: 4px; }
.bubble.owner { align-self: center; background: var(--owner); border: 1px dashed var(--amber); max-width: 92%; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 3px; }
.convo { border-top: 1px solid var(--line); padding: 12px 0; }
.convo:first-child { border-top: 0; }
details summary { cursor: pointer; }

h3 { font-size: 15px; margin: 0 0 10px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stars { color: var(--amber); letter-spacing: 1px; }
.reviews { display: flex; flex-direction: column; gap: 12px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review-text { margin: 8px 0; white-space: pre-wrap; }
.review .reply { background: var(--in); border-radius: 8px; padding: 8px 12px; white-space: pre-wrap; font-size: 14px; }
.review .reply-box { margin-bottom: 8px; }
.review .redraft-note { flex: 1; min-width: 180px; }
.small-btn, button.small-btn { font-size: 12px; padding: 4px 8px; white-space: nowrap; }
a.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); display: inline-block; }
.checkin { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: var(--owner); border: 1px dashed var(--amber); border-radius: 10px; padding: 10px 14px; max-width: 520px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--amber); color: var(--accent-ink); font-size: 11px; font-weight: 700; text-align: center; margin-left: 4px; }
a.link-card { display: block; color: var(--ink); }
a.link-card:hover { border-color: var(--accent); }
.meter { height: 10px; background: var(--in); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); }
.code-block { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--in); padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre; }
.report-frame { width: 100%; height: 1100px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin-top: 12px; }
form.client h2.form-h { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 26px; }
form.client h2.form-h:first-child { border-top: 0; padding-top: 0; margin-top: 4px; }
input.saved, select.saved { border-color: var(--green); }
details.card > summary { cursor: pointer; }
td select { min-width: 112px; }

.checklist { list-style: none; margin: 0; padding: 4px 18px; }
.checklist li.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li.check:first-child { border-top: 0; }
.checklist li.check input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.checklist .check-body { flex: 1; }
.checklist li.done .check-body > div:first-child { color: var(--muted); }
.checklist li.na { opacity: .6; }

/* ---- Brand: logo + display type (matches iamheretohelp.net) ---- */
h1, h2, h3, .brand, .tile b, .stat b { font-family: var(--font-display); letter-spacing: -.01em; }
.brand { font-weight: 700; }
.brand .word { font-family: var(--font-display); }
.brand .sub { font-family: "Inter", sans-serif; font-weight: 400; color: var(--muted); font-size: 14px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.logo-mark svg { width: 18px; height: 18px; }
.top { background: rgba(11, 14, 17, .92); backdrop-filter: blur(8px); }
.tile, .card, .review, table, .lead-card { background: var(--panel); }
.tile b { color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input, textarea, select { background: var(--bg); }
.pill.s-green, .s-green { color: var(--green); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.meter span { background: var(--accent); }
code, .code { background: var(--panel-2); color: var(--accent); }
.checkin { background: var(--owner); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
nav { flex-wrap: wrap; gap: 6px 16px; }
