:root {
  --ink: #171717;
  --sub: #626261;
  --paper: #f6f6f4;
  --line: #e6e5e2;
  --orange: #ff5a24;
  --deep-orange: #a6320f;
  --soft: #fff0e9;
  font-family: Inter,Arial,Helvetica,sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
}

*,*::before,*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select {
  font: inherit;
}

button,select {
  cursor: pointer;
}

a {
  color: inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #b93d13;
  outline-offset: 3px;
}

[hidden] {
  display: none!important;
}

.shell {
  width: min(1160px,calc(100% - 72px));
  margin-inline: auto;
}

.topbar {
  background: #151515;
  color: #fff;
}

.top-inner {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 48px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.brand>span:last-child {
  color: #ff744a;
}

.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--orange);
  margin-right: 10px;
  position: relative;
}

.brand-mark::before,.brand-mark::after {
  content: "";
  position: absolute;
  top: 8px;
  height: 14px;
  width: 4px;
  background: #171717;
  transform: skew(-27deg);
  left: 10px;
}

.brand-mark::after {
  left: 17px;
}

.top-inner nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
}

.top-inner nav a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #bdbdbd;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
}

.top-inner nav a:hover,.top-inner nav a.current {
  color: #fff;
  border-color: var(--orange);
}

.demo {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dedede;
  font-size: .8125rem;
  white-space: nowrap;
}

.demo i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero {
  margin-top: 32px;
  min-height: 246px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  background: #1b1a1a;
  color: #fff;
  padding: 37px 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#1b1a1a 16%,#1b1a1ae8 47%,transparent 88%);
}

.track {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 89% 85%,#6b2818,transparent 52%);
}

.track span {
  position: absolute;
  width: 780px;
  height: 400px;
  right: calc(-380px + var(--offset));
  top: calc(-177px + var(--offset));
  border: 1px solid #ff75408c;
  border-radius: 51%;
  transform: rotate(-28deg);
}

.track span:nth-child(1) {
  --offset: 0px;
}

.track span:nth-child(2) {
  --offset: 22px;
}

.track span:nth-child(3) {
  --offset: 44px;
}

.track span:nth-child(4) {
  --offset: 66px;
}

.track span:nth-child(5) {
  --offset: 88px;
}

.track span:nth-child(6) {
  --offset: 110px;
}

.track span:nth-child(7) {
  --offset: 132px;
  border-width: 3px;
  border-color: #ff673cbb;
}

.eyebrow,.overline {
  font-size: .8125rem;
  font-weight: 850;
  letter-spacing: .14em;
  margin: 0 0 8px;
}

.eyebrow {
  color: #ff865f;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 20px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.55rem,6vw,5.2rem);
  line-height: .97;
  letter-spacing: -.095em;
  margin: 0;
  font-weight: 950;
}

.hero h1 em {
  font-style: normal;
  color: #ff6636;
}

.hero-text {
  color: #e4dedb;
  font-size: 1rem;
  margin: 19px 0 1px;
  line-height: 1.45;
}

.hero-side {
  display: grid;
  gap: 6px;
  flex: none;
  padding: 12px 16px;
  border: 1px solid #ffffff38;
  border-radius: 9px;
  background: #211b19e8;
}

.hero-side span {
  font-size: .75rem;
  color: #ded2cd;
  font-weight: 700;
  letter-spacing: .09em;
}

.hero-side time {
  font-size: .9375rem;
  font-weight: 750;
}

section {
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 33px 0 14px;
}

.overline {
  color: var(--deep-orange);
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem,3vw,2.25rem);
  letter-spacing: -.06em;
  line-height: 1.07;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.035em;
}

.scope {
  color: var(--sub);
  font-size: .875rem;
  text-align: right;
  font-weight: 650;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 12px #15151506;
  min-width: 0;
}

