/* Calculator screens. Values follow docs/overlevering/02-designsystem.md. */
.c-calculator {
  color: var(--ink, #15171A);
  background: var(--ground, #F1F1EE);
  font-family: Barlow, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.c-calculator *, .c-calculator *::before, .c-calculator *::after { box-sizing: border-box; }
:where(.c-calculator) :where(button, input) { font: inherit; }
.c-calculator button { cursor: pointer; }
.c-calculator button:disabled { cursor: default; opacity: .38; }
.c-calculator button:focus-visible, .c-calculator input:focus-visible {
  outline: 3px solid var(--ink, #15171A);
  outline-offset: 2px;
}
.c-calculator [hidden] { display: none !important; }
.c-calculator p, .c-calculator h1, .c-calculator h2, .c-calculator h3 { margin: 0; }
.c-calculator strong, .c-calculator h1, .c-calculator h2, .c-calculator h3,
.c-button, .c-wheel-item, .c-label, .c-lane-label, .c-wheel-unit-name,
.c-round-count, .c-timeline-badge, .c-lap-number, .c-timeline-group-heading > strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
}
.c-button {
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line, #CFD0CB);
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #15171A);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
}
.c-button[aria-pressed="true"] { border-color: var(--ink, #15171A); background: var(--ink, #15171A); color: #fff; }
.c-button:hover:not(:disabled) { border-color: var(--ink, #15171A); }
.c-button:active:not(:disabled) { transform: translateY(1px); }
.c-section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.c-section-title::before { content: ""; flex: 0 0 16px; width: 16px; height: 4px; background: var(--tartan, #B9442C); }
.c-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.c-help { font-size: 12px; line-height: 1.45; color: var(--muted, #55595E); }
.c-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #55595E); }
.c-segmented { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--line-faint, #E2E2DD); }
.c-segmented .c-button { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.c-controls { display: flex; flex-direction: column; gap: 14px; padding: 28px 16px 8px; }
.c-source-controls { display: flex; flex-direction: column; gap: 14px; }
.c-source-picker { display: flex; flex-direction: column; gap: 10px; }
.c-group-picker { display: flex; align-items: center; gap: 16px; padding: 8px 16px 8px 8px; border: 1px solid var(--line-soft, #D9DAD5); border-radius: 10px; background: #fff; }
.c-group-description { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; }
.c-group-description strong { font-size: 32px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.c-group-description span { font-size: 13px; line-height: 1.35; color: var(--muted, #55595E); }
.c-wheel-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.c-wheel-box { position: relative; width: 82px; height: 156px; }
.c-wheel-box.c-group-wheel { width: 104px; }
.c-wheel-band { position: absolute; inset: 52px 0 auto; height: 52px; border: 2px solid var(--ink, #15171A); border-radius: 8px; background: var(--tartan-tint, #B9442C1F); pointer-events: none; }
.c-wheel {
  position: absolute; inset: 0; overflow: hidden auto;
  height: 156px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.25), #000 34%, #000 66%, rgba(0,0,0,.25));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.25), #000 34%, #000 66%, rgba(0,0,0,.25));
}
.c-wheel::-webkit-scrollbar { display: none; }
.c-wheel-spacer { height: 52px; }
.c-wheel-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; min-height: 52px; padding: 0; margin: 0;
  border: 0; background: transparent; color: var(--muted, #55595E);
  scroll-snap-align: center; scroll-snap-stop: normal;
  font-size: 26px; line-height: 1; font-weight: 700;
}
.c-wheel-item.is-selected { font-size: 40px; color: var(--ink, #15171A); }
.c-wheel-item:focus-visible { outline-offset: -4px !important; border-radius: 7px; }
.c-group-wheel .c-wheel-item.is-selected { font-size: 34px; }
.c-group-stripe { width: 5px; height: 22px; flex-shrink: 0; border-radius: 2px; }
.c-wheel-unit-name { font-family: Barlow, sans-serif; color: var(--muted, #55595E); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.c-wheel-line { display: flex; align-items: center; justify-content: center; gap: 4px; }
.c-wheel-colon { padding-bottom: 16px; font-family: "Barlow Condensed", sans-serif; font-size: 30px; line-height: 1; font-weight: 700; }
.c-wheel-perkm { margin-left: 8px; padding-bottom: 16px; font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 700; color: var(--muted, #55595E); }
.c-pace-picker { padding: 10px 12px 8px; border: 1px solid var(--line-soft, #D9DAD5); background: #fff; border-radius: 10px; }
.c-races { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.c-races .c-button { height: 46px; padding: 6px 5px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.c-race-picker { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px 14px; border: 1px solid var(--line-soft, #D9DAD5); border-radius: 10px; background: #fff; }
.c-race-picker .c-wheel-box { width: 72px; }
.c-race-picker .c-wheel-unit:first-child .c-wheel-box { width: 60px; }
.c-race-caption { color: var(--muted, #55595E); font-size: 14px; font-variant-numeric: tabular-nums; }
.c-race-caption strong { color: var(--ink, #15171A); font-size: 22px; font-weight: 700; }
.c-equivalents { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.c-equivalents > div { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border: 1px solid var(--line-soft, #D9DAD5); border-radius: 6px; background: #fff; }
.c-equivalents span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #55595E); }
.c-equivalents strong { font-size: 21px; font-weight: 700; }
.c-keyboard-label { font-size: 12px; font-weight: 600; color: var(--muted, #55595E); }
.c-keyboard-field { display: flex; align-items: center; gap: 12px; padding: 6px 12px; border: 1px solid var(--line, #CFD0CB); border-radius: 6px; background: #fff; }
.c-keyboard-field input { width: 100%; min-width: 0; height: 44px; border: 0; background: transparent; font-family: "Barlow Condensed", sans-serif; font-size: 29px; font-weight: 700; }
.c-keyboard-field span { color: var(--muted, #55595E); font-size: 13px; white-space: nowrap; }
.c-keyboard-field input[aria-invalid="true"] { color: var(--alert-text, #9E3A25); }
.c-input-error { color: var(--alert-text, #9E3A25); font-size: 13px; line-height: 1.45; }
.c-type-section, .c-adjust-section { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.c-adjust-section { margin-top: 8px; }
.c-types { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.c-types .c-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 66px; padding: 6px 4px; line-height: 1; }
.c-types .c-button > span { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.c-types .c-button strong { font-size: 23px; font-weight: 600; }
.c-adjuster { display: grid; grid-template-columns: 44px 44px minmax(0,1fr) 44px 44px; gap: 6px; align-items: stretch; }
.c-adjuster .c-button { height: 58px; padding: 6px 2px; font-size: 18px; }
.c-offset-readout { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 2px solid var(--ink, #15171A); border-radius: 6px; background: #fff; text-align: center; line-height: 1; min-height: 58px; }
.c-offset-readout > strong { font-size: 25px; font-weight: 700; }
.c-offset-readout > span { font-size: 12px; font-weight: 500; color: var(--muted, #55595E); }
.c-distance { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.c-text-button { border: 0; background: transparent; padding: 8px 0 8px 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.c-distance-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.c-distance-grid .c-button { height: 46px; padding: 6px 2px; font-size: 18px; font-weight: 700; white-space: nowrap; }
.c-lap-counter { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; }
.c-lap-counter > div { display: flex; align-items: center; gap: 4px; }
.c-lap-counter .c-button { min-width: 44px; font-size: 22px; }
.c-lap-counter input { width: 58px; min-height: 44px; border: 1px solid var(--line, #CFD0CB); border-radius: 6px; font-family: "Barlow Condensed", sans-serif; font-size: 24px; font-weight: 700; text-align: center; background: #fff; color: var(--ink, #15171A); }
.c-oval-section { display: flex; align-items: center; flex-direction: column; gap: 14px; padding: 22px 16px 18px; border-top: 1px solid var(--dark-line, #2A2E33); background: var(--ink, #15171A); }
.c-oval { position: relative; width: 100%; max-width: 358px; aspect-ratio: 358 / 220; }
.c-oval > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-track-fill { fill: var(--tartan, #B9442C); }
.c-oval-center { position: absolute; left: 11.4525%; top: 18.6363%; width: 77.095%; height: 62.727%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: #fff; }
.c-oval-center > div { display: flex; align-items: baseline; gap: 5px; }
.c-oval-center > div > strong { font-size: 70px; line-height: .85; font-weight: 700; letter-spacing: -.01em; }
.c-oval-center > div > span { font-family: "Barlow Condensed", sans-serif; font-size: 17px; font-weight: 600; }
.c-source-badge { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.32); font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.c-oval-marker { position: absolute; transform: translate(-50%,-50%); display: flex; align-items: center; flex-direction: column; padding: 3px 7px 4px; border-radius: 5px; line-height: 1; white-space: nowrap; box-shadow: 0 1px 3px #0006; background: #fff; color: var(--ink, #15171A); }
.c-oval-marker > span { font-family: "Barlow Condensed", sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #55595E); }
.c-oval-marker > strong { font-size: 15px; font-weight: 700; margin-top: 2px; }
.c-oval-marker.is-lap { background: var(--ink, #15171A); color: #fff; }
.c-oval-marker.is-lap > span { color: var(--on-dark-soft, #C9CBCE); }
.c-oval-section > p { color: var(--on-dark-muted, #A9ACB0); font-size: 12px; line-height: 1.4; text-align: center; }
.c-result-lanes { display: flex; flex-direction: column; border-bottom: 2px solid #fff; background: var(--tartan, #B9442C); color: #fff; }
.c-result-lane { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 16px; border-top: 2px solid #fff; }
.c-lane-number { width: 22px; text-align: center; flex-shrink: 0; font-family: "Barlow Condensed", sans-serif; font-size: 32px; font-weight: 800; }
.c-lane-label { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.c-lane-label > strong { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.c-lane-label > span { font-family: Barlow, sans-serif; font-size: 12px; font-weight: 500; }
.c-lane-result { display: flex; align-items: baseline; gap: 3px; line-height: 1; white-space: nowrap; }
.c-lane-result > strong { font-size: 42px; font-weight: 700; }
.c-lane-result > span { font-family: "Barlow Condensed", sans-serif; font-size: 18px; font-weight: 600; }
.c-passages { display: flex; flex-direction: column; padding-top: 20px; }
.c-passage-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 16px 14px; }
.c-passage-heading h2 { font-size: 30px; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.c-passage-heading p { font-size: 13px; margin-top: 4px; color: var(--muted, #55595E); }
.c-mode-toggle { flex-shrink: 0; }
.c-mode-toggle .c-button { padding: 0 12px; font-size: 14px; }
.c-timeline { border-top: 1px solid var(--line-faint, #E2E2DD); }
.c-timeline-row { display: flex; align-items: stretch; min-height: 50px; background: #fff; border-bottom: 1px solid var(--line-faint, #E2E2DD); }
.c-timeline-distance { display: flex; align-items: center; justify-content: center; gap: 2px; width: 76px; flex-shrink: 0; border-top: 2px solid #fff; background: var(--tartan, #B9442C); color: #fff; }
.c-timeline-distance strong { font-size: 20px; font-weight: 700; white-space: nowrap; }
.c-timeline-distance > span { font-family: "Barlow Condensed", sans-serif; font-size: 12px; font-weight: 600; }
.c-timeline-value { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 0 16px; }
.c-timeline-value > strong { font-size: 27px; font-weight: 700; white-space: nowrap; }
.c-timeline-badge { padding: 5px 9px; border-radius: 4px; background: var(--ink, #15171A); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.c-timeline-row.is-lap { background: var(--tartan-tint, #B9442C1F); }
.c-timeline-row.is-lap .c-timeline-distance { background: linear-gradient(#0004,#0004), var(--tartan, #B9442C); }
.c-timeline-row.is-final { background: var(--ink, #15171A); color: #fff; }
.c-timeline-row.is-final .c-timeline-distance { background: var(--tartan, #B9442C); }
.c-timeline-row.is-final .c-timeline-badge { background: #fff; color: var(--ink, #15171A); }
.c-copy-wrap { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 16px 16px 0; }
.c-copy-button { width: 100%; border: 2px solid var(--ink, #15171A); background: transparent; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.c-copy-status { font-size: 13px; line-height: 1.4; min-height: 18px; color: var(--muted, #55595E); text-align: center; }
.c-copy-area { position: fixed; left: -9999px; top: 0; }
.c-invalid { padding: 20px 16px; font-size: 14px; color: var(--alert-text, #9E3A25); }
.c-footer { padding: 18px 16px 32px; font-size: 12px; line-height: 1.5; color: var(--muted, #55595E); }
.c-rounds-hero { display: flex; flex-direction: column; gap: 18px; padding: 24px 16px; border-top: 1px solid var(--dark-line, #2A2E33); background: var(--ink, #15171A); color: #fff; }
.c-rounds-hero > h2 { font-size: 42px; line-height: .95; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.c-rounds-hero > p { font-size: 14px; line-height: 1.45; color: var(--on-dark-soft, #C9CBCE); margin-top: -10px; }
.c-rounds-scoreboard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 2px solid #fff; border-bottom: 2px solid #fff; background: var(--tartan, #B9442C); }
.c-rounds-scoreboard > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.c-rounds-scoreboard > div:first-child { border-right: 2px solid #fff; }
.c-rounds-scoreboard > div > span { font-family: "Barlow Condensed", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.c-rounds-scoreboard strong { font-size: 44px; line-height: 1; font-weight: 700; white-space: nowrap; }
.c-rounds-scoreboard small { font-size: 12px; font-weight: 500; }
.c-round-controls { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.c-round-count { display: flex; align-items: center; gap: 6px; }
.c-round-count .c-button { width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.c-round-count > span { min-width: 78px; text-align: center; font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.c-milk-preset { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; gap: 10px; padding: 8px 14px; border: 2px solid var(--line, #CFD0CB); text-align: left; }
.c-milk-preset[aria-pressed="true"] { background: #fff; color: var(--ink, #15171A); border-color: var(--ink, #15171A); }
.c-milk-preset > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.c-milk-preset strong { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.c-milk-preset small { font-family: Barlow, sans-serif; font-size: 12px; font-weight: 400; color: var(--muted, #55595E); }
.c-preset-badge { padding: 5px 9px; border-radius: 4px; background: var(--ink, #15171A); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.c-milk-preset[aria-pressed="false"] .c-preset-badge { background: var(--line-faint, #E2E2DD); color: var(--ink, #15171A); }
.c-lap-cards { display: flex; flex-direction: column; gap: 8px; }
.c-lap-card { display: flex; align-items: stretch; border: 1px solid var(--line-soft, #D9DAD5); border-radius: 8px; background: #fff; overflow: hidden; }
.c-lap-number { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; width: 60px; flex-shrink: 0; background: var(--tartan, #B9442C); color: #fff; }
.c-lap-number strong { font-size: 36px; line-height: .9; font-weight: 800; }
.c-lap-number span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.c-lap-options { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 10px; }
.c-types-compact { gap: 5px; }
.c-types-compact .c-button { height: 48px; border-radius: 5px; }
.c-types-compact .c-button > span { font-size: 14px; letter-spacing: .08em; }
.c-types-compact .c-button > strong { font-size: 14px; }
.c-lap-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted, #55595E); }
.c-lap-stats strong { font-size: 19px; font-weight: 700; color: var(--ink, #15171A); }
.c-timeline-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: var(--ink, #15171A); color: #fff; }
.c-timeline-group-heading > strong { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.c-timeline-group-heading > span { font-size: 13px; color: var(--on-dark-soft, #C9CBCE); text-align: right; }
@media (max-width: 360px) {
  .c-group-picker { gap: 10px; padding-right: 10px; }
  .c-group-description strong { font-size: 28px; }
  .c-group-description span { font-size: 12px; }
  .c-oval-center > div > strong { font-size: 58px; }
  .c-source-badge { font-size: 10px; padding: 4px 7px; }
  .c-oval-marker { padding-left: 5px; padding-right: 5px; }
  .c-oval-marker > strong { font-size: 13px; }
  .c-lane-result > strong { font-size: 36px; }
  .c-lane-label > strong { font-size: 14px; }
  .c-result-lane { gap: 10px; }
  .c-equivalents > div { padding: 8px 6px; }
  .c-equivalents span { font-size: 10px; letter-spacing: .03em; }
  .c-equivalents strong { font-size: 19px; }
  .c-offset-readout > span { font-size: 10px; line-height: 1.15; }
  .c-races .c-button { font-size: 13px; letter-spacing: .03em; }
  .c-timeline-value { gap: 6px; padding: 0 10px; }
  .c-timeline-badge { font-size: 12px; padding: 5px 6px; }
  .c-passage-heading { gap: 8px; }
  .c-mode-toggle .c-button { padding: 0 9px; }
  .c-rounds-hero > h2 { font-size: 36px; }
  .c-rounds-scoreboard > div { padding: 10px; }
  .c-rounds-scoreboard strong { font-size: 38px; }
  .c-round-count { gap: 4px; }
  .c-round-count > span { min-width: 64px; font-size: 16px; }
  .c-lap-number { width: 48px; }
  .c-lap-options { padding: 8px; gap: 7px; }
  .c-types-compact { gap: 4px; }
  .c-types-compact .c-button { min-width: 44px; }
  .c-lap-stats { font-size: 10px; gap: 4px; }
  .c-lap-stats strong { font-size: 17px; }
  .c-timeline-group-heading { gap: 6px; }
  .c-timeline-group-heading > strong { font-size: 14px; letter-spacing: .04em; }
  .c-timeline-group-heading > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .c-calculator * { scroll-behavior: auto !important; } }

.c-segmented .c-button[aria-pressed="true"] { background: var(--ink, #15171A); color: #fff; }

.c-round-plan-note { padding:14px 16px; border-bottom:1px solid var(--line,#D5D6D3); background:var(--tartan-tint,#B9442C1F); color:var(--alert-text,#9E3A25); font-size:14px; line-height:1.45; font-weight:500; }

/* Clear trackside labels and less condensed interface text. */
.c-calculator { font-size:16px; line-height:1.5; }
.c-calculator h1,.c-calculator h2,.c-calculator h3,.c-button,.c-label,.c-lane-label,.c-round-count,.c-timeline-badge,.c-timeline-group-heading > strong { font-family:Barlow,system-ui,sans-serif; letter-spacing:0; text-transform:none; }
.c-button { font-weight:600; font-size:16px; line-height:1.35; }
.c-section-title { font-size:21px; letter-spacing:0; text-transform:none; }
.c-label { font-size:16px; letter-spacing:0; text-transform:none; }
.c-help,.c-group-description span,.c-keyboard-label,.c-keyboard-field span,.c-input-error,.c-offset-readout > span,.c-copy-status,.c-footer,.c-rounds-scoreboard small,.c-milk-preset small,.c-preset-badge,.c-lap-stats,.c-timeline-group-heading > span,.c-round-plan-note { font-size:14px; line-height:1.5; }
.c-segmented .c-button,.c-races .c-button,.c-copy-button,.c-round-count > span,.c-milk-preset strong,.c-preset-badge,.c-timeline-group-heading > strong,.c-timeline-badge { letter-spacing:0; text-transform:none; }
.c-types { grid-template-columns:repeat(2,minmax(0,1fr)); }
.c-types .c-button { height:auto; min-height:76px; padding:10px 8px; gap:6px; }
.c-types .c-button > span { font-family:Barlow,system-ui,sans-serif; font-size:15px; font-weight:600; letter-spacing:0; }
.c-types .c-button strong { font-size:27px; }
.c-types-compact .c-button { min-height:64px; }
.c-types-compact .c-button > span { font-size:14px; letter-spacing:0; }
.c-types-compact .c-button > strong { font-size:22px; }
.c-rounds-hero > h2 { font-size:30px; line-height:1.2; letter-spacing:0; text-transform:none; }
.c-rounds-scoreboard > div > span { font-family:Barlow,system-ui,sans-serif; font-size:16px; letter-spacing:0; text-transform:none; }
.c-group-description strong { font-family:Barlow,system-ui,sans-serif; font-size:26px; text-transform:none; }
.c-timeline-group-heading { flex-wrap:wrap; padding-top:10px; padding-bottom:10px; }
.c-timeline-group-heading > strong { white-space:normal; }
.c-source-badge { font-family:Barlow,system-ui,sans-serif; font-size:13px; max-width:95%; white-space:normal; text-align:center; }
.c-lane-label > strong { font-size:17px; letter-spacing:0; text-transform:none; }

.c-session-summary { padding:18px 16px; border-bottom:1px solid var(--line-soft,#D9DAD5); background:#fff; font-size:16px; line-height:1.5; }
.c-session-summary p + p { margin-top:6px; }
.c-session-summary strong { font-family:Barlow,sans-serif; }
.c-session-summary small { display:block; margin-top:6px; font-size:14px; color:var(--muted,#55595E); }
.c-oval-section .c-estimate-note { padding:8px 12px; font-size:14px; background:#fff; color:var(--alert-text,#9E3A25); border-radius:6px; text-align:center; line-height:1.5; }
.c-rounds-hero > .c-continuous-note { font-size:14px; line-height:1.5; margin:0; color:#fff; }

.c-oval-section > p,.c-lane-label > span,.c-passage-heading p,.c-wheel-unit-name,.c-equivalents span,.c-source-badge,.c-lap-number span { font-size:14px; line-height:1.5; letter-spacing:0; text-transform:none; }
.c-passage-heading h2 { font-size:25px; line-height:1.2; letter-spacing:0; text-transform:none; }
.c-oval-marker > span { font-size:12px; letter-spacing:0; }
.c-oval-marker > strong { font-size:17px; }

.c-oval-marker > span,.c-timeline-distance > span,.c-timeline-badge { font-size:14px; }
.c-races .c-button { font-size:15px; }

.c-estimate-note > strong { font-family:Barlow,sans-serif; font-size:14px; font-weight:600; }
.c-estimate-note summary { display:flex; justify-content:center; align-items:center; min-height:44px; font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.c-estimate-note details > p { font-size:14px; line-height:1.5; text-align:left; max-width:100%; }

.c-session-context { padding:20px 16px; display:flex; flex-direction:column; gap:10px; border-bottom:1px solid var(--line-soft,#D9DAD5); background:#fff; color:var(--ink,#15171A); }
.c-session-context h1 { font-size:26px; line-height:1.2; }
.c-session-context p,.c-session-context strong { font-family:Barlow,system-ui,sans-serif; }
.c-session-context .c-context-date { font-size:14px; color:var(--muted,#55595E); }
.c-context-total { padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--tartan-tint,#B9442C1F); border-radius:6px; }
.c-context-total > strong { font-family:"Barlow Condensed",sans-serif; font-size:34px; line-height:1; }
.c-context-actions { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; }
.c-context-actions > a { text-decoration:none; }
.c-context-actions .c-text-button { padding-left:0; }
.c-timeline-row.is-change { border-bottom:2px solid var(--tartan,#B9442C); }
.c-timeline-value { flex-wrap:wrap; padding-top:8px; padding-bottom:8px; }

.c-session-context .c-context-range { font-size:14px; line-height:1.5; color:var(--muted,#55595E); }

.c-session-context .c-context-description { font-size:14px; line-height:1.5; padding-left:10px; border-left:3px solid var(--tartan,#B9442C); overflow-wrap:anywhere; }

.c-session-context > .p-confidence { align-self:flex-start; }

.c-distance-adaptation { font-size:14px; line-height:1.5; padding:10px 12px; border-left:3px solid var(--tartan,#B9442C); background:var(--tartan-tint,#B9442C1F); color:var(--ink,#15171A); }

/* Independent calculator: one persistent inline editor and one-lap readout. */
.b-calculator-nav { display:flex; flex-wrap:nowrap; gap:6px; max-width:720px; padding:16px 20px; margin:0 auto 8px; }
.b-calculator-nav a { display:flex; align-items:center; justify-content:center; flex:1 1 0; min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:#fff; text-align:center; text-decoration:none; font-size:16px; font-weight:600; line-height:1.3; }
.b-calculator-nav a[aria-current="page"] { background:var(--bislett-pine); color:#fff; border-color:var(--bislett-pine); }
.b-calculator-nav a:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.c-heading { padding:4px 20px 8px; }
.c-heading h1 { font-family:Barlow,sans-serif; font-size:24px; line-height:1.25; }
.c-heading p { font-size:14px; margin-top:6px; color:var(--muted); }
.c-track-choice { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:12px 16px; background:var(--ink); color:#fff; }
.c-track-choice>strong { font-family:Barlow,sans-serif; font-size:15px; }
.c-oval-section { padding:12px 14px 16px; gap:8px; }
.c-oval-section .c-track-choice { width:100%; padding:0 0 12px; }
.c-track-choice .c-segmented { background:#fff; }
.c-track-choice .c-button { min-width:64px; }
.c-oval { aspect-ratio:358/250; max-width:430px; }
.c-oval.is-indoor { aspect-ratio:358/210; }
[data-c-drawing], [data-c-drawing]>svg { position:absolute; inset:0; width:100%; height:100%; }
.c-oval-center { inset:0; width:100%; height:100%; pointer-events:none; }
.c-oval-center .b-pace-picker { pointer-events:auto; width:190px; color:#fff; }
.c-oval-center .b-pace-picker>strong,.c-oval-center .b-pace-picker>output,.c-oval-center .b-pace-picker>p,.c-oval-center .b-pace-wheel-unit>span { display:none; }
.c-oval-center .b-pace-wheel-line { gap:4px; }
.c-oval-center .b-pace-wheel-box { width:64px; height:96px; }
.c-oval-center .b-pace-wheel-band { top:24px; background:#163b2e; border-color:#fff; }
.c-oval-center .b-pace-wheel-item { color:#e3ebdf; font-size:25px; user-select:none; }
.c-oval-center .b-pace-wheel-item[aria-pressed="true"] { color:#fff; font-size:45px; }
.c-oval-center .b-pace-wheel-item:focus-visible { outline-color:#fff; }
.c-oval-center .b-pace-wheel-colon,.c-oval-center .b-pace-wheel-suffix { padding-top:0; }
.c-oval-center .b-pace-keyboard { position:absolute; top:calc(100% + 6px); left:0; right:0; text-align:center; background:var(--ink); }
.c-oval-center .b-pace-keyboard summary { min-height:44px; display:flex; align-items:center; justify-content:center; font-size:14px; cursor:pointer; text-decoration:underline; }
.c-oval-center .b-pace-keyboard .b-field { padding:8px 20px; color:#fff; }
.c-oval-center .b-pace-keyboard input { color:var(--ink); background:#fff; width:100%; max-width:240px; min-height:44px; border-radius:6px; padding:8px; }
.c-source-badge { border-radius:0; background:none; padding:8px 0 0; color:#fff; max-width:100%; overflow:visible; }
.c-reset { color:#fff; background:transparent; border-color:#c6d8cc; }
.c-first-lap { background:#fff; padding:8px 20px 16px; }
.c-first-lap table { width:100%; border-collapse:collapse; }
.c-first-lap caption { text-align:left; font-size:17px; font-weight:600; padding:8px 0; }
.c-first-lap th,.c-first-lap td { border-top:1px solid var(--line); padding:6px 0; line-height:1.2; }
.c-first-lap th { text-align:left; font-family:Barlow,sans-serif; font-size:17px; font-weight:600; }
.c-first-lap td { text-align:right; font-family:'Barlow Condensed',sans-serif; font-size:32px; font-weight:700; }
.c-first-lap small { display:inline-block; padding-left:8px; font-size:14px; }
.c-first-lap .is-lap { color:var(--bislett-pine); background:var(--fill-muted); }
.c-first-lap .is-lap th,.c-first-lap .is-lap td { padding:10px 6px; }
.c-segmented { flex-wrap:wrap; }
.c-segmented .c-button { flex-basis:80px; }
@media(max-width:359px) { .b-calculator-nav { padding:12px; gap:4px; } .b-calculator-nav a { flex:1 1 0; padding:8px 4px; font-size:14px; } .c-oval-marker>span { font-size:11px; } .c-oval-marker>strong { font-size:15px; } }
.c-track-choice .c-segmented { flex-wrap:nowrap; }
.c-track-choice .c-segmented .c-button { flex:1 0 auto; }
.c-oval-section .c-source-badge { margin-top:54px; }
.c-oval-section:has(.b-pace-keyboard[open]) .c-source-badge { margin-top:170px; }
.c-oval.is-indoor .c-oval-marker.is-lap { transform:translate(-28%,-50%); }
/* Half-visible neighbours keep the editor clear of all perimeter markers. */
.c-oval-center .b-pace-wheel-spacer { height:24px; }
.c-mode-toggle { flex-wrap:nowrap; }
.c-mode-toggle .c-button { flex-basis:auto; }
@media(max-width:359px) {
  .c-oval-center .b-pace-picker { width:148px; }
  .c-oval-center .b-pace-wheel-box { width:48px; }
  .c-oval-center .b-pace-wheel-colon { font-size:22px; }
  .c-oval-center .b-pace-wheel-suffix { font-size:17px; }
}
@media(max-width:359px) {
  .c-oval.is-indoor [data-c-marker-distance="200"] { transform:translate(-50%,-70%); }
  .c-oval.is-indoor [data-c-marker-distance="300"] { transform:translate(-100%,-70%); }
  .c-oval.is-indoor [data-c-marker-distance="500"] { transform:translate(-50%,-25%); }
  .c-oval.is-indoor .c-oval-marker.is-lap { transform:translate(-28%,-25%); }
}
.c-oval-center .b-pace-wheel-item:has(+ [aria-pressed="true"]) { padding-top:24px; font-size:20px; }
.c-oval-center .b-pace-wheel-item[aria-pressed="true"] + .b-pace-wheel-item { padding-bottom:24px; font-size:20px; }
.c-import-origin { padding:12px 20px; background:var(--fill-muted); font-size:14px; }
.c-import-origin a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); font-weight:600; }
