* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: dark;
  --bg: #030403;
  --surface: #0a0d0b;
  --surface-2: #101311;
  --surface-3: #171b18;
  --line: #252b26;
  --line-strong: #394039;
  --text: #f4f6f4;
  --muted: #979e99;
  --muted-2: #6e756f;
  --green: #24C2E5;
  --green-bright: #55D8F2;
  --green-dark: #083947;
  --amber: #ffc44d;
  --red: #ff4d43;
  --red-soft: #32100e;
  --success: #00d99c;
  --radius: 18px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .55);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #121512;
  color: var(--text);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.prototype-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(250px, 360px) 390px;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  padding: 42px;
  background:
    radial-gradient(circle at 72% 42%, rgba(36, 194, 229, .07), transparent 26%),
    linear-gradient(135deg, #191d19, #0f1210 60%, #171a17);
}

.prototype-meta {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #cbd0cc;
}

.prototype-eyebrow {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.prototype-meta h1 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(52px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.055em;
}

.prototype-meta p {
  max-width: 330px;
  margin: 0;
  color: #9ea59f;
  font-size: 15px;
  line-height: 1.55;
}

.prototype-meta__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 12px;
}

.prototype-reset {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #3a413b;
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #e8ebe8;
}

.prototype-reset:hover {
  border-color: rgba(36, 194, 229, .5);
  color: var(--green);
}

.device {
  width: 390px;
  height: min(844px, calc(100dvh - 36px));
  min-height: 680px;
  position: relative;
  overflow: hidden;
  border: 1px solid #343a35;
  border-radius: 42px;
  background: var(--bg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.device__speaker {
  position: absolute;
  z-index: 30;
  top: 9px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #030403;
  pointer-events: none;
}

.home-indicator {
  position: absolute;
  z-index: 30;
  bottom: 7px;
  left: 50%;
  width: 118px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  pointer-events: none;
}

.app {
  width: 100%;
  height: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #020302;
}

.app::before,
.app::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.app::before {
  inset: -5%;
  opacity: .34;
  background: url("./assets/backgrounds/home-space-tunnel.jpg") center / cover no-repeat;
  transform: translate3d(-1.2%, 0, 0) scale(1.04);
  transform-origin: center;
  animation: app-space-drift 20s ease-in-out infinite alternate;
  will-change: transform;
}

.app::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 22%, rgba(2, 3, 2, .16) 54%, rgba(2, 3, 2, .42) 100%),
    linear-gradient(180deg, rgba(2, 3, 2, .08), rgba(2, 3, 2, .28));
}

.screen {
  height: 100%;
  min-height: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 21px 21px;
  animation: screen-in .26s ease both;
}

.screen--scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.screen--scroll::-webkit-scrollbar {
  display: none;
}

.screen--modal {
  overflow: hidden;
}

.screen-content-scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 8px;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-content-scroll > * {
  flex-shrink: 0;
}

.screen-content-scroll::-webkit-scrollbar {
  display: none;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.topbar {
  min-height: 54px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
}

.topbar h2 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 24px;
}

.icon-button.soft {
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 17px;
}

.icon-button .material-icon {
  width: 21px;
  height: 21px;
}

.icon-button:active,
.button:active,
.choice:active,
.chip:active,
.nav-button:active {
  transform: scale(.98);
}

.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 7px 0 8px;
  font-size: 28px;
  line-height: 1.07;
  letter-spacing: -.032em;
  font-weight: 670;
}

.hero-copy,
.muted {
  color: var(--muted);
}

.hero-copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
}

.grow {
  flex: 1 1 auto;
  min-height: 0;
}

.bottom-stack {
  margin-top: auto;
  padding-top: 14px;
}

.prepare-scroll {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.prepare-scroll > * {
  flex-shrink: 0;
}

.prepare-scroll::-webkit-scrollbar {
  display: none;
}

.settings-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.settings-scroll::-webkit-scrollbar {
  display: none;
}

.profile-screen .bottom-nav,
.safety-screen .bottom-nav {
  margin-top: 8px;
}

.prepare-screen .bottom-nav {
  margin-top: 8px;
}

.crew-configuration {
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(11, 14, 12, .86);
}

.primary-modality-chips .modality-more {
  gap: 3px;
  color: var(--green);
}

.modality-more .material-icon {
  width: 15px;
  height: 15px;
}

.modality-picker-sheet {
  max-height: 86%;
}

.modality-family + .modality-family {
  margin-top: 16px;
}

.modality-family__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}

