:root {
  --navy: #142339;
  --text: #1b2b42;
  --muted: #627083;
  --blue: #355be9;
  --blue-dark: #2648c8;
  --teal: #147e73;
  --line: #e1e7ee;
  --surface: #fff;
  --background: #f5f7fa;
  --error: #a52f36;
  --radius: 18px;
  --shadow: 0 10px 32px #14233906;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 300px;
  line-height: 1.5;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.52;
}
button[hidden],
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.55rem);
  font-weight: 750;
}
h2 {
  font-size: 1.42rem;
  font-weight: 700;
}
h3 {
  font-size: 1.1rem;
}
p {
  line-height: 1.65;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
  line-height: 1.6;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
:focus-visible {
  outline: 3px solid #355be970;
  outline-offset: 4px;
}
input:focus-visible {
  outline-offset: 1px;
}
input {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s;
}
input:focus {
  border-color: var(--blue);
}
input:disabled {
  background: #f4f6f9;
  color: #6c7480;
}
label {
  display: block;
  margin: 17px 0 7px;
  font-size: 0.81rem;
  font-weight: 650;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.button:not(:disabled):active {
  transform: translateY(1px);
}
.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 3px #2448b818;
}
.button-primary:hover:not(:disabled) {
  background: var(--blue-dark);
}
.button-secondary {
  color: var(--text);
  background: white;
  border-color: var(--line);
}
.button-secondary:hover:not(:disabled) {
  background: #f6f8fb;
  border-color: #bdcadd;
}
.button-quiet {
  color: var(--muted);
  background: transparent;
}
.button-quiet:hover:not(:disabled) {
  background: #eaf0f7;
  color: var(--text);
}
.button-full {
  width: 100%;
  margin-top: 21px;
}
.button-full + .button-full {
  margin-top: 6px;
}
.button-compact {
  min-height: 40px;
  padding: 9px 13px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.77rem;
  padding: 8px;
  border-radius: 5px;
}
.text-button:hover {
  color: var(--text);
  background: #eaf0f5;
}
.icon-button {
  height: 36px;
  min-width: 36px;
  border: 0;
  background: #f1f4f8;
  color: var(--muted);
  font-size: 1.5rem;
  border-radius: 50%;
  line-height: 1;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 91px;
  max-width: 1216px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.brand img {
  border-radius: 11px;
}
.brand-light {
  font-weight: 500;
  letter-spacing: -0.035em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  padding: 6px;
  border-radius: 7px;
  max-width: 240px;
}
.account-button:hover {
  background: #eaf0f5;
}
.account-button #account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-avatar {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 750;
  color: #375285;
  background: #e3ebf8;
}
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 55px;
  min-height: calc(100vh - 186px);
}
.page:focus {
  outline: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-dot {
  height: 6px;
  width: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.section-kicker {
  display: block;
  margin-bottom: 9px;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--teal);
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 88px;
  padding: 86px 26px 40px;
  align-items: center;
}
.login-intro h1 {
  margin-top: 22px;
  font-size: clamp(2.9rem, 4.8vw, 4.3rem);
  line-height: 1.09;
  letter-spacing: -0.055em;
}
.intro-copy {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 23px;
  line-height: 1.8;
}
.format-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 384px;
  margin-top: 37px;
  border: 1px solid #dfe7ec;
  border-radius: 14px;
  padding: 19px 19px 19px 15px;
  background: linear-gradient(110deg, #fff, #f9fbff);
  box-shadow: 0 10px 30px #15253d06;
  transform: rotate(-2deg);
}
.format-icon {
  background: #eaf0ff;
  border: 1px solid #dae3ff;
  color: var(--blue);
  width: 48px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.format-filename {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.format-caption {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}
.format-check {
  height: 23px;
  width: 23px;
  display: grid;
  place-items: center;
  color: var(--teal);
  border-radius: 50%;
  background: #e7f4f0;
  margin-left: auto;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.intro-details {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  font-size: 0.64rem;
  color: var(--muted);
}
.intro-details span + span:before {
  content: "·";
  position: relative;
  left: -8px;
}
.login-card {
  padding: 33px 34px;
}
.login-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
.login-card > p {
  font-size: 0.82rem;
  margin-top: 12px;
}
.login-card form {
  margin-top: 24px;
}
.login-help {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 25px !important;
  font-size: 0.71rem !important;
}
.form-error {
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #fff0ef;
  border: 1px solid #f5d4d1;
  color: var(--error);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.boot-view {
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}
.spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 2px solid #dfe7f3;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 0 36px;
}
.workspace-heading h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  margin-top: 12px;
}
.workspace-heading p {
  font-size: 0.9rem;
  margin-top: 12px;
}
.workspace-mark {
  height: 76px;
  width: 76px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  background: #e9eff5;
  color: #526d88;
  transform: rotate(-8deg);
}
.connection-card {
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 70px;
  margin-top: 12px;
}
.connection-copy,
.connection-forms {
  min-width: 0;
}
.connection-copy h2 {
  font-size: 1.65rem;
  margin-top: 22px;
  max-width: 300px;
}
.connection-copy > .muted {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 355px;
}
.connection-copy > .small {
  margin-top: 23px;
  max-width: 350px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border: 1px solid #cce5dc;
  background: #eef8f3;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
}
.connection-forms form > label:first-child {
  margin-top: 0;
}
.connection-forms {
  padding: 2px 0;
}
.mfa-intro {
  margin-bottom: 20px;
}
.mfa-intro p {
  margin-top: 12px;
}
#mfa-code {
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}
.connection-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #edf6f2;
  border: 1px solid #d7eae0;
  padding: 11px 16px;
  border-radius: 10px;
  margin: 0 0 30px;
}
.connection-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 0.74rem;
  color: #27664c;
}
.status-dot {
  height: 7px;
  width: 7px;
  background: #2d9975;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #2d997512;
}
.connection-status strong {
  font-weight: 650;
  flex-shrink: 0;
}
.connection-email {
  color: #56836f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.connection-email:not(:empty):before {
  content: "/";
  padding: 0 2px 0 3px;
  color: #9bbcab;
}
.connection-strip .text-button {
  color: #47755f;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.library-toolbar h2 {
  font-size: 1.3rem;
}
.library-toolbar p {
  margin-top: 6px;
}
.activity-card {
  overflow: hidden;
}
.activity-columns,
.activity-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 125px 125px 128px;
  gap: 16px;
  align-items: center;
  padding: 0 24px;
}
.activity-columns {
  height: 48px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #7b8796;
  font-weight: 650;
}
.activity-columns > span:last-child {
  text-align: right;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-row {
  min-height: 101px;
  border-bottom: 1px solid #e9edf2;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row:hover {
  background: #fbfcff;
}
.activity-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.sport-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #eef2fb;
  color: #5474bd;
  flex-shrink: 0;
}
.sport-icon[data-sport="cycling"] {
  background: #eaf5f0;
  color: #2e8a6a;
}
.sport-icon[data-sport="running"] {
  background: #f2eefb;
  color: #8060a9;
}
.sport-icon[data-sport="hiking"] {
  background: #fff3e7;
  color: #ba8844;
}
.activity-copy {
  min-width: 0;
}
.activity-title {
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.activity-meta {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.activity-meta time {
  white-space: nowrap;
}
.meta-separator {
  color: #aeb8c5;
}
.activity-stat {
  font-size: 0.87rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label {
  display: none;
}
.stat-unit {
  margin-left: 3px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}
.activity-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.export-button {
  min-height: 38px;
  padding: 9px 11px;
  color: #3157cb;
  border: 1px solid #d9e2f7;
  background: #f6f8ff;
  font-size: 0.72rem;
}
.export-button:hover:not(:disabled) {
  background: #eaf0ff;
  border-color: #b5c7f5;
}
.share-button {
  display: grid;
  place-items: center;
  min-height: 38px;
  width: 31px;
  flex-shrink: 0;
  border-radius: 7px;
  color: #718199;
  border: 0;
  background: transparent;
}
.share-button:hover {
  color: #3157cb;
  background: #eaf0ff;
}
.list-state {
  min-height: 250px;
  padding: 40px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 12px;
}
.list-state p {
  font-size: 0.86rem;
  max-width: 460px;
}
.list-state > .button {
  margin-top: 4px;
}
.empty-symbol,
.state-symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #edf1f8;
  color: #6f829c;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.state-symbol {
  background: #fff0ed;
  color: #b85846;
}
.pagination {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
}
.pagination-buttons {
  display: flex;
  gap: 5px;
}
.pagination-buttons button:disabled {
  cursor: default;
}
.file-note {
  margin-top: 17px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.72rem;
}
.file-note svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 75px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: #8490a0;
  font-size: 0.66rem;
}
.footer-divider {
  margin: 0 8px;
  color: #aeb8c5;
}
.notice {
  display: flex;
  gap: 14px;
  align-items: center;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(600px, calc(100% - 32px));
  padding: 14px 17px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  box-shadow: 0 8px 26px #14233925;
  font-size: 0.82rem;
  z-index: 20;
}
.notice[data-error="true"] {
  background: #85323a;
}
.notice button {
  background: transparent;
  border: 0;
  color: #dae2ec;
  font-size: 1.4rem;
  padding: 0 2px;
  min-height: 28px;
  min-width: 28px;
}
.offline-banner {
  padding: 10px 20px;
  text-align: center;
  background: #fff0d4;
  color: #775119;
  font-size: 0.78rem;
  border-bottom: 1px solid #f0deb9;
}
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  padding: 28px;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 80px #14233930;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #101c30aa;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.dialog-heading .section-kicker {
  margin-bottom: 7px;
}
dialog > p {
  font-size: 0.84rem;
}
details {
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
summary {
  font-size: 0.84rem;
  cursor: pointer;
  color: #334968;
  font-weight: 600;
  padding: 6px 0;
}
details[open] summary {
  margin-bottom: 8px;
}
#password-hint {
  margin-top: 8px;
  font-size: 0.72rem;
}
.signout-button {
  margin-top: 22px;
}
.share-filename {
  padding: 14px 15px;
  margin-bottom: 16px;
  background: #f1f5fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.noscript {
  position: fixed;
  inset: 100px 20px auto;
  padding: 25px;
  background: white;
  border: 1px solid #ddac99;
  border-radius: 12px;
  color: #8a342d;
  text-align: center;
}
@media (min-width: 1440px) {
  .login-layout {
    padding-top: 110px;
  }
  .page {
    min-height: calc(100vh - 166px);
  }
}
@media (max-width: 1215px) {
  .site-header {
    padding: 0 32px;
  }
  .page,
  .site-footer {
    margin-left: 32px;
    margin-right: 32px;
  }
  .login-layout {
    gap: 50px;
    padding-left: 0;
    padding-right: 0;
  }
  .connection-card {
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr 370px;
    gap: 35px;
    padding-top: 65px;
  }
  .login-card {
    padding: 28px;
  }
  .intro-details {
    gap: 9px;
    font-size: 0.59rem;
    flex-wrap: wrap;
  }
  .intro-details span + span:before {
    left: -4px;
  }
  .format-card {
    padding: 15px 11px;
    gap: 10px;
  }
  .format-filename {
    font-size: 0.68rem;
  }
  .format-caption {
    font-size: 0.63rem;
  }
  .format-icon {
    width: 39px;
    height: 46px;
  }
  .activity-columns,
  .activity-row {
    grid-template-columns: minmax(190px, 1fr) 87px 90px 126px;
    gap: 12px;
    padding-left: 19px;
    padding-right: 19px;
  }
  .sport-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }
  .activity-main {
    gap: 10px;
  }
  .connection-card {
    padding: 28px;
    gap: 30px;
    grid-template-columns: 1fr 320px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 76px;
    padding: 0 23px;
  }
  .page,
  .site-footer {
    margin-left: 23px;
    margin-right: 23px;
  }
  .page {
    padding-bottom: 38px;
    min-height: calc(100vh - 191px);
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 40px 0 15px;
    gap: 30px;
    max-width: 460px;
    margin: 0 auto;
  }
  .login-intro h1 {
    font-size: 3.1rem;
    margin-top: 15px;
  }
  .intro-copy {
    font-size: 0.92rem;
    margin-top: 15px;
  }
  .format-card,
  .intro-details {
    display: none;
  }
  .login-card {
    padding: 29px;
  }
  .workspace-heading {
    padding: 35px 0 29px;
  }
  .workspace-heading h1 {
    font-size: 2rem;
    max-width: 380px;
  }
  .workspace-heading p {
    font-size: 0.83rem;
    max-width: 300px;
  }
  .workspace-mark {
    display: none;
  }
  .connection-card {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 26px;
  }
  .connection-copy h2 {
    max-width: none;
    margin-top: 13px;
    font-size: 1.5rem;
  }
  .connection-copy > .muted {
    max-width: none;
    margin-top: 12px;
  }
  .connection-copy > .small {
    max-width: none;
    margin-top: 12px;
  }
  .step-number {
    height: 32px;
    width: 32px;
    border-radius: 9px;
    font-size: 0.67rem;
  }
  .connection-forms {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .connection-strip {
    padding: 10px 12px;
    margin-bottom: 26px;
  }
  .connection-status {
    flex-wrap: wrap;
    gap: 5px 8px;
    font-size: 0.71rem;
  }
  .connection-email {
    width: 100%;
    padding-left: 15px;
    font-size: 0.66rem;
  }
  .connection-email:not(:empty):before {
    display: none;
  }
  .connection-strip .text-button {
    align-self: flex-start;
    font-size: 0.7rem;
  }
  .activity-columns {
    display: none;
  }
  .activity-row {
    grid-template-columns: 1fr auto;
    gap: 11px 14px;
    padding: 18px 17px;
    min-height: 129px;
  }
  .activity-main {
    grid-column: 1;
    grid-row: 1;
    gap: 11px;
  }
  .sport-icon {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }
  .sport-icon svg {
    width: 21px;
    height: 21px;
  }
  .activity-title {
    font-size: 0.81rem;
  }
  .activity-meta {
    font-size: 0.65rem;
    gap: 4px;
    margin-top: 5px;
  }
  .activity-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  .activity-stat {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.78rem;
    margin-left: 48px;
    display: inline-block;
  }
  .activity-stat.distance {
    justify-self: start;
  }
  .activity-stat.duration {
    justify-self: start;
    margin-left: calc(48px + 105px);
  }
  .stat-label {
    display: block;
    font-size: 0.58rem;
    color: #8994a2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 1px;
  }
  .stat-unit {
    font-size: 0.67rem;
  }
  .export-button {
    padding: 8px 10px;
    font-size: 0.7rem;
  }
  .share-button {
    width: 36px;
    min-height: 32px;
  }
  .library-toolbar p {
    font-size: 0.72rem;
  }
  .library-toolbar h2 {
    font-size: 1.25rem;
  }
  .pagination {
    padding: 10px 12px;
    gap: 6px;
  }
  .pagination p {
    font-size: 0.69rem;
  }
  .pagination .button {
    font-size: 0.73rem;
    padding-left: 8px;
    padding-right: 8px;
  }
  .pagination-buttons {
    gap: 0;
  }
  .site-footer {
    font-size: 0.62rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 0;
    min-height: 100px;
  }
  .notice {
    bottom: 16px;
    font-size: 0.78rem;
  }
  .header-actions {
    gap: 8px;
  }
  .account-button {
    max-width: 170px;
  }
  .account-button #account-name {
    max-width: 95px;
  }
  #install-button {
    font-size: 0.72rem;
    min-height: 36px;
    padding: 8px;
  }
  .brand {
    font-size: 1.13rem;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .file-note {
    font-size: 0.67rem;
    margin-top: 15px;
  }
  .boot-view {
    min-height: 400px;
    font-size: 0.8rem;
  }
}
@media (max-width: 390px) {
  .site-header {
    padding: 0 16px;
  }
  .page,
  .site-footer {
    margin-left: 16px;
    margin-right: 16px;
  }
  .login-card {
    padding: 24px;
  }
  .login-intro h1 {
    font-size: 2.75rem;
  }
  .workspace-heading h1 {
    font-size: 1.8rem;
  }
  .account-button #account-name {
    max-width: 62px;
  }
  .activity-row {
    padding-left: 13px;
    padding-right: 13px;
    gap: 10px;
  }
  .activity-stat.duration {
    margin-left: calc(48px + 83px);
  }
  .activity-actions {
    gap: 5px;
  }
  .export-button {
    font-size: 0.65rem;
    padding: 8px;
  }
  .activity-title {
    font-size: 0.76rem;
  }
  .activity-meta {
    font-size: 0.62rem;
  }
  .activity-stat {
    font-size: 0.73rem;
  }
  .library-toolbar p {
    max-width: 200px;
  }
  .connection-card {
    padding: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .spinner {
    border-top-color: var(--blue);
    border-right-color: var(--blue);
  }
}

