/* Elevation 168 — Tracker app */
:root {
  --black: #050608;
  --ink: #101820;
  --slate: #1e2933;
  --steel: #8a929b;
  --white: #f7f7f4;
  --muted: #c7ccd1;
  --red: #b40009;
  --hot-red: #e10600;
  --line: rgba(247, 247, 244, 0.16);
  --line-soft: rgba(247, 247, 244, 0.08);
  --panel: rgba(9, 11, 14, 0.86);
  --stage: #60a5fa;
  --topbar-h: 62px;
  --tabbar-h: calc(64px + env(safe-area-inset-bottom, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tr-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(225, 6, 0, 0.14), transparent 55%),
    var(--black);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.tr-body::selection { background: var(--hot-red); color: var(--white); }
a { color: inherit; text-decoration: none; }

/* ---------- Type primitives ---------- */
.tr-eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.tr-panel-title {
  margin: 10px 0 26px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 9vw, 52px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.tr-panel-title em { font-style: normal; color: var(--hot-red); }

/* ---------- Top bar ---------- */
.tr-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 18px 0;
  background: rgba(5, 6, 8, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tr-topbar-brand { display: inline-flex; align-items: center; gap: 10px; }

.tr-topbar-brand img {
  width: 44px;
  height: 32px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.tr-topbar-wordmark {
  font-family: Anton, Impact, sans-serif;
  font-size: 17px;
  letter-spacing: 0.09em;
}

.tr-topbar-wordmark em { font-style: normal; color: var(--hot-red); }

.tr-topbar-right { display: inline-flex; align-items: center; gap: 10px; }

.tr-week-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tr-profile-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hot-red);
  background: rgba(225, 6, 0, 0.12);
  color: var(--white);
  font-family: Anton, Impact, sans-serif;
  font-size: 15px;
  cursor: pointer;
}

/* ---------- Layout ---------- */
.tr-main {
  max-width: 620px;
  margin: 0 auto;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 22px) 20px calc(var(--tabbar-h) + 32px);
}

.tr-panel { display: none; animation: tr-panel-in 0.32s ease both; }
.tr-panel.is-active { display: block; }

@keyframes tr-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tr-panel-eyebrow { margin-bottom: 6px; }

/* ---------- Activity ring ---------- */
.tr-ring-wrap {
  position: relative;
  width: min(300px, 78vw);
  margin: 18px auto 8px;
}

.tr-ring, .tr-summit-dial svg { display: block; width: 100%; transform: rotate(-90deg); }

.tr-ring-track {
  fill: none;
  stroke: rgba(247, 247, 244, 0.09);
  stroke-width: 10;
}

.tr-ring-fill {
  fill: none;
  stroke: var(--stage);
  stroke-width: 10;
  stroke-linecap: butt;
  stroke-dasharray: 653.45;
  stroke-dashoffset: 653.45;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--stage) 55%, transparent));
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
}

.tr-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.tr-ring-hours {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(58px, 17vw, 82px);
  line-height: 0.9;
}

.tr-ring-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--steel);
}

.tr-stage-badge {
  margin-top: 8px;
  padding: 5px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1px solid var(--stage);
  color: var(--stage);
}

/* ---------- Quick log ---------- */
.tr-quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  gap: 8px;
  margin: 22px 0 26px;
}

.tr-quick-btn, .tr-quick-log {
  padding: 13px 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.tr-quick-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
}

.tr-quick-btn:active { background: rgba(247, 247, 244, 0.1); }

.tr-quick-log {
  border: 1px solid var(--hot-red);
  background: var(--hot-red);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tr-quick-log:active { background: var(--red); }

/* ---------- Stat strip ---------- */
.tr-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tr-stat {
  padding: 16px 6px 14px;
  text-align: center;
  display: grid;
  gap: 5px;
}

.tr-stat + .tr-stat { border-left: 1px solid var(--line-soft); }

.tr-stat strong {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}

.tr-stat strong i {
  font-style: normal;
  font-size: 17px;
  color: var(--steel);
}

.tr-stat span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--steel);
}

/* ---------- Day meter ---------- */
.tr-daymeter { margin: 26px 0; }

.tr-daymeter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tr-daymeter-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.tr-daymeter-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.tr-day-cell {
  border: 1px solid var(--line-soft);
  padding: 10px 2px 8px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.tr-day-cell span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.tr-day-cell i {
  justify-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 247, 244, 0.12);
}

