:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --paper: #fff;
  --ink: #202923;
  --muted: #57635c;
  --green: #214f41;
  --soft: #e7eee6;
  --line: #dce2db;
  --red: #a93432;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
svg:focus-visible {
  outline: 3px solid #8cae98;
  outline-offset: 4px;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.shell {
  max-width: 680px;
  margin: auto;
  min-height: 100dvh;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.13;
  letter-spacing: -1.25px;
  font-weight: 720;
}
h2 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  font-weight: 650;
}
.top {
  height: calc(76px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 3;
}
.wordmark {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.5px;
  color: var(--green);
}
.icon-button {
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  color: var(--green);
  flex-shrink: 0;
}
.avatar {
  background: var(--soft);
  width: 42px;
  height: 42px;
}
.icon-button:active,
.text-button:active {
  background: var(--soft);
}
.feed,
.detail,
.account {
  padding: 12px 22px 32px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.eyebrow {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 9px;
}
.activity-row {
  border-bottom: 1px solid var(--line);
}
.activity-link {
  display: block;
  padding: 23px 0;
  transition: opacity 0.12s;
}
.activity-link:active {
  opacity: 0.65;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.sport-icon {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  color: var(--green);
}
.sport-icon.ball {
  background: #f5ead8;
  color: #a35a19;
}
.sport-icon.run {
  background: #edf0df;
  color: #526a3d;
}
.sport-name {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.row-meta time {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.chevron {
  width: 19px;
  height: 19px;
  color: #738178;
  margin-left: auto;
}
.row-meta .chevron {
  margin-left: auto;
}
.activity-row h2 {
  overflow-wrap: anywhere;
}
.row-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 21px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.row-metrics strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.provenance {
  font-size: 12px;
  color: var(--muted);
  margin-top: 11px;
}
.note-preview {
  font-size: 15px;
  color: var(--muted);
  margin-top: 11px;
}
.pagination {
  padding: 25px 0;
  text-align: center;
}
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 650;
  border: 1px solid transparent;
  font-size: 16px;
}
.primary {
  color: #fff;
  background: var(--green);
}
.primary:active {
  background: #163d31;
}
.secondary {
  background: var(--soft);
  color: var(--green);
}
.primary[aria-busy="true"],
.secondary[aria-busy="true"] {
  opacity: 0.65;
  pointer-events: none;
}
.empty {
  padding: 48px 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  text-decoration: underline;
}
.active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--soft);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
.active-filter a {
  padding: 5px;
  font-weight: 600;
}
.back {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--green);
  font-size: 16px;
  min-height: 44px;
  margin-left: -8px;
}
.detail h1 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.detail .provenance {
  margin-top: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 27px 0 4px;
}
.metrics div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.metrics dt {
  font-size: 13px;
  color: var(--muted);
}
.metrics dd {
  margin: 3px 0 0;
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 650;
}
.metrics dd small {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 500;
}
.data-section {
  margin-top: 30px;
}
.route-section {
  margin-bottom: 28px;
}
.route {
  margin-top: 14px;
  background: var(--soft);
  border-radius: 16px;
  overflow: hidden;
}
.route svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--green);
  stroke-width: 2.3;
}
.route path {
  vector-effect: non-scaling-stroke;
}
.chart-tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  scrollbar-width: none;
  margin: 15px -2px 9px;
  padding: 2px;
}
.chart-tabs button {
  white-space: nowrap;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.chart-tabs [aria-selected="true"] {
  background: var(--green);
  color: white;
  font-weight: 600;
}
.chart-reading {
  font-size: 22px;
  font-weight: 650;
  min-height: 38px;
  padding: 8px 4px 0;
  font-variant-numeric: tabular-nums;
}
.chart-reading small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  touch-action: pan-y;
  overflow: visible;
}
.chart .grid {
  stroke: var(--line);
  stroke-width: 0.7;
}
.chart text {
  fill: var(--muted);
  stroke: none;
  font:
    11px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.chart .curve {
  stroke: var(--green);
  stroke-width: 1.8;
}
.chart .marker {
  stroke: #aa632a;
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}
.chart .dot {
  fill: var(--green);
  stroke: white;
  stroke-width: 2;
}
.chart-axis {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.loading-state,
.no-series {
  font-size: 15px;
  color: var(--muted);
  padding: 20px 0;
}
.journal-notes {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.journal-notes p {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.auth {
  padding: 12vh 28px 30px;
  max-width: 440px;
  margin: auto;
}
.brand-mark {
  width: 58px;
  height: 58px;
  color: white;
  background: var(--green);
  border-radius: 18px;
  font-size: 42px;
  line-height: 52px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
}
.auth h1 {
  font-size: 34px;
}
.auth-form,
.password-form {
  margin-top: 32px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 7px;
}
input:not([type="hidden"]),
select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid #c8d0c7;
  border-radius: 10px;
  font-size: 16px;
}
input {
  min-width: 0;
}
.auth-form .primary,
.password-form .primary,
.sheet .primary {
  width: 100%;
  margin-top: 28px;
}
.error,
.errorlist {
  color: var(--red);
  font-size: 14px;
  margin: 12px 0;
}
.errorlist {
  padding-left: 20px;
}
.success {
  background: var(--soft);
  border-radius: 10px;
  color: var(--green);
  padding: 12px;
  margin: 20px 0;
}
.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.account-name {
  font-size: 18px;
  color: var(--muted);
  margin-top: 10px;
}
.settings-list {
  margin-top: 32px;
}
.settings-list > a,
.settings-list > button,
.settings-list form button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.settings-list form .logout {
  color: var(--red);
}
.text-button {
  background: none;
  border: none;
  color: var(--green);
  font-size: 15px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 8px;
}
.sheet {
  border: 0;
  background: var(--bg);
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  max-width: 680px;
  width: 100%;
  margin: auto auto 0;
  padding: 22px 24px max(24px, env(safe-area-inset-bottom));
  max-height: 90dvh;
  overflow: auto;
}
.sheet::backdrop {
  background: #15271d66;
}
.sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-title h2 {
  font-size: 24px;
}
.offline {
  padding: 25vh 24px 40px;
  max-width: 500px;
  margin: auto;
}
.offline h1 {
  font-size: 30px;
  margin-bottom: 28px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 650px) {
  .shell {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .top {
    padding-right: 32px;
    padding-left: 32px;
  }
  .feed,
  .detail,
  .account {
    padding-right: 32px;
    padding-left: 32px;
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sheet {
    border-radius: 24px;
    margin: auto;
  }
  .auth {
    padding-top: 15vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