.controls,.filters {
  padding: 18px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.controls {
  padding-bottom: 12px;
}

.filters {
  padding-top: 0;
  padding-bottom: 16px;
}

.views,.categories {
  display: flex;
  gap: 4px;
}

.views {
  background: #f0f0ee;
  border-radius: 9px;
  padding: 4px;
}

.views button,.categories button {
  border: 0;
  background: transparent;
  color: #4b4b4a;
  font-weight: 750;
  font-size: .875rem;
  padding: 9px 13px;
  border-radius: 6px;
  white-space: nowrap;
}

.views button:hover,.categories button:hover {
  background: #eae9e7;
}

.views button[aria-pressed=true] {
  background: #202020;
  color: #fff;
}

.categories button[aria-pressed=true] {
  background: var(--soft);
  color: var(--deep-orange);
}

.search {
  display: flex;
  align-items: center;
  position: relative;
  width: min(250px,100%);
}

.search span {
  position: absolute;
  left: 13px;
  width: 12px;
  height: 12px;
  border: 1.7px solid #5e5e5d;
  border-radius: 50%;
  pointer-events: none;
  margin-top: -3px;
}

.search span::after {
  content: "";
  position: absolute;
  background: #5e5e5d;
  width: 6px;
  height: 1.6px;
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}

.search input {
  width: 100%;
  min-width: 0;
  padding: 10px 10px 10px 35px;
  border: 1px solid #d8d8d5;
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  color: var(--ink);
}

.week-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: .875rem;
}