.modality-family__title strong {
  font-size: 13px;
}

.modality-family__title span {
  color: var(--muted);
  font-size: 9px;
}

.modality-options {
  display: grid;
  gap: 7px;
}

.canoe-option {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #090c0a;
  color: var(--text);
  text-align: left;
}

.canoe-option.active {
  border-color: rgba(36, 194, 229, .55);
  background: rgba(36, 194, 229, .05);
}

.canoe-option > span:not(.glyph),
.canoe-option strong,
.canoe-option small {
  display: block;
}

.canoe-option strong {
  font-size: 12.5px;
}

.canoe-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
}

.compact-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.compact-label span {
  color: #dde2de;
  font-size: 11px;
  font-weight: 680;
}

.compact-label small {
  color: var(--muted);
  font-size: 8.5px;
}

.compact-label--role {
  margin-top: 10px;
}

.crew-position-chips .chip {
  min-width: 34px;
}

.training-type-chips {
  row-gap: 6px;
}

.training-context-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(16, 20, 17, .98), rgba(7, 9, 8, .99));
}

.training-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.training-context-head > div > strong,
.training-context-head > div > span {
  display: block;
}

.training-context-head > div > strong {
  margin-top: 3px;
  font-size: 15px;
}

.context-info-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(36, 194, 229, .32);
  border-radius: 50%;
  background: rgba(36, 194, 229, .07);
  color: var(--green);
}

.context-info-button .material-icon {
  width: 18px;
  height: 18px;
}

.context-info-button--heading {
  width: 29px;
  height: 29px;
}

.technical-focus {
  margin-bottom: 10px;
}

.chips--focus {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.chips--focus::-webkit-scrollbar {
  display: none;
}

.chips--focus .chip {
  flex: 0 0 auto;
}

.training-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.training-config-field {
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid #292f2a;
  border-radius: 13px;
  background: #090c0a;
  color: var(--text);
  text-align: left;
}

.training-config-field span,
.training-config-field small {
  color: var(--muted);
}

.training-config-field span {
  font-size: 8.5px;
  font-weight: 680;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.training-config-field strong {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.training-config-field small {
  margin-top: 3px;
  font-size: 7.5px;
}

.free-training-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(36, 194, 229, .2);
  border-radius: 13px;
  background: rgba(36, 194, 229, .045);
}

.free-training-note strong {
  font-size: 12px;
}

.free-training-note span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.environment-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 196, 77, .25);
  border-radius: 12px;
  background: rgba(255, 196, 77, .05);
  color: var(--amber);
}

.environment-notice span,
.environment-notice strong,
.environment-notice small {
  display: block;
}

.environment-notice strong {
  color: #f5dfb0;
  font-size: 10.5px;
}

.environment-notice small {
  margin-top: 3px;
  color: #a69d88;
  font-size: 8.5px;
  line-height: 1.35;
}

.environment-unavailable-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 8px;
  padding: 11px 12px;
  color: var(--amber);
}

.environment-unavailable-card span,
.environment-unavailable-card strong,
.environment-unavailable-card small {
  display: block;
}

.environment-unavailable-card strong {
  color: #f5dfb0;
  font-size: 10.5px;
}

.environment-unavailable-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
}

.contextual-checklist {
  display: grid;
  gap: 9px;
}

.safety-equipment-checklist {
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.checklist-status--pending {
  border-color: rgba(255, 77, 67, .58);
  background: linear-gradient(145deg, rgba(50, 16, 14, .42), rgba(8, 10, 9, .98) 38%);
  box-shadow: inset 3px 0 0 rgba(255, 77, 67, .82);
}

.checklist-status--complete {
  border-color: rgba(0, 217, 156, .58);
  background: linear-gradient(145deg, rgba(0, 217, 156, .08), rgba(8, 10, 9, .98) 38%);
  box-shadow: inset 3px 0 0 rgba(0, 217, 156, .82);
}

.checklist-group-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #232724;
}

.checklist-group-heading strong,
.checklist-group-heading small {
  display: block;
}

.checklist-group-heading strong {
  font-size: 12px;
}

