:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --canvas: #f6f8fc;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.container { width: calc(100% - 32px); max-width: 1040px; margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; gap: 15px; padding-block: 17px 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 750; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 4px;
  place-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--blue);
  box-shadow: 0 3px 8px #2563eb1a;
}
.brand-mark i { background: var(--white); border-radius: 2px; height: 7px; }
.brand-mark i:last-child { opacity: .55; }
.site-nav { display: flex; gap: 6px; width: 100%; }
.site-nav a {
  flex: 1;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 9px;
  color: #526176;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.site-nav a[aria-current="page"] { background: #eff6ff; color: var(--blue-dark); }
.site-nav a:hover { background: #f1f5f9; text-decoration: none; }
.hero { padding: 30px 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: 12px; font-weight: 650; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #dbeafe; margin-inline: 4px; }
h1 { margin-top: 15px; max-width: 950px; font-size: 28px; font-weight: 750; line-height: 1.45; letter-spacing: -.035em; overflow-wrap: anywhere; }
.hero-subline { max-width: 850px; margin-top: 16px; color: #536278; font-size: 14px; line-height: 1.9; }
.status-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 13px 16px;
  margin-bottom: 27px;
  border: 1px solid #d3e2ff;
  border-radius: 12px;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 600;
}
.status-strip:hover { background: #e3edff; text-decoration: none; }
.strip-icon { display: flex; gap: 4px; flex-shrink: 0; }
.strip-icon i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.strip-icon i:nth-child(2) { opacity: .6; }
.strip-icon i:nth-child(3) { opacity: .3; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
h2 { font-size: 18px; font-weight: 700; }
.updated-at { width: 100%; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.load-message { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--muted); }
.error-message { color: #b91c1c; font-size: 13px; }
.load-message.error-message { background: #fff7f7; border-color: #fecaca; }
.data-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-table thead { display: none; }
.data-table, .data-table tbody { display: block; }
.data-table colgroup { display: none; }
.data-table tbody { display: grid; gap: 14px; }
.data-table tr {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 3px 12px #1e293b04;
}
.data-table td, .data-table th { min-width: 0; overflow-wrap: anywhere; }
.data-table tbody th, .data-table td { display: block; font-weight: 400; }
.data-table td + td, .board-table tbody th + td { margin-top: 14px; }
.data-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.product-name { color: #17243a; font-size: 17px; font-weight: 700; }
.product-vendor { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 500; }
.tag-positive { background: #ecfdf5; color: #047857; }
.code-label { margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.code-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.invite-code { color: var(--blue-dark); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 16px; font-weight: 700; letter-spacing: .045em; overflow-wrap: anywhere; }
.copy-button {
  min-width: 60px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #d3e2ff;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-size: 12px;
  white-space: nowrap;
}
.copy-button:hover { background: #dbeafe; }
.copy-button:disabled { cursor: wait; }
.copy-button[data-copied="true"] { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.clipboard-fallback { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; font-size: 16px; }
.muted { color: var(--muted); }
.note-text { color: #526176; }
.note-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; }
.note-links a, .source-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; }
.invite-link { display: inline-flex; min-height: 36px; align-items: center; margin-top: 7px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-badge.green { background: #ecfdf5; color: #047857; }
.status-badge.yellow { background: #fffbeb; color: #92400e; }
.status-badge.red { background: #fff1f2; color: #be123c; }
.status-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }
.status-dot.green { background: #059669; }
.status-dot.yellow { background: #d97706; }
.status-dot.red { background: #e11d48; }
.route-name { font-size: 16px; font-weight: 650; }
.status-table tbody th { margin-top: 10px; }
.status-table tbody th + td { margin-top: 14px; }
.verified-time { color: #526176; font-size: 12px; font-variant-numeric: tabular-nums; }
.timezone-label { display: block; font-size: 11px; color: var(--muted); }
.legend { display: grid; gap: 5px; padding: 16px 3px 0; color: var(--muted); font-size: 11px; }
.legend p { display: flex; align-items: baseline; gap: 8px; }
.invite-card { margin-top: 27px; padding: 22px; border: 1px solid #ccddfb; border-radius: 16px; background: linear-gradient(115deg, #edf4ff, #fff); box-shadow: 0 4px 18px #2563eb05; }
.invite-card h2 { margin-top: 4px; font-size: 16px; }
.invite-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 10px; }
.invite-code-row .invite-code { font-size: 32px; letter-spacing: .08em; }
.invite-code-row .copy-button { min-height: 42px; background: var(--white); }
.invite-details { margin-top: 18px; color: #526176; font-size: 13px; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; margin-top: 16px; min-height: 44px; border-radius: 9px; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 600; }
.primary-link:hover { background: var(--blue-dark); text-decoration: none; }
.neutral-notice { margin-top: 14px; padding: 0 3px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.site-footer { margin-top: 32px; padding-bottom: 26px; }
.funnel-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.funnel-heading { display: flex; align-items: center; gap: 10px; }
.funnel-heading h2 { font-size: 14px; line-height: 1.6; }
.funnel-icon { display: grid; flex-shrink: 0; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eff6ff; color: var(--blue); font-size: 20px; }
.funnel-values { display: grid; gap: 7px; margin-top: 14px; color: #526176; font-size: 13px; }
.funnel-values span { color: var(--muted); overflow-wrap: anywhere; }
.funnel-card .error-message { margin-top: 8px; }
.disclaimer { max-width: 950px; padding: 18px 3px 0; color: var(--muted); font-size: 11px; line-height: 1.9; }

@media (min-width: 600px) {
  .container { width: calc(100% - 48px); }
  .header-inner { align-items: center; justify-content: space-between; padding-block: 18px; }
  .site-nav { width: auto; }
  .site-nav a { flex: none; padding-inline: 16px; }
  .hero { padding-block: 40px 30px; }
  h1 { font-size: 35px; line-height: 1.4; }
  .hero-subline { font-size: 15px; }
  .updated-at { width: auto; }
  .data-table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite-card { padding: 26px; }
  .funnel-values { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 40px; }
}

@media (min-width: 1000px) {
  .brand { font-size: 19px; }
  .hero { padding-block: 45px 32px; }
  h1 { font-size: 40px; }
  .status-strip { margin-bottom: 30px; }
  .section-heading { margin-bottom: 16px; }
  .table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 4px 16px #1e293b04; }
  .data-table { display: table; }
  .data-table colgroup { display: table-column-group; }
  .data-table thead { display: table-header-group; background: #f1f5fb; color: #526176; }
  .data-table tbody { display: table-row-group; }
  .data-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .data-table th, .data-table tbody th, .data-table td { display: table-cell; padding: 19px 16px; vertical-align: top; }
  .data-table thead th { padding-block: 13px; font-size: 12px; font-weight: 600; }
  .data-table tbody tr + tr > * { border-top: 1px solid #edf1f7; }
  .data-table tbody tr:hover { background: #fbfdff; }
  .data-table td::before { display: none; }
  .data-table td + td, .board-table tbody th + td { margin: 0; }
  .status-table tbody th, .status-table tbody th + td { margin: 0; }
  .board-table col:nth-child(1) { width: 15%; }
  .board-table col:nth-child(2) { width: 23%; }
  .board-table col:nth-child(3) { width: 21%; }
  .board-table col:nth-child(4) { width: 18%; }
  .board-table col:nth-child(5) { width: 23%; }
  .status-table col:nth-child(1) { width: 13%; }
  .status-table col:nth-child(2) { width: 17%; }
  .status-table col:nth-child(3) { width: 20%; }
  .status-table col:nth-child(4) { width: 9%; }
  .status-table col:nth-child(5) { width: 41%; }
  .product-name { font-size: 16px; }
  .code-controls { gap: 7px; }
  .invite-code { font-size: 15px; }
  .copy-button { min-height: 34px; min-width: 56px; padding-inline: 8px; }
  .route-name { font-size: 14px; }
  .legend { gap: 4px; padding-top: 14px; }
  .invite-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; margin-top: 30px; padding: 27px 32px; }
  .invite-details { margin-top: 0; padding-left: 32px; border-left: 1px solid #d9e6fb; }
  .invite-code-row .invite-code { font-size: 36px; }
  .site-footer { margin-top: 36px; }
  .funnel-card { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding: 20px 24px; }
  .funnel-values { gap: 7px; grid-template-columns: 1fr; min-width: 170px; padding-left: 0; margin: 0; }
  .funnel-card .error-message { width: 100%; margin: 0; }
}