/* Readable metadata and comfortable touch targets at every viewport size. */
body {
  font-size: 1rem;
}
input {
  font-size: 1rem;
  min-height: 48px;
}
label,
.button,
.text-button,
.account-button,
summary {
  font-size: 0.875rem;
}
.button,
.button-compact,
.export-button,
.text-button,
.account-button,
.icon-button,
.share-button,
#install-button {
  min-height: 44px;
}
.share-button,
.icon-button,
.notice button {
  min-width: 44px;
  min-height: 44px;
}
.small,
.eyebrow,
.section-kicker,
.format-caption,
.intro-details,
.login-help,
.connection-status,
.connection-email,
.activity-columns,
.activity-meta,
.stat-unit,
.stat-label,
.file-note,
.site-footer {
  font-size: 0.8125rem;
}
.login-card > .login-help {
  font-size: 0.8125rem !important;
}
.activity-title,
.activity-stat {
  font-size: 0.9375rem;
}
.activity-columns,
.activity-row {
  grid-template-columns: minmax(0, 1fr) minmax(90px, 115px) minmax(
      95px,
      120px
    ) 143px;
}
.activity-actions {
  gap: 6px;
}
.activity-meta {
  line-height: 1.6;
}
.connection-status {
  flex-wrap: wrap;
}
.connection-email {
  overflow-wrap: anywhere;
  white-space: normal;
}
.site-header {
  min-height: 91px;
  height: auto;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer {
  flex-wrap: wrap;
}
.export-button[aria-busy="true"] svg {
  display: none;
}
.export-button[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #d0dbf5;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    flex-wrap: wrap;
  }
  .header-actions {
    max-width: 100%;
    gap: 8px;
  }
  .account-button,
  #install-button,
  .connection-strip .text-button,
  .export-button,
  .pagination .button {
    font-size: 0.875rem;
  }
  .library-toolbar p,
  .pagination p,
  .connection-email,
  .activity-meta,
  .stat-unit,
  .stat-label,
  .file-note,
  .site-footer {
    font-size: 0.8125rem;
  }
  .activity-title,
  .activity-stat {
    font-size: 0.9375rem;
  }
  .activity-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 20px 17px 16px;
  }
  .activity-main {
    grid-column: 1 / -1;
    grid-row: 1;
    align-items: flex-start;
  }
  .activity-copy {
    min-width: 0;
  }
  .activity-stat.distance,
  .activity-stat.duration {
    grid-row: 2;
    margin: 0;
    min-width: 0;
    justify-self: stretch;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .activity-stat.distance {
    grid-column: 1;
  }
  .activity-stat.duration {
    grid-column: 2;
  }
  .stat-label {
    margin-bottom: 4px;
  }
  .activity-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }
  .export-button {
    min-width: 78px;
    padding: 11px 16px;
  }
  .share-button {
    width: 44px;
  }
  .activity-meta {
    gap: 4px 7px;
  }
  .activity-meta time {
    white-space: normal;
  }
  .connection-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .connection-status {
    flex: 1 1 170px;
  }
  .library-toolbar,
  .pagination {
    flex-wrap: wrap;
    gap: 12px;
  }
  .library-toolbar > div {
    min-width: 0;
  }
  .pagination-buttons {
    flex-wrap: wrap;
  }
  .workspace-heading {
    padding-top: 30px;
    padding-bottom: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .export-button[aria-busy="true"]::before {
    animation: none;
  }
}