.checklist-group-heading small,
.checklist-context-label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.checklist-group-heading > span {
  min-width: 37px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.checklist-status--pending .checklist-group-heading {
  color: var(--red);
}

.checklist-status--complete .checklist-group-heading {
  color: var(--success);
}

.training-checklist-context {
  display: grid;
  gap: 6px;
}

.checklist-context-label {
  padding-left: 2px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checklist-heading-status {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
}

.checklist-heading-status.pending {
  color: var(--red);
}

.checklist-heading-status.complete {
  color: var(--success);
}

.checklist-row {
  width: 100%;
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.checklist-row--required {
  min-height: 68px;
  padding: 8px 0;
}

.checklist-row .row__main small {
  line-height: 1.35;
}

.checklist-row--required:not(.is-checked) .check {
  border-color: rgba(255, 77, 67, .72);
  background: rgba(255, 77, 67, .07);
}

.checklist-row--required.is-checked .glyph {
  background: rgba(0, 217, 156, .12);
  color: var(--success);
}

.checklist-row--required.is-checked .check.ok {
  border-color: var(--success);
  background: var(--success);
}

.training-backdrop {
  z-index: 55;
}

.training-sheet {
  max-height: 82%;
  overflow-y: auto;
}

.training-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.training-sheet__head h3 {
  margin: 4px 0 0;
}

.training-focus-explanation {
  margin: -2px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #090c0a;
}

.training-focus-explanation span,
.training-focus-explanation strong {
  display: block;
}

.training-focus-explanation span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.training-focus-explanation strong {
  margin-top: 4px;
  font-size: 13px;
}

.training-focus-explanation p {
  margin: 6px 0 0;
  font-size: 10px;
}

.training-presets {
  display: grid;
  gap: 7px;
}

.training-preset {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #090c0a;
  color: var(--text);
  text-align: left;
}

.training-preset.active {
  border-color: rgba(36, 194, 229, .55);
  background: rgba(36, 194, 229, .05);
}

.training-preset > span:not(.glyph),
.training-preset strong,
.training-preset small {
  display: block;
}

.training-preset strong {
  font-size: 12px;
}

.training-preset small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.preset-type {
  color: var(--green);
  font-size: 8.5px;
  font-weight: 680;
  white-space: nowrap;
}

.section-heading {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0 6px;
}

.section-heading h3,
.section-heading h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.text-link {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 650;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 19, 17, .95), rgba(6, 8, 7, .99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.card + .card {
  margin-top: 9px;
}

.card-pad {
  padding: 14px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.card-title strong {
  font-size: 14px;
  font-weight: 650;
}

.card-title small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
}

.button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(110deg, var(--green-bright), #159dbe);
  color: #071000;
  font-size: 15.5px;
  font-weight: 760;
  letter-spacing: -.012em;
  transition: transform .12s ease, filter .15s ease, opacity .15s ease;
}

.button + .button {
  margin-top: 9px;
}

.button:hover {
  filter: brightness(1.04);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.button.outline {
  border: 1px solid rgba(36, 194, 229, .7);
  background: transparent;
  color: var(--green);
}

.button.danger {
  background: var(--red);
  color: #fff;
}

.button.danger-outline {
  border: 1px solid rgba(255, 77, 67, .65);
  background: transparent;
  color: var(--red);
}

.button:disabled {
  cursor: default;
  opacity: .55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip,
.pill {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #343a35;
  border-radius: 999px;
  background: rgba(255, 255, 255, .018);
  color: #cbd0cc;
  font-size: 10.5px;
  font-weight: 620;
}

button.chip {
  transition: transform .12s ease, border-color .15s ease, color .15s ease, background .15s ease;
}

.chip.active,
.pill.active {
  border-color: rgba(36, 194, 229, .48);
  background: rgba(36, 194, 229, .075);
  color: var(--green);
}

.pill.alert {
  border-color: rgba(255, 196, 77, .45);
  background: rgba(255, 196, 77, .08);
  color: var(--amber);
}

.pill.danger {
  border-color: rgba(255, 77, 67, .58);
  background: rgba(255, 77, 67, .09);
  color: var(--red);
}

.pill.success {
  border-color: rgba(0, 217, 156, .58);
  background: rgba(0, 217, 156, .09);
  color: var(--success);
}

.choices {
  display: grid;
  gap: 8px;
}

.choice {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 13, 11, .96);
  color: var(--text);
  text-align: left;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

.choice.active {
  border-color: rgba(36, 194, 229, .65);
  background: linear-gradient(90deg, rgba(36, 194, 229, .05), rgba(10, 13, 11, .96));
  box-shadow: inset 2px 0 0 var(--green);
}

.choice__copy {
  flex: 1;
  min-width: 0;
}

.choice__copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.choice__copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.material-icon {
  width: 19px;
  height: 19px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.check .material-icon {
  width: 14px;
  height: 14px;
}

.inline-icon {
  width: 18px;
  height: 18px;
}

.pill-icon {
  width: 15px;
  height: 15px;
}

.live-control__icon {
  width: 23px;
  height: 23px;
}

.live-control.primary .live-control__icon {
  width: 30px;
  height: 30px;
}

.pause-mark__icon {
  width: 38px;
  height: 38px;
}

.summary-location-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.summary-modality-icon {
  width: 52px;
  height: 52px;
}

.summary-modality-icon .material-icon {
  width: 25px;
  height: 25px;
}

.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.choice-chevron {
  width: 20px;
  height: 20px;
  color: #e3e7e3;
}

.status-check {
  width: 21px;
  height: 21px;
}

.check,
.glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.check {
  width: 23px;
  height: 23px;
  border: 1px solid #4b524c;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.active > .check,
.check.ok {
  border-color: var(--green);
  background: var(--green);
  color: #071000;
}

.glyph {
  width: 36px;
  height: 36px;
  background: rgba(36, 194, 229, .1);
  color: var(--green);
  font-size: 16px;
  font-weight: 720;
}

.glyph.neutral {
  background: #202421;
  color: #e3e7e3;
}

.glyph.red {
  background: var(--red-soft);
  color: var(--red);
}

.switch {
  width: 40px;
  height: 24px;
  flex: 0 0 auto;
  padding: 3px;
  border: 0;
  border-radius: 20px;
  background: #2d322e;
}

.switch::after {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  background: #f2f5f2;
  transition: transform .18s ease;
}

.switch.on {
  background: var(--green);
}

.switch.on::after {
  transform: translateX(16px);
  background: #071000;
}

.rows {
  padding: 2px 13px;
}

.row {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #232724;
}

.row:last-child {
  border-bottom: 0;
}

.row__main {
  flex: 1;
  min-width: 0;
}

.row strong {
  display: block;
  font-size: 13px;
  font-weight: 640;
}

.row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.row__value {
  text-align: right;
  font-size: 13px;
  font-weight: 680;
}

.green { color: var(--green); }
.red { color: var(--red); }
.amber { color: var(--amber); }

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
}

.progress-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b403c;
}

.progress-dots i.active {
  width: 20px;
  border-radius: 9px;
  background: var(--green);
}

.field {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #090c0a;
}

.field + .field {
  margin-top: 8px;
}

.field label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .04em;
}

.field strong {
  font-size: 13.5px;
  font-weight: 640;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric {
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #111512, #080a09);
}

.metric label {
  color: var(--muted);
  font-size: 10px;
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.025em;
}

.metric small {
  color: #c3c8c4;
  font-size: 10.5px;
}

.metric__delta {
  float: right;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav {
  height: 70px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: auto 0 0;
  padding: 6px;
  border: 1px solid #303832;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(18, 23, 19, .98), rgba(7, 10, 8, .98));
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
  color: #838a84;
  font-size: 9px;
  transition: color .15s ease, transform .12s ease, border-color .15s ease, background .15s ease;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  fill: currentColor;
}

.nav-button.active {
  color: var(--green);
  border-color: rgba(36, 194, 229, .34);
  background: linear-gradient(145deg, rgba(36, 194, 229, .16), rgba(36, 194, 229, .055));
  box-shadow: inset 0 1px 0 rgba(102, 220, 246, .1);
}

.nav-button:active {
  transform: scale(.96);
}

.tabs {
  height: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tab.active {
  color: var(--green);
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.line-chart {
  height: 82px;
  overflow: hidden;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 26px, rgba(255, 255, 255, .045) 27px);
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.line-chart .chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: chart-line-draw 1.25s cubic-bezier(.22, .72, .26, 1) forwards;
  will-change: stroke-dashoffset;
}

.line-chart .chart-area {
  opacity: 0;
  animation: chart-area-in .55s ease .7s forwards;
}

.chart-stat-number,
[data-animate-number] {
  font-variant-numeric: tabular-nums;
}

@keyframes chart-line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes chart-area-in {
  to { opacity: 1; }
}

.welcome {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.welcome::before,
.welcome::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.welcome::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, .28) 48%, rgba(0, 0, 0, .82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .32), transparent 70%),
    url("./assets/canoa-oc6-hero-pb.png") center / cover no-repeat;
}

.welcome::after {
  inset: 0;
  opacity: .18;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(36, 194, 229, .24), transparent 32%),
    url("./assets/backgrounds/home-space-tunnel.jpg") center / cover no-repeat;
  background-blend-mode: screen;
  mix-blend-mode: screen;
  animation: welcome-space-drift 20s ease-in-out infinite alternate;
}

@keyframes welcome-space-drift {
  0% { background-position: 50% 88%, 48% 50%; }
  50% { background-position: 50% 88%, 50% 49%; }
  100% { background-position: 50% 88%, 52% 51%; }
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin-top: 10px;
}

.welcome-brand-logo {
  width: 164px;
  height: auto;
  display: block;
  filter: invert(1) drop-shadow(0 0 9px rgba(255, 255, 255, .12));
}

.language-button {
  min-width: 57px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(4, 7, 5, .68);
  color: #f1f5f2;
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .05em;
}

.language-button .material-icon {
  width: 17px;
  height: 17px;
}

.language-backdrop {
  z-index: 60;
}

.language-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.language-sheet__head h3 {
  margin-top: 4px;
}

.language-options {
  display: grid;
  gap: 8px;
}

.language-option {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #090c0a;
  color: var(--text);
  text-align: left;
}

.language-option.active {
  border-color: rgba(36, 194, 229, .58);
  background: rgba(36, 194, 229, .06);
}

.language-option__code {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #202421;
  color: #f3f6f4;
  font-size: 10px;
  font-weight: 800;
}

.language-option.active .language-option__code {
  background: rgba(36, 194, 229, .15);
  color: var(--green);
}

.language-option > span:not(.language-option__code),
.language-option strong,
.language-option small {
  display: block;
}

.language-option strong {
  font-size: 13px;
}

.language-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.welcome__copy {
  margin-top: clamp(118px, 19vh, 158px);
}

.welcome__copy h2 {
  max-width: 315px;
  margin: 9px 0 12px;
  font-size: 43px;
  line-height: .98;
  letter-spacing: -.048em;
}

.welcome__copy em {
  color: var(--green);
  font-style: normal;
}

.sensor-card {
  margin-top: 13px;
  padding: 17px 15px;
  text-align: center;
}

.sensor-card .glyph {
  width: 62px;
  height: 62px;
  margin: 0 auto 9px;
  font-size: 24px;
}

.sensor-card h3 {
  margin: 7px 0 4px;
  font-size: 19px;
}

.sensor-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  margin: -18px -21px 11px;
  padding: 38px 21px 15px;
  background: linear-gradient(180deg, rgba(2, 3, 2, .04), rgba(2, 3, 2, .2) 72%, rgba(2, 3, 2, .36) 100%);
}

.home-scroll {
  margin: -18px -21px 0;
  padding: 18px 21px 8px;
}

.home-nav-spacer {
  height: 36px;
  flex: 0 0 36px;
}

.home-next-paddle {
  padding: 9px 11px;
  background: rgba(9, 12, 10, .9);
  backdrop-filter: blur(8px);
}

.home-next-paddle__label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .04em;
}

.home-next-paddle .primary-modality-chips {
  flex-wrap: nowrap;
  gap: 6px;
}

.home-next-paddle .chip {
  min-width: 0;
  min-height: 25px;
  padding-inline: 9px;
}

.home-scroll .section-heading {
  min-height: 26px;
  margin: 9px 0 4px;
}

.home-scroll .quick-training {
  padding: 9px 11px;
}

@keyframes app-space-drift {
  0% { transform: translate3d(-1.2%, 0, 0) scale(1.04); }
  50% { transform: translate3d(0, -1%, 0) scale(1.07); }
  100% { transform: translate3d(1.2%, .8%, 0) scale(1.1); }
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-date {
  color: #d4d8d5;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-hero h2 {
  margin: 6px 0 0;
  font-size: 29px;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.readiness {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px;
}

.score-ring {
  --score-progress: 82%;
  width: 72px;
  height: 72px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--score-progress), #222722 var(--score-progress) 100%);
  box-shadow: 0 0 24px rgba(36,194,229,.1);
  will-change: background;
}

.score-ring::before {
  content: "";
  position: absolute;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background: #0a0d0b;
}

.score-ring strong {
  position: relative;
  z-index: 1;
  font-size: 25px;
}

.readiness h3 {
  margin: 3px 0 4px;
  font-size: 15px;
}

.readiness p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 13px 12px;
}

.weather-grid > div {
  min-width: 0;
  padding: 9px 9px 4px;
  border-right: 1px solid var(--line);
}

.weather-grid > div:last-child {
  border-right: 0;
}

.weather-grid label {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.weather-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  font-weight: 600;
}

.weather-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.location-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(36, 194, 229, .38);
  border-radius: 999px;
  background: rgba(36, 194, 229, .07);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.location-backdrop {
  z-index: 40;
}

.location-sheet {
  max-height: 82%;
  overflow-y: auto;
}

.location-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-sheet__head h3 {
  margin: 4px 0 0;
}

.location-sheet > p {
  margin-top: 8px;
}

.location-sync {
  min-height: 50px;
}

.location-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(7, 16, 0, .25);
  border-top-color: #071000;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.location-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.location-option {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0a0d0b;
  color: var(--text);
  text-align: left;
}

.location-option.active {
  border-color: rgba(36, 194, 229, .6);
  background: rgba(36, 194, 229, .055);
}

.location-option strong,
.location-option small {
  display: block;
}

.location-option strong {
  font-size: 13px;
}

.location-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.location-check {
  color: var(--green);
  text-align: right;
  font-weight: 800;
}

.location-disclaimer {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.summary-actions .button + .button {
  margin-top: 0;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.quick-training {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16,19,17,.96), rgba(6,8,7,.99));
  color: var(--text);
  text-align: left;
}

.quick-training__copy {
  flex: 1;
}

.quick-training strong {
  display: block;
  font-size: 13px;
}

.quick-training small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.countdown {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.count-ring {
  --count-progress: 78%;
  width: 226px;
  height: 226px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 var(--count-progress), #202520 var(--count-progress) 100%);
  box-shadow: 0 0 70px rgba(36,194,229,.12);
}

.count-ring::before {
  content: "";
  position: absolute;
  width: 205px;
  height: 205px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px #303630;
}

.count-ring strong {
  position: relative;
  z-index: 1;
  font-size: 98px;
  line-height: 1;
}

.countdown h3 {
  margin: 23px 0 4px;
  font-size: 19px;
}

.live-time {
  padding: 13px;
  text-align: center;
}

.live-time label {
  color: var(--muted);
  font-size: 12px;
}

.live-time strong {
  display: block;
  margin-top: 3px;
  font-size: 49px;
  line-height: 1;
  font-weight: 590;
  letter-spacing: -.04em;
}

.live-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.live-metrics .metric {
  min-height: 76px;
  padding: 10px;
}

.live-metrics .metric strong {
  font-size: 22px;
}

.efficiency-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
}

.efficiency-card strong {
  display: block;
  font-size: 28px;
}

.live-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 8px;
  padding: 10px;
  text-align: center;
}

.live-status div {
  border-right: 1px solid var(--line);
}

.live-status div:last-child {
  border-right: 0;
}

.live-status small {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
}

.live-status strong {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 9.5px;
}

.live-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  margin-top: auto;
  padding-top: 11px;
}

