:root {
  color-scheme: dark;
  --canvas: #09090b;
  --panel: #17171b;
  --label: #f5f5f7;
  --muted: #a2a2ab;
  --line: #2a2a31;
  --accent: #ed76ac;
  --excluded: #706777;
  --unknown: #b4a17c;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--label); }
button, select, input { font: inherit; }
button, select { min-height: 42px; border: 1px solid #3a3a44; border-radius: 10px; color: var(--label); background: #232329; padding: 0 15px; cursor: pointer; }
button:hover, select:hover { background: #303037; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button[hidden], [hidden] { display: none !important; }
.topbar { max-width: 1360px; margin: auto; padding: 26px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.3px; }
.brand img { border-radius: 9px; }
.brand-detail { font-weight: 400; color: var(--muted); margin-left: 8px; }
.local-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8fc6ac; }
main { max-width: 1280px; padding: 52px 36px 24px; margin: auto; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.eyebrow { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.6px; font-weight: 600; color: var(--accent); }
h1 { font-size: clamp(29px, 3.8vw, 42px); letter-spacing: -1.5px; line-height: 1.1; margin: 0; font-weight: 600; }
.intro { color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.view-switch { display: flex; gap: 8px; margin-top: 24px; }
.view-switch button { background: transparent; border-color: transparent; color: var(--muted); }
.view-switch button[aria-pressed="true"] { color: #f3bfd8; background: #322331; border-color: #583247; }
.activity-panel { margin: 22px 0; }
.activity-filters { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.activity-filters label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.activity-filters select, .activity-filters input { font-size: 12px; }
.activity-filters input { min-height: 42px; border: 1px solid #3a3a44; border-radius: 10px; background: #232329; color: var(--label); padding: 0 12px; }
.activity-table { min-width: 650px; }
.activity-table td:nth-child(2) { max-width: 360px; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 11px; }
.activity-table td:nth-child(3) { white-space: nowrap; }
.activity-table td:nth-child(3) span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
#refresh span { margin-left: 12px; font-size: 20px; vertical-align: -1px; }
.status-row { display: flex; gap: 16px; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 26px 0 14px; }
.status-row p { margin: 0; }
.status-row > span { white-space: nowrap; }
.data-note { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.archive-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border: 1px solid #34483e; background: #17221d; border-radius: 12px; padding: 16px 20px; margin: 0 0 22px; font-size: 12px; line-height: 1.6; }
.archive-summary strong { color: #b7dec7; font-weight: 500; }
.archive-summary p { margin: 4px 0 0; color: var(--muted); }
.archive-summary a { color: #b7dec7; text-underline-offset: 3px; white-space: nowrap; }
.archive-summary details { flex-basis: 100%; font-size: 11px; color: var(--muted); }
#archive-path { overflow-wrap: anywhere; font-family: ui-monospace, monospace; margin-bottom: 8px; }
.stale { color: #ebc897; }
.notice { color: #ebc897; background: #34291e; border-radius: 12px; padding: 16px 20px; line-height: 1.6; }
.error { color: #ffc4ce; background: #3b2029; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 17px; padding: 22px 24px; min-width: 0; }
.metric.featured { background: linear-gradient(125deg, #37202e, #251e32); border-color: #583247; }
.metric p { margin: 0; font-size: 13px; color: #d0cdd5; }
.metric strong { display: block; font-size: 46px; line-height: 1.15; letter-spacing: -2px; font-weight: 500; font-variant-numeric: tabular-nums; margin: 16px 0 12px; }
.metric span { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); }
.charts { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 18px; margin: 22px 0; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 17px; padding: 26px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
h2 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; margin: 0; }
.panel-heading p { margin: 7px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.plot { display: flex; height: 164px; gap: 12px; }
.axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); min-width: 18px; text-align: right; }
.bars { display: flex; align-items: stretch; gap: 5px; width: 100%; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 49.5%, #24242b 50%, transparent 50.5%, transparent 99%); }
.day { display: flex; align-items: flex-end; justify-content: center; flex: 1 1 0; min-width: 0; border: 0; border-radius: 4px 4px 0 0; min-height: 0; padding: 0; background: transparent; position: relative; }
.day:hover { background: #ffffff0b; }
.day[aria-pressed="true"] { background: #ed76ac20; }
.day-stack { width: 80%; max-width: 40px; display: flex; flex-direction: column-reverse; justify-content: flex-start; border-radius: 4px 4px 0 0; overflow: hidden; }
.segment { display: block; flex-shrink: 0; }
.browser { background: var(--accent); }
.excluded { background: var(--excluded); }
.unknown { background: var(--unknown); }
.plot-dates { display: flex; justify-content: space-between; margin: 10px 0 18px 30px; font-size: 11px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--muted); }
.legend > span { display: flex; align-items: center; gap: 6px; }
.swatch { width: 7px; height: 7px; border-radius: 2px; }
.chart-hint, .device-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 16px 0 0; }
.text-button { font-size: 11px; border: 0; padding: 4px; min-height: 32px; color: var(--accent); background: none; }
.text-button:hover { background: none; text-decoration: underline; }
.device-list { display: grid; gap: 19px; }
.device-row-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 13px; }
.device-number { font-variant-numeric: tabular-nums; }
.device-number span { color: var(--muted); font-size: 11px; margin-left: 9px; }
.device-track { height: 5px; background: #2a2730; border-radius: 3px; overflow: hidden; }
.device-fill { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.device-note { margin-top: 25px; }
.filter { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; cursor: pointer; min-height: 36px; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { font-weight: 400; color: var(--muted); font-size: 11px; padding: 0 16px 13px 0; }
td { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:last-child, td:last-child { padding-right: 0; }
td:first-child { white-space: nowrap; }
.pill { font-size: 11px; padding: 4px 8px; border-radius: 5px; color: #e8aed0; background: #322331; white-space: nowrap; }
.pill.excluded { color: #c1bac8; background: #2e2a34; }
.pill.unknown { color: #d7c39f; background: #332f24; }
.empty { padding: 24px 0; color: var(--muted); text-align: center; }
.muted { color: var(--muted); font-size: 13px; }
.daily-details { margin-top: 16px; font-size: 12px; color: var(--muted); }
summary { cursor: pointer; padding-block: 6px; }
.daily-details table { margin-top: 14px; }
.explanation { max-width: 900px; margin: 28px 0 38px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.explanation strong { color: #d2ced7; font-weight: 500; }
.explanation p { margin: 6px 0 0; }
footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.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; }
.geography-panel { margin: 22px 0; }
.map-view-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.map-view-label select { font-size: 12px; }
.geo-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.geo-region { padding: 15px 18px; background: #201c25; border: 1px solid #332837; border-radius: 12px; }
.geo-region span, .geo-region small { display: block; color: var(--muted); font-size: 11px; }
.geo-region strong { display: block; font-size: 28px; font-weight: 500; margin: 8px 0; font-variant-numeric: tabular-nums; }
.geo-layout { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr); gap: 30px; align-items: start; }
.world-map-wrap { border: 1px solid #302833; border-radius: 12px; background: radial-gradient(ellipse at center, #251d2a, #141317); overflow: hidden; }
#world-map { display: block; width: 100%; aspect-ratio: 960 / 470; }
.map-country { fill: #302d36; stroke: #17171b; stroke-width: .6; vector-effect: non-scaling-stroke; }
.map-country.has-requests { cursor: pointer; }
.map-country.selected { stroke: #ffe6f1; stroke-width: 1.3; }
.map-marker { fill: #ffd0e4; stroke: #38212e; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.map-marker:hover, .map-marker.selected, .map-marker:focus { fill: #fff; stroke: #ed76ac; stroke-width: 2; outline: none; }
.map-readout { min-height: 34px; margin: 15px 0 8px; font-size: 12px; line-height: 1.6; color: #e8bbd1; }
.map-legend { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.map-legend i { display: block; width: 100px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #302d36, #643b52, #ed76ac); }
.countries-heading { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; margin: 0 0 13px; }
.countries-heading span { color: var(--muted); }
.geo-countries { max-height: 340px; overflow: auto; padding-right: 4px; }
.country-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; min-height: 45px; border: 0; border-radius: 6px; padding: 10px 8px; background: transparent; font-size: 12px; text-align: left; }
.country-row[aria-pressed="true"] { background: #352333; }
.country-row > span:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.country-code { font-size: 10px; color: var(--muted); width: 20px; flex-shrink: 0; }
.country-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
.country-value small { display: inline-block; width: 46px; text-align: right; color: var(--muted); font-size: 10px; }
.geo-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.geo-note a { color: #d6a7c0; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .geography-panel .panel-heading { flex-wrap: wrap; }
  .geo-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .geo-region { padding: 12px; }
  .geo-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .geo-countries { max-height: 260px; }
  .topbar { padding: 18px 22px; }
  .brand-detail, .local-badge { display: none; }
  main { padding: 30px 18px 22px; }
  .intro { font-size: 13px; }
  .controls { width: 100%; gap: 8px; }
  .controls select { min-width: 0; flex: 1; }
  .controls button { flex-shrink: 0; padding-inline: 12px; }
  .metric { padding: 18px 16px; }
  .metric strong { font-size: 38px; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 22px 18px; }
  .bars { gap: 3px; }
  .recent-table { min-width: 470px; }
  .activity-table { min-width: 440px; table-layout: fixed; }
  .activity-table th:nth-child(1) { width: 29%; }
  .activity-table td:first-child { white-space: normal; }
  .activity-table th:nth-child(2) { width: 32%; }
  .activity-table th:nth-child(3) { width: 12%; }
  .activity-table th:nth-child(4), .activity-table td:nth-child(4) { display: none; }
  .activity-table th:nth-child(5) { width: 27%; }
  .activity-table .pill { display: inline-block; white-space: normal; line-height: 1.5; }
  footer { flex-direction: column; gap: 8px; }
}

.account{display:flex;align-items:center;gap:20px;font-size:13px;color:var(--muted)}.account[hidden]{display:none}.login-panel{max-width:720px;margin:clamp(60px,13vh,160px) auto;padding:24px}.login-panel h1{font-size:clamp(48px,8vw,80px);line-height:1.05;letter-spacing:-.055em;margin:20px 0}.login-panel .intro{max-width:500px;margin-bottom:30px}.login-panel #sign-in{background:#a16b92;color:#fff;border-color:#b683a9;padding:15px 22px;font-size:15px;display:flex;gap:36px;align-items:center}.login-note{color:var(--muted);font-size:13px;line-height:1.7;max-width:440px;margin-top:30px}.controls{flex-wrap:wrap}main[hidden],section[hidden]{display:none}@media(max-width:650px){.account{gap:10px}.account #account-email{max-width:135px;overflow:hidden;text-overflow:ellipsis}.login-panel{margin:55px auto}}
