:root {
  --bg: #f5f7fc;
  --ink: #202941;
  --muted: #7b859b;
  --accent: #5865e8;
  --line: #e8edf5;
  --green: #1aaf94;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  font-size: 24px;
}
.badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 1px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  color: var(--muted);
  font-weight: 500;
}
nav a:hover {
  color: var(--accent);
}
nav form {
  margin: 0;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.35;
  margin: 7px 0 10px;
}
h2 {
  font-size: 16px;
  margin: 0 0 15px;
  font-weight: 650;
}
p {
  margin: 6px 0 16px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.live-indicator {
  font-size: 12px;
  border: 1px solid #c7eee5;
  background: #effaf7;
  color: #198d75;
  border-radius: 30px;
  padding: 9px 15px;
  white-space: nowrap;
}
.live-indicator:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 3px 12px #23395d03;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.metric {
  padding: 22px 24px;
}
.metric span {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  margin: 8px 0;
  font-weight: 650;
  line-height: 1.2;
}
.metric small {
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}
.pv-dot:before {
  background: var(--accent);
}
.uv-dot:before {
  background: var(--green);
}
.chart-container {
  height: 260px;
  min-width: 0;
}
.chart-details {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}
.chart-details summary {
  cursor: pointer;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
}
td {
  padding: 14px 8px;
  border-bottom: 1px solid #f0f3f8;
}
tbody tr:last-child td {
  border: 0;
}
th:not(:first-child),
td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.ellipsis {
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.distribution {
  margin: 18px 0;
}
.distribution > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 12px;
}
.distribution strong {
  font-size: 11px;
  font-weight: 550;
}
.distribution progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: none;
  border-radius: 4px;
  margin-top: 8px;
  background: #eef0ff;
}
.distribution progress::-webkit-progress-bar {
  background: #eef0ff;
  border-radius: 4px;
}
.distribution progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 4px;
}
.distribution progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 4px;
}
.filter-bar {
  display: flex;
  align-items: end;
  gap: 15px;
  margin-bottom: 24px;
}
.filter-bar label {
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 5px;
}
.filter-bar a {
  font-size: 12px;
  margin-left: auto;
  align-self: center;
}
.button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
}
.button:hover {
  background: #4654d4;
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.button.secondary {
  background: white;
  color: var(--accent);
  border: 1px solid #dce0fc;
}
.button.secondary:hover {
  background: #f5f6ff;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  border: 1px solid #dde3ef;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #5865e817;
}
input,
textarea {
  width: 100%;
}
select {
  min-width: 155px;
}
.form-stack {
  display: grid;
  gap: 18px;
}
.form-stack label,
.inline-form label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
}
label small {
  color: var(--muted);
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}
.inline-form + p {
  margin-top: 15px;
}
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 24px;
  align-items: start;
}
.auth-card {
  max-width: 420px;
  margin: 45px auto 80px;
  padding: 32px;
}
.check {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.check.ok {
  color: #16846f;
}
.check.bad {
  color: #c03b54;
}
.notice {
  padding: 12px 16px;
  background: #eef1ff;
  border-radius: 8px;
  font-size: 12px;
  color: #5261a3;
  margin: 15px 0;
}
.notice.success {
  background: #e7f8f1;
  color: #1a8766;
}
.notice.error {
  background: #fff0f2;
  color: #b6334a;
}
.code-label {
  font-size: 12px;
  color: var(--muted);
}
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f8f9fd;
  margin: 10px 0;
  resize: vertical;
  font-size: 12px;
  line-height: 1.8;
}
.site-card .copy-button {
  margin-bottom: 14px;
}
.empty-state {
  padding: 55px;
  text-align: center;
  color: var(--muted);
}
.footer {
  padding: 20px 20px 35px;
  text-align: center;
  color: #98a1b5;
  font-size: 11px;
}
canvas {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #aab1ff;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 20px;
  }
  nav {
    gap: 13px;
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-columns,
  .install-grid {
    grid-template-columns: 1fr;
  }
  .three-columns {
    gap: 12px;
  }
  .container {
    padding-top: 24px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    min-height: 75px;
    flex-wrap: wrap;
    padding: 16px;
    gap: 16px;
  }
  .brand {
    font-size: 18px;
  }
  .badge {
    display: none;
  }
  nav {
    width: 100%;
    justify-content: space-between;
  }
  .container {
    padding: 22px 14px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 18px;
  }
  .metric strong {
    font-size: 29px;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .filter-bar a {
    margin-left: 0;
  }
  .filter-bar select {
    min-width: 130px;
  }
  .three-columns {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
    border-radius: 11px;
  }
  .inline-form,
  .form-row {
    grid-template-columns: 1fr;
  }
  .ellipsis {
    max-width: 200px;
  }
  .section-heading {
    align-items: start;
  }
  .legend {
    gap: 8px;
    font-size: 10px;
  }
  .auth-card {
    margin: 20px auto 50px;
  }
  .empty-state {
    padding: 30px 10px;
  }
}