.live-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d9ddda;
  font-size: 10px;
}

.live-control span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 18px;
}

.live-control.primary span {
  width: 70px;
  height: 70px;
  border: 0;
  background: linear-gradient(135deg, var(--green-bright), #159dbe);
  color: #071000;
  box-shadow: 0 0 35px rgba(36,194,229,.18);
  font-size: 25px;
  font-weight: 900;
}

.pause-mark {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  margin: 7px auto 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-bright), #159dbe);
  color: #071000;
  box-shadow: 0 0 55px rgba(36,194,229,.18);
  font-size: 38px;
  font-weight: 900;
}

.center {
  text-align: center;
}

.modal-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(7px);
  animation: fade-in .2s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sheet {
  width: 100%;
  padding: 20px 20px 27px;
  border: 1px solid #383e39;
  border-radius: 26px 26px 0 0;
  background: #0b0e0c;
  animation: sheet-up .25s ease both;
}

@keyframes sheet-up {
  from { transform: translateY(30px); }
  to { transform: translateY(0); }
}

.sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: #444a45;
}

.sheet h3 {
  margin: 12px 0 7px;
  font-size: 22px;
}

.sheet p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mini-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 15px;
}

.mini-summary div {
  padding: 10px 4px;
  border-radius: 13px;
  background: #151815;
  text-align: center;
}

