:root {
  color-scheme:light;
  --bg:#f4f6f9;
  --ink:#18283a;
  --muted:#617184;
  --line:#e5eaf0;
  --blue:#245bd9;
  --teal:#0d918d;
  --radius:18px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16px
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6
}
button,input {
  font:inherit
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:9px;
  background:white;
  color:var(--ink);
  padding:9px 16px;
  font-size:.875rem;
  font-weight:600
}
button:hover {
  border-color:#98b2e8
}
button:disabled {
  cursor:wait;
  opacity:.6
}
input {
  width:100%;
  border:1px solid #cdd6e1;
  border-radius:9px;
  background:white;
  padding:11px 13px;
  color:var(--ink)
}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #7ba9f5;
  outline-offset:3px
}
a {
  color:var(--blue);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
[hidden] {
  display:none!important
}
.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:white
}
.secondary {
  background:white
}
.quiet {
  border:0;
  background:transparent
}
.small {
  padding:8px 16px
}
.muted,.subtle {
  color:var(--muted)
}
.subtle {
  font-size:.875rem
}
.eyebrow {
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.13em;
  color:var(--blue)
}
.brand {
  font-size:1.9rem;
  letter-spacing:-.07em;
  font-weight:850;
  color:var(--ink);
  line-height:1
}
.brand span {
  font-size:.66rem;
  letter-spacing:.14em;
  margin-left:18px;
  font-weight:600;
  color:var(--muted)
}
.topbar {
  height:84px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(24px,calc((100vw - 1280px)/2))
}
.top-actions {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:.875rem
}
.workspace {
  max-width:1328px;
  padding:38px 24px 25px;
  margin:auto
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px
}
h1 {
  font-size:2rem;
  letter-spacing:-.035em;
  margin:3px 0 6px;
  line-height:1.35
}
h2 {
  font-size:1.05rem;
  letter-spacing:-.02em;
  margin:0
}
p {
  margin:8px 0
}
.page-heading p {
  font-size:.925rem
}
.live {
  text-align:right;
  border-left:1px solid var(--line);
  padding-left:26px
}
.live span {
  font-size:.875rem;
  color:var(--muted);
  display:block
}
.live strong {
  font-size:2rem;
  font-variant-numeric:tabular-nums
}
.filters {
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:24px
}
.presets {
  display:flex;
  background:#e9edf4;
  border-radius:11px;
  padding:4px
}
.presets button {
  border:0;
  background:transparent;
  padding:7px 14px;
  font-weight:500
}
.presets .selected {
  background:white;
  box-shadow:0 1px 4px #162c5010;
  color:var(--blue);
  font-weight:700
}
.dates {
  display:flex;
  gap:9px;
  align-items:center
}
.dates label {
  font-size:.75rem;
  color:var(--muted);
  display:flex;
  gap:8px;
  align-items:center
}
.dates input {
  font-size:.875rem;
  padding:7px 9px;
  width:147px
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:24px
}
.metrics article {
  padding:23px 25px;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius)
}
.metrics span {
  font-size:.875rem;
  color:var(--muted)
}
.metrics strong {
  display:block;
  font-size:2.5rem;
  line-height:1.4;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.04em
}
.metrics small {
  font-size:.75rem;
  color:var(--muted)
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  min-width:0
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px
}
.panel-heading p {
  font-size:.8rem;
  margin-bottom:0
}
.trend-panel {
  margin-bottom:24px
}
.legend {
  display:flex;
  gap:18px;
  font-size:.8rem;
  white-space:nowrap
}
.legend span:before {
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  margin-right:7px
}
.uv-key:before {
  background:var(--blue)
}
.pv-key:before {
  background:var(--teal)
}
.chart {
  min-height:260px;
  position:relative
}
.chart svg {
  width:100%;
  height:auto;
  display:block
}
.chart svg text {
  font-size:12px;
  fill:var(--muted)
}
.chart .empty-chart {
  min-height:260px;
  display:grid;
  place-content:center;
  text-align:center
}
.empty-chart strong {
  font-size:1rem;
  font-weight:600
}
.empty-chart p {
  font-size:.875rem;
  color:var(--muted)
}
.grid-two {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px
}
.table-wrap {
  overflow:auto
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:.875rem
}
th {
  font-weight:500;
  color:var(--muted);
  font-size:.8rem;
  padding:0 10px 11px;
  border-bottom:1px solid var(--line);
  white-space:nowrap
}
td {
  padding:13px 10px;
  border-bottom:1px solid #f0f3f7;
  font-variant-numeric:tabular-nums;
  word-break:break-word
}
th:first-child,td:first-child {
  padding-left:0
}
th:not(:first-child),td:not(:first-child) {
  text-align:right
}
tbody tr:last-child td {
  border-bottom:0
}
td a {
  display:block;
  color:var(--ink)
}
td small {
  display:block;
  color:var(--muted);
  font-size:.75rem;
  overflow-wrap:anywhere
}
.empty-row {
  text-align:center!important;
  color:var(--muted);
  height:96px
}
.daily-details {
  margin-top:14px
}
.daily-details summary {
  font-size:.85rem;
  color:var(--muted);
  cursor:pointer;
  margin-bottom:14px
}
.daily-details .table-wrap {
  max-height:300px
}
.note,.definitions p {
  font-size:.8rem;
  color:var(--muted);
  line-height:1.8
}
.note {
  margin-top:15px
}
.definitions a {
  font-size:.85rem
}
.device-row {
  display:grid;
  grid-template-columns:54px 1fr 85px;
  gap:12px;
  align-items:center;
  margin:16px 0;
  font-size:.875rem
}
.device-track {
  background:#edf1f6;
  border-radius:5px;
  height:8px;
  overflow:hidden
}
.device-fill {
  height:100%;
  background:var(--blue);
  border-radius:5px
}
.device-row small {
  text-align:right;
  font-size:.8rem;
  color:var(--muted)
}
hr {
  border:0;
  border-top:1px solid var(--line);
  margin:25px 0
}
.footnote {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:24px 0 0;
  color:var(--muted);
  font-size:.75rem
}
#request-error,#login-error {
  color:#b42335;
  font-size:.875rem
}
#request-error {
  background:#fff0f1;
  padding:12px 16px;
  border-radius:9px
}
#loading {
  font-size:.8rem;
  color:var(--muted);
  margin-bottom:12px
}
.login-shell {
  max-width:560px;
  margin:9vh auto;
  padding:24px
}
.login-shell>.brand {
  display:block;
  margin-bottom:38px
}
.login-card {
  background:white;
  border:1px solid var(--line);
  border-radius:22px;
  padding:38px
}
.login-card h1 {
  font-size:1.6rem;
  margin:12px 0
}
.login-card p {
  font-size:.875rem
}
.login-card form {
  margin-top:26px
}
.login-card label {
  display:block;
  font-size:.875rem;
  margin:18px 0 7px
}
.login-card button {
  width:100%;
  margin-top:25px;
  padding:12px
}
.login-note {
  font-size:.75rem;
  color:var(--muted);
  text-align:center;
  margin-top:24px
}
.privacy h1 {
  font-size:1.75rem
}
.privacy p {
  margin:18px 0
}
.privacy button {
  margin:15px 0
}
.privacy {
  max-width:780px;
  margin:5vh auto;
  padding:32px
}
.privacy .panel {
  padding:32px
}
@media(max-width:1000px) {
  .metrics {
    gap:12px
  }
  .metrics article {
    padding:20px
  }
  .filters {
    gap:12px
  }
  .brand span {
    display:none
  }
  .grid-two {
    gap:18px
  }
  .panel {
    padding:20px
  }
}
@media(max-width:680px) {
  .topbar {
    height:68px;
    padding:0 18px
  }
  .workspace {
    padding:25px 16px
  }
  .top-actions {
    gap:8px
  }
  .page-heading {
    align-items:flex-start
  }
  h1 {
    font-size:1.6rem
  }
  .page-heading p {
    font-size:.8rem
  }
  .live {
    padding-left:13px;
    min-width:100px
  }
  .live span {
    font-size:.7rem
  }
  .live strong {
    font-size:1.6rem
  }
  .metrics {
    grid-template-columns:repeat(2,1fr);
    gap:12px
  }
  .metrics article {
    padding:17px
  }
  .metrics strong {
    font-size:2rem
  }
  .metrics small {
    font-size:.7rem
  }
  .grid-two {
    grid-template-columns:1fr
  }
  .dates {
    flex-wrap:wrap;
    gap:8px
  }
  .dates label {
    gap:6px
  }
  .dates input {
    width:132px
  }
  .presets {
    width:100%
  }
  .presets button {
    flex:1;
    padding:7px 10px
  }
  .filters>.secondary {
    padding:8px 12px
  }
  .panel-heading {
    gap:8px
  }
  .legend {
    gap:10px;
    font-size:.7rem
  }
  .subtle {
    font-size:.75rem
  }
  .footnote {
    flex-direction:column;
    font-size:.7rem
  }
  .login-card {
    padding:25px
  }
  .login-shell {
    margin-top:5vh
  }
  .login-card h1 {
    font-size:1.4rem
  }
  .chart {
    min-height:180px
  }
  .privacy {
    padding:18px
  }
  .privacy .panel {
    padding:23px
  }
}
