/* COMRADES UP RUN — race-day cue engine */
:root {
  --bg: #0F1419;
  --surface: #1A1F26;
  --surface-2: #232A33;
  --ink: #F4F5F7;
  --ink-soft: #9CA3AF;
  --rule: #2E3640;
  --gold: #D4A24B;
  --blue: #4F8EE3;
  --red: #E25A55;
  --green: #4FCB7D;
  --layer-hydration: #4F8EE3;
  --layer-glutes: #C77DFF;
  --layer-body: #FFB347;
  --layer-breath: #4FCB7D;
  --layer-relax: #7DD3FC;
  --layer-mental: #F9A8D4;
  --layer-flow: #D4A24B;
  --layer-pacing: #94A3B8;
  --layer-safety: #E25A55;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overscroll-behavior: none;
  min-height: 100vh;
  min-height: 100dvh;
}
body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.screen { display: none; padding: 20px 18px 40px; max-width: 540px; margin: 0 auto; }
.screen.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hidden { display: none !important; }

/* ─── Home ─────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--gold); }
.brand h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand p { margin: 2px 0 0; font-size: 13px; }
.muted { color: var(--ink-soft); }

.lede { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }

.plans { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  font-family: inherit;
  transition: transform .12s ease, border-color .12s ease;
}
.plan-card:active { transform: scale(0.985); }
.plan-card .plan-time { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.plan-card .plan-name { font-size: 15px; font-weight: 600; }
.plan-card .plan-sub { font-size: 12px; color: var(--ink-soft); }
.plan-card.plan-730 { border-left: 4px solid var(--gold); }
.plan-card.plan-730 .plan-time { color: var(--gold); }
.plan-card.plan-900 { border-left: 4px solid var(--blue); }
.plan-card.plan-900 .plan-time { color: var(--blue); }
.plan-card.plan-1200 { border-left: 4px solid var(--red); }
.plan-card.plan-1200 .plan-time { color: var(--red); }

/* ─── Settings ─────────────────────────────────────── */
.settings { background: var(--surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--rule); }
.settings summary { font-weight: 600; cursor: pointer; user-select: none; }
.settings .row, .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.settings .row:last-child, .row:last-child { border-bottom: 0; }
.settings .row span { font-size: 14px; }
.settings p { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.5; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--gold); }
.btn-small { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.btn-small:active { background: var(--rule); }

/* ─── Home links ──────────────────────────────────── */
.home-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.link {
  background: none; border: 0; padding: 14px 0;
  color: var(--ink); font-size: 15px; text-align: left;
  border-bottom: 1px solid var(--rule); cursor: pointer; font-family: inherit;
}
.link:active { color: var(--gold); }

/* ─── Run screen ──────────────────────────────────── */
.run-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 16px; }
.run-header > :first-child { justify-self: start; }
.run-header > :last-child { justify-self: end; }
.run-title { margin: 0; font-size: 16px; font-weight: 600; text-align: center; }
.btn-ghost { background: none; border: 0; color: var(--ink-soft); font-size: 14px; padding: 8px 4px; cursor: pointer; font-family: inherit; }
.btn-ghost:active { color: var(--ink); }
.plan-pill { background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.plan-pill.plan-730 { color: var(--gold); border: 1px solid var(--gold); }
.plan-pill.plan-900 { color: var(--blue); border: 1px solid var(--blue); }
.plan-pill.plan-1200 { color: var(--red); border: 1px solid var(--red); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.metric {
  background: var(--surface); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column;
  border: 1px solid var(--rule);
}
.metric-label { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.metric-value { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.metric-value.small { font-size: 16px; font-weight: 600; line-height: 1.3; }
.metric-unit { font-size: 12px; color: var(--ink-soft); }

.progress-track { position: relative; height: 8px; background: var(--surface); border-radius: 999px; margin-bottom: 16px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--blue)); width: 0%; transition: width .3s ease; border-radius: 999px; }
.progress-label { position: absolute; top: 12px; right: 0; font-size: 11px; color: var(--ink-soft); }

.cue-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 18px 18px 20px;
  margin: 24px 0 16px;
  min-height: 160px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cue-card.fresh { animation: cuePulse 1.2s ease; box-shadow: 0 0 0 4px rgba(212,162,75,0.15); }
@keyframes cuePulse {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(212,162,75,0.4); }
  60% { transform: scale(1.01); box-shadow: 0 0 0 12px rgba(212,162,75,0); }
  100% { transform: scale(1); }
}
.cue-layer { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 8px; }
.cue-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.2; }
.cue-body { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.cue-meta { font-size: 11px; color: var(--ink-soft); margin-top: 12px; }

.cue-history { display: flex; flex-direction: column; gap: 4px; max-height: 140px; overflow-y: auto; margin-bottom: 18px; }
.cue-history-item {
  font-size: 12px; color: var(--ink-soft);
  padding: 6px 10px; background: var(--surface); border-radius: 8px;
  display: flex; gap: 8px; align-items: baseline;
}
.cue-history-item .ch-km { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 38px; }
.cue-history-item .ch-title { flex: 1; }
.cue-history-item .ch-layer { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 4px; background: var(--rule); }

.actions { display: flex; gap: 8px; }
.btn-primary, .btn-secondary {
  flex: 1; padding: 16px; border: 0; border-radius: 12px;
  font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .1s ease;
}
.btn-primary { background: var(--gold); color: #0F1419; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule); }
.btn-secondary:active { background: var(--rule); }

.hint { color: var(--ink-soft); font-size: 12px; text-align: center; margin: 12px 0 0; }

/* ─── Modal ───────────────────────────────────────── */
.modal { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; max-width: 360px; }
.modal::backdrop { background: rgba(0,0,0,0.6); }
.modal h2 { margin: 0 0 12px; font-size: 22px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.modal-hint { font-size: 12px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ─── Cue layer color tabs ────────────────────────── */
.cue-card[data-layer="hydration"] { border-left-color: var(--layer-hydration); }
.cue-card[data-layer="hydration"] .cue-layer { color: var(--layer-hydration); }
.cue-card[data-layer="glutes"] { border-left-color: var(--layer-glutes); }
.cue-card[data-layer="glutes"] .cue-layer { color: var(--layer-glutes); }
.cue-card[data-layer="body"] { border-left-color: var(--layer-body); }
.cue-card[data-layer="body"] .cue-layer { color: var(--layer-body); }
.cue-card[data-layer="breath"] { border-left-color: var(--layer-breath); }
.cue-card[data-layer="breath"] .cue-layer { color: var(--layer-breath); }
.cue-card[data-layer="relax"] { border-left-color: var(--layer-relax); }
.cue-card[data-layer="relax"] .cue-layer { color: var(--layer-relax); }
.cue-card[data-layer="mental"] { border-left-color: var(--layer-mental); }
.cue-card[data-layer="mental"] .cue-layer { color: var(--layer-mental); }
.cue-card[data-layer="flow"] { border-left-color: var(--layer-flow); }
.cue-card[data-layer="flow"] .cue-layer { color: var(--layer-flow); }
.cue-card[data-layer="pacing"] { border-left-color: var(--layer-pacing); }
.cue-card[data-layer="pacing"] .cue-layer { color: var(--layer-pacing); }
.cue-card[data-layer="safety"] { border-left-color: var(--layer-safety); }
.cue-card[data-layer="safety"] .cue-layer { color: var(--layer-safety); }

/* ─── Replay & training ───────────────────────────── */
.file-drop { display: block; background: var(--surface); border: 2px dashed var(--rule); border-radius: 14px; padding: 32px; text-align: center; cursor: pointer; margin-bottom: 16px; }
.file-drop:hover { border-color: var(--gold); }
.file-drop input { display: none; }
.file-drop span { font-weight: 600; }
.replay-result { margin-top: 16px; }
.replay-plan-row { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.replay-plan-row select { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); padding: 8px 12px; border-radius: 8px; font-family: inherit; font-size: 14px; }
.replay-cues { background: var(--surface); border-radius: 12px; padding: 8px; max-height: 50vh; overflow-y: auto; }

.training-list { padding-left: 0; list-style: none; counter-reset: tr; }
.training-list li {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 14px 14px 14px 56px; margin-bottom: 10px; position: relative;
  counter-increment: tr;
}
.training-list li::before {
  content: counter(tr); position: absolute; left: 16px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #0F1419; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.training-list .t-day { font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.training-list .t-focus { font-size: 13px; color: var(--ink-soft); margin: 0 0 4px; }
.training-list .t-cue { font-size: 12px; color: var(--ink-soft); font-style: italic; }

.about-body h3 { margin-top: 24px; font-size: 16px; }
.about-body p, .about-body li { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.about-body ul { padding-left: 18px; }
.about-body em { color: var(--ink); font-style: italic; }

/* ─── Saved runs ─── */
.saved-runs { margin: 20px 0 8px; }
.saved-runs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.saved-runs-head h2 { font-size: 17px; margin: 0; }
.saved-runs-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.saved-run {
  background: var(--card); border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.sr-row1 { display: flex; justify-content: space-between; align-items: baseline; }
.sr-date { font-size: 13px; color: var(--ink-soft); }
.sr-plan { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.sr-plan.p730 { color: var(--gold); }
.sr-plan.p900 { color: var(--blue); }
.sr-plan.p1200 { color: var(--red); }
.sr-stats { display: flex; gap: 16px; font-size: 14px; }
.sr-stats b { color: var(--ink); font-size: 17px; font-weight: 700; display: block; }
.sr-stats span { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.sr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-actions button {
  flex: 1; min-width: 80px; padding: 8px 10px; font-size: 13px;
  background: rgba(255,255,255,0.06); color: var(--ink);
  border: none; border-radius: 10px; cursor: pointer;
}
.sr-actions button.danger { color: var(--red); }
.sr-actions button:active { background: rgba(255,255,255,0.12); }

/* ─── Metric tile as button ─── */
.metric-button {
  font: inherit; color: inherit; text-align: left;
  border: none; cursor: pointer;
  position: relative;
}
.metric-button:active { transform: scale(0.98); }
.metric-button::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(212,162,75,0.25);
  pointer-events: none;
}

/* ─── Landmarks modal ─── */
.modal-tall { max-height: 80vh; }
.modal-sub { color: var(--ink-soft); font-size: 13px; margin: -4px 0 12px; }
.landmarks-list {
  list-style: none; padding: 0; margin: 0 0 16px;
  max-height: 50vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.landmarks-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}
.landmarks-list li.lm-next {
  background: rgba(212,162,75,0.12);
  box-shadow: inset 0 0 0 1px rgba(212,162,75,0.4);
}
.landmarks-list li.lm-passed { opacity: 0.4; }
.lm-name { color: var(--ink); font-weight: 500; }
.lm-passed .lm-name { text-decoration: line-through; }
.lm-meta { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.lm-next .lm-meta { color: var(--gold); font-weight: 700; }

/* ─── Route mini-map ─── */
.route-map {
  margin: 4px 0 12px;
  padding: 8px 6px 4px;
  background: rgba(255,255,255,0.025);
  border-radius: 10px;
}
#route-map { width: 100%; height: auto; display: block; }
.route-map-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-soft);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-top: 2px; padding: 0 4px;
}

/* ─── Practice mode modal ─── */
.practice-slider-wrap {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 16px;
}
#practice-km {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 50%, rgba(255,255,255,0.12) 50%);
  outline: none; margin: 0 0 14px;
}
#practice-km::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
#practice-km::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg); cursor: pointer;
}
.practice-readout {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.practice-km-big {
  font-size: 32px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.practice-landmark {
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.practice-time {
  font-size: 13px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.practice-section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); margin: 14px 0 8px;
}
.practice-quick-jumps {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 28vh; overflow-y: auto;
  margin-bottom: 12px;
}
.pq-chip {
  background: rgba(255,255,255,0.06); color: var(--ink);
  border: none; padding: 8px 12px; border-radius: 10px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 6px;
}
.pq-chip:active { background: rgba(255,255,255,0.12); }
.pq-chip.active {
  background: rgba(212,162,75,0.18);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212,162,75,0.4);
}
.pq-chip .pq-km {
  font-size: 11px; opacity: 0.7;
}

/* ═══════════════ PRO FEATURES ═══════════════ */

/* Weather card (home screen) */
.weather-card {
  background: linear-gradient(135deg, rgba(91,163,255,0.10), rgba(212,162,75,0.06));
  border: 1px solid rgba(91,163,255,0.22);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
}
.wx-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.wx-head h2 { font-size: 14px; margin: 0; color: var(--ink); font-weight: 600; }
.wx-sub { font-size: 11px; color: var(--ink-soft); margin: 2px 0 0; }
.wx-icon { color: #5BA3FF; display: inline-flex; }
.wx-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.wx-grid > div {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 2px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.wx-num { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wx-lbl { font-size: 9.5px; color: var(--ink-soft); margin-top: 1px; letter-spacing: 0.02em; }
.wx-hint { font-size: 11px; color: var(--ink-soft); margin: 10px 0 0; line-height: 1.4; }

/* Pro stats row (live run) */
.pro-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin: 0 0 10px;
}
.pro-stats:has(.pro-stat[hidden="false"]),
.pro-stats { /* allow 3+4 columns when hr/cadence shown */ }
.pro-stats .pro-stat:not([hidden]) ~ .pro-stat:not([hidden]) {}
.pro-stat {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  font-variant-numeric: tabular-nums;
}
.pro-stat-lbl { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.pro-stat-val { font-size: 17px; font-weight: 700; color: var(--ink); }
.pro-stat-unit { font-size: 10px; color: var(--ink-soft); margin-top: -2px; }
.pro-stat.cutoff-safe    .pro-stat-val { color: #4ADE80; }
.pro-stat.cutoff-caution .pro-stat-val { color: #FACC15; }
.pro-stat.cutoff-warn    .pro-stat-val { color: #FB923C; }
.pro-stat.cutoff-danger  .pro-stat-val { color: #F87171; }

/* When 3+ stats visible, switch to flex wrap */
.pro-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-stat { flex: 1 1 calc(50% - 4px); min-width: 130px; }

/* Pro banners (aid / climb / off-course) */
.pro-banners { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.pro-banner[hidden] { display: none !important; }
.pro-stat[hidden] { display: none !important; }
.pro-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
}
.pro-banner .pb-icon {
  font-size: 14px; line-height: 1; color: var(--gold);
  width: 22px; text-align: center;
}
.pro-banner .pb-text { display: flex; flex-direction: column; gap: 1px; }
.pro-banner .pb-lbl { font-size: 9.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.pro-banner .pb-val { font-size: 13px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.pro-climb { border-left-color: #FB923C; }
.pro-climb .pb-icon { color: #FB923C; }
.pro-offcourse {
  border-left-color: #F87171;
  background: rgba(248,113,113,0.10);
  animation: pulse-warn 1.2s ease-in-out infinite;
}
.pro-offcourse .pb-icon {
  color: #fff; background: #F87171; border-radius: 999px;
  width: 18px; height: 18px; line-height: 18px;
  font-weight: 700; font-size: 12px;
}
@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(248,113,113,0); }
}

/* Replay chart */
.replay-chart-wrap {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px 12px 6px;
  margin: 14px 0;
}
.replay-chart-title {
  font-size: 12px; color: var(--ink-soft); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
#replay-chart {
  width: 100%; height: 160px; display: block;
}
.rc-legend {
  display: flex; gap: 16px; font-size: 10.5px;
  color: var(--ink-soft); margin-top: 4px;
}
.rc-leg-pace { color: #5BA3FF; }
.rc-leg-elev { color: var(--gold); }

/* ═══════════════ FUTURE FEATURES ═══════════════ */

/* Collapsible block on the run screen */
.future-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin: 8px 0;
  overflow: hidden;
}
.future-block > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink);
}
.future-block > summary::-webkit-details-marker { display: none; }
.future-block > summary::after {
  content: '›'; margin-left: auto; font-size: 18px; color: var(--ink-soft);
  transition: transform 0.2s;
}
.future-block[open] > summary::after { transform: rotate(90deg); }
.fb-icon {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: rgba(212,162,75,0.16);
  color: var(--gold);
  font-size: 13px; font-weight: 700;
}
.fb-title { font-weight: 600; font-size: 13px; }
.fb-mini  { font-size: 10.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-left: auto; padding-right: 8px; }
.fb-hint  { font-size: 11px; color: var(--ink-soft); margin: 8px 14px 4px; line-height: 1.45; }

/* Fade simulator chart */
.fade-block .fade-body { padding: 0 14px 12px; }
#fade-chart { width: 100%; height: 110px; display: block; }

/* Sweat tracker */
.sweat-block .sweat-body { padding: 4px 14px 14px; }
.sweat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 4px;
}
.sg-cell {
  background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-variant-numeric: tabular-nums;
}
.sg-lbl { font-size: 9.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
.sg-val { font-size: 16px; font-weight: 700; color: var(--ink); }
.sg-unit { font-size: 9.5px; color: var(--ink-soft); }
.sg-cell.sweat-safe    .sg-val { color: #4ADE80; }
.sg-cell.sweat-caution .sg-val { color: #FACC15; }
.sg-cell.sweat-warn    .sg-val { color: #FB923C; }
.sg-cell.sweat-danger  .sg-val { color: #F87171; }
.sweat-buttons {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.btn-pill {
  background: rgba(91,163,255,0.14);
  border: 1px solid rgba(91,163,255,0.28);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  cursor: pointer;
}
.btn-pill:active { background: rgba(91,163,255,0.28); }

/* Q&A panel */
.qa-block .qa-body { padding: 8px 14px 12px; }
.qa-buttons {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.qa-buttons .btn-pill { background: rgba(212,162,75,0.14); border-color: rgba(212,162,75,0.30); }
.qa-buttons .btn-pill:active { background: rgba(212,162,75,0.30); }
.qa-answer {
  font-size: 13px; color: var(--ink);
  line-height: 1.5;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  margin: 0;
  min-height: 44px;
}
.qa-voice-row {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.qa-voice-hint { font-size: 10.5px; color: var(--ink-soft); }
#btn-voice.on { background: rgba(74,222,128,0.18); border-color: rgba(74,222,128,0.4); color: #4ADE80; }

/* ACWR injury risk */
.acwr-block { padding: 12px 14px; margin: 12px 0; }
.acwr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.acwr-head h2 { font-size: 14px; margin: 0; font-weight: 600; }
.acwr-sub { font-size: 11px; color: var(--ink-soft); margin: 2px 0 0; }
.acwr-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px;
}
.acwr-grid > div {
  background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
#acwr-ratio-cell.acwr-safe .sg-val    { color: #4ADE80; }
#acwr-ratio-cell.acwr-caution .sg-val { color: #FACC15; }
#acwr-ratio-cell.acwr-warn .sg-val    { color: #FB923C; }
#acwr-ratio-cell.acwr-danger .sg-val  { color: #F87171; }
.acwr-msg { font-size: 12px; color: var(--ink); margin: 4px 0 0; line-height: 1.45; }

/* Gear locker */
.gear-block { padding: 12px 14px; margin: 12px 0; }
.gear-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.gear-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.gear-row.gear-warn  { border-left: 3px solid #FB923C; }
.gear-row.gear-danger { border-left: 3px solid #F87171; }
.gear-row.gear-caution { border-left: 3px solid #FACC15; }
.gear-row.gear-safe { border-left: 3px solid #4ADE80; }
.gear-name { font-weight: 600; font-size: 13px; flex: 1; }
.gear-meta { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gear-del { background: none; border: none; color: var(--ink-soft); font-size: 18px; cursor: pointer; padding: 0 4px; }
.gear-add-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 6px;
}
.gear-add-row input, .gear-add-row select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--ink); font-size: 12px;
}

/* ═══════════════ COMPASS — CCP layer ═══════════════ */
.compass-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
}
.compass-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.compass-head h2 { margin: 0; font-size: 18px; }
.compass-tag {
  display: inline-block; margin-left: 6px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: 1px 6px; border-radius: 3px;
  vertical-align: middle;
}
.compass-anchor-card {
  display: block; width: 100%; text-align: left;
  background: linear-gradient(135deg, rgba(212,162,75,0.10), rgba(212,162,75,0.02));
  border: 1px solid rgba(212,162,75,0.35);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
  color: var(--ink); cursor: pointer;
}
.compass-anchor-card .cac-lbl {
  display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.compass-anchor-card .cac-text { display: block; font-size: 15px; line-height: 1.4; font-style: italic; }
.compass-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.compass-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 10px; padding: 12px 6px; cursor: pointer;
  color: var(--ink); transition: background 0.15s, border-color 0.15s;
}
.compass-btn:hover, .compass-btn:active { background: rgba(212,162,75,0.10); border-color: var(--gold); }
.compass-btn .cb-num { font-size: 20px; color: var(--gold); line-height: 1; }
.compass-btn .cb-lbl { font-size: 11px; text-align: center; color: var(--ink-soft); line-height: 1.2; }
.compass-journal-mini { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.compass-journal-mini h3 { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px 0; }
.cj-row { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cj-row:last-child { border-bottom: none; }
.cj-date { font-size: 11px; color: var(--ink-soft); margin-bottom: 2px; }
.cj-summary { font-size: 13px; line-height: 1.4; }
.compass-power { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
.compass-power summary { cursor: pointer; }
.compass-power input[type="file"] { margin: 8px 0; color: var(--ink-soft); font-size: 12px; }

/* Floating Compass action buttons on the run screen */
.compass-fab-row {
  display: flex; gap: 8px; padding: 8px 12px 0; justify-content: center;
}
.compass-fab {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--gold);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  color: var(--ink); font-size: 13px;
}
.compass-fab .cf-glyph { color: var(--gold); font-size: 16px; }
.compass-fab-accept { border-color: var(--blue); }
.compass-fab-accept .cf-glyph { color: var(--blue); }

/* Compass dialog */
.compass-dialog {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.compass-dialog[hidden] { display: none; }
.compass-dialog .cd-panel {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; width: 100%; max-width: 480px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.compass-dialog .cd-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--rule);
}
.compass-dialog .cd-head h3 { margin: 0; font-size: 15px; color: var(--gold); }
.compass-dialog .cd-close {
  background: transparent; color: var(--ink-soft); border: none;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px;
}
.compass-dialog .cd-body {
  padding: 14px 16px; overflow-y: auto;
}
.cd-hint { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 12px; }
.cd-mini { font-size: 11px; color: var(--ink-soft); margin: 6px 0; }
.cd-lbl  { display: block; font-size: 11px; letter-spacing: 0.05em;
           text-transform: uppercase; color: var(--ink-soft); margin: 10px 0 4px; }
.cd-input {
  width: 100%; box-sizing: border-box;
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 8px; padding: 8px 10px; color: var(--ink);
  font-size: 14px; font-family: inherit;
}
.cd-input:focus { outline: none; border-color: var(--gold); }
.cd-area { resize: vertical; min-height: 60px; }
.cd-pre {
  background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 8px; padding: 8px 10px; font-size: 12px;
  white-space: pre-wrap; color: var(--ink-soft); margin: 4px 0 12px;
}
.cd-row { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.cd-meta { font-size: 12px; color: var(--gold); margin-bottom: 8px; }
.cd-prompt {
  font-size: 17px; line-height: 1.45; color: var(--ink);
  padding: 14px 0; border-left: 3px solid var(--gold);
  padding-left: 14px; margin: 4px 0 10px; font-style: italic;
}
.cd-script {
  font-size: 15px; line-height: 1.7; color: var(--ink);
  padding-left: 22px; margin: 8px 0;
}
.cd-script li { margin: 6px 0; }

@media (max-width: 380px) {
  .compass-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════
   HUD preview + Voice / Glasses dialogs (added with HUD/Voice phase)
   ════════════════════════════════════════════════════════════════════ */

.chip-mini {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-2);
  margin-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: inline-block;
}

/* HUD preview pane (only visible during an active run) */
.hud-preview {
  position: fixed;
  /* Push below status bar / Dynamic Island. 54px is the iPhone Dynamic Island
     vertical reach; safe-area-inset-top covers the rest on older devices. */
  top: max(54px, calc(env(safe-area-inset-top, 0px) + 12px));
  right: 12px;
  z-index: 9000;
  pointer-events: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  transition: opacity .18s ease;
}
.hud-preview.hud-hidden { display: none; }
.hud-preview-close {
  position: absolute;
  top: -10px; right: -10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2, #222);
  color: var(--ink, #eee);
  border: 1px solid var(--rule, #444);
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  z-index: 1;
}
.hud-preview-close:active { background: var(--rule, #444); }
.hud-preview-frame {
  width: 152px;
  height: 128px;          /* ENGO 2 aspect 304:256 */
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #000;
  overflow: hidden;
  position: relative;
}
.hud-preview.hud-connected .hud-preview-frame {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green) inset;
}
.hud-preview-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 8px 10px;
  color: #B6FF8A;          /* ENGO green-monochrome feel */
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
}
.hl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  line-height: 1.1;
}
.hl em {
  font-style: normal;
  color: #6FBF4A;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hl-f1 { font-size: 22px; font-weight: 700; }
.hl-f2 { font-size: 16px; font-weight: 600; }
.hl-f3 { font-size: 11px; }
.hud-preview-meta {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
}

/* Cue dialog shell (Voice + Glasses + HUD share this) */
.cue-dlg {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  max-width: 420px;
  width: 92vw;
}
.cue-dlg::backdrop { background: rgba(0,0,0,.55); }
.cue-dlg .dlg-form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.cue-dlg .dlg-head { display: flex; justify-content: space-between; align-items: center; }
.cue-dlg .dlg-head h3 { margin: 0; font-size: 16px; }
.cue-dlg .dlg-head .btn-ghost { padding: 2px 8px; }
.cue-dlg .dlg-lbl { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.cue-dlg .dlg-section { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--rule); }
.cue-dlg .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cue-dlg .dlg-hint { font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }
.cue-dlg .row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }

.cue-dlg .slider-row { display: flex; flex-direction: column; gap: 4px; }
.cue-dlg .slider-row > span { display: flex; justify-content: space-between; font-size: 13px; }
.cue-dlg .slider-row em { font-style: normal; color: var(--gold); }
.cue-dlg input[type="range"] { width: 100%; accent-color: var(--gold); }
.cue-dlg .cue-select {
  width: 100%; padding: 8px; border-radius: 8px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--rule); margin-top: 4px;
}
.cue-dlg .btn-primary {
  padding: 8px 14px; background: var(--gold); color: #1a1100;
  border: none; border-radius: 8px; font-weight: 600;
}
.cue-dlg .profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.cue-dlg .profile-grid label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px; border: 1px solid var(--rule); border-radius: 10px;
  cursor: pointer; background: var(--surface-2);
}
.cue-dlg .profile-grid label:has(input:checked) { border-color: var(--gold); background: rgba(212,162,75,.08); }
.cue-dlg .profile-grid input { margin: 0 0 4px; }
.cue-dlg .profile-grid span { font-weight: 600; font-size: 13px; }
.cue-dlg .profile-grid em { font-style: normal; color: var(--ink-soft); font-size: 11px; }

/* Glasses dialog specific */
.gl-list { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.gl-row {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface-2); cursor: pointer;
}
.gl-row:has(input:checked) { border-color: var(--gold); background: rgba(212,162,75,.08); }
.gl-row .gl-name { font-weight: 600; }
.gl-tips ul { margin: 4px 0 0; padding-left: 20px; }
.gl-tips li { font-size: 12px; color: var(--ink-soft); line-height: 1.45; margin: 2px 0; }

/* ════════════════════════════════════════════════════════════════════
   Glucose (LibreLinkUp) — chip + HUD pill + dialog inputs
   ════════════════════════════════════════════════════════════════════ */

/* Home-screen chip states */
.chip-mini.g-off    { color: var(--ink-soft); }
.chip-mini.g-normal { color: var(--green); border-color: rgba(79,203,125,.4); }
.chip-mini.g-watch  { color: var(--gold);  border-color: rgba(212,162,75,.6); }
.chip-mini.g-alert  { color: var(--red);   border-color: rgba(226,90,85,.6); background: rgba(226,90,85,.10); }

/* HUD preview pill (top-right of the HUD frame) */
.hl-glu {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  background: #000;
  border: 1px solid currentColor;
  z-index: 2;
}
.hl-glu-green  { color: #6FBF4A; }
.hl-glu-yellow { color: #E0C44A; }
.hl-glu-red    { color: #E25A55; background: rgba(226,90,85,.15); }

/* Dialog text inputs */
.cue-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
}
.cue-input.num { width: 90px; text-align: right; margin-top: 0; }
.cue-dlg .row .cue-input.num { margin-left: auto; }

/* Glucose intervention banner on run screen */
.glu-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: 8px;
  margin: 6px 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glu-banner.glu-red    { background: rgba(226,90,85,0.18); color: var(--red);   border: 1px solid rgba(226,90,85,0.5); }
.glu-banner.glu-amber  { background: rgba(212,162,75,0.16); color: var(--gold); border: 1px solid rgba(212,162,75,0.5); }
.glu-banner.glu-info   { background: rgba(79,142,227,0.16); color: var(--blue); border: 1px solid rgba(79,142,227,0.5); }
.glu-banner.glu-green  { background: rgba(95,179,122,0.18); color: #5fb37a; border: 1px solid rgba(95,179,122,0.55); }

/* ═══════════════ Module 1: Pre-race week protocol ═══════════════ */
.week-host, .recovery-host, .journal-host { padding: 4px 0 28px; }
.week-head, .rec-head, .jl-head {
  background: #1a1d24; border: 1px solid #2a2e36; border-radius: 12px;
  padding: 14px; margin-bottom: 14px;
}
.week-countdown { font-size: 32px; font-weight: 700; color: #d4a84b; margin: 0; }
.week-sub { color: #8b8f9a; font-size: 13px; margin: 4px 0 10px; }
.week-bucket, .rec-bucket {
  background: #1a1d24; border: 1px solid #2a2e36; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.week-bucket summary, .rec-bucket summary {
  padding: 12px 14px; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.week-bucket summary::-webkit-details-marker,
.rec-bucket summary::-webkit-details-marker { display: none; }
.week-active, .rec-active { border-color: #d4a84b; }
.rec-now, .week-now {
  background: rgba(212,168,75,0.18); color: #d4a84b;
  border: 1px solid rgba(212,168,75,0.4); padding: 2px 8px;
  border-radius: 999px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.week-list, .rec-list { list-style: none; padding: 4px 14px 12px; margin: 0; }
.week-row, .rec-row {
  display: flex; gap: 10px; padding: 8px 0; align-items: flex-start;
  border-bottom: 1px solid #2a2e36; cursor: pointer;
}
.week-row:last-child, .rec-row:last-child { border-bottom: 0; }
.week-row input, .rec-row input { margin-top: 4px; flex-shrink: 0; }
.week-row span, .rec-row span { font-size: 14px; line-height: 1.45; }
.rec-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ═══════════════ Module 3: Voice journal ═══════════════ */
.jl-mic-row { display: flex; gap: 8px; margin-bottom: 8px; }
.btn-mic {
  flex: 1; background: #d4a84b; color: #0f1115; border: 0;
  padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-mic:disabled { background: #2a2e36; color: #8b8f9a; cursor: not-allowed; }
.jl-hint { color: #8b8f9a; font-size: 12px; margin: 6px 0; }
.jl-actions { display: flex; gap: 8px; margin-top: 8px; }
.jl-list { list-style: none; padding: 0; margin: 0; }
.jl-item {
  background: #1a1d24; border: 1px solid #2a2e36; border-radius: 12px;
  padding: 12px; margin-bottom: 10px;
}
.jl-meta { display: flex; justify-content: space-between; color: #8b8f9a; font-size: 11px; margin-bottom: 6px; }
.jl-text { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.jl-row { display: flex; justify-content: space-between; align-items: center; }
.jl-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.jl-tag {
  background: rgba(212,168,75,0.16); color: #d4a84b; padding: 2px 8px;
  border-radius: 999px; font-size: 11px; letter-spacing: 0.04em;
}
.jl-del { background: transparent; color: #8b8f9a; border: 0; font-size: 20px; cursor: pointer; padding: 2px 8px; }
.jl-empty { color: #8b8f9a; padding: 16px; text-align: center; }

/* Watch chip states */
.chip-mini.g-on  { background: rgba(63,185,80,0.16); color: #3fb950; }
.chip-mini.g-idle{ background: rgba(212,168,75,0.16); color: #d4a84b; }
.chip-mini.g-off { background: rgba(139,143,154,0.16); color: #8b8f9a; }