.mini-summary strong {
  display: block;
  font-size: 17px;
}

.mini-summary small {
  color: var(--muted);
  font-size: 9px;
}

.saving {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.saving-ring {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  border: 7px solid #222722;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.saving h3 {
  margin: 0 0 7px;
  font-size: 23px;
}

.saving > p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.saving .card {
  width: 100%;
  margin-top: 27px;
  text-align: left;
}

.summary-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.summary-head__copy {
  flex: 1;
}

.summary-head h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.summary-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 10px;
}

.summary-metrics div {
  min-height: 67px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-metrics div:nth-child(3n) {
  border-right: 0;
}

.summary-metrics div:nth-last-child(-n+3) {
  border-bottom: 0;
}

.summary-metrics label {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
}

.summary-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 580;
}

.summary-metrics small {
  color: #c8cdc9;
  font-size: 9px;
}

.route-map {
  height: 102px;
  position: relative;
  overflow: hidden;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(18deg, transparent 0 19px, rgba(255,255,255,.035) 20px 21px),
    repeating-linear-gradient(105deg, transparent 0 27px, rgba(255,255,255,.025) 28px 29px),
    #0c1210;
}

.route-map svg {
  position: absolute;
  inset: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 30px);
}

.analysis-card {
  padding: 13px;
}