.tr-day-cell.is-hit i { background: var(--hot-red); box-shadow: 0 0 8px rgba(225, 6, 0, 0.7); }
.tr-day-cell.is-today { border-color: var(--line); }
.tr-day-cell.is-today span { color: var(--white); }

/* ---------- Session lists ---------- */
.tr-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.tr-list-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--steel);
}

.tr-session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
}

.tr-session-time { color: var(--steel); min-width: 46px; }

.tr-session-name { flex: 1; min-width: 0; }

.tr-session-name b {
  display: block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr-session-name small {
  display: block;
  color: var(--steel);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-session-hours { color: var(--hot-red); font-weight: 700; white-space: nowrap; }

.tr-session-del {
  border: 1px solid transparent;
  background: none;
  color: var(--steel);
  font-size: 15px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}

.tr-session-del:hover { color: var(--hot-red); border-color: var(--line); }

.tr-day-group {
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
}

.tr-empty {
  padding: 26px 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--steel);
  line-height: 1.7;
}

.tr-empty b { color: var(--white); display: block; letter-spacing: 0.08em; }

/* ---------- Forms ---------- */
.tr-field { margin-bottom: 20px; }

.tr-field-label {
  display: block;
  margin-bottom: 9px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--steel);
}

.tr-field-label em { font-style: normal; text-transform: none; letter-spacing: 0.04em; }

.tr-input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.04);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  border-radius: 0;
  appearance: none;
}

.tr-input:focus { outline: none; border-color: var(--hot-red); }

.tr-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%),
    linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.tr-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tr-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tr-chip.is-active {
  border-color: var(--hot-red);
  background: rgba(225, 6, 0, 0.14);
  color: var(--white);
}

.tr-stepper {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  border: 1px solid var(--line);
}

.tr-step-btn {
  height: 54px;
  border: none;
  background: rgba(247, 247, 244, 0.05);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

.tr-step-btn:active { background: rgba(225, 6, 0, 0.25); }

.tr-step-value {
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  align-items: baseline;
  gap: 4px;
}

.tr-step-value b {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
}

.tr-step-value i {
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--steel);
}

.tr-btn-primary {
  padding: 15px 22px;
  border: 1px solid var(--hot-red);
  background: var(--hot-red);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background 0.18s ease;
}

.tr-btn-primary:hover { background: var(--red); }

.tr-log-submit { width: 100%; margin-top: 4px; }

.tr-history { margin-top: 40px; }

/* ---------- Climb ---------- */
.tr-summit-readout {
  display: grid;
  grid-template-columns: minmax(0, 190px) 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.tr-summit-dial { position: relative; }

.tr-summit-fill { stroke: var(--hot-red); }

.tr-summit-pct {
  font-family: Anton, Impact, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.tr-summit-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.tr-stage-list { display: grid; gap: 10px; }

.tr-stage-row {
  --sc: var(--steel);
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 16px 20px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.tr-stage-row.is-active { border-color: var(--sc); }
.tr-stage-row.is-locked { cursor: not-allowed; opacity: 0.55; }

.tr-stage-num {
  font-family: Anton, Impact, sans-serif;
  font-size: 26px;
  color: var(--sc);
}

.tr-stage-copy b {
  display: block;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tr-stage-copy small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.tr-stage-state {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--sc);
}

.tr-stage-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(247, 247, 244, 0.07);
}

.tr-stage-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--sc);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-mountain-link {
  display: grid;
  gap: 4px;
  margin: 22px 0 34px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(225, 6, 0, 0.16), transparent 55%),
    var(--panel);
  transition: border-color 0.2s ease;
}

.tr-mountain-link:hover { border-color: var(--hot-red); }

.tr-mountain-link span {
  font-family: Anton, Impact, sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.tr-mountain-link em {
  font-style: normal;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--steel);
}

.tr-week-bars { display: grid; gap: 9px; padding-top: 14px; }

.tr-week-bar {
  display: grid;
  grid-template-columns: 92px 1fr 44px;
  gap: 12px;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--steel);
}

.tr-week-bar-track {
  height: 6px;
  background: rgba(247, 247, 244, 0.07);
  position: relative;
}

.tr-week-bar-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--hot-red);
}

.tr-week-bar em { font-style: normal; color: var(--white); text-align: right; }

