:root {
  color-scheme: light;
  --ink: #1c1915;
  --muted: #5e584e;
  --line: #e3dcd2;
  --paper: #f6f3ee;
  --card: #fffdfb;
  --bad: #7a2e24;
  --bad-bg: #f8e8e4;
  --good: #1f4d38;
  --good-bg: #e7f3ec;
  --wait: #6a5420;
  --wait-bg: #f6efd8;
  --note: #243656;
  --note-bg: #e8eef8;
  --button: #1c1915;
  --button-text: #fffdfb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem 0;
}

.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav-add { color: var(--ink); font-weight: 650; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }
.narrow { max-width: 36rem; }

h1 { font-size: 1.8rem; line-height: 1.15; margin: 0 0 0.35rem; letter-spacing: -0.03em; }
h2 { font-size: 1.15rem; margin: 0; }
h3 { font-size: 1rem; margin: 0 0 0.35rem; }

.lead, .hint, .meta, .foot { color: var(--muted); }
.crumb { margin: 0 0 0.75rem; }
.eyebrow { margin: 0 0 0.35rem; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.welcome, .block-head, .site-card-top, .status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.kpis, .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.1rem 0 0.4rem;
}

.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 0.8rem; }
.buy { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.kpi, .panel, .plain, .site-card, .example {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.kpi { padding: 0.9rem 1rem; }
.kpi span { display: block; color: var(--muted); font-size: 0.85rem; }
.kpi strong { display: block; font-size: 1.7rem; letter-spacing: -0.03em; margin-top: 0.15rem; }

.block { margin-top: 1.6rem; }
.block-head { align-items: center; margin-bottom: 0.2rem; }

.panel, .plain, .example { padding: 1.1rem 1.15rem; }
.panel { margin: 1rem 0; }
.plain p, .site-card p, .example p { margin: 0.25rem 0 0; }

.site-card { display: block; padding: 1rem 1.05rem; text-decoration: none; }
.site-card:hover { border-color: #cfc6ba; }
.site-card h3 { overflow-wrap: anywhere; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.82rem;
  border: 1px solid var(--line);
}
.pill.ok { background: var(--good-bg); color: var(--good); border-color: transparent; }
.pill.wait { background: var(--wait-bg); color: var(--wait); border-color: transparent; }
.status-row { margin: 0.4rem 0 0.6rem; }

.filters { display: flex; gap: 0.4rem; }
.chip {
  margin: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.chip.on { background: var(--button); color: var(--button-text); border-color: var(--button); }

.results { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.results li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.results a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; }
.results span, .results p { color: var(--muted); }
.results p { margin: 0.25rem 0 0; }

.example { margin-top: 1.4rem; }
.empty { padding: 0.4rem 0 0.2rem; }

label, legend { display: block; font-size: 0.92rem; margin-top: 0.9rem; }
.check { font-size: 1rem; margin-top: 0.7rem; }
fieldset { border: 0; margin: 0; padding: 0; }

input[type="email"], input[type="password"], input[type="text"], input:not([type]), select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: white;
}

button, .button {
  display: inline-block;
  margin-top: 0;
  background: var(--button);
  color: var(--button-text);
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

form button { margin-top: 1rem; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.text { background: transparent; color: var(--muted); padding: 0; }

.banner { padding: 0.75rem 0.9rem; border-radius: 10px; margin: 0 0 1rem; }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.good { background: var(--good-bg); color: var(--good); }
.banner.note { background: var(--note-bg); color: var(--note); }

.record { margin: 0.5rem 0 0; }
.record div { display: grid; grid-template-columns: 5rem 1fr; gap: 0.5rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.record dt { color: var(--muted); }
.record dd { margin: 0; overflow-wrap: anywhere; }
code { font-family: Consolas, monospace; font-size: 0.92rem; }

.sites { list-style: none; padding: 0; margin: 1rem 0 0; }
.sites li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.sites span { color: var(--muted); }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; row-gap: 0.4rem; }
  .nav { width: 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 0.3rem; }
  .nav form button { margin-top: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { align-items: stretch; }
}

pre.note { white-space: pre-wrap; word-break: break-word; font: inherit; background: rgba(0,0,0,.04); padding: 12px; border-radius: 8px; user-select: all; }
.qr { margin: 0.6rem 0; }
.qr svg { display: block; max-width: 100%; height: auto; border-radius: 8px; }
pre.copy { white-space: pre-wrap; word-break: break-all; background: rgba(0,0,0,.04); padding: 12px; border-radius: 8px; user-select: all; }
form.verdict { margin-top: 8px; }
h3.group { margin: 1.4rem 0 0; }
.finding { border-left: 4px solid var(--line); }
.finding.r1 { border-left-color: var(--bad); }
.finding.r2 { border-left-color: var(--wait); }
.finding.r1 > .eyebrow { color: var(--bad); font-weight: 650; }
.finding.r2 > .eyebrow { color: var(--wait); font-weight: 650; }
.finding.off { border-left-color: var(--line); opacity: 0.75; }
.finding.off > .eyebrow { color: var(--muted); font-weight: 400; }
.tally { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; }
.pill { padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.88rem; background: var(--note-bg); color: var(--note); }
.pill.r1 { background: var(--bad-bg); color: var(--bad); }
.pill.r2 { background: var(--wait-bg); color: var(--wait); }
details.more { margin: 1.2rem 0 0; }
details.more > summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
ul.pair { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); }
.copybox { position: relative; }
.copybox pre { padding-top: 40px; margin: 0 0 12px; }
.copy-button { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 32px; font-size: 13px; }
.scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(0,0,0,.12); }
table.grid th { font-weight: 600; white-space: nowrap; }
@media print {
  header, nav, .crumb, .button, form { display: none !important; }
  .panel { break-inside: avoid; border: 0; padding: 0; }
  details.more::details-content { content-visibility: visible; display: block; }
  table.grid { font-size: 11px; }
}

/* a link that looks like the secondary button (Sign in with Google) */
a.button-link { display: inline-block; padding: 0.6rem 1rem; border: 1px solid var(--muted); border-radius: 8px; text-decoration: none; color: inherit; }

/* Server guard page: what fits each site */
.site-fit { border-top: 1px solid var(--line); padding: 0.7rem 0 0.2rem; }
.site-fit:first-of-type { border-top: 0; }
.fit-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; justify-content: space-between; margin: 0.45rem 0; }
.fit-row > span { flex: 1 1 14rem; }
.fit-row details { flex: 1 1 100%; }
ul.sites li details.change { flex: 1 1 100%; }
ul.sites li { flex-wrap: wrap; }
.panel li, .panel p { overflow-wrap: anywhere; }

/* Front page */
.hero { max-width: 40rem; padding: 3.5rem 0 2rem; }
.hero h1 { font-size: 2.3rem; margin-bottom: 0.8rem; }
.hero .lead { font-size: 1.1rem; margin: 0 0 1.5rem; }
a.button-link.solid { background: var(--button); color: var(--button-text); border-color: var(--button); font-weight: 650; }
@media (max-width: 40rem) { .hero { padding-top: 2rem; } .hero h1 { font-size: 1.8rem; } }