.week-choice select {
  appearance: none;
  background: linear-gradient(45deg,transparent 50%,#565656 50%) right 15px center/5px 5px no-repeat,linear-gradient(135deg,#565656 50%,transparent 50%) right 10px center/5px 5px no-repeat;
  border: 1px solid #d8d8d5;
  border-radius: 7px;
  padding: 8px 28px 8px 9px;
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

thead {
  background: #f5f5f3;
  color: #595957;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

th,td {
  padding: 10px 16px;
  border-bottom: 1px solid #efefec;
}

thead th {
  padding-block: 12px;
  border-top: 1px solid #efefec;
}

th:first-child,td:first-child {
  padding-left: 23px;
  width: 85px;
}

th:last-child,td:last-child {
  text-align: right;
  padding-right: 24px;
}

.rank {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 28px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 800;
  color: #575756;
}

.rank-first {
  background: #ffdfd1;
  color: #8c2b0c;
}

.rank-second,.rank-third {
  background: #efefed;
  color: #343434;
}

.score {
  font-weight: 850;
}

.unit {
  color: var(--sub);
  font-weight: 500;
  font-size: .8125rem;
  margin-left: 3px;
}

.person {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 750;
}

.person:hover .person-name {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: #f2e9e4;
  color: #77371e;
  font-weight: 850;
  font-size: .8125rem;
}

.avatar[data-tone="1"] {
  background: #ecece9;
  color: #30302f;
}

.avatar[data-tone="2"] {
  background: #fee9df;
  color: #82361e;
}

.avatar[data-tone="3"] {
  background: #242424;
  color: white;
}

.category-col {
  color: #626260;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 23px;
  color: var(--sub);
  font-size: .875rem;
}

.empty {
  text-align: center!important;
  padding: 30px!important;
  color: var(--sub);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}

.chart-card {
  padding: 22px;
}

.chart-sub {
  color: var(--sub);
  font-size: .875rem;
  margin: 6px 0 20px;
}

.distribution-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.donut {
  width: min(160px,42%);
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}

.donut::before {
  content: "";
  position: absolute;
  inset: 15%;
  background: white;
  border-radius: 50%;
}

.donut-label {
  position: relative;
  display: grid;
  text-align: center;
  line-height: 1.1;
  gap: 5px;
  font-weight: 850;
  font-size: 1.35rem;
  white-space: nowrap;
}

.donut-label small {
  font-size: .75rem;
  color: var(--sub);
  font-weight: 700;
}

.legend {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.legend button {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  text-align: left;
  gap: 8px;
  background: white;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px;
  color: var(--ink);
  font-size: .875rem;
}

.legend button:hover,.legend button[aria-pressed=true] {
  border-color: #f3c9b8;
  background: #fff7f3;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--swatch);
}

.chart-caption {
  color: var(--sub);
  margin: 12px 0 0;
  font-size: .875rem;
  min-height: 1.1em;
}

.plot {
  height: 156px;
  position: relative;
  margin: 14px 20px 32px 40px;
  background: repeating-linear-gradient(to top,#e6e5e2 0 1px,transparent 1px 25%);
  border-top: 1px solid #e6e5e2;
}

.axis {
  position: absolute;
  left: -40px;
  color: var(--sub);
  font-size: .75rem;
  transform: translateY(50%);
  font-variant-numeric: tabular-nums;
}

.chart-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chart-line canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.point {
  position: absolute;
  transform: translate(-50%,50%);
  background: white;
  color: #a6320f;
  border: 3px solid var(--orange);
  border-radius: 50%;
  width: 19px;
  height: 19px;
  padding: 0;
}

.point:hover,.point[aria-pressed=true] {
  background: #a6320f;
  border-color: #a6320f;
  box-shadow: 0 0 0 5px #ff5a2430;
}

.tick {
  position: absolute;
  bottom: -24px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .75rem;
  color: var(--sub);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--sub);
  font-size: .875rem;
  padding: 24px 0 32px;
}

footer span:first-child {
  font-weight: 750;
}

dialog {
  width: min(560px,calc(100% - 28px));
  max-height: 90dvh;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 90px #0006;
  color: var(--ink);
}

dialog::backdrop {
  background: #171717a8;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-top .overline {
  margin: 0;
}

.close {
  font-size: 1.5rem;
  line-height: 1;
  background: #f0f0ee;
  border: 0;
  border-radius: 7px;
  width: 36px;
  height: 36px;
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
}

.profile-heading .avatar {
  width: 46px;
  height: 46px;
}

.profile-heading p {
  margin: 5px 0 0;
  color: var(--sub);
}

.profile-stats {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}

.profile-stats div {
  flex: 1;
  background: #f4f4f2;
  border-radius: 8px;
  padding: 9px 11px;
}

.profile-stats dt {
  font-size: .8125rem;
  color: var(--sub);
}

.profile-stats dd {
  margin: 4px 0 0;
  font-weight: 850;
  font-size: 1.25rem;
}

.error {
  padding: 14px;
  background: var(--soft);
  color: var(--deep-orange);
  border-radius: 8px;
}

@media(max-width:800px) {
  .shell {
    width: calc(100% - 36px);
  }
  .analytics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .distribution-body {
    flex-direction: column;
    align-items: stretch;
  }
  .donut {
    align-self: center;
    width: 130px;
  }
  .hero {
    padding: 28px;
  }
  .hero h1 {
    font-size: clamp(2.55rem,7.5vw,5rem);
  }
}

@media(max-width:580px) {
  .shell {
    width: calc(100% - 28px);
  }
  .top-inner {
    gap: 17px;
    min-height: 58px;
  }
  .top-inner nav {
    gap: 13px;
  }
  .top-inner nav a {
    font-size: .8125rem;
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand-mark {
    margin-right: 6px;
  }
  .demo {
    display: none;
  }
  .hero {
    margin-top: 17px;
    padding: 23px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 240px;
    gap: 18px;
  }
  .hero h1 {
    font-size: clamp(2.4rem,10vw,3.5rem);
  }
  .hero-side {
    padding: 7px 10px;
    gap: 3px;
  }
  .hero-text {
    margin-top: 12px;
  }
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  .controls,.filters {
    padding-inline: 12px;
  }
  .views button {
    flex: 1;
  }
  .views button,.categories button {
    padding-inline: 9px;
  }
  .search {
    width: 100%;
  }
  .week-choice label {
    display: none;
  }
  .category-col {
    display: none;
  }
  th,td {
    padding-inline: 5px;
  }
  th:first-child,td:first-child {
    padding-left: 12px;
    width: 56px;
  }
  th:last-child,td:last-child {
    padding-right: 12px;
  }
  .person {
    gap: 7px;
  }
  .table-footer {
    padding-inline: 12px;
    font-size: .8125rem;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .distribution-body {
    flex-direction: row;
    align-items: center;
  }
  .donut {
    width: min(145px,42%);
  }
  .chart-card {
    padding: 17px;
  }
  footer {
    flex-direction: column;
  }
  .scope {
    font-size: .8125rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior: auto;
  }
}