/* ---------- Gear ---------- */
.tr-gear-form { display: grid; gap: 10px; margin-bottom: 26px; }

.tr-gear-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.tr-gear-list { display: grid; gap: 12px; }

.tr-gear-card {
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  display: grid;
  gap: 12px;
}

.tr-gear-card.is-reorder { border-color: var(--hot-red); }

.tr-gear-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tr-gear-head b {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tr-gear-head small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
  white-space: nowrap;
}

.tr-gear-meter { display: grid; gap: 7px; }

.tr-gear-meter-track {
  height: 7px;
  background: rgba(247, 247, 244, 0.07);
  position: relative;
}

.tr-gear-meter-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--wear-color, #4ade80);
  transition: width 0.6s ease;
}

.tr-gear-meter-row {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--steel);
}

.tr-gear-meter-row em { font-style: normal; color: var(--white); }

.tr-gear-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tr-gear-shop {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hot-red);
}

.tr-gear-remove {
  border: none;
  background: none;
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.tr-gear-remove:hover { color: var(--hot-red); }

.tr-reorder-flag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hot-red);
  animation: tr-blink 1.4s steps(2) infinite;
}

@keyframes tr-blink { 50% { opacity: 0.35; } }

/* ---------- Vault ---------- */
.tr-vault-sub {
  margin: -10px 0 24px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}

.tr-vault-grid { display: grid; gap: 12px; }

@media (min-width: 560px) {
  .tr-vault-grid { grid-template-columns: 1fr 1fr; }
}

.tr-vault-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  display: grid;
  gap: 9px;
  min-height: 128px;
  overflow: hidden;
}

.tr-vault-card b {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tr-vault-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.tr-vault-req {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.tr-vault-card.is-locked b, .tr-vault-card.is-locked p { opacity: 0.5; }

.tr-vault-code {
  margin-top: auto;
  justify-self: start;
  padding: 7px 12px;
  border: 1px dashed var(--hot-red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--hot-red);
  cursor: pointer;
  background: rgba(225, 6, 0, 0.07);
}

.tr-vault-card.is-open {
  border-color: rgba(225, 6, 0, 0.55);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(225, 6, 0, 0.16), transparent 60%),
    var(--panel);
}

.tr-vault-lockicon {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--steel);
}

.tr-vault-card.is-open .tr-vault-lockicon { color: var(--hot-red); }

/* ---------- Tab bar ---------- */
.tr-tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--tabbar-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(5, 6, 8, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tr-tab {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--steel);
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease;
}

.tr-tab svg { width: 21px; height: 21px; }

.tr-tab span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.tr-tab.is-active { color: var(--white); }

.tr-tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--hot-red);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.8);
}

/* ---------- Onboarding ---------- */
.tr-onboard {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(225, 6, 0, 0.18), transparent 60%),
    var(--black);
}

.tr-onboard[hidden] { display: none; }

.tr-onboard-card { width: min(420px, 100%); text-align: center; }

.tr-onboard-logo {
  width: 120px;
  margin: 0 auto 18px;
  display: block;
  mix-blend-mode: screen;
}

.tr-onboard-title {
  margin: 12px 0 14px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 12vw, 58px);
  line-height: 0.96;
  text-transform: uppercase;
}

.tr-onboard-title em { font-style: normal; color: var(--hot-red); }

.tr-onboard-sub {
  margin: 0 auto 26px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tr-onboard form { display: grid; gap: 10px; }

.tr-onboard .tr-input { text-align: center; font-size: 16px; }

/* ---------- Profile sheet ---------- */
.tr-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  display: grid;
  align-items: end;
}

.tr-sheet-backdrop[hidden] { display: none; }