.analysis-card + .analysis-card {
  margin-top: 9px;
}

.laps-map {
  padding: 0;
  overflow: hidden;
}

.laps-map__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px 10px;
}

.laps-map__header strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.laps-map__canvas {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #081216;
}

.laps-map__canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-land {
  fill: #15201c;
}

.map-island {
  fill: #17231f;
  stroke: #334139;
  stroke-width: 1;
}

.map-roads {
  fill: none;
  stroke: #334139;
  stroke-width: .8;
  stroke-linecap: round;
  opacity: .8;
}

.map-coast {
  fill: none;
  stroke: #607169;
  stroke-width: 1.2;
  opacity: .65;
}

.map-label {
  fill: #9ba7a1;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .02em;
}

.map-label--place {
  fill: #e9eeeb;
  font-size: 8px;
  letter-spacing: .16em;
}

.map-label--water {
  fill: #466069;
  font-size: 6px;
  letter-spacing: .18em;
}

.map-label--direction {
  fill: #dce7e1;
  stroke: #081216;
  stroke-width: 3px;
  paint-order: stroke;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .13em;
}

.lap-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lap-path--halo {
  stroke: rgba(0, 0, 0, .72);
  stroke-width: 8;
}

.lap-marker text {
  fill: #071007;
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
}

.map-start circle:first-child {
  fill: #0c1612;
  stroke: #fff;
  stroke-width: 2;
}

