:root {
  color-scheme: light;
  font-family:
    Geist,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --canvas: #ffffff;
  --canvas-soft: #f7f7f5;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --ink-muted: #686868;
  --hairline: #d7d7d2;
  --hairline-strong: #8f8f88;
  --signal: #4f67e8;
  --success: #1f754b;
  --warning: #8a4f0d;
  --danger: #b43a45;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas-soft);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas-soft);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--signal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

h2 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 15px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -60px;
  left: 16px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.page-frame:focus-visible:has(h1) {
  outline: none;
}

.page-frame:focus-visible h1 {
  text-decoration: underline solid var(--signal) 3px;
  text-underline-offset: 6px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--canvas) 94%, transparent);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 7px;
  font-size: 13px;
}

.topbar nav {
  display: flex;
  gap: 4px;
}

.topbar nav a {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ink-muted);
  border-radius: 7px;
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: var(--ink);
  background: var(--canvas-soft);
}

.account-chip {
  justify-self: end;
  color: var(--ink-muted);
  font-size: 13px;
}

.account-link {
  min-height: 40px;
  padding: 9px 0;
  text-decoration: none;
}

.account-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

.account-action {
  padding: 5px 0;
  color: var(--signal);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
}

.account-action:disabled {
  cursor: wait;
  opacity: 0.6;
}

.page-frame {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 40px 0 72px;
}

.site-footer {
  display: flex;
  width: min(100% - 48px, 1120px);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 0 0 32px;
  color: var(--ink-muted);
  font-size: 13px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-consent {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(calc(100% - 40px), 560px);
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 11px;
  box-shadow: 0 16px 48px rgb(31 31 31 / 16%);
}

.analytics-consent h2,
.analytics-consent p,
.analytics-preferences p,
.privacy-copy p:last-child {
  margin-bottom: 0;
}

.analytics-consent .button-row,
.analytics-preferences .button-row {
  justify-content: flex-end;
}

.analytics-preferences {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 20px;
}

.privacy-copy {
  padding: 24px;
}

.privacy-copy h2:not(:first-child) {
  margin-top: 24px;
}

.page-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  color: white;
  background: var(--ink);
}

.button-primary:hover:not(:disabled) {
  background: #343434;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--hairline-strong);
}

.button-secondary:hover:not(:disabled) {
  background: var(--canvas-soft);
  border-color: var(--hairline-strong);
}

.button-danger {
  color: var(--danger);
  background: var(--surface);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--hairline));
}

.button-link {
  min-height: 40px;
  padding: 8px 4px;
  color: var(--signal);
  background: transparent;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  color: var(--ink-muted);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}

.status-success {
  color: var(--success);
  background: #f2faf6;
  border-color: #bedfce;
}

.status-warning {
  color: var(--warning);
  background: #fff8ee;
  border-color: #ead2ae;
}

.status-danger {
  color: var(--danger);
  background: #fff5f6;
  border-color: #ebc4c8;
}

.mobile-cell-label {
  display: none;
}

.table-panel,
.panel,
.details-panel,
.empty-state,
.notice {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 11px;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

th {
  color: var(--ink-muted);
  background: var(--canvas-soft);
  font-size: 12px;
  font-weight: 500;
}

tr:last-child td {
  border-bottom: 0;
}

.row-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 13px;
}