.tr-sheet {
  background: #0a0d11;
  border-top: 1px solid var(--line);
  padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 18px;
  animation: tr-sheet-up 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tr-sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.tr-sheet-handle {
  width: 44px;
  height: 3px;
  background: var(--line);
  justify-self: center;
}

.tr-sheet-links {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
}

.tr-sheet-links a {
  padding: 11px 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tr-sheet-links a:hover { color: var(--white); }

.tr-danger-btn {
  justify-self: start;
  border: 1px solid var(--line);
  background: none;
  color: var(--steel);
  padding: 10px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.tr-danger-btn:hover { border-color: var(--hot-red); color: var(--hot-red); }

/* ---------- Toast ---------- */
.tr-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px);
  transform: translate(-50%, 18px);
  z-index: 40;
  padding: 12px 20px;
  background: var(--hot-red);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

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

/* ---------- Mantra / streak risk / rank ---------- */
.tr-mantra {
  margin: 4px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

.tr-risk-pill {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px dashed var(--hot-red);
  background: rgba(225, 6, 0, 0.08);
  color: var(--hot-red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  animation: tr-blink 1.8s steps(2) infinite;
}

.tr-risk-pill[hidden] { display: none; }

.tr-rank-bar { margin: 0 0 24px; display: grid; gap: 8px; }

.tr-rank-head { display: flex; justify-content: space-between; align-items: baseline; }

.tr-rank-name {
  font-family: Anton, Impact, sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--hot-red);
}

.tr-rank-track {
  height: 5px;
  background: rgba(247, 247, 244, 0.08);
  position: relative;
}

.tr-rank-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--hot-red));
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-rank-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

/* ---------- Ascent button ---------- */
.tr-ascent-btn {
  display: grid;
  gap: 5px;
  width: 100%;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--hot-red);
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(225, 6, 0, 0.25), transparent 65%),
    var(--panel);
  color: var(--white);
  cursor: pointer;
  text-align: center;
}

.tr-ascent-btn[hidden] { display: none; }

.tr-ascent-btn span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--hot-red);
}

.tr-ascent-btn em {
  font-style: normal;
  font-family: Anton, Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
}

/* ---------- Journey panel ---------- */
.tr-journey {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(120% 50% at 50% -5%, rgba(225, 6, 0, 0.12), transparent 55%),
    var(--black);
}

.tr-journey[hidden] { display: none; }

.tr-journey-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
  border-bottom: 1px solid var(--line);
}

.tr-journey-close {
  border: 1px solid var(--line);
  background: none;
  color: var(--white);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
}

.tr-journey-scroll {
  overflow-y: auto;
  padding: 22px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  align-content: start;
}

.tr-rank-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(225, 6, 0, 0.14), transparent 55%),
    var(--panel);
}

.tr-rank-card strong {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 8vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ---------- Heatmap ---------- */
.tr-heatmap-wrap { display: grid; gap: 10px; }

.tr-heatmap {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  width: 100%;
}

.tr-heatmap i, .tr-heatmap-legend i {
  aspect-ratio: 1;
  min-width: 0;
  background: rgba(247, 247, 244, 0.07);
}

.tr-heatmap i[data-lvl="-1"] { background: transparent; }
.tr-heatmap i[data-lvl="1"], .tr-heatmap-legend i[data-lvl="1"] { background: rgba(225, 6, 0, 0.28); }
.tr-heatmap i[data-lvl="2"], .tr-heatmap-legend i[data-lvl="2"] { background: rgba(225, 6, 0, 0.52); }
.tr-heatmap i[data-lvl="3"], .tr-heatmap-legend i[data-lvl="3"] { background: rgba(225, 6, 0, 0.76); }
.tr-heatmap i[data-lvl="4"], .tr-heatmap-legend i[data-lvl="4"] { background: var(--hot-red); box-shadow: 0 0 6px rgba(225, 6, 0, 0.55); }

.tr-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.tr-heatmap-legend i { width: 10px; height: 10px; aspect-ratio: auto; }
.tr-heatmap-legend span { margin: 0 4px; }

/* ---------- Service record (profile stats) ---------- */
.tr-founding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(225, 6, 0, 0.55);
  background: rgba(225, 6, 0, 0.08);
  color: #e10600;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.tr-founding b { color: var(--white); }

/* display:flex on these banners would defeat the hidden attribute */
.tr-founding[hidden],
.tr-improve[hidden] { display: none; }

/* Always eight cells (2 × 4): right border on the left column, bottom
   border on every row but the last. */
.tr-service {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line-soft);
}

.tr-service .tr-record { border-right-width: 0; border-bottom-width: 0; }
.tr-service .tr-record:nth-child(odd) { border-right-width: 1px; }
.tr-service .tr-record:nth-child(-n + 6) { border-bottom-width: 1px; }

.tr-service .tr-record strong.is-text {
  font-size: 17px;
  letter-spacing: 0.04em;
  padding-top: 4px;
}