.map-start circle:last-child {
  fill: var(--green);
}

.map-finish circle {
  fill: #fff;
}

.map-finish path {
  fill: none;
  stroke: #071007;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-scale {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  color: #bdc7c1;
  font-size: 7px;
}

.map-scale span {
  width: 28px;
  height: 5px;
  display: block;
  border: solid #bdc7c1;
  border-width: 0 1px 1px;
}

.lap-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  padding: 11px 13px 13px;
}

.lap-legend__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 6px;
  font-size: 9px;
}

.lap-legend__item i {
  height: 3px;
  border-radius: 3px;
  background: var(--lap-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--lap-color) 48%, transparent);
}

.lap-legend__item small {
  color: var(--muted);
  font-size: 8px;
}

.laps-heading {
  margin-top: 13px;
}

.lap-list {
  padding: 2px 11px;
}

.lap-row {
  min-height: 53px;
  display: grid;
  grid-template-columns: 29px repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.lap-row:last-child {
  border-bottom: 0;
}

.lap-row__number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lap-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--lap-color) 13%, transparent);
  color: var(--lap-color);
  font-size: 10px;
  font-weight: 850;
}

.lap-row div {
  min-width: 0;
}

.lap-row strong,
.lap-row small {
  display: block;
  white-space: nowrap;
}

.lap-row strong {
  font-size: 9px;
}

.lap-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.compare-head {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  gap: 7px;
  align-items: center;
}