.table-action {
  text-align: right;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state p:not(.eyebrow) {
  max-width: 520px;
  color: var(--ink-muted);
}

.sign-in-state {
  max-width: 680px;
  min-height: 440px;
  margin: 0 auto;
}

.sign-in-state .reporter-meta {
  max-width: 460px;
  margin-top: 20px;
}

.loading-state {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hairline);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notice {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-left-width: 3px;
}

.notice h2,
.notice p:last-child {
  margin-bottom: 0;
}

.notice-danger {
  background: #fff8f8;
  border-left-color: var(--danger);
}

.notice-warning {
  background: #fffaf2;
  border-left-color: var(--warning);
}

.notice-success {
  background: #f4fbf7;
  border-left-color: var(--success);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.identity-grid div {
  padding: 14px 16px;
  background: var(--surface);
}

dt {
  margin-bottom: 3px;
  color: var(--ink-muted);
  font-size: 12px;
}

dd {
  margin: 0;
}

.technical-value,
.technical-list dd {
  overflow-wrap: anywhere;
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.invitation-url {
  display: block;
  user-select: all;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 20px;
}

.panel > :last-child {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  color: var(--ink-muted);
}

.timeline li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 1px;
  content: "";
  background: var(--hairline);
}

.timeline li:first-child::before {
  top: 50%;
}

.timeline li:last-child::before {
  bottom: 50%;
}

.timeline-marker {
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-left: 3px;
  background: var(--surface);
  border: 2px solid var(--hairline-strong);
  border-radius: 50%;
}

.timeline li[data-state="complete"] {
  color: var(--ink);
}

.timeline li[data-state="complete"] .timeline-marker {
  background: var(--success);
  border-color: var(--success);
}

.timeline li[data-state="current"] {
  color: var(--ink);
  font-weight: 500;
}

.timeline li[data-state="current"] .timeline-marker {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 18%, transparent);
}

.timeline-state {
  font-size: 12px;
  text-transform: capitalize;
}

.details-panel {
  margin-top: 16px;
  padding: 0 20px;
}

.notice-offset {
  margin-top: 16px;
}

.balance-output {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.details-panel summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
}

.technical-list {
  display: grid;
  gap: 12px;
  padding: 0 0 20px;
  margin: 0;
}

.technical-list div {
  display: grid;
  gap: 12px;
  grid-template-columns: 140px minmax(0, 1fr);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  font-weight: 500;
}

.field small {
  color: var(--ink-muted);
}

input[type="url"],
input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 7px;
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.evidence-text {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  background: #f7f8ff;
  border-color: var(--signal);
}

.choice-card input {
  position: absolute;
  top: 14px;
  right: 14px;
}

.choice-card strong {
  padding-right: 24px;
}

.choice-card span {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
}

.destination-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.destination-list code {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.reporter-page {
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: var(--canvas-soft);
}

.reporter-card {
  width: min(100%, 680px);
  padding: clamp(20px, 5vw, 32px);
  margin: 5vh auto 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.reporter-card .button-primary {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.reporter-meta {
  color: var(--ink-muted);
  font-size: 13px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.outcome-grid .button {
  min-height: 52px;
}

.opening-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background: var(--canvas-soft);
}

@media (max-width: 760px) {
  .site-footer {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 96px;
  }

  .analytics-consent {
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100svh - 104px - env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .analytics-preferences {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 0 16px;
    /* Let the fixed mobile navigation use the viewport, not this header. */
    backdrop-filter: none;
  }

  .topbar nav {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-around;
    padding: 6px max(8px, env(safe-area-inset-right))
      max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--hairline);
  }

  .topbar nav a {
    min-height: 44px;
  }

  .account-chip:not(.account-link) {
    display: none;
  }

  .page-frame {
    width: min(100% - 24px, 1120px);
    padding: 28px 0 88px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header > .button {
    width: 100%;
  }

  .identity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .table-panel {
    background: transparent;
    border: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  tr {
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 10px;
  }

  td {
    padding: 12px 14px;
    border-bottom: 0;
  }

  .mobile-cell-label {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 500;
  }

  .table-action {
    text-align: left;
  }

  .table-action .button {
    width: 100%;
    min-height: 44px;
  }

  .notice {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .analytics-consent .button-row,
  .analytics-preferences .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .identity-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .technical-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .reporter-card {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.test-instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.evidence-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.business-status{font-size:12px;color:var(--ink-muted);border:1px solid var(--hairline);border-radius:99px;padding:4px 10px;white-space:nowrap}.business-intro{max-width:760px;padding:24px 0}.business-intro h1{max-width:28ch}.business-lead{font-size:17px;line-height:1.55;color:var(--ink-muted);max-width:68ch}.business-links{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.business-workflow{max-width:760px}.business-workflow ol{padding-left:22px}.business-workflow li{margin:14px 0}.business-contact{max-width:760px;margin-top:32px}.privacy-copy{max-width:800px}@media(max-width:640px){.topbar{flex-wrap:wrap}.topbar nav{order:3;width:100%;flex-wrap:wrap}.topbar nav a{display:inline-flex;align-items:center;min-height:44px}.business-status{margin-left:auto}.business-intro{padding-top:12px}.site-footer{gap:16px;flex-wrap:wrap}.business-links .button{min-height:44px}}

.business-status{justify-self:end;width:max-content}.business-workflow{padding:24px}@media(max-width:640px){.topbar{grid-template-columns:1fr auto;padding-top:8px;padding-bottom:8px}.topbar nav{grid-column:1 / -1;grid-row:2;justify-self:start}.business-status{grid-column:2;grid-row:1}.policy-links a{display:inline-flex;align-items:center;min-height:44px}}