/* PR board — 4-cell strip (2 × 2): only the first row keeps a bottom border */
.tr-service-4 .tr-record:nth-child(n + 3) { border-bottom-width: 0; }

.tr-pr-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.tr-improve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-top: 10px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.07);
  color: #4ade80;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.tr-improve b { color: var(--white); }

.tr-pr-list { margin-top: 10px; }

.tr-pr-head,
.tr-pr-item {
  display: grid;
  grid-template-columns: 1fr 56px 48px 72px;
  gap: 8px;
  align-items: center;
  padding: 8px 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.tr-pr-head {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--steel);
  border-bottom: 1px solid var(--line-soft);
}

.tr-pr-item { border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.tr-pr-item:last-child { border-bottom: 0; }
.tr-pr-item b { color: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-pr-item span { text-align: right; }
.tr-pr-head span:not(:first-child) { text-align: right; }

/* ---------- Records / discipline split ---------- */
.tr-records {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
}

.tr-record {
  padding: 16px 8px 13px;
  text-align: center;
  display: grid;
  gap: 5px;
  border: 0 solid var(--line-soft);
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.tr-record:nth-child(3n) { border-right-width: 0; }
.tr-record:nth-child(n + 4) { border-bottom-width: 0; }

.tr-record strong {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}

.tr-record span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.tr-disc-bars { display: grid; gap: 9px; }

.tr-disc-bar {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

.tr-disc-bar em { font-style: normal; color: var(--white); text-align: right; }

/* ---------- Data backup ---------- */
.tr-data-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tr-data-btn {
  padding: 13px 10px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.04);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.tr-data-btn:hover { border-color: var(--hot-red); }

.tr-data-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- Weekly debrief ---------- */
.tr-debrief {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tr-debrief[hidden] { display: none; }

.tr-debrief-card {
  width: min(440px, 100%);
  padding: 28px 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(225, 6, 0, 0.16), transparent 60%),
    #0a0d11;
  display: grid;
  gap: 18px;
  animation: tr-panel-in 0.35s ease both;
}

.tr-debrief-title {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 0.98;
  text-transform: uppercase;
}

.tr-debrief-title em { font-style: normal; color: var(--hot-red); }

.tr-debrief-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tr-debrief-verdict {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Wider screens: keep the app feel, centered ---------- */
@media (min-width: 720px) {
  .tr-main { padding-top: calc(var(--topbar-h) + 40px); }
  .tr-tabbar {
    max-width: 620px;
    margin: 0 auto;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

/* ---------- Weekly target + pace coach ---------- */
.tr-pace-card {
  margin-top: 22px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tr-pace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tr-pace-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tr-pace-chip.is-ahead { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }
.tr-pace-chip.is-behind { color: var(--hot-red); border-color: rgba(225, 6, 0, 0.55); }
.tr-pace-chip.is-hit { color: #fbbf24; border-color: rgba(251, 191, 36, 0.55); }

.tr-pace-track {
  position: relative;
  height: 8px;
  background: rgba(247, 247, 244, 0.1);
  overflow: visible;
}

.tr-pace-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--stage, var(--hot-red));
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-pace-track b {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  opacity: 0.85;
}

.tr-pace-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.tr-pace-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.tr-goal-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.tr-goal-stepper button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tr-goal-stepper button:active { background: rgba(247, 247, 244, 0.1); }

.tr-goal-stepper b {
  min-width: 52px;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Daily mission ---------- */
.tr-mission {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.tr-mission-check {
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--steel);
  border-radius: 50%;
}

.tr-mission.is-done { border-color: rgba(74, 222, 128, 0.4); cursor: default; }

.tr-mission.is-done .tr-mission-check {
  border-color: #4ade80;
  background:
    linear-gradient(45deg, transparent 42%, #4ade80 42% 58%, transparent 58%) no-repeat 55% 62% / 10px 7px,
    radial-gradient(circle, rgba(74, 222, 128, 0.22), transparent 70%);
}

.tr-mission-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.tr-mission-copy b {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--steel);
}

.tr-mission-copy small { font-size: 13.5px; font-weight: 600; }

.tr-mission-state {
  flex: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.tr-mission.is-done .tr-mission-state { color: #4ade80; }

/* ---------- Share pill ---------- */
.tr-share-pill {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.tr-share-pill:active { background: rgba(247, 247, 244, 0.08); }

/* ---------- Streak flame ---------- */
.tr-stat .tr-flame { font-style: normal; font-size: 15px; margin-left: 3px; }

/* ---------- Log celebration ---------- */
.tr-ring-wrap.is-pop { animation: tr-ring-pop 600ms cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes tr-ring-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.tr-burst {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}

.tr-burst i {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 9px;
  height: 13px;
  transform: scale(var(--bs, 1));
  animation: tr-burst-fall 1.35s cubic-bezier(0.3, 0.4, 0.6, 1) var(--bd, 0ms) forwards;
}

@keyframes tr-burst-fall {
  to { transform: translate(var(--bx, 0), 108vh) rotate(var(--br, 360deg)) scale(var(--bs, 1)); }
}

/* ---------- Rank-up celebration ---------- */
.tr-rankup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tr-rankup[hidden] { display: none; }

.tr-rankup-card {
  width: min(430px, 100%);
  padding: 34px 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: tr-sheet-up 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tr-rankup-name {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 11vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--hot-red);
}

.tr-rankup-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Account / cloud sync ---------- */
.tr-auth-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tr-auth-box.is-offline { opacity: 0.75; }

.tr-auth-blurb, .tr-auth-status, .tr-auth-sync {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.tr-auth-status b { color: var(--white); font-weight: 700; }

.tr-auth-sync {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.tr-auth-primary { border-color: var(--hot-red); color: var(--white); }

.tr-auth-reset {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  color: var(--steel);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  cursor: pointer;
}

.tr-auth-msg {
  margin: 0;
  min-height: 1em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tr-auth-msg.is-error, .tr-auth-sync.is-error { color: var(--hot-red); }

#trAuthSignedOut { display: flex; flex-direction: column; gap: 10px; }
#trAuthSignedIn { display: flex; flex-direction: column; gap: 10px; }
#trAuthSignedIn[hidden], #trAuthSignedOut[hidden] { display: none; }

/* ── Native shell only ─────────────────────────────────────────────────────
   Rows that exist solely inside the Android/iOS app. Hidden on the website;
   e168-native.js removes [hidden] when window.Capacitor reports a native
   platform. */
.tr-native-only[hidden] { display: none; }
.tr-data-btn[aria-pressed="true"] {
  border-color: #4ade80;
  color: #4ade80;
}

/* ── TRAIN: the workout library ──────────────────────────────────────────
   The 104 workouts, reachable from inside the app. Locked tiers stay
   visible with a lock badge — people subscribe for what they can see
   they're missing, not for what's hidden from them. */
.tr-tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 4px 0 12px;
}

.tr-tier-btn {
  position: relative;
  padding: 12px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8a929b;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.tr-tier-btn:hover { color: #f7f7f4; border-color: rgba(255, 255, 255, 0.28); }
.tr-tier-btn.is-active {
  background: rgba(225, 6, 0, 0.14);
  border-color: #e10600;
  color: #f7f7f4;
}
.tr-tier-btn i {
  font-style: normal;
  font-size: 0.62rem;
  margin-left: 3px;
  opacity: 0.75;
}

.tr-tier-note {
  margin: 0 0 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #8a929b;
}

.tr-letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.tr-letter-grid.is-ops {
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
}

.tr-letter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 74px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.tr-letter:hover { border-color: #e10600; background: rgba(225, 6, 0, 0.08); }

.tr-letter b {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: #f7f7f4;
}
.tr-letter small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #6b727a;
}

/* Locked: dimmed but legible. Hiding it entirely would remove the reason
   to subscribe. */
.tr-letter.is-locked b { color: #6b727a; }
.tr-letter.is-locked { background: rgba(255, 255, 255, 0.02); }
.tr-letter.is-locked i {
  position: absolute;
  top: 5px;
  right: 6px;
  font-style: normal;
  font-size: 0.62rem;
  opacity: 0.7;
}

.tr-train-foot { margin-top: 22px; }
.tr-train-daily {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}
.tr-train-daily:hover { border-color: #e10600; }
.tr-train-daily span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #f7f7f4;
}
.tr-train-daily em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.78rem;
  color: #8a929b;
}

/* Native shell: the marketing nav is replaced by a single route home. */
.e168-nav-back {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7f7f4;
  text-decoration: none;
}
.e168-nav-back:hover { color: #ff8a80; }
