:root {
  color-scheme: light dark;
  --paper: #f5f5ef;
  --surface: #fcfcf9;
  --ink: #28362f;
  --on-ink: #ffffff;
  --muted: #737c72;
  --body-muted: #616b60;
  --border: #dedfd6;
  --row-border: #e7e8df;
  --accent: #b84c2d;
  --soft: #edece3;
  --selected: #eceee4;
  --summary-selected: #efeee5;
  --hover: #efefe7;
  --scrollbar: #c5c9bd;
  --sample: #a58042;
  --warn-bg: #f4eddc;
  --warn-ink: #7a602a;
  --shadow: #0000000f;
  --dialog-shadow: #0003;
  --backdrop: #27332a70;
  --chart-axis: #dfe2d7;
  --chart-grid: #eceee6;
  --chart-cursor: #56634e;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151917;
    --surface: #1c211e;
    --ink: #e4e8e0;
    --on-ink: #151917;
    --muted: #99a296;
    --body-muted: #aab2a7;
    --border: #2f3631;
    --row-border: #272d29;
    --accent: #e8805e;
    --soft: #252b27;
    --selected: #262d28;
    --summary-selected: #242a26;
    --hover: #222824;
    --scrollbar: #3d4540;
    --sample: #d2a656;
    --warn-bg: #2f2a1d;
    --warn-ink: #e3c27f;
    --shadow: #00000066;
    --dialog-shadow: #000a;
    --backdrop: #000000a0;
    --chart-axis: #343b36;
    --chart-grid: #2a302c;
    --chart-cursor: #b3bdb0;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:hover {
  color: var(--accent);
}
.app-shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 40px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 84px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand > span:last-child {
  color: var(--accent);
}
.brand-icon {
  font-size: 30px;
  margin-right: 10px;
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.data-badge {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.text-button {
  padding: 4px 0;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.text-button:hover {
  text-decoration-color: currentColor;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0 24px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 600;
}
h1 {
  font-size: 35px;
  letter-spacing: -1.6px;
  font-weight: 500;
  line-height: 1.2;
  margin: 9px 0;
}
h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0;
}
.title-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 9px 0 0;
}
.time-panel {
  padding: 23px 27px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.time-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.clock-group {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.clock {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
}
.clock input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.clock:focus-within {
  outline: 2px solid var(--accent);
  border-radius: 4px;
  outline-offset: 4px;
}
#clock {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
#meridiem {
  font-size: 14px;
  color: var(--muted);
}
#clock-note {
  font-size: 10px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 20px;
  align-items: end;
}
select {
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 7px 25px 7px 9px;
  background: var(--surface);
  font-size: 10px;
  color: var(--ink);
  max-width: 100%;
}
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field-label {
  font-size: 9px;
  color: var(--muted);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter select {
  max-width: 190px;
}
.filter select:has(option[value=""]:checked) {
  color: var(--muted);
}
#reset-filters {
  margin-left: auto;
  font-size: 10px;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--soft);
  border-radius: 6px;
  gap: 2px;
}
.segmented button {
  padding: 7px 12px;
  font-size: 10px;
  white-space: nowrap;
  border-radius: 4px;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px var(--shadow);
}
.timeline-controls {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 25px;
}
.timeline {
  flex: 1;
  padding-top: 11px;
}
.play-button {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}
.now-button {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
input[type="range"] {
  appearance: none;
  width: 100%;
  display: block;
  margin: 0;
  background: linear-gradient(90deg, #7784ae, #c7c9c3 25%, #d1b98b 50%, #d6a589 75%, #7784ae);
  height: 4px;
  border-radius: 4px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--ink);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  background: var(--ink);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink);
}
.ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-top: 12px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.summary.two {
  grid-template-columns: repeat(2, 1fr);
}
.summary-card {
  text-align: left;
  padding: 15px 23px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 12px;
}
.summary-card + .summary-card {
  border-left: 1px solid var(--border);
}
.summary-card[aria-pressed="true"] {
  background: var(--summary-selected);
}
.summary-label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  display: inline-block;
  height: 6px;
  width: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color);
}
.summary-value {
  font-size: 27px;
  font-weight: 450;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.summary-percent {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.browser-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.compact button {
  padding: 5px 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
}
.search > span {
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}
.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: none;
  font-size: 11px;
  min-width: 0;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.search kbd {
  border: 1px solid var(--border);
  padding: 0 4px;
  border-radius: 3px;
  font-size: 10px;
  color: var(--muted);
}
.list-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}
.list-options select {
  border: 0;
  background: transparent;
  padding-left: 0;
  font-size: 10px;
  max-width: 220px;
}
.list-options > span {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.table-heading {
  display: grid;
  grid-template-columns: 1fr 88px 45px;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.8px;
}
.table-heading button {
  font-size: 8px;
  letter-spacing: 0.8px;
  padding: 0;
  text-align: right;
}
.table-heading > span:last-child {
  text-align: right;
}
.activity-list {
  max-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
  overscroll-behavior: contain;
}
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 45px;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid var(--row-border);
  text-align: left;
  padding: 13px 12px;
  position: relative;
  min-height: 49px;
  border-left: 2px solid transparent;
}
.activity-row[aria-pressed="true"] {
  background: var(--selected);
  border-left-color: var(--ink);
}
.activity-row:hover {
  background: var(--hover);
  color: var(--ink);
}
.row-name {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  font-size: 11px;
}
.row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.row-count {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row-percent {
  font-size: 10px;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sample-mark {
  width: 4px;
  height: 4px;
  background: var(--sample);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}
.list-note {
  font-size: 9px;
  color: var(--muted);
  margin: 12px 0;
}
.load-more {
  width: 100%;
  font-size: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
}
.empty {
  padding: 35px 15px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.detail-panel {
  position: sticky;
  top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  min-width: 0;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.7px;
}
.detail-panel h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 500;
  margin: 13px 0 0;
  overflow-wrap: anywhere;
}
.detail-value {
  font-size: 52px;
  letter-spacing: -2px;
  line-height: 1.1;
  font-weight: 450;
  margin-top: 23px;
  font-variant-numeric: tabular-nums;
}
.detail-value small {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}
.detail-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 22px;
}
.trend-heading {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 10px;
}
.trend-chart {
  width: 100%;
  height: 140px;
  display: block;
  cursor: crosshair;
  overflow: visible;
}
.chart-axis {
  stroke: var(--chart-axis);
}
.chart-grid {
  stroke: var(--chart-grid);
}
.chart-cursor {
  stroke: var(--chart-cursor);
}
.trend-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 17px 0;
  margin-top: 22px;
}
.detail-stats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.detail-stats strong {
  font-weight: 500;
  font-size: 16px;
  display: block;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.breakdown,
.years {
  margin-top: 20px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 44px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 3px 0;
}
.breakdown-row.muted {
  color: var(--muted);
}
.breakdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breakdown-bar {
  height: 6px;
  background: var(--soft);
  border-radius: 3px;
  overflow: hidden;
}
.breakdown-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.breakdown-row.muted .breakdown-bar i {
  opacity: 0.45;
}
.breakdown-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.breakdown-note {
  font-size: 9px;
  color: var(--muted);
  margin: 6px 0 0;
}
.years-chart {
  width: 100%;
  height: 80px;
  display: block;
}
.year-bar.small {
  opacity: 0.4;
}
.detail-definition {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
  margin: 16px 0 0;
}
.sample-status {
  font-size: 10px;
  color: var(--muted);
  margin: 13px 0 0;
  line-height: 1.6;
}
.sample-status.small-sample {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 4px;
  padding: 9px 11px;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 21px;
}
.outline-button {
  font-size: 10px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.detail-actions .text-button {
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding: 19px 0 25px;
  color: var(--muted);
  font-size: 9px;
}
footer .text-button {
  font-size: 10px;
}
#loading {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
}
dialog {
  width: calc(100% - 30px);
  max-width: 620px;
  max-height: 88vh;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 30px 100px var(--dialog-shadow);
}
dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(4px);
}
.close-button {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 25px;
}
dialog h2 {
  font-size: 28px;
  margin: 12px 0;
  letter-spacing: -1px;
}
.about-lead {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
details p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--body-muted);
}
details a {
  text-underline-offset: 3px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 20px;
  font-size: 12px;
  border-radius: 7px;
  z-index: 20;
  max-width: 90vw;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .app-shell {
    padding: 0 26px;
  }
  .clock-group {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  #clock-note {
    margin-top: -7px;
  }
  .filters {
    gap: 12px;
  }
  .workspace {
    gap: 20px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .detail-panel {
    padding: 21px;
  }
  .summary-card {
    padding: 13px 17px;
  }
  .summary-value {
    font-size: 24px;
  }
  .table-heading,
  .activity-row {
    grid-template-columns: minmax(0, 1fr) 67px 35px;
    gap: 8px;
  }
  .detail-value {
    font-size: 43px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    padding: 0 18px;
  }
  header {
    height: 70px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-icon {
    font-size: 25px;
    margin-right: 7px;
  }
  .data-badge {
    display: none;
  }
  .header-actions {
    gap: 0;
  }
  .title-row {
    padding: 26px 0 20px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1.3px;
  }
  .title-row p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .time-panel {
    padding: 18px 18px 14px;
  }
  .time-controls {
    align-items: flex-start;
    gap: 12px;
  }
  .filters {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
  .filter-panel {
    padding: 12px 14px;
  }
  .filter select {
    font-size: 9px;
    max-width: 150px;
  }
  .segmented button {
    font-size: 9px;
    padding: 5px 8px;
  }
  #clock {
    font-size: 39px;
  }
  #meridiem {
    font-size: 11px;
  }
  #clock-note {
    font-size: 8px;
    margin-top: 0;
  }
  .timeline-controls {
    gap: 10px;
    margin-top: 22px;
  }
  .now-button {
    font-size: 9px;
    padding: 5px 7px;
  }
  .ticks {
    font-size: 8px;
  }
  .summary-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .summary-label {
    font-size: 10px;
  }
  .summary-value {
    font-size: 25px;
    margin-top: 5px;
  }
  .summary-percent {
    font-size: 8px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .activity-browser {
    width: 100%;
  }
  .activity-list {
    max-height: 360px;
  }
  .detail-panel {
    width: 100%;
    position: static;
  }
  .detail-panel h2 {
    font-size: 24px;
  }
  .detail-value {
    font-size: 46px;
  }
  .trend-chart {
    height: 145px;
  }
  .detail-stats {
    margin-top: 18px;
  }
  .row-name {
    font-size: 11px;
  }
  .row-count {
    font-size: 13px;
  }
  .table-heading,
  .activity-row {
    grid-template-columns: minmax(0, 1fr) 78px 40px;
  }
  .detail-actions {
    justify-content: flex-start;
    gap: 20px;
  }
  .search input {
    font-size: 11px;
  }
  footer {
    align-items: flex-start;
    font-size: 8px;
  }
  footer .text-button {
    font-size: 9px;
    white-space: nowrap;
  }
  dialog {
    padding: 28px 22px;
  }
  .about-lead {
    line-height: 1.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
