:root {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--surface-accent);
  font-size: 14px;
  --green: #244f3e;
  --muted: #7c857d;
  --line: #e3e7de;
  --lime: #d9ecab;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-border);
  outline-offset: 3px;
}
a {
  color: var(--green);
}
button:disabled {
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.15px;
  line-height: 1.3;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.2px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 11px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 32px 21px;
  z-index: 5;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  font:
    8px "DM Sans",
    sans-serif;
  letter-spacing: 1.3px;
  margin-top: 7px;
}
.brand-mark {
  font-size: 37px;
  line-height: 35px;
  font-style: italic;
  position: relative;
  color: var(--accent);
}
.brand-mark span {
  position: absolute;
  font-size: 20px;
  top: -7px;
  right: -5px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 39px 0 31px;
  padding: 14px 5px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.workspace small {
  display: block;
  margin-top: 5px;
  font-weight: 400;
  font-size: 10px;
}
.workspace-icon {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  background: var(--surface-accent);
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
  padding: 0 13px;
  margin-bottom: 15px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 7px;
  margin: 3px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.nav-item > span {
  font-size: 20px;
  width: 20px;
  line-height: 20px;
}
.nav-item.active {
  background: var(--surface-accent);
  color: var(--accent);
  font-weight: 700;
}
.nav-item:hover {
  background: var(--surface-accent);
}
.nav-item small {
  margin-left: auto;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 25px;
  font-size: 11px;
}
.sidebar-bottom small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.local-note {
  width: 100%;
  font-size: 9px;
  color: var(--muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.local-note small {
  margin-left: 15px;
  font-size: 9px;
}
.user-avatar {
  width: 33px;
  height: 33px;
  background: var(--surface-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.main-shell {
  margin-left: 240px;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: var(--surface);
}
.athlete-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 19px;
}
.athlete-switch select {
  border: 0;
  font-weight: 700;
  font-size: 13px;
  max-width: 175px;
  padding-left: 0;
}
.chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  background: var(--surface-accent);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.today {
  color: var(--muted);
  font-size: 11px;
}
.top-actions select {
  font-size: 10px;
  padding: 8px;
  border-color: var(--line);
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 38px;
  background: var(--surface-accent);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--accent);
}
.demo-banner b {
  font-size: 10px;
  color: var(--accent);
}
.demo-banner button {
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
  color: var(--accent);
}
main {
  padding: 31px 38px 38px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 29px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.35px;
  margin-bottom: 15px;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow span {
  margin: 0 9px;
  color: var(--muted);
}
.page-heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}
.primary,
.secondary,
.danger {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  min-height: 40px;
}
.primary {
  background: var(--green);
  color: var(--ink);
  border: 1px solid var(--green);
}
.primary:hover {
  background: var(--accent);
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--surface-accent);
}
.danger {
  color: var(--danger-text);
  background: var(--surface-danger);
}
.full {
  width: 100%;
}
.overview-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 20px;
}
.overview-intro .live-dot {
  margin-right: 7px;
}
.overview-intro > div {
  font-size: 10px;
  color: var(--muted);
}
.overview-intro h2 {
  font-size: 18px;
  margin-top: 9px;
  color: var(--ink);
}
.soft {
  color: var(--muted);
  font-weight: 400;
}
.date-range {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 11px;
  border-radius: 5px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 21px;
}
.metric > span {
  font-size: 10px;
  color: var(--muted);
}
.metric > div {
  font-family: Manrope, sans-serif;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 10px 0;
}
.metric small {
  font-size: 13px;
  margin-left: 7px;
  font-weight: 400;
  letter-spacing: 0;
}
.metric p {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
}
.metric.highlight {
  background: var(--surface-accent);
  border-color: var(--line);
}
.metric.highlight > div {
  color: var(--accent);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 21px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.text-button {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  padding: 5px 0;
}
.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chart {
  width: 100%;
  display: block;
  margin-top: 15px;
  overflow: visible;
}
.chart text {
  font:
    9px "DM Sans",
    sans-serif;
  fill: var(--muted);
}
.load-values {
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 10px;
  color: var(--muted);
}
.load-values b {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.load-values small {
  margin-left: auto;
  font-size: 8px;
}
.recovery-card {
  display: flex;
  flex-direction: column;
}
.demo-small {
  font-size: 7px;
  letter-spacing: 0.9px;
  padding: 3px 5px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.recovery-score {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 12px 0 25px;
}
.score-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) var(--score),
    var(--surface-accent) 0
  );
  padding: 6px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.score-ring b {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  font-size: 28px;
  padding-top: 20px;
  transform: rotate(90deg);
  font-family: Manrope, sans-serif;
}
.score-ring small {
  font-size: 11px;
}
.recovery-score > div > b {
  font-size: 11px;
  line-height: 1.6;
}
.recovery-score p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.mini-metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  gap: 12px;
  margin-top: auto;
  margin-bottom: 10px;
}
.mini-metrics span {
  font-size: 9px;
  color: var(--muted);
}
.mini-metrics b {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 8px;
}
.mini-metrics small {
  font-size: 9px;
}
.recovery-card .secondary {
  font-size: 10px;
  background: var(--surface-accent);
  min-height: 34px;
  padding: 8px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.day-pill {
  padding: 12px 2px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.day-pill small {
  font-size: 8px;
  color: var(--muted);
}
.day-pill b {
  font-size: 16px;
  font-weight: 500;
  margin: 10px 0 8px;
}
.day-pill > span:last-child {
  font-size: 8px;
  color: var(--muted);
  margin-top: 9px;
}
.day-pill.is-today {
  background: var(--surface-accent);
  border-color: var(--line);
}
.day-pill.is-today b {
  color: var(--accent);
}
.day-dot {
  width: 4px;
  height: 4px;
  background: var(--surface-accent);
  border-radius: 50%;
}
.day-dot.filled {
  background: var(--accent);
}
.next-training {
  margin-top: 19px;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 13px;
}
.workout-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: var(--surface-accent);
  border-radius: 7px;
  font-size: 27px;
  color: var(--muted);
}
.next-training small {
  font-size: 7px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.next-training b {
  display: block;
  font-size: 11px;
  margin: 7px 0;
}
.next-training div > span {
  font-size: 9px;
  color: var(--muted);
}
.next-training > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.ride-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ride-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.ride-icon {
  display: grid;
  place-items: center;
  background: var(--surface-accent);
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 34px;
  height: 34px;
  color: var(--muted);
}
.ride-row b {
  display: block;
  font-size: 10px;
  font-weight: 600;
}
.ride-row small {
  display: block;
  font-size: 8px;
  margin-top: 7px;
  color: var(--muted);
}
.ride-tss {
  font-size: 16px;
  margin-left: auto;
  text-align: right;
  font-weight: 500;
  color: var(--accent);
}
.ride-tss small {
  font-size: 7px;
  font-weight: 400;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar strong {
  font-weight: 500;
  font-size: 14px;
  margin-left: 12px;
}
.icon-button {
  font-size: 21px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 12px;
  background: var(--surface);
  min-width: 37px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  min-height: 425px;
}
.calendar-day {
  border-right: 1px solid var(--line);
  padding: 10px;
}
.calendar-day:last-child {
  border: 0;
}
.calendar-date {
  padding: 11px 3px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calendar-date small {
  font-size: 8px;
  letter-spacing: 0.4px;
}
.calendar-date b {
  font-size: 26px;
  font-weight: 500;
}
.current {
  background: var(--surface-accent);
}
.current .calendar-date b {
  background: var(--surface-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.workout {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 10px;
  background: var(--surface-accent);
  border-left: 3px solid var(--accent-border);
  border-radius: 5px;
  width: 100%;
  margin-bottom: 10px;
}
.workout.by-athlete {
  background: var(--surface-purple);
  border-color: var(--line);
}
.workout > b {
  font-size: 11px;
  line-height: 1.6;
}
.workout > span {
  font-size: 9px;
}
.workout-state {
  color: var(--muted);
}
.workout strong {
  font-size: 17px;
  font-weight: 500;
}
.workout strong small {
  font-size: 8px;
}
.author {
  padding: 4px 6px;
  background: var(--surface-accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 8px;
  display: inline-block;
  align-self: flex-start;
}
.author.athlete {
  background: var(--surface-purple);
  color: var(--purple-text);
}
.add-day {
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  width: 100%;
  padding: 7px;
}
.note {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 11px;
}
.note span {
  color: var(--muted);
  line-height: 1.7;
}
.spaced {
  margin-top: 22px;
}
.table-wrap,
.monthly-table {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 500;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.table-link {
  color: var(--accent);
  font-size: 11px;
  text-align: left;
  padding: 0;
  line-height: 1.5;
}
.table-link:hover {
  text-decoration: underline;
}
.tag {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: var(--surface-accent);
  color: var(--muted);
  border-radius: 4px;
  font-size: 8px;
  margin-right: 5px;
}
.tag.amber {
  background: var(--surface-amber);
  color: var(--amber-text);
  border-color: var(--line);
}
.fineprint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 17px;
}
.segmented {
  display: inline-flex;
  background: var(--surface-accent);
  padding: 4px;
  border-radius: 6px;
  gap: 3px !important;
}
.segmented button {
  font-size: 11px;
  padding: 9px 15px;
  border-radius: 4px;
  color: var(--muted);
}
.segmented button.selected {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px #0001;
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.inline-label input {
  width: 80px;
}
.record-hero {
  margin: 25px 0;
  background: var(--surface-accent);
  border-radius: 7px;
  padding: 25px;
  text-align: center;
}
.record-hero > span {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.record-hero > b {
  display: block;
  font:
    600 57px Manrope,
    sans-serif;
  letter-spacing: -2px;
  margin: 12px 0;
  color: var(--accent);
}
.record-hero small {
  font-size: 20px;
  letter-spacing: 0;
}
.record-hero p {
  font-size: 10px;
  color: var(--muted);
}
.selected-row {
  background: var(--surface-accent);
}
.custom-range {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.checkbox-label input {
  width: auto;
  margin: 0;
}
.notice {
  padding: 15px 18px;
  background: var(--surface-accent);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 23px;
}
.notice b {
  color: var(--accent);
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.calm-card {
  background: var(--surface-accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.large-symbol {
  font-size: 60px;
  color: var(--muted);
  margin-bottom: 16px;
}
.calm-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}
.athlete-card {
  text-align: left;
  position: relative;
  padding: 27px;
}
.athlete-card > .chip {
  position: absolute;
  right: 25px;
  top: 28px;
}
.athlete-card h2 {
  margin-top: 20px;
  font-size: 21px;
}
.athlete-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.athlete-numbers {
  display: flex;
  gap: 50px;
  margin-top: 22px;
}
.athlete-numbers span {
  font-size: 10px;
  color: var(--muted);
}
.athlete-numbers b {
  display: block;
  font-size: 23px;
  color: var(--accent);
  margin-top: 9px;
  font-weight: 500;
}
.athlete-open {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 23px;
  font-size: 11px;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
}
.body-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 15px 0 20px;
}
label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 17px;
}
input,
select,
textarea {
  display: block;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--accent);
  width: 100%;
  margin-top: 7px;
  min-height: 39px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--line);
  outline-offset: 1px;
}
input[readonly] {
  background: var(--surface-accent);
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.form-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}
.form-row > label {
  flex: 1;
  min-width: 0;
}
.form-row > button {
  margin-bottom: 17px;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.zones {
  margin-top: 20px;
}
.zones > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.zones span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zones i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.zones b {
  font-weight: 500;
}
.local-info {
  margin-top: 25px;
  background: var(--surface-accent);
  border-radius: 7px;
  padding: 20px;
  font-size: 11px;
}
.local-info p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.integration {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.integration-logo {
  width: 41px;
  height: 41px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-family: Manrope, sans-serif;
}
.integration div {
  flex: 1;
}
.integration h3 {
  font-size: 13px;
}
.integration p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.integration a {
  font-size: 10px;
  text-decoration: none;
  color: var(--muted);
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.stream-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.stream-controls select {
  width: 170px;
  font-size: 11px;
}
.detail-heading {
  margin-top: 20px;
}
.detail-heading h2 {
  margin: 15px 0 10px;
  font-size: 27px;
}
.detail-heading p {
  font-size: 12px;
  color: var(--muted);
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  background: var(--surface-accent);
  border-radius: 6px;
  padding: 19px;
  margin-top: 24px;
}
.detail-stats small {
  display: block;
  font-size: 9px;
}
.detail-stats b {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin-top: 10px;
}
.ride-notes {
  white-space: pre-line;
  font-size: 12px;
  color: var(--muted);
  padding: 18px;
  background: var(--surface-accent);
  border-radius: 6px;
  margin-top: 25px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 760px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 100px #172d2633;
}
dialog::backdrop {
  background: #122c2366;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-top > span {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
dialog > h2 {
  margin: 20px 0;
}
dialog form {
  margin-top: 25px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--accent);
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px #0002;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
footer {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  padding: 10px 38px 26px;
  max-width: 1600px;
  margin: auto;
}
footer > span:first-child {
  color: var(--muted);
  font-size: 8px;
}
footer > span:last-child {
  margin-left: auto;
  font-size: 8px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 42px;
  }
  .metrics {
    gap: 22px;
  }
  .metric {
    padding: 24px;
  }
  .chart {
    min-height: 220px;
  }
  .dashboard-grid {
    gap: 25px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 205px;
    padding: 28px 16px;
  }
  .brand {
    font-size: 17px;
  }
  .main-shell {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 28px 25px;
  }
  .demo-banner {
    padding: 10px 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .card {
    padding: 19px;
  }
  .metric {
    padding: 18px 16px;
  }
  .recovery-score {
    gap: 12px;
  }
  .recovery-score p {
    font-size: 9px;
  }
  .score-ring {
    width: 74px;
    height: 74px;
  }
  .score-ring b {
    font-size: 24px;
    padding-top: 17px;
  }
  .calendar-day {
    padding: 7px;
  }
  .workout {
    padding: 10px 7px;
  }
  .calendar-date small {
    font-size: 7px;
  }
  .today {
    display: none;
  }
  .load-values {
    gap: 12px;
  }
  .load-values small {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1050px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .card {
    min-height: 260px;
  }
  .recovery-card .recovery-score {
    margin: 5px 0 20px;
  }
  .recovery-score {
    gap: 25px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .calendar {
    overflow: auto;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
  }
  .metrics {
    gap: 10px;
  }
  .metric > div {
    font-size: 27px;
  }
  .metric p {
    font-size: 8px;
  }
  .metric {
    padding: 16px 12px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .athlete-switch .chip {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    height: 64px;
    inset: auto 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 0 4px;
    background: var(--surface);
    z-index: 10;
    display: block;
  }
  .brand,
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    height: 64px;
    overflow-x: auto;
  }
  .nav-item {
    font-size: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 0;
    width: auto;
    min-width: 57px;
    padding: 6px 3px;
    margin: 0;
  }
  .nav-item > span {
    font-size: 21px;
    text-align: center;
  }
  .nav-item small {
    display: none;
  }
  .main-shell {
    margin: 0;
  }
  .topbar {
    height: 72px;
    padding: 0 18px;
  }
  .athlete-switch {
    gap: 8px;
  }
  .athlete-switch select {
    max-width: 146px;
    font-size: 12px;
    padding: 8px 3px;
  }
  .top-actions select {
    max-width: 125px;
    font-size: 9px;
    padding: 7px;
  }
  .demo-banner {
    padding: 10px 18px;
    font-size: 9px;
    gap: 7px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .demo-banner > span:nth-of-type(2) {
    width: 100%;
    order: 3;
    font-size: 9px;
  }
  .demo-banner button {
    font-size: 9px;
  }
  .demo-banner b {
    font-size: 9px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 7px;
    margin-bottom: 12px;
  }
  .page-heading .primary {
    width: 100%;
  }
  main {
    padding: 24px 17px 20px;
  }
  .overview-intro {
    align-items: flex-start;
    margin-top: 15px;
    gap: 12px;
  }
  .overview-intro h2 {
    font-size: 15px;
  }
  .soft {
    display: block;
    font-size: 12px;
    margin-top: 7px;
  }
  .overview-intro > div {
    font-size: 9px;
  }
  .date-range {
    font-size: 9px;
    padding: 7px;
    white-space: nowrap;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 17px;
  }
  .metric > span {
    font-size: 9px;
  }
  .metric > div {
    font-size: 30px;
  }
  .metric p {
    font-size: 8px;
  }
  .dashboard-grid {
    gap: 17px;
  }
  .card {
    padding: 20px 17px;
  }
  .card-heading {
    gap: 10px;
  }
  .card-heading h3 {
    font-size: 14px;
  }
  .card-heading p {
    font-size: 9px;
  }
  .legend {
    font-size: 8px;
    gap: 10px;
  }
  .chart {
    min-height: 165px;
  }
  .load-values {
    gap: 24px;
  }
  .recovery-score {
    margin-top: 10px !important;
  }
  .score-ring {
    width: 90px;
    height: 90px;
  }
  .score-ring b {
    font-size: 29px;
    padding-top: 22px;
  }
  .recovery-score > div > b {
    font-size: 12px;
  }
  .recovery-score p {
    font-size: 10px;
  }
  .mini-metrics {
    gap: 20px;
    margin-top: 10px;
  }
  .mini-metrics b {
    font-size: 16px;
  }
  .week-strip {
    gap: 5px;
  }
  .day-pill {
    padding: 10px 2px;
  }
  .day-pill > span:last-child {
    font-size: 7px;
  }
  .note {
    display: block;
  }
  .note b {
    display: block;
    margin-bottom: 10px;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .toolbar strong {
    font-size: 12px;
    margin-left: 3px;
  }
  .toolbar .secondary {
    padding: 9px;
    min-height: 35px;
  }
  .toolbar > .legend {
    margin-top: 5px;
  }
  .calendar {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .calendar-day {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 12px;
  }
  .calendar-date {
    padding: 5px 0;
  }
  .calendar-date small {
    font-size: 6px;
  }
  .calendar-date b {
    font-size: 24px;
  }
  .calendar-date {
    grid-row: 1/10;
  }
  .workout {
    padding: 12px 15px;
    gap: 8px;
  }
  .workout > b {
    font-size: 12px;
  }
  .workout-state {
    font-size: 9px;
  }
  .add-day {
    padding: 5px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .form-row label {
    min-width: 120px;
  }
  .form-row > button {
    width: 100%;
  }
  .integration {
    flex-wrap: wrap;
    gap: 12px;
  }
  .integration > div {
    min-width: 180px;
  }
  .integration .tag {
    margin-left: 53px;
  }
  .integration a {
    margin-left: auto;
  }
  .integration p {
    font-size: 10px;
  }
  .detail-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .detail-heading h2 {
    font-size: 23px;
  }
  .stream-controls {
    gap: 10px;
  }
  .stream-controls h3 {
    font-size: 12px;
  }
  .stream-controls select {
    width: 150px;
    font-size: 10px;
  }
  .custom-range {
    flex-wrap: wrap;
  }
  .inline-label {
    font-size: 10px;
  }
  .inline-label input {
    width: 70px;
  }
  dialog {
    padding: 20px;
  }
  .record-hero > b {
    font-size: 48px;
  }
  .record-hero p {
    font-size: 9px;
  }
  td {
    padding: 12px 7px;
    font-size: 10px;
  }
  th {
    padding: 12px 7px;
    font-size: 8px;
  }
  .table-link {
    font-size: 10px;
  }
  .monthly-table table {
    min-width: 340px;
  }
  .record-hero + table td:nth-child(3) {
    white-space: nowrap;
    font-size: 9px;
  }
  footer {
    padding: 5px 18px 90px;
    font-size: 8px;
  }
  footer > span:first-child {
    display: none;
  }
  #toast {
    bottom: 80px;
    width: 90%;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.top-actions select {
  width: auto;
}
.today {
  white-space: nowrap;
}
#zones-form {
  flex-wrap: wrap;
}
#zones-form label:last-of-type {
  flex: 2;
  min-width: 230px;
}
@media (max-width: 760px) {
  .calendar-day {
    display: block;
    position: relative;
    padding: 15px 12px 15px 78px;
    min-height: 90px;
  }
  .calendar-date {
    position: absolute;
    left: 12px;
    top: 15px;
    grid-row: auto;
  }
  .workout > b {
    font-size: 14px;
  }
  .workout > span {
    font-size: 11px;
  }
  .workout strong {
    font-size: 20px;
  }
  .workout strong small {
    font-size: 10px;
  }
  .workout .author {
    font-size: 10px;
  }
  .primary,
  .secondary {
    font-size: 12px;
  }
  .nav-item {
    font-size: 9px;
  }
  label {
    font-size: 12px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .top-actions select {
    font-size: 10px;
  }
  .athlete-switch select {
    font-size: 12px;
  }
  .fineprint {
    font-size: 11px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .calendar-date small {
    font-size: 7px;
  }
  .calendar-date b {
    font-size: 26px;
  }
  .ride-row b {
    font-size: 12px;
  }
  .ride-row small {
    font-size: 10px;
  }
  .day-pill small {
    font-size: 9px;
  }
  .mini-metrics span {
    font-size: 11px;
  }
}
.cycling-discipline {
  display: inline-block;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 7px;
  background: #fff9;
  color: var(--accent);
  font-size: 9px;
  line-height: 1.5;
  margin-right: 6px;
}
.cycling-discipline.unspecified {
  color: var(--muted);
  border-color: var(--line);
}
.next-training .cycling-discipline {
  display: table;
  margin-bottom: 7px;
}
@media (max-width: 760px) {
  .workout .cycling-discipline {
    font-size: 11px;
  }
}
/* Personal details remain in secondary sections. */
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.section-tabs {
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.rider-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: var(--surface-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 28px;
  color: var(--accent);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rider-profile p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 13px;
}
.rider-profile small {
  display: block;
  margin-top: 10px;
  font-size: 10px;
}
.profile-numbers {
  margin-left: auto;
  display: flex;
  gap: 35px;
}
.profile-numbers > span {
  font-size: 11px;
  color: var(--muted);
}
.profile-numbers b {
  display: block;
  font-size: 26px;
  color: var(--accent);
  margin-top: 10px;
  font-weight: 500;
}
.profile-numbers b small {
  display: inline;
  font-size: 12px;
}
.body-summary {
  display: inline-block;
  margin-left: 12px;
  color: var(--accent);
  font-size: 10px;
}
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.timeline article {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding: 7px 0 25px 23px;
  position: relative;
}
.timeline article > div {
  flex: 1;
}
.timeline article p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  white-space: pre-wrap;
}
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-dot.menstruation {
  background: var(--surface-inset);
}
.timeline h3 {
  margin-top: 9px;
}
.bike-photo {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 20px;
}
.bike-placeholder {
  display: grid;
  place-items: center;
  height: 150px;
  background: var(--surface-accent);
  color: var(--muted);
  font-size: 40px;
  border-radius: 7px;
  margin-bottom: 20px;
}
.bike-card h2 {
  font-size: 20px;
}
.athlete-numbers .small-value {
  font-size: 13px;
  margin-top: 15px;
}
.maintenance-row {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 11px;
}
.maintenance-row p {
  margin: 8px 0;
  color: var(--muted);
}
.nutrition-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
}
.nutrition-row > button {
  margin-bottom: 17px;
  min-height: 40px;
}
.editor-section {
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.editor-section summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}
.editor-section p {
  font-size: 12px;
}
.block-row {
  padding: 14px;
  background: var(--surface-accent);
  border-radius: 7px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.block-row label {
  margin: 0;
}
.block-row > button {
  align-self: end;
  font-size: 17px;
  justify-self: start;
}
.structure-bars {
  height: 155px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}
.structure-bars > div {
  background: var(--accent);
  min-width: 1px;
  border-radius: 3px 3px 0 0;
}
.block-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0;
}
.zone-chart {
  margin-top: 22px;
}
.zone-chart > div {
  display: grid;
  grid-template-columns: 24px 1fr 105px 44px;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  font-size: 10px;
}
.zone-chart > div > div {
  height: 10px;
  background: var(--surface-accent);
  border-radius: 3px;
  overflow: hidden;
}
.zone-chart i {
  height: 100%;
  display: block;
}
.zone-chart b {
  font-size: 10px;
  font-weight: 500;
  text-align: right;
  color: var(--muted);
}
.zone-chart small {
  text-align: right;
  font-size: 9px;
}
.calendar-context {
  display: block;
  background: var(--surface-purple);
  color: var(--muted);
  font-size: 9px;
  padding: 6px;
  border-radius: 4px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.editor-section .two-col {
  gap: 16px;
}
.bike-card .athlete-numbers {
  gap: 20px;
}
#content > .toolbar .fineprint {
  margin: 0;
}
summary::marker {
  color: var(--muted);
}
@media (max-width: 760px) {
  .sidebar nav {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .nav-item {
    min-width: 70px;
    flex-shrink: 0;
  }
  .rider-profile {
    flex-wrap: wrap;
    gap: 16px;
  }
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  .rider-profile > div:nth-child(2) {
    flex: 1;
    min-width: 170px;
  }
  .rider-profile h2 {
    font-size: 21px;
  }
  .profile-numbers {
    margin: 0;
    width: 100%;
    gap: 35px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }
  .body-summary {
    display: block;
    margin: 7px 0 0;
  }
  .bike-photo {
    height: 170px;
  }
  .nutrition-row {
    grid-template-columns: 1.6fr 1fr;
  }
  .nutrition-row > button {
    margin: 0 0 17px;
  }
  .block-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zone-chart > div {
    grid-template-columns: 23px 1fr 90px 38px;
    gap: 7px;
  }
  .zone-chart b {
    font-size: 9px;
  }
  .timeline article {
    padding-left: 15px;
    gap: 10px;
  }
  .section-tabs button {
    font-size: 10px;
    padding: 9px;
  }
  .calendar-context {
    font-size: 10px;
  }
  .bike-card .athlete-numbers {
    gap: 14px;
  }
  .structure-bars {
    height: 145px;
  }
}
.focus-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0;
}
.focus-options label {
  padding: 10px 13px;
  background: var(--surface-accent);
  border-radius: 5px;
  margin: 0;
}
.ride-interval-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-top: 22px;
  background: var(--surface-accent);
}
.interval-picker {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: end;
  gap: 10px;
}
.interval-picker button {
  margin-bottom: 17px;
}
.interval-picker label {
  font-size: 10px;
}
.interval-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.interval-quick button {
  font-size: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 11px;
  border-radius: 4px;
}
.interval-quick button.selected {
  background: var(--surface-accent);
  color: var(--accent);
}
.interval-result {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.4fr;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.interval-result > div > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 12px;
}
.interval-result b {
  font-size: 29px;
  font-weight: 500;
  color: var(--accent);
  display: block;
}
.interval-result small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 10px;
}
.interval-result b small {
  font-size: 12px;
  display: inline;
}
.interval-result .window-time {
  font-size: 16px;
  margin-top: 19px;
}
.paired-hr b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger-text);
}
.paired-hr small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 5px;
}
.interval-result .paired-hr b {
  font-size: 23px;
  margin-top: 18px;
}
.interval-result .paired-hr small {
  font-size: 9px;
}
.custom-interval-control {
  display: flex;
  align-items: end;
  gap: 9px;
}
.custom-interval-control label {
  margin-bottom: 0;
  font-size: 10px;
}
.custom-interval-control input {
  width: 85px;
}
.custom-interval-control select {
  width: 105px;
}
.custom-interval-control .secondary {
  height: 40px;
}
.honors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.honor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  font-size: 8px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  background: var(--surface-accent);
}
.honor.medal {
  background: var(--surface-amber);
  border-color: var(--line);
  color: var(--amber-text);
}
.honor.history-best {
  background: var(--surface-accent);
  border-color: var(--line);
  color: var(--accent);
}
.honor.year-best {
  background: var(--surface-inset);
  border-color: var(--line);
  color: var(--blue-text);
}
.honor.month-best {
  background: var(--surface-purple);
  border-color: var(--line);
  color: var(--purple-text);
}
.record-hero > .honors {
  justify-content: center;
  margin: 15px auto;
}
.record-hero > .paired-hr b {
  font-size: 18px;
}
.record-hero .secondary {
  margin-top: 15px;
}
.ranking-explainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-accent);
  padding: 17px;
  border-radius: 6px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--accent);
}
.ranking-explainer span {
  font-size: 10px;
  color: var(--muted);
}
.ranking-table td {
  vertical-align: top;
}
.ranking-table td:first-child {
  font-size: 16px;
  color: var(--accent);
}
.ranked-window small {
  display: block;
  font-size: 9px;
  margin-top: 7px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 22px;
}
.pagination span {
  font-size: 10px;
  color: var(--muted);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.duration-link {
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.data-range {
  margin-bottom: 18px;
}
.ranking-table .honors {
  max-width: 200px;
}
.ranking-table td:nth-child(4) {
  min-width: 150px;
}
.ride-interval-panel .fineprint {
  margin-top: 15px;
}
dialog:has(.ride-interval-panel) {
  width: 920px;
}
@media (max-width: 760px) {
  .interval-picker {
    grid-template-columns: 1fr 1fr;
  }
  .interval-picker label {
    font-size: 11px;
  }
  .interval-picker button {
    min-height: 40px;
  }
  .interval-result {
    grid-template-columns: 1fr 1fr;
  }
  .interval-result > div:last-child {
    grid-column: 1/-1;
  }
  .interval-result > div > span {
    font-size: 10px;
  }
  .interval-result .window-time {
    font-size: 18px;
    margin-top: 8px;
  }
  .interval-quick button {
    font-size: 11px;
  }
  .ride-interval-panel {
    padding: 16px 13px;
  }
  .ride-interval-panel h3 {
    font-size: 14px;
  }
  .custom-interval-control {
    flex-wrap: wrap;
  }
  .honor {
    font-size: 9px;
  }
  .ranking-table {
    min-width: 650px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination span {
    font-size: 9px;
    order: 3;
    width: 100%;
    text-align: center;
  }
  .record-hero .honors {
    max-width: 260px;
  }
  .ranking-explainer b {
    font-size: 11px;
  }
  .record-hero + table td:nth-child(3) {
    white-space: normal;
  }
  .custom-interval-control label {
    font-size: 11px;
  }
}
.toolbar.wrap {
  flex-wrap: wrap;
  align-items: flex-end;
}
.record-year-label {
  margin: 0;
  min-width: 100px;
  font-size: 10px;
}
.year-best.annual-first {
  background: var(--surface-inset);
  border-color: var(--line);
  color: var(--blue-text);
  font-weight: 600;
}
.metric-selector {
  margin-bottom: 16px;
}
.weight-basis {
  display: block;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
}
.record-hero > .weight-basis {
  font-size: 11px;
}
.ride-metric-label {
  max-width: 260px;
}
.route-panel {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.route-map {
  width: 100%;
  height: auto;
  min-height: 200px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
}
.route-map text {
  font: 12px sans-serif;
  fill: var(--accent);
}
.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.map-caption a {
  font-size: 10px;
  color: var(--muted);
  background: #fff9;
  padding: 4px;
}
.route-panel .empty {
  padding: 22px;
  text-align: left;
  font-size: 11px;
}
.map-caption .text-button {
  font-size: 10px;
}
@media (max-width: 760px) {
  .map-caption {
    flex-wrap: wrap;
    font-size: 10px;
  }
  .map-caption a {
    font-size: 9px;
  }
  .ride-metric-label {
    max-width: none;
  }
  .weight-basis {
    font-size: 10px;
  }
  .metric-selector button {
    min-width: 80px;
  }
}
.race-workout {
  background: var(--surface-amber);
  border-color: var(--line);
}
.race-trophy {
  font-size: 24px;
}
.race-workout small {
  font-size: 9px;
  color: var(--amber-text);
}
.race-workout .race-trophy {
  font-size: 20px;
}
.analysis-filter {
  margin-bottom: 24px;
}
.analysis-filter .segmented {
  flex-wrap: wrap;
}
.analysis-filter .segmented button {
  font-size: 10px;
  padding: 9px 12px;
}
.analysis-filter > .form-row > label {
  max-width: 150px;
}
.analysis-filter .form-row form {
  margin: 0;
}
.race-series-filter {
  max-width: 300px;
}
.report-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.report-field-grid label {
  margin-bottom: 0;
}
.document-preview {
  overflow: auto;
  max-height: 65vh;
  margin-top: 22px;
  background: var(--surface-accent);
}
.document-preview canvas,
.document-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.report-text {
  white-space: pre-wrap;
  word-break: break-word;
  font: 11px/1.7 monospace;
  color: var(--muted);
  max-height: 300px;
  overflow: auto;
  background: var(--surface-accent);
  padding: 16px;
}
.document-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.document-metrics span {
  font-size: 10px;
  color: var(--muted);
}
.document-metrics b {
  display: block;
  color: var(--accent);
  font-size: 19px;
  font-weight: 500;
  margin-top: 7px;
}
.notification-button {
  background: var(--surface-accent);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}
.notification-button span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
.notification-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.notification-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.calorie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 15px 20px;
}
.calorie-toggle label {
  margin: 0;
}
.calorie-toggle small {
  font-size: 9px;
}
.allergy-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.allergy-options label {
  margin: 0;
  font-size: 10px;
}
.food-source {
  display: block;
  margin-top: 6px;
  font-size: 9px;
}
.menu-list article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.menu-list article .card-heading {
  margin-bottom: 13px;
}
.menu-list p {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 9px 0;
}
.menu-list b {
  font-weight: 500;
}
.menu-total {
  background: var(--surface-accent);
  color: var(--accent);
  padding: 17px;
  border-radius: 5px;
  line-height: 1.7;
  font-size: 12px;
  margin-top: 20px;
}
.label-photo {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 20px auto;
}
.barcode-video {
  display: none;
  max-width: 100%;
  max-height: 300px;
  background: var(--surface-accent);
  margin-top: 20px;
}
#scan-status {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 15px;
}
.food-settings h3 {
  margin-bottom: 15px;
}
.food-settings .form-row {
  align-items: stretch;
}
#food-settings {
  margin-top: 15px;
}
.food-ui .button-row {
  margin: 0;
}
@media (max-width: 760px) {
  .report-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calorie-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .calorie-toggle label {
    font-size: 11px;
  }
  .analysis-filter .form-row {
    display: flex;
  }
  .analysis-filter .segmented button {
    font-size: 10px;
    padding: 8px;
  }
  .allergy-options label {
    font-size: 11px;
  }
  .document-metrics b {
    font-size: 17px;
  }
  .race-workout .race-trophy {
    font-size: 22px;
  }
  .race-workout small {
    font-size: 11px;
  }
  .notification-button {
    padding: 7px;
    font-size: 12px;
  }
  .notification-button span {
    font-size: 9px;
  }
  .top-actions {
    gap: 7px;
  }
  .report-field-grid input {
    padding: 10px;
  }
  .food-source {
    font-size: 9px;
  }
}

.button-row {
  align-items: center;
}

.weekly-plan-card .detail-stats span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.exercise-card {
  background: var(--surface-amber);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.exercise-card p {
  font-size: 13px;
  line-height: 1.65;
}
.exercise-card b {
  font-size: 12px;
}
.exercise-animation {
  width: 100%;
  height: 190px;
  display: block;
  background: var(--surface-accent);
  border-radius: 8px;
}
.exercise-edit,
.glossary-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.glossary-item summary {
  font-weight: 600;
  cursor: pointer;
}
.glossary-item p {
  line-height: 1.7;
  color: var(--muted);
}
.exercise-edit .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.gear-thumb {
  width: 72px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  float: left;
  margin-right: 12px;
}
#library-search {
  min-width: 180px;
}
#energy-live-preview {
  margin: 16px 0;
  font-weight: 600;
}
.block-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}
#strength-fields[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .exercise-grid {
    grid-template-columns: 1fr;
  }
  .block-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weekly-plan-card .detail-stats {
    grid-template-columns: 1fr;
  }
  .exercise-edit .form-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .exercise-animation {
    visibility: hidden;
  }
  .exercise-card:before {
    content: "Animace je skrytá dle nastavení omezeného pohybu.";
    font-size: 12px;
  }
}

[hidden] {
  display: none !important;
}
.exercise-animation {
  height: auto;
  min-height: 230px;
  max-height: 330px;
}
.exercise-card {
  padding: 12px;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 4px 18px #243c2910;
}
.exercise-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 14px 3px 8px;
}
.exercise-card p,
.exercise-card b {
  margin-left: 3px;
  margin-right: 3px;
}

.week-plan-brief {
  background: var(--surface-accent);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}
.week-plan-brief small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.week-plan-brief b {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.week-plan-brief p {
  margin-bottom: 0;
}