.compare-head__day {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.compare-head small {
  color: var(--muted);
  font-size: 9px;
}

.compare-head strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.versus {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}

.compare-table {
  margin-top: 12px;
  padding: 3px 12px;
}

.compare-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid #232724;
  text-align: center;
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row strong {
  font-size: 13px;
}

.compare-row label {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.25;
}

.compare-row .better {
  color: var(--green);
}

.bars {
  height: 64px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: #343a35;
}

.bars span.active {
  background: var(--green);
}

.safety-hero {
  padding: 13px 15px;
  border-color: rgba(255, 77, 67, .42);
  background: radial-gradient(circle at 80% 20%, rgba(255,77,67,.16), transparent 38%), #130a09;
  text-align: center;
}

.sos-disc {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 10px rgba(255,77,67,.1), 0 0 42px rgba(255,77,67,.2);
  font-size: 22px;
  font-weight: 850;
}

.safety-hero h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.safety-hero p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.hold-screen {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,77,67,.16), transparent 36%),
    linear-gradient(rgba(9, 3, 2, .78), rgba(9, 3, 2, .78));
}

.hold-ring {
  --hold: 0%;
  width: 188px;
  height: 188px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 17px auto 15px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 var(--hold), #481712 var(--hold) 100%);
  color: #fff;
  touch-action: none;
}

.hold-ring::before {
  content: "";
  position: absolute;
  width: 169px;
  height: 169px;
  border-radius: 50%;
  background: #170807;
}

.hold-ring strong {
  position: relative;
  z-index: 1;
  max-width: 120px;
  font-size: 20px;
  line-height: 1.1;
}

.location-box {
  padding: 12px;
  border: 1px solid #4b1b18;
  border-radius: 16px;
  background: #150b0a;
}

.location-box label {
  color: #ffaaa4;
  font-size: 8.5px;
}

.location-box strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}

.location-box small {
  display: block;
  margin-top: 4px;
  color: #c89490;
  font-size: 9px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 4px;
}

.avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #384139;
  border-radius: 50%;
  background: linear-gradient(145deg, #273026, #101410);
  color: var(--green);
  font-size: 24px;
  font-weight: 820;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar--large {
  width: 84px;
  height: 84px;
  font-size: 29px;
}

.profile-head h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.profile-head p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.profile-settings-list {
  overflow: hidden;
}

.settings-row {
  width: 100%;
  padding: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.profile-settings-backdrop {
  z-index: 65;
}

.profile-settings-sheet {
  max-height: 88%;
  overflow-y: auto;
}

.profile-settings-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-settings-sheet__head h3 {
  margin-top: 4px;
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar-upload {
  width: auto;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  cursor: pointer;
}

.avatar-upload input {
  display: none;
}

.settings-field {
  display: block;
  margin-bottom: 9px;
}

.settings-field > span {
  display: block;
  margin: 0 0 5px 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.settings-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #090c0a;
  color: var(--text);
}

.settings-field input:focus {
  border-color: rgba(36, 194, 229, .65);
  box-shadow: 0 0 0 3px rgba(36, 194, 229, .08);
}

.phone-fields {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 8px;
}

.settings-note {
  margin: 2px 2px 13px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.settings-note--top {
  margin-top: -2px;
}

.preference-groups {
  display: grid;
  gap: 13px;
}

.preference-group {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.preference-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.preference-group > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
}

.settings-toggle-list,
.emergency-preferences {
  overflow: hidden;
}

.permission-status-list {
  overflow: hidden;
}

.permission-status-row {
  min-height: 61px;
}

.permission-state {
  max-width: 92px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.permission-state.granted {
  color: var(--green);
}

.permission-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.permission-control .permission-state {
  max-width: 72px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid #374038;
  border-radius: 999px;
  background: rgba(12, 15, 13, .96);
  box-shadow: 0 16px 45px rgba(0,0,0,.4);
  color: #e9ece9;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body:has(.bottom-nav) .toast {
  bottom: 112px;
}

body:has(.prepare-screen) .toast {
  bottom: 190px;
}

@media (max-width: 780px) {
  body {
    background: var(--bg);
  }

  .prototype-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
    background: var(--bg);
  }

  .prototype-meta,
  .device__speaker {
    display: none;
  }

  .device {
    width: 100%;
    height: 100dvh;
    min-height: 640px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(21px, env(safe-area-inset-bottom));
  }

  .bottom-nav {
    margin-bottom: 0;
    padding-bottom: 6px;
    height: 70px;
  }

  .home-indicator {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 781px) {
  .device {
    transform: scale(.86);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
