:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ok: #16a34a;
  --warn: #b45309;
  --danger: #dc2626;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: .9em; word-break: break-all; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.1rem; color: #334155; max-width: 680px; }
.center { text-align: center; }
.narrow { max-width: 440px; margin: 40px auto; }
.inline { display: inline; margin: 0; }

/* Nav & footer */
.nav { background: var(--card); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.nav nav { display: flex; align-items: center; gap: 16px; }
.nav nav a:not(.btn) { color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #0a0a0a; }
.logo:hover { text-decoration: none; }
.logo-mark { display: block; flex-shrink: 0; border-radius: 8px; transition: transform .2s; }
.logo-word { font-weight: 800; font-size: 1.18rem; letter-spacing: -.035em; line-height: 1; }
.logo-tld { color: #8a8a8a; font-weight: 600; letter-spacing: -.01em; }
/* Needle sweeps up into place on load, nudges higher on hover */
.logo-needle { transform-box: view-box; transform-origin: 16px 17px; animation: logo-sweep 1.1s cubic-bezier(.3, 1.4, .5, 1) .15s both; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.logo-arc { stroke-dasharray: 26 26; animation: logo-fill 1.1s cubic-bezier(.22, .8, .25, 1) .15s both; }
@keyframes logo-sweep { from { transform: rotate(-130deg); } }
@keyframes logo-fill { from { stroke-dashoffset: 26; } }
.logo:hover .logo-needle { transform: rotate(28deg); }
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .logo-needle, .logo-arc { animation: none; }
  .logo-needle, .logo-mark { transition: none; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer { border-top: 1px solid var(--border); background: var(--card); font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; }

/* Buttons & forms */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: #eff6ff; }
.btn-google { background: #fff; color: var(--text); border-color: var(--border); }
.btn-google:hover { background: #f1f5f9; }
button.link { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0; }
button.link:hover { text-decoration: underline; }
.danger { color: var(--danger) !important; }
input[type=text], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid #bfdbfe; border-color: var(--brand); }
label { display: block; margin-bottom: 14px; font-weight: 500; }
label input, label textarea, label select { margin-top: 4px; font-weight: 400; }
.row { display: flex; gap: 8px; margin-top: 6px; }
.row input { flex: 1; }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card > h2:first-of-type, .card > h3:first-of-type { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; border: 1px solid; }
.flash-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Home */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 2.6rem; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 10px; }
.search { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 460px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.steps .card { margin: 0; }
.steps p { margin: 0; }
.step { width: 30px; height: 30px; border-radius: 50%; background: #eff6ff; color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; color: var(--text); font-size: .9rem; }
.chip:hover { border-color: var(--brand); text-decoration: none; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); font-weight: 600; background: #f8fafc; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table th .attrib { display: block; font-weight: 400; font-size: .7rem; }
.dr-pill { display: inline-block; min-width: 40px; text-align: center; color: #fff; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.tag-ok { background: #dcfce7; color: #166534; }
.tag-warn { background: #fef3c7; color: #92400e; }
.tag-info { background: #e0f2fe; color: #075985; }
.up { color: var(--ok); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }
.pager { display: flex; justify-content: space-between; margin-top: 16px; }

/* Site pages */
.site-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.site-header h1 { word-break: break-all; }
.dr-box { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 32px; }
.dr-label { color: var(--muted); font-size: .9rem; }
.dr-value { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.attrib { font-size: .8rem; color: var(--muted); }
.chart-wrap { position: relative; height: 280px; }
.copy-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f1f5f9; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.copy-box code { background: none; padding: 0; }
textarea.code { font: 13px/1.5 ui-monospace, Menlo, monospace; background: #f8fafc; margin-bottom: 8px; }
.danger-zone { margin-top: 32px; }
.prose { max-width: 720px; }

/* Dashboard */
.summary { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.summary-item { padding: 14px 18px; border-right: 1px solid var(--border); min-width: 0; }
.summary-item:last-child { border-right: 0; }
.summary-value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.summary-label { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-domain { text-align: center; margin: 36px auto 32px; max-width: 420px; }
.add-domain label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 12px; }
.pill-input { display: flex; border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.pill-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px #dbeafe; }
.pill-input input { border: 0; border-radius: 0; padding: 14px 22px; font-size: 1.05rem; outline: none; background: transparent; }
.pill-input input:focus { outline: none; }
.pill-input button { border: 0; background: #0f172a; color: #fff; width: 62px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.pill-input button:hover { background: var(--brand); }
.limit-note { text-align: center; margin: 28px 0; }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
.site-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(15, 23, 42, .08); color: var(--text); overflow: hidden; transition: transform .12s, box-shadow .12s; }
.site-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, .12); }
.site-card-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px 10px; }
.site-card-info { min-width: 0; }
.site-card-domain { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.05rem; }
.site-card-domain span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-domain img { flex-shrink: 0; border-radius: 3px; }
.site-card-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.spark { display: block; width: 100%; height: 36px; margin-top: auto; }
.site-card-foot { font-size: .7rem; color: var(--muted); padding: 4px 16px 10px; }
.empty { padding: 36px 20px; }
.ring { display: block; flex-shrink: 0; }
.ring-arc { animation: ring-fill 1.2s cubic-bezier(.22, .8, .25, 1) both; }
@keyframes ring-fill { from { stroke-dashoffset: var(--len); } }
.site-card:nth-child(2) .ring-arc { animation-delay: .08s; }
.site-card:nth-child(3) .ring-arc { animation-delay: .16s; }
.site-card:nth-child(n+4) .ring-arc { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .ring-arc { animation: none; }
}


/* Site page */
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.site-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-title img { border-radius: 6px; }
.site-title h1 { margin: 0; word-break: break-all; }
.site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-actions .btn { height: 38px; }
.btn-icon { width: 38px; padding: 0; justify-content: center; }
.btn.loading svg { animation: spin .8s linear infinite; }
.btn.loading { pointer-events: none; opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-stack { position: fixed; top: 76px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px;
  border-radius: 12px; color: #fff; font-size: .92rem; line-height: 1.45;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .22); opacity: 0; transform: translateX(28px); cursor: pointer;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }
.toast-ok { background: #15803d; }
.toast-error { background: #b91c1c; }
.toast-icon { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.toast-text { flex: 1; }
.toast-close { border: 0; background: transparent; color: inherit; opacity: .75; font-size: 1.3rem; line-height: 1; padding: 0 4px; cursor: pointer; }
.toast-close:hover { opacity: 1; }
@media (max-width: 600px) {
  .toast-stack { top: 68px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .2s; transform: none; }
}
.btn-dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-share { background: #4ade80; border-color: #4ade80; color: #fff; }
.btn-share:hover { background: #22c55e; }
.refresh-note { font-size: .8rem; color: var(--muted); margin: 0 0 20px; }
.overview { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-bottom: 20px; }
.overview .card { margin: 0; }
.dr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.dr-card-title { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; }
.chart-card { display: flex; flex-direction: column; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.chart-head h2 { margin: 0; }
.chart-card .chart-wrap { flex: 1; min-height: 240px; }
.chart-empty { flex: 1; display: grid; place-items: center; min-height: 200px; }
.range-chips { display: flex; gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 8px; }
.range-chips button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.range-chips button.active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.stat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-cell { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.stat-cell-label { font-size: .75rem; color: var(--muted); }
.stat-cell-value { font-size: 1.35rem; font-weight: 800; }
.stat-cell-value.small-value { font-size: 1rem; padding: 4px 0; }
.stat-cell-sub { font-size: .72rem; color: var(--muted); }

.site-subtitle { color: #334155; margin: 0 0 16px; }
.site-head + .overview { margin-top: 16px; }
.listing-status { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 20px; font-size: .92rem; }
.listing-status.is-listed { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.listing-status.not-listed { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.listing-status a { word-break: break-all; }
.warn-text { color: var(--warn); }
.dash-hint { font-size: .85rem; color: var(--muted); text-align: center; margin: -12px 0 24px; }
.site-info .card { margin: 0; }
.site-info { margin-bottom: 24px; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: #eff6ff; border-color: #dbeafe; }
.badge-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badge-preview > p { margin: 0; }

/* Badge builder */
.badge-section { background: #ecfdf3; border-color: #d1fadf; text-align: center; }
.badge-section > p { max-width: 640px; margin: 0 auto 20px; }
.badge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; text-align: left; }
.badge-options { background: #fff; border-radius: 14px; padding: 18px 22px; margin: 0; }
.badge-options h3 { margin: 0 0 12px; font-size: 1.15rem; }
.opt-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.opt-label { width: 80px; flex-shrink: 0; font-weight: 500; font-size: .95rem; padding-top: 3px; margin: 0; }
.opt-text { flex: 1; }
.opt-text input { padding: 5px 10px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio { margin: 0; font-weight: 400; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #e5e7eb; font-size: .9rem; min-width: 34px; text-align: center; }
.chip-radio span.italic { font-style: italic; }
.chip-radio input:checked + span { background: #16a34a; color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.badge-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.badge-stage { min-height: 90px; display: grid; place-items: center; }
.badge-stage img { max-width: 100%; }
.badge-preview .code { font-size: 12px; }

/* Black & white theme (home, directory, sign-in): body.mono */
.mono { --ink: #0a0a0a; --paper: #ffffff; --soft: #f5f5f5; --line: #e7e7e7; --mute: #6b6b6b; background: var(--paper); overflow-x: clip; }
.mono .nav { border-bottom-color: var(--line); }
.mono .logo-tld { color: var(--mute); }
.page-home main.wrap { padding-top: 0; padding-bottom: 0; }
.mono .footer { background: var(--paper); border-top-color: var(--line); color: var(--mute); }
.mono .footer a { color: var(--ink); }
.mono { color: var(--ink); }
.mono a { color: var(--ink); }
.mono .btn-dark, .mono .btn-dark:hover { color: var(--paper); }
.mono .attrib { color: var(--mute); }
.mono .attrib a { text-decoration: underline; }
.h-badges-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 14px; }

.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; border: 1.5px solid var(--ink); transition: transform .12s, background .12s, color .12s; }
.h-btn:hover { text-decoration: none; transform: translateY(-1px); }
.mono .h-btn-dark { background: var(--ink); color: var(--paper); }
.mono .h-btn-dark:hover { background: #262626; }
.mono .h-btn-line { background: transparent; color: var(--ink); }
.mono .h-btn-line:hover { background: var(--soft); }
.mono .h-btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mono .h-btn-light:hover { background: #e5e5e5; }

.h-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 72px 0 64px; }
.h-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0 0 22px; }
.h-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); display: inline-block; animation: h-pulse 2s ease-in-out infinite; }
@keyframes h-pulse { 50% { opacity: .25; } }
.h-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0 0 20px; }
.h-hero h1 span { color: var(--mute); }
.h-lead { font-size: 1.15rem; line-height: 1.6; color: #404040; max-width: 540px; margin: 0 0 28px; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.h-search { display: flex; align-items: center; gap: 10px; max-width: 520px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 18px; color: var(--mute); background: var(--paper); }
.h-search:focus-within { border-color: var(--ink); }
.mono .h-search input { border: 0; padding: 9px 0; outline: none; background: transparent; font-size: 1rem; }
.h-search button { border: 0; background: var(--soft); color: var(--ink); font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.h-search button:hover { background: var(--line); }

.h-hero-card { position: relative; border: 1.5px solid var(--ink); border-radius: 22px; padding: 22px 24px 18px; background: var(--paper); box-shadow: 10px 10px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.h-card-top { display: flex; justify-content: space-between; width: 100%; font-size: .8rem; color: var(--mute); }
.h-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.h-card-site { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin-top: 4px; }
.h-card-site img { border-radius: 5px; }
.h-card-ring { margin: 4px 0; }
.h-card-meta { display: flex; justify-content: space-between; width: 100%; font-size: .85rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 10px; }
.h-up { color: var(--ink); font-weight: 700; }
.h-card-spark { width: 100%; }
.h-card-spark .spark { height: 56px; }
.h-card-badge { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--mute); }
.h-card-attrib { margin: 0; }
.h-card-empty { color: var(--mute); margin: 0 0 6px; }

.h-band { background: var(--ink); color: var(--paper); margin-inline: calc(50% - 50vw); padding: 34px 16px; }
.h-stats { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.h-stats div { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid #333; }
.h-stats strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.h-stats span { font-size: .85rem; color: #a3a3a3; }

.h-section { padding: 72px 0 0; }
.h-head { margin-bottom: 28px; }
.h-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.h-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.h-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--mute); margin: 0 0 8px; }
.mono .h-link { font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.mono .h-link:hover { text-decoration: none; }
.h-empty { border: 1.5px dashed var(--line); border-radius: 16px; padding: 32px; text-align: center; color: var(--mute); }

.h-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.h-steps li { padding: 26px 22px; border-right: 1.5px solid var(--ink); background: var(--paper); transition: background .15s, color .15s; }
.h-steps li:last-child { border-right: 0; }
.h-steps li:hover { background: var(--ink); color: var(--paper); }
.h-steps li:hover p, .h-steps li:hover .h-step-no { color: #bdbdbd; }
.h-step-no { font-size: .85rem; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.h-steps h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.h-steps p { margin: 0; color: var(--mute); font-size: .95rem; }

.h-board { border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.h-board-head, .h-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(100px, 26%) 128px 56px; align-items: center; gap: 16px; padding: 12px 20px; }
.h-change { display: flex; justify-content: flex-end; }
.chg { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg-up { background: #e8f6ec; color: #15803d; }
.chg-down { background: #fdecec; color: #b91c1c; }
.h-board-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); border-bottom: 1.5px solid var(--ink); background: var(--soft); }
.h-board-head .attrib { text-transform: none; letter-spacing: 0; }
.h-board-head span:last-child, .h-dr { text-align: right; }
.mono .h-row { color: var(--ink); border-bottom: 1px solid var(--line); transition: background .12s; }
.h-row:last-child { border-bottom: 0; }
.h-row:hover { background: var(--soft); text-decoration: none; }
.h-rank { font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.h-row:nth-child(-n+4) .h-rank { color: var(--ink); }
.h-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-site img { border-radius: 4px; flex-shrink: 0; }
.h-site > span { display: flex; flex-direction: column; min-width: 0; }
.h-site strong, .h-site small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-site small { color: var(--mute); font-size: .8rem; }
.h-bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.h-bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; transform-origin: left; animation: h-grow 1s cubic-bezier(.22, .8, .25, 1) both; }
@keyframes h-grow { from { transform: scaleX(0); } }
.h-dr { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.h-recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mono .h-mini { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--ink); transition: border-color .12s, transform .12s; }
.h-mini:hover { border-color: var(--ink); transform: translateY(-2px); text-decoration: none; }
.h-mini > span { display: flex; flex-direction: column; min-width: 0; }
.h-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-mini small { color: var(--mute); }

.h-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.h-dist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; height: 240px; align-items: end; border-bottom: 1.5px solid var(--ink); padding-bottom: 0; }
.mono .h-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; color: var(--ink); position: relative; }
.h-col:hover { text-decoration: none; }
.h-col-n { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.h-col-bar { width: 100%; height: 170px; display: flex; align-items: flex-end; }
.h-col-bar span { width: 100%; background: var(--ink); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: h-rise .9s cubic-bezier(.22, .8, .25, 1) both; transition: opacity .12s; }
.h-col:hover .h-col-bar span { opacity: .7; }
@keyframes h-rise { from { transform: scaleY(0); } }
.h-col-label { position: absolute; bottom: -24px; font-size: .68rem; color: var(--mute); white-space: nowrap; }
.h-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mono .h-cats a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .12s, background .12s; }
.h-cats a:hover { border-color: var(--ink); text-decoration: none; }
.h-cats em { font-style: normal; font-size: .8rem; font-weight: 700; background: var(--soft); border-radius: 99px; padding: 1px 9px; font-variant-numeric: tabular-nums; }

.h-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.h-badges-copy p { color: #404040; line-height: 1.65; }
.h-ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.h-ticks li { padding: 6px 0 6px 28px; position: relative; }
.h-ticks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2L11.5 5.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.h-badges-show { display: grid; gap: 14px; background: var(--soft); border-radius: 22px; padding: 28px; }
.h-badge-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; place-items: center; }
.h-badge-tile-dark { background: var(--ink); border-color: var(--ink); }
.h-badge-tile img { max-width: 100%; }

.h-faq details { border-top: 1.5px solid var(--line); padding: 4px 0; }
.h-faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.h-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; font-size: 1.08rem; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { margin: 0 0 18px; color: #404040; max-width: 760px; line-height: 1.65; }

.h-final { background: var(--ink); color: var(--paper); margin: 80px calc(50% - 50vw) 0; padding: 80px 16px; text-align: center; }
.h-final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; margin: 0 0 12px; }
.h-final p { color: #a3a3a3; margin: 0 0 28px; font-size: 1.1rem; }

@media (max-width: 900px) {
  .h-hero { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; }
  .h-hero-card { max-width: 420px; width: 100%; margin: 0 auto; box-shadow: 6px 6px 0 var(--ink); }
  .h-stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .h-steps { grid-template-columns: 1fr 1fr; }
  .h-steps li:nth-child(2) { border-right: 0; }
  .h-steps li:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
  .h-split, .h-badges { grid-template-columns: 1fr; }
  .h-recent { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .h-stats { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr; }
  .h-steps li { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .h-steps li:last-child { border-bottom: 0; }
  .h-recent { grid-template-columns: 1fr; }
  .h-board-head, .h-row { grid-template-columns: 30px minmax(0, 1fr) auto 40px; padding: 12px 14px; gap: 10px; }
  .chg { padding: 3px 8px; font-size: .72rem; }
  .h-hide-sm { display: none; }
  .h-dist { gap: 3px; }
  .h-col-label { font-size: .58rem; }
  .h-cats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .h-dot, .h-bar span, .h-col-bar span { animation: none; }
}

/* Directory (list.ejs) */
.d-head { padding: 48px 0 28px; max-width: 760px; }
.d-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; }
.d-intro { font-size: 1.1rem; color: #404040; margin: 0 0 14px; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--mute); font-size: .9rem; margin: 0; }
.d-meta strong { color: var(--ink); }
.d-sep { width: 4px; height: 4px; border-radius: 50%; background: #c4c4c4; }
.d-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.d-search { flex: 1; min-width: 260px; max-width: 520px; }
.mono .d-clear { font-size: 1.3rem; line-height: 1; color: var(--mute); padding: 0 6px; }
.mono .d-clear:hover { color: var(--ink); text-decoration: none; }
.d-sort { display: flex; gap: 2px; background: var(--soft); border-radius: 999px; padding: 4px; }
.mono .d-sort a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--mute); }
.mono .d-sort a:hover { color: var(--ink); text-decoration: none; }
.mono .d-sort a.active { background: var(--ink); color: var(--paper); }
.d-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1.5px solid var(--line); }
.d-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d-chips-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); width: 78px; flex-shrink: 0; }
.mono .d-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink); transition: border-color .12s; }
.mono .d-chip:hover { border-color: var(--ink); text-decoration: none; }
.mono .d-chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.d-chip em { font-style: normal; font-size: .72rem; font-weight: 700; opacity: .6; font-variant-numeric: tabular-nums; }
.d-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; }
.d-empty p { margin: 0; font-size: 1.05rem; }
.d-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 20px; }
.d-pager > :last-child { justify-self: end; }
.d-page { font-size: .9rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.d-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: var(--paper); border-radius: 22px; padding: 32px 36px; margin: 56px 0 24px; }
.d-cta h2 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.02em; }
.d-cta p { margin: 0; color: #a3a3a3; max-width: 560px; }

/* Check DR (check.ejs) */
.c-hero { text-align: center; padding: 56px 0 32px; max-width: 640px; margin: 0 auto; }
.c-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; }
.c-lead { color: #404040; font-size: 1.1rem; margin: 0 0 24px; }
.c-form { margin: 0 auto; max-width: 560px; text-align: left; }
.c-result { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; margin-bottom: 48px; }
.c-card { border: 1.5px solid var(--line); border-radius: 22px; padding: 30px 32px; background: var(--paper); }
.c-score { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.c-score .h-kicker { margin: 0; }
.c-unavailable { color: #991b1b; margin: 20px 0; }
.c-domain { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 1.4rem; letter-spacing: -.02em; word-break: break-all; }
.c-domain img { border-radius: 5px; flex-shrink: 0; }
.c-tier { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; font-size: .85rem; font-weight: 700; }
.c-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.c-attrib { margin: auto 0 0; padding-top: 8px; }
.c-listing { border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; justify-content: center; }
.c-listing h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 16px; word-break: break-word; }
.c-listing h2 span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.c-ticks { margin-bottom: 22px; }
.c-cta { width: 100%; font-size: 1.02rem; cursor: pointer; font-family: inherit; }
.c-small { text-align: center; color: var(--mute); font-size: .85rem; margin: 10px 0 0; }
.c-browse { align-self: center; margin-top: 14px; font-size: .9rem; }
.c-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 8px auto 56px; }
.c-how div { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: .92rem; }
.c-how strong { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex-shrink: 0; font-size: .85rem; }
.mono .c-how a { text-decoration: underline; }
@media (max-width: 800px) {
  .c-result, .c-how { grid-template-columns: 1fr; }
  .c-listing { box-shadow: 5px 5px 0 var(--ink); }
  .c-card { padding: 24px 20px; }
}

/* Check DR: guide content under the checker (SEO) */
.c-learn { max-width: 820px; margin: 24px auto 64px; }
.c-learn-block { padding-top: 40px; }
.c-learn-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -.025em; margin: 0 0 12px; }
.c-learn-block p { color: #404040; line-height: 1.7; }
.mono .c-learn-block a { text-decoration: underline; }
.c-levels { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; margin: 6px 0 10px; }
.c-levels th, .c-levels td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.c-levels th { background: var(--soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); border-bottom: 1.5px solid var(--ink); }
.c-levels tr:last-child td { border-bottom: 0; }
.c-steps { padding-left: 20px; margin: 0; }
.c-steps li { padding: 6px 0; color: #404040; line-height: 1.6; }
.c-steps strong { color: var(--ink); }
.c-learn .h-faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.c-attrib-line { text-align: center; margin-top: 32px; }

/* Check DR: floating result card (a <dialog> above the page, so nothing on the page moves) */
.c-sheet { border: 0; padding: 0; background: transparent; width: min(1060px, calc(100vw - 32px)); max-width: none; max-height: none; overflow: visible; color: #0a0a0a;
  --ink: #0a0a0a; --paper: #ffffff; --soft: #f5f5f5; --line: #e7e7e7; --mute: #6b6b6b; }
.c-sheet::backdrop { background: rgba(10, 10, 10, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.c-sheet-inner { display: flex; flex-direction: column; background: #fff; border: 1.5px solid #0a0a0a; border-radius: 28px; max-height: calc(100dvh - 40px); overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); }
/* Header bar: part of the card, with the same hairline the cards use */
.c-sheet-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1.5px solid #e7e7e7; background: #fafafa; }
.c-sheet-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .92rem; font-weight: 600; color: #525252; white-space: nowrap; }
.c-sheet-title .logo-mark { border-radius: 6px; flex-shrink: 0; }
.c-sheet-title strong { color: #0a0a0a; overflow: hidden; text-overflow: ellipsis; }
.c-sheet-sep { color: #bdbdbd; }
.c-sheet-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid #e7e7e7; background: #fff; color: #0a0a0a; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.c-sheet-close svg { transition: transform .2s ease; }
.c-sheet-close:hover { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.c-sheet-close:hover svg { transform: rotate(90deg); }
.c-sheet-close:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.c-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px; }
.c-sheet .c-result { margin: 0; }
.c-sheet a { color: #0a0a0a; }
.c-sheet .h-btn-dark { color: #fff; }
/* Open: the backdrop fades in while the card rises and settles. Close: the reverse, a bit faster. */
.c-sheet[open]::backdrop { animation: sheet-fade .3s ease both; }
.c-sheet[open] .c-sheet-inner { animation: sheet-in .42s cubic-bezier(.2, .9, .25, 1) backwards; }
.c-sheet.is-closing::backdrop { animation: sheet-fade-out .22s ease forwards; }
.c-sheet.is-closing .c-sheet-inner { animation: sheet-out .22s ease-in forwards; }
@keyframes sheet-fade { from { opacity: 0; } }
@keyframes sheet-fade-out { to { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(18px) scale(.97); } }
/* The two cards inside follow the sheet in, slightly staggered */
.c-sheet .c-result-slot.is-in .c-card { animation: c-in .55s cubic-bezier(.2, .8, .2, 1) .08s both; }
.c-sheet .c-result-slot.is-in .c-listing { animation-delay: .18s; }
/* Keep the page behind still. The scrollbar's space is always reserved (html rule at the top of this file),
   so hiding the scrollbar here can't change the page width. */
html:has(.c-sheet[open]) { overflow: hidden; }
@media (max-width: 800px) {
  .c-sheet { width: calc(100vw - 16px); }
  .c-sheet-inner { border-radius: 22px; max-height: calc(100dvh - 16px); }
  .c-sheet-bar { padding: 10px 10px 10px 16px; }
  .c-sheet-body { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .c-sheet[open]::backdrop, .c-sheet[open] .c-sheet-inner, .c-sheet.is-closing::backdrop, .c-sheet.is-closing .c-sheet-inner,
  .c-sheet .c-result-slot.is-in .c-card { animation: none; }
}

/* Check DR: in-page form, hint, loading, result entrance, share dialog */
.c-form button { position: relative; }
.c-spinner { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; opacity: 0; animation: spin .7s linear infinite; }
.c-form.is-loading .c-btn-label { visibility: hidden; }
.c-form.is-loading .c-spinner { opacity: 1; }
.c-form.is-invalid { border-color: #dc2626; }
.c-hint { margin: 10px auto 0; max-width: 560px; font-size: .9rem; color: #b91c1c; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-hint[hidden] { display: none; }
.h-hero .c-hint { margin-left: 0; }
.c-chip { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.c-chip:hover { background: var(--ink); color: var(--paper); }
.c-text { color: #404040; margin: 0 0 22px; }
.c-share { cursor: pointer; font-family: inherit; }
.mono .c-again { background: none; border: 0; color: var(--mute); font: inherit; font-size: .9rem; cursor: pointer; padding: 4px; }
.mono .c-again:hover { color: var(--ink); }
.c-result-slot:empty { display: none; }
.c-result-slot.is-in .c-card { animation: c-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.c-result-slot.is-in .c-listing { animation-delay: .12s; }
.c-result-slot.is-in .c-tier { animation: c-pop .5s cubic-bezier(.3, 1.6, .5, 1) .9s both; }

/* Celebration once the DR lands (check.js adds .is-celebrating) */
.c-cheer { min-height: 66px; display: flex; flex-direction: column; align-items: center; gap: 1px; margin-bottom: 4px; opacity: 0; transform: translateY(8px) scale(.9); }
.c-cheer strong { font-size: 1.2rem; letter-spacing: -.01em; }
.c-cheer span:last-child { font-size: .88rem; color: var(--mute); word-break: break-word; }
.c-cheer-emoji { font-size: 1.6rem; line-height: 1.1; display: inline-block; }
.is-celebrating .c-cheer { animation: c-cheer-in .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.is-celebrating .c-cheer-emoji { animation: c-bounce .9s cubic-bezier(.3, 1.6, .5, 1) .1s both; }
@keyframes c-cheer-in { to { opacity: 1; transform: none; } }
@keyframes c-bounce { 0% { transform: scale(.2) rotate(-30deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.c-ring { position: relative; display: grid; place-items: center; }
.c-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid var(--ink); opacity: 0; pointer-events: none; }
.is-celebrating .c-ring::after { animation: c-ripple 1.1s ease-out; }
@keyframes c-ripple { 0% { opacity: .45; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.45); } }
.is-celebrating .c-share { animation: c-nudge 1.4s ease-in-out .8s 2; }
@keyframes c-nudge { 0%, 100% { transform: none; box-shadow: none; } 40% { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 22px rgba(10, 10, 10, .25); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }
@media (prefers-reduced-motion: reduce) {
  .c-cheer { opacity: 1; transform: none; }
  .is-celebrating .c-cheer, .is-celebrating .c-cheer-emoji, .is-celebrating .c-ring::after, .is-celebrating .c-share { animation: none; }
}
@keyframes c-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes c-pop { from { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) {
  .c-result-slot.is-in .c-card, .c-result-slot.is-in .c-tier { animation: none; }
}

.share-modal { border: 0; border-radius: 22px; padding: 22px 24px 18px; width: min(680px, calc(100vw - 32px)); background: #fff; color: #0a0a0a; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.share-modal::backdrop { background: rgba(10, 10, 10, .55); backdrop-filter: blur(3px); }
.share-modal[open] { animation: c-in .25s ease-out both; }
.share-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 14px; }
.share-head h2 { margin: 0; font-size: 1.3rem; }
.share-close { position: absolute; right: -6px; top: -6px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e5e5e5; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.share-themes { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.share-themes button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1.5px solid #e5e5e5; border-radius: 999px; background: #fff; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.share-themes button[aria-checked="true"] { border-color: #0a0a0a; box-shadow: 0 0 0 1px #0a0a0a; }
.sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #d4d4d4; }
.sw-dark { background: linear-gradient(135deg, #0a0a0a, #262626); }
.sw-light { background: #fff; }
.sw-graphite { background: linear-gradient(135deg, #1f1f1f, #6b6b6b); }
.share-canvas { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.share-actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share-actions .h-btn { padding: 10px 18px; font-size: .92rem; cursor: pointer; font-family: inherit; }
.share-modal .h-btn-line { background: #fff; color: #0a0a0a; }
.share-modal .h-btn-line:hover { background: #f5f5f5; }
.share-modal .h-btn-dark { background: #0a0a0a; color: #fff; }
.share-tip { text-align: center; font-size: .8rem; color: #737373; margin: 12px 0 0; }

/* Sign in (login.ejs) */
.l-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 0; }
.l-card { display: grid; grid-template-columns: 1fr 1.1fr; width: 100%; max-width: 900px; border: 1.5px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: 12px 12px 0 var(--ink); }
.l-side { background: var(--ink); color: var(--paper); padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.l-side .logo-mark { outline: 1.5px solid #333; border-radius: 12px; }
.l-side h2 { font-size: 1.7rem; line-height: 1.15; letter-spacing: -.025em; margin: 6px 0 0; }
.l-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.l-points li { padding-left: 28px; position: relative; color: #d4d4d4; }
.l-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2L11.5 5.6' fill='none' stroke='%230a0a0a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat; }
.l-side-foot { margin: auto 0 0; font-size: .8rem; color: #8a8a8a; }
.mono .l-side-foot a { color: #d4d4d4; text-decoration: underline; }
.l-main { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.l-main h1 { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 10px; }
.l-sub { color: #404040; margin: 0 0 26px; }
.mono .l-google { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 1.02rem; color: var(--ink); background: var(--paper); transition: background .12s, transform .12s, box-shadow .12s; }
.mono .l-google:hover { background: var(--soft); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.l-providers { display: flex; flex-direction: column; gap: 10px; }
.mono .l-x { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 1.02rem; color: var(--paper); background: var(--ink); transition: background .12s, transform .12s, box-shadow .12s; }
.mono .l-x:hover { background: #262626; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 0 #737373; }
.l-notice { border: 1.5px dashed #d4d4d4; border-radius: 14px; padding: 14px 16px; font-size: .9rem; color: #404040; }
.l-or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin: 18px 0 12px; }
.l-or::before, .l-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.mono .l-dev { display: block; text-align: center; padding: 11px 16px; border: 1.5px dashed #c4c4c4; border-radius: 999px; color: var(--mute); font-weight: 600; font-size: .9rem; }
.mono .l-dev:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.l-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--mute); }
.l-trust li::before { content: '✓ '; color: var(--ink); font-weight: 700; }
.l-terms { font-size: .8rem; color: var(--mute); margin: 14px 0 0; }
.mono .l-terms a { text-decoration: underline; }

@media (max-width: 760px) {
  .l-card { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--ink); }
  .l-side, .l-main { padding: 30px 24px; }
  .l-side h2 { font-size: 1.4rem; }
  .d-toolbar { flex-direction: column; align-items: stretch; }
  .d-search { max-width: none; min-width: 0; }
  .d-sort { align-self: flex-start; }
  .d-chips-label { width: 100%; }
  .d-cta { padding: 26px 22px; }
}

/* Header avatar menu */
.acct-avatar[hidden] { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 4px; cursor: pointer; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid transparent; transition: border-color .12s, background .12s; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { border-color: var(--border); background: #fff; }
.user-menu summary:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #0f172a; color: #fff; font-size: .82rem; font-weight: 700; flex-shrink: 0; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar span[hidden], .nav-avatar img[hidden] { display: none; }
.nav-chevron { color: var(--muted); transition: transform .15s; }
.user-menu[open] .nav-chevron { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .16); padding: 6px; animation: menu-in .14s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.menu-head { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.menu-head strong { font-size: .95rem; color: #0f172a; }
.menu-head span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.menu-head em { align-self: flex-start; margin-top: 6px; font-style: normal; font-size: .7rem; font-weight: 700; background: #dcfce7; color: #166534; padding: 1px 8px; border-radius: 999px; }
.menu a, .menu-signout button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: #0f172a; font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; }
.nav .menu a { color: #0f172a; }
.menu a:hover, .menu a:focus-visible, .menu-signout button:hover, .menu-signout button:focus-visible { background: #f1f5f9; text-decoration: none; outline: none; }
.menu-signout { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--border); }
.menu-signout button { color: var(--danger); }
.menu-mobile { display: none !important; }
@media (max-width: 600px) {
  .nav .nav-link { display: none; }
  .menu-mobile { display: block !important; }
}

/* Account (account.ejs) */
.acct-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct-summary { position: sticky; top: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.acct-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.acct-avatar-blank { display: grid; place-items: center; background: #0f172a; color: #fff; font-size: 2rem; font-weight: 800; }
.acct-summary h2 { margin: 0; font-size: 1.2rem; }
.acct-email { margin: 0; font-size: .9rem; word-break: break-all; }
.acct-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 4px 0; }
.acct-facts { width: 100%; margin: 10px 0 4px; border-top: 1px solid var(--border); padding-top: 10px; }
.acct-facts div { display: flex; justify-content: space-between; font-size: .88rem; padding: 4px 0; }
.acct-facts dt { color: var(--muted); }
.acct-facts dd { margin: 0; font-weight: 600; }
.acct-nav { width: 100%; display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 8px; text-align: left; }
.acct-nav a { color: var(--text); padding: 6px 8px; border-radius: 8px; font-size: .9rem; }
.acct-nav a:hover { background: #f1f5f9; text-decoration: none; }
.acct-section { scroll-margin-top: 20px; }
.acct-section h2 { margin-bottom: 6px; }
.acct-section > .muted.small { margin: 0 0 16px; }
.field-hint { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.conn-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.conn-row:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.conn-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--border); background: #fff; }
.conn-x { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.conn-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.conn-text .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); margin: 0; font-weight: 400; cursor: pointer; }
.pref-row:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.pref-text { display: flex; flex-direction: column; gap: 2px; }
.pref-select { width: auto; min-width: 150px; margin: 0; }
.pref-row.is-muted { opacity: .45; }
.autosave-note { font-size: .8rem; color: var(--muted); margin: 0; }
/* Shown only with / without JavaScript (head.ejs adds .js to <html>) */
.js .nojs-only, html:not(.js) .js-only { display: none; }
.switch-check { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background .2s; }
.switch-check::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch-check:checked { background: #0f172a; }
.switch-check:checked::after { transform: translateX(20px); }
.switch-check:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 860px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-summary { position: static; }
}

/* Admin: DR check runs and logs */
.no-margin { margin: 0; }
.last-run { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: .9rem; }
.check-actions { display: flex; gap: 8px; align-items: center; }
.run-status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.run-success { background: #dcfce7; color: #166534; }
.run-failed { background: #fee2e2; color: #991b1b; }
.run-running { background: #e0f2fe; color: #075985; }
.run-running::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: h-pulse 1.2s ease-in-out infinite; }
.run-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.run-head p { margin: 4px 0 0; }
.run-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.run-counts div { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.run-counts strong { font-size: 1.5rem; line-height: 1.2; }
.run-counts span { font-size: .78rem; color: var(--muted); }
.run-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.run-error[hidden] { display: none; }
.log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: h-pulse 1.2s ease-in-out infinite; }
.run-log { margin: 0; background: #0b1020; color: #d1d5db; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 14px 16px; border-radius: 10px; max-height: 560px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 800px) { .run-counts { grid-template-columns: repeat(2, 1fr); } }

/* Admin: sign-in providers */
.avatar-wrap { display: inline-flex; flex-shrink: 0; }
.avatar[hidden] { display: none; }
.prov-set { display: inline-flex; align-items: center; gap: 4px; }
.prov { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: #fff; display: inline-grid; place-items: center; }
.prov-x { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.prov-off { opacity: .22; filter: grayscale(1); }
.prov-count { font-size: .75rem; color: var(--muted); margin-left: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.kv div:last-child { border-bottom: 1px solid var(--border); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

/* Admin */
.flash-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
a.stat:hover { border-color: var(--brand); text-decoration: none; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.stat-sub { font-size: .8rem; color: var(--muted); }
.check-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters input[type=text] { flex: 1; min-width: 200px; max-width: 360px; }
.filters select { width: auto; }
.email-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-bottom: 24px; }
.email-preview { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.email-preview figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.email-preview iframe { display: block; width: 100%; height: 760px; border: 0; background: #f4f4f5; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.nowrap { white-space: nowrap; }
.actions { text-align: right; }
.btn-xs { padding: 3px 8px; font-size: .8rem; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell h2 { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; }
.avatar-blank { display: inline-grid; place-items: center; background: #e0e7ff; color: #3730a3; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) {
  .overview, .badge-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .summary { grid-template-columns: repeat(3, 1fr); }
  .summary-item:nth-child(3) { border-right: 0; }
  .summary-item:nth-child(n+4) { border-top: 1px solid var(--border); }
}

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary-item { border-right: 0; border-top: 1px solid var(--border); }
  .summary-item:nth-child(-n+2) { border-top: 0; }
  .summary-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .opt-label { width: 70px; }
  .grid-2, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hide-sm { display: none; }
  .table th, .table td { padding: 8px 10px; }
  .dr-box { width: 100%; }
  .nav nav { gap: 12px; font-size: .95rem; }
  .table th .attrib { white-space: normal; }
  .search { min-width: 0; width: 100%; }
}

/* With JavaScript, flash messages show as top-right toasts instead (ui.js) */
.js [data-flash] { display: none; }
