/* ----------  tokens — Alpenglow palette (lux pass v69→v70) ---------- */
:root {
  /* Surfaces — deeper, warmer near-black like granite at dusk */
  --bg:        #0d0d10;
  --bg-deep:   #07070a;
  --surface:   #16171b;
  --surface-2: #1e1f24;
  --surface-3: #2a2b31;
  --line:      #2a2a30;
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Text — warm ivory, like aged paper, less clinical than pure white */
  --text:      #ece8e0;
  --text-2:    #9b958a;
  --text-3:    #6a655c;

  /* Accent — alpenglow copper. Warmer + less saturated than safety orange.
     Evokes dawn light on granite rather than a hazard cone. */
  --accent:      #E8A268;
  --accent-deep: #C97B3F;
  --accent-soft: rgba(232, 162, 104, 0.12);
  --gold-line:   rgba(232, 162, 104, 0.22);

  /* Secondary accents — slightly desaturated from before */
  --rose:      #D9586A;
  --lime:      #7CC961;
  --sky:       #6CB8E8;
  --danger:    #ed5b5b;

  /* Geometry */
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --pad:        18px;

  /* Multi-layer shadows for depth */
  --shadow:     0 8px 30px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lux: 0 20px 60px rgba(0,0,0,0.55), 0 6px 16px rgba(0,0,0,0.35);
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.4);

  /* Easing curves for slower, more refined transitions */
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  220ms var(--ease);

  /* Typography stacks. iOS/macOS ship New York serif natively; on Android,
     Georgia is a safe fallback. Body uses SF Pro / system stack as before. */
  --font-serif: 'New York', 'Charter', 'Iowan Old Style', 'Georgia', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  /* Subtle warm radial behind everything for granite-at-dusk feel */
  background:
    radial-gradient(ellipse at top, rgba(232,162,104,0.04), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(108,184,232,0.025), transparent 50%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea {
  font: inherit; color: inherit; background: none; border: none; outline: none;
}
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----------  layout — lux ---------- */
.app {
  display: flex; flex-direction: column;
  min-height: 100dvh;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  /* Hairline copper top edge — peripheral identity anchor */
  border-top: 1px solid var(--profile-strip, var(--accent));
}
.app-header {
  display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-top) + 14px) var(--pad) 14px;
  position: sticky; top: 0; z-index: 5;
  /* Glass effect — semi-transparent with backdrop blur */
  background: rgba(13, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line-soft);
}
.app-header .logo {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 20px;
  letter-spacing: 2.5px;
  font-style: italic;
  color: var(--text);
}
.app-header .logo span { color: var(--accent); font-style: normal; font-weight: 500; }
.app-header .spacer { flex: 1; }

.app-main {
  flex: 1;
  padding: 24px var(--pad) calc(var(--safe-bottom) + 96px);
  overflow-y: auto;
}

.bottom-nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 720px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(22, 23, 27, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line-soft);
  padding-bottom: var(--safe-bottom);
  z-index: 10;
}
.bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px 4px 14px;
  color: var(--text-3);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.bottom-nav button.active {
  color: var(--accent);
}
.bottom-nav button.active::before {
  /* Subtle copper indicator dot above the active icon */
  content: '';
  position: absolute; top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232, 162, 104, 0.6);
}
.bottom-nav button .nav-icon {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}

/* ----------  profile chip — refined ---------- */
.profile-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30, 31, 36, 0.6);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  transition: background var(--transition), border-color var(--transition);
}
.profile-chip:hover {
  background: rgba(30, 31, 36, 0.9);
  border-color: var(--gold-line);
}
.profile-chip .dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11px;
  /* Lux refinement: hairline copper ring + copper text, no fill. The bright
     per-profile color (set inline by JS) is overridden here to keep the
     header chip in the lux palette. The profile dot in lists/cards stays
     coloured for identity. */
  background: transparent !important;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.profile-chip .name {
  font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.3px;
}

/* ----------  shared — lux typography ---------- */
.screen-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 30px;
  margin: 18px 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text);
}
.screen-sub {
  color: var(--text-2);
  font-size: 13.5px;
  margin: 0 0 20px;
  line-height: 1.55;
  letter-spacing: 0.05px;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(22, 23, 27, 0.85) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  padding: var(--pad);
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--gold-line); }
.card.padless { padding: 0; overflow: hidden; }
.card h3 {
  margin: 0 0 10px;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.1px;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--bg-deep);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.2px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  min-height: 46px; width: 100%;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-soft);
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 162, 104, 0.28);
}
.button:active { transform: translateY(0); }
.button.ghost {
  background: rgba(30, 31, 36, 0.5);
  color: var(--text);
  border: 1px solid var(--line-soft);
  font-weight: 500;
}
.button.ghost:hover {
  background: rgba(30, 31, 36, 0.85);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-soft);
}
.button.danger { background: var(--danger); color: white; }
.button.small { padding: 8px 12px; min-height: 36px; font-size: 13px; width: auto; }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }

.row { display: flex; gap: 8px; }
.row > .button { flex: 1; }

.input, .select, .textarea {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 44px;
}
.textarea { min-height: 80px; resize: vertical; line-height: 1.4; }
.field { margin-bottom: 12px; }
.field label { display: block; color: var(--text-2); font-size: 12px; margin-bottom: 6px; letter-spacing: 0.3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.empty {
  text-align: center; padding: 40px 20px; color: var(--text-2); font-size: 14px;
}
.empty .icon { font-size: 28px; margin-bottom: 8px; }

.tag {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
}
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.profile { color: var(--bg); }
.tag.status-send     { background: rgba(110,219,77,0.18); color: var(--lime); }
.tag.status-flash    { background: rgba(255,162,43,0.18); color: var(--accent); }
.tag.status-project  { background: rgba(160,164,172,0.15); color: var(--text-2); }
.tag.status-progress { background: rgba(76,194,255,0.18); color: var(--sky); }
.tag.status-fall     { background: rgba(229,91,106,0.18); color: var(--rose); }

/* ----------  routes  ---------- */
.route-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px;
  padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px;
}
.route-row .thumb {
  width: 72px; height: 72px; border-radius: 10px;
  background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 20px;
}
.route-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.route-row .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.route-row .meta .name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.route-row .meta .sub  { color: var(--text-2); font-size: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.route-row .grade {
  align-self: center; padding: 8px 10px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 14px;
}

/* ----- Map tab ----- */
/* Coverage honesty card — collapsible, top of Map tab */
.map-coverage {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
}
.map-coverage summary {
  cursor: pointer; font-weight: 600;
  list-style: none;
  color: var(--accent);
}
.map-coverage summary::-webkit-details-marker { display: none; }
.map-coverage-body { margin-top: 10px; line-height: 1.55; }
.map-coverage-body p { margin: 8px 0; }
.map-coverage-grid {
  display: grid; gap: 6px;
  margin: 10px 0;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 8px;
}
.mcv-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 8px;
  font-size: 12px; line-height: 1.4;
}
.mcv-row.good       b { color: var(--lime); }
.mcv-row.ok         b { color: var(--accent); }
.mcv-row.sparse     b { color: #c87510; }
.mcv-row.very-sparse b { color: var(--rose); }

/* Safety disclaimer on outdoor spot detail */
.safety-disclaimer {
  display: flex; gap: 12px;
  margin-top: 12px; padding: 12px 14px;
  background: rgba(229,91,106,0.08);
  border-left: 3px solid var(--rose);
  border-radius: 8px;
  font-size: 13px; line-height: 1.55;
}
.safety-disclaimer-icon { font-size: 20px; color: var(--rose); flex-shrink: 0; }
.safety-disclaimer-body { color: var(--text); }
.safety-disclaimer-body b { color: var(--rose); }

.map-search-row {
  display: flex; gap: 8px; margin-top: 14px;
  align-items: stretch;
}
.map-search-row .input { flex: 1; }
.map-search-results {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px;
}
.map-search-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; color: var(--text-2);
  text-transform: uppercase;
  margin: 6px 0 4px;
}
.map-search-result {
  text-align: left;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
}
.map-search-result:hover { border-color: var(--accent); }
.map-search-result.climbing { border-left: 3px solid var(--sky); }
.msr-name { font-size: 13px; font-weight: 600; color: var(--text); }
.msr-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.msr-link { color: var(--accent); text-decoration: none; margin-left: auto; }
.msr-link:hover { text-decoration: underline; }

.camptocamp-card { border-left: 3px solid var(--sky); }
.c2c-list { display: flex; flex-direction: column; gap: 6px; }
.c2c-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s ease;
}
.c2c-item:hover { background: rgba(76,194,255,0.08); border-color: var(--sky); }
.c2c-icon { font-size: 18px; }
.c2c-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.c2c-name { font-size: 13px; font-weight: 600; }
.c2c-type { font-size: 11px; }
.c2c-arrow { font-size: 14px; color: var(--text-2); }

.map-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.osm-toggle {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 10px 0 0;
  padding: 10px 12px;
  background: rgba(76,194,255,0.08);
  border: 1px solid rgba(76,194,255,0.3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.osm-toggle input { margin-top: 2px; }
.crux-map {
  width: 100%; height: 360px;
  border-radius: var(--radius);
  margin: 14px 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.crux-map-small { height: 240px; }
.spot-list { display: flex; flex-direction: column; gap: 8px; }
.spot-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.spot-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.spot-name { font-weight: 700; font-size: 15px; color: var(--text); }
.spot-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.spot-fed { color: var(--accent); font-weight: 600; }

.spot-assoc-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.spot-assoc-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.spot-assoc-role { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 10px; }
.spot-assoc-link {
  display: inline-block;
  font-size: 13px; color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.spot-assoc-link:hover { text-decoration: underline; }

.find-more-card { border-left: 3px solid var(--sky); }
.find-more-links { display: flex; flex-direction: column; gap: 6px; }
.find-more-link {
  display: block;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s ease, transform 0.06s ease;
}
.find-more-link:hover {
  background: rgba(255,162,43,0.08);
  border-color: var(--accent);
}
.find-more-link:active { transform: scale(0.99); }

/* Leaflet override — make popups match Crux theme */
.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
}
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.5; }
.leaflet-popup-content a { color: var(--accent); }
.leaflet-container { font-family: inherit; background: var(--surface-2); }
.leaflet-control-attribution { background: rgba(14,15,18,0.7) !important; color: var(--text-2) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--text-2) !important; }

/* ----- Outdoor conditions + project journal ----- */
.conditions-card {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(76,194,255,0.10), rgba(110,219,77,0.05));
  border: 1px solid rgba(76,194,255,0.4);
  border-radius: 10px;
}
.conditions-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conditions-emoji { font-size: 22px; }
.conditions-temp { font-size: 20px; font-weight: 700; color: var(--sky); }
.conditions-label { font-size: 13px; }
.conditions-sub { font-size: 12px; margin-top: 4px; }

.project-journal { margin-top: 12px; }
.project-journal-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; margin-bottom: 8px;
}
.attempt-journal-card {
  padding: 12px 14px; margin-bottom: 10px;
  background: var(--surface-2);
  border-left: 3px solid var(--line);
  border-radius: 8px;
}
.attempt-journal-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.attempt-journal-date { font-size: 13px; color: var(--text-2); font-weight: 600; }
.attempt-journal-metrics {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 6px 0 4px;
}
.attempt-metric {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.attempt-metric.rpe-rpe-easy  { color: var(--lime); border-color: rgba(110,219,77,0.4); }
.attempt-metric.rpe-rpe-mid   { color: var(--sky);  border-color: rgba(76,194,255,0.4); }
.attempt-metric.rpe-rpe-hard  { color: var(--accent); border-color: rgba(255,162,43,0.4); }
.attempt-metric.rpe-rpe-limit { color: var(--rose); border-color: rgba(229,91,106,0.4); }
.attempt-metric.body-good { color: var(--lime); border-color: rgba(110,219,77,0.4); }
.attempt-metric.body-warn { color: var(--rose); border-color: rgba(229,91,106,0.4); }
.attempt-journal-conditions {
  font-size: 12px;
  margin: 6px 0;
  padding: 6px 10px;
  background: rgba(76,194,255,0.08);
  border-radius: 6px;
}
.attempt-journal-note {
  font-size: 13px; font-style: italic; color: var(--text);
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
}

/* ----- Rope School ----- */
/* ----- Rope Ladder interactive layer ----- */
.rope-progress-card {
  margin-top: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(76,194,255,0.10), rgba(110,219,77,0.06));
  border: 1px solid rgba(76,194,255,0.4);
  border-radius: var(--radius);
}
.rope-progress-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; color: var(--sky);
  text-transform: uppercase; margin-bottom: 10px;
}
.rope-progress-stats {
  display: flex; gap: 18px; margin-bottom: 12px;
}
.rope-progress-stat-num { font-size: 24px; font-weight: 800; color: var(--text); }
.rope-progress-stat-label { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.4px; }
.rope-progress-current { font-size: 13px; color: var(--text); padding-top: 10px; border-top: 1px solid rgba(76,194,255,0.2); }
.rope-progress-current-label { font-weight: 700; color: var(--sky); }
.rope-progress-done { color: var(--lime); font-weight: 700; }

.rope-knot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rope-tick-btn {
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-2);
  cursor: pointer; white-space: nowrap;
}
.rope-tick-btn.on { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.rope-knot-card.rope-learned { opacity: 0.78; }
.rope-knot-card.rope-learned .guide-principle-name { text-decoration-color: var(--lime); }

.rope-stage-card.rope-complete { border-left-color: var(--lime); background: linear-gradient(135deg, rgba(110,219,77,0.05), transparent); }
.rope-stage-card.rope-complete .rope-stage-num { background: rgba(110,219,77,0.15); color: var(--lime); }
.rope-stage-card.rope-locked { opacity: 0.45; }
.rope-stage-locked-msg { padding: 8px 0; font-size: 13px; }
.rope-stage-tick {
  display: block; width: 100%;
  margin-top: 12px; padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 13px;
  border-radius: 8px; cursor: pointer;
}
.rope-stage-tick.on {
  background: rgba(110,219,77,0.15); color: var(--lime);
  border-color: var(--lime);
}

.rope-school-card {
  border-color: rgba(76,194,255,0.5) !important;
  background: linear-gradient(135deg, rgba(76,194,255,0.10), rgba(110,219,77,0.06)) !important;
}
.rope-school-card .guide-card-eyebrow { color: var(--sky) !important; }

/* Ice climbing primer — icy blue palette so it reads "cold" at a glance. */
.ice-school-card {
  border-color: rgba(184,224,255,0.55) !important;
  background: linear-gradient(135deg, rgba(184,224,255,0.14), rgba(255,255,255,0.04)) !important;
}
.ice-school-card .guide-card-eyebrow { color: #B8E0FF !important; }
.ice-callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(184,224,255,0.10), rgba(76,194,255,0.06));
  border: 1px solid rgba(184,224,255,0.4);
  border-radius: 12px; padding: 14px;
  margin: 14px 0;
}
.ice-callout-icon { font-size: 28px; line-height: 1; }
.ice-callout-body { flex: 1; }
.ice-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(184,224,255,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
}
.ice-section[open] { border-color: rgba(184,224,255,0.35); }
.ice-section-heading {
  font-size: 15px; font-weight: 700;
  cursor: pointer; padding: 6px 0;
  color: #B8E0FF;
}
.ice-section-body { padding: 8px 0 4px; }
.ice-line {
  font-size: 14px; line-height: 1.55;
  color: var(--text); padding: 6px 0;
}
.ice-line.bullet {
  padding-left: 12px;
  border-left: 2px solid rgba(184,224,255,0.3);
  margin-left: 2px;
  font-size: 13px;
}
.ice-closing {
  margin-top: 18px; padding: 14px;
  border-radius: 10px;
  background: rgba(184,224,255,0.06);
  border: 1px dashed rgba(184,224,255,0.3);
}
.ice-closing p { margin: 6px 0; font-size: 13px; line-height: 1.55; }

/* Safety Guide — sky-blue palette to read "calm + foundational" not panic */
.safety-guide-card {
  border-color: rgba(76,194,255,0.6) !important;
  background: linear-gradient(135deg, rgba(76,194,255,0.14), rgba(184,224,255,0.06)) !important;
}
.safety-guide-card .guide-card-eyebrow { color: var(--sky) !important; }
.safety-callout {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, rgba(76,194,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(76,194,255,0.45);
  border-radius: 12px; padding: 14px;
  margin: 14px 0;
}
.safety-callout-icon { font-size: 32px; line-height: 1; }
.safety-callout-body { flex: 1; }
.safety-callout-body b { color: var(--sky); }
.safety-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(76,194,255,0.22);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
}
.safety-section[open] {
  border-color: rgba(76,194,255,0.42);
  background: rgba(76,194,255,0.04);
}
.safety-section-heading {
  cursor: pointer; padding: 6px 0;
  list-style: none;
}
.safety-section-heading::-webkit-details-marker { display: none; }
.safety-heading-line {
  font-size: 15px; font-weight: 700;
  color: var(--sky);
}
.safety-principle {
  font-size: 12px; font-style: italic;
  color: var(--muted);
  margin-top: 2px; line-height: 1.4;
}
.safety-section[open] .safety-principle { color: var(--text); font-style: normal; opacity: 0.9; }
.safety-section-body { padding: 6px 0 4px; }
.safety-line {
  font-size: 13.5px; line-height: 1.55;
  color: var(--text); padding: 5px 0;
}
.safety-line.sub-header {
  font-weight: 700;
  color: var(--sky);
  margin-top: 6px;
  font-size: 13px;
}
.safety-line.bullet {
  padding-left: 12px;
  border-left: 2px solid rgba(76,194,255,0.3);
  margin-left: 2px;
  font-size: 13px;
}
.safety-closing {
  margin-top: 18px; padding: 14px;
  border-radius: 10px;
  background: rgba(76,194,255,0.08);
  border: 1px dashed rgba(76,194,255,0.4);
}
.safety-closing ol { color: var(--text); }
.safety-closing b { color: var(--sky); }

/* Per-section video sources — curated channel buttons */
.safety-videos {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed rgba(76,194,255,0.25);
}
.safety-videos-label {
  font-size: 12px; color: var(--muted);
  margin-bottom: 6px;
}
.safety-videos-buttons {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.safety-video-link {
  background: rgba(76,194,255,0.10);
  border: 1px solid rgba(76,194,255,0.3);
  color: var(--sky) !important;
  text-decoration: none;
  padding: 4px 10px !important;
  font-size: 12px !important;
}
.safety-video-link:hover { background: rgba(76,194,255,0.18); }

/* 🧠 Ask Crux — synthesised beta card */
.ask-crux-card {
  background: linear-gradient(180deg, rgba(232,162,104,0.06), rgba(108,184,232,0.03));
  border: 1px solid var(--gold-line);
}
.ask-crux-btn {
  background: linear-gradient(135deg, var(--accent-soft), rgba(108,184,232,0.10)) !important;
  color: var(--accent) !important;
  border: 1px solid var(--gold-line) !important;
  font-weight: 600;
}
.ask-crux-response {
  margin-top: 14px;
}
.ask-crux-result {
  padding: 14px 16px;
  background: rgba(232,162,104,0.05);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.ask-crux-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ask-crux-header {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}
.ask-crux-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 8px 0;
}
.ask-crux-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  padding: 8px 12px;
  border-left: 2px solid var(--gold-line);
  margin: 6px 0;
  background: rgba(255,255,255,0.02);
}
.ask-crux-quote::before { content: '"'; color: var(--accent); margin-right: 2px; }
.ask-crux-quote::after { content: '"'; color: var(--accent); margin-left: 2px; }
.ask-crux-wisdom-label {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
  margin-bottom: 4px;
}
.ask-crux-cites {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--gold-line);
}

/* v82 — Lattice concept lens header (leads concept-tagged answers) */
.ask-crux-lens-header {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(232,162,104,0.12), rgba(232,162,104,0.04));
  border: 1px solid var(--gold-line);
  border-radius: 10px;
}
.ask-crux-lens-header .ask-crux-lens-emoji {
  font-size: 22px;
  margin-right: 8px;
  vertical-align: middle;
}
.ask-crux-lens-header .ask-crux-lens-label {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.ask-crux-lens-header .ask-crux-lens-summary {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
  font-style: italic;
  font-family: var(--font-serif);
}
/* v83 — drill prescription inside lens header */
.ask-crux-lens-header .ask-crux-lens-drill {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.55;
}
.ask-crux-lens-header .ask-crux-lens-drill-eyebrow {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.ask-crux-lens-header .ask-crux-lens-drill-text {
  color: var(--text);
}
/* v83 — source citation with clickable link */
.ask-crux-lens-header .ask-crux-lens-source {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--gold-line);
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-3);
}
.ask-crux-lens-header .ask-crux-source-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  font-weight: 500;
}
.ask-crux-lens-header .ask-crux-source-link:hover {
  border-bottom-color: var(--accent);
}
.ask-crux-lens-header .ask-crux-source-attr {
  color: var(--text-3);
  font-style: italic;
}
.ask-crux-lens-header .ask-crux-source-also {
  margin-top: 4px;
  color: var(--text-3);
  font-style: italic;
}

/* v84 — Today's Drill card on home */
.drill-card {
  margin-top: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(232,162,104,0.08), rgba(232,162,104,0.02));
  border: 1px solid var(--gold-line);
  border-radius: 10px;
}
.drill-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.drill-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drill-emoji { font-size: 20px; }
.drill-label { color: var(--accent); }
.drill-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}
.drill-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drill-done {
  font-size: 12.5px;
  color: var(--accent);
  font-style: italic;
}
.drill-source-link {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-line);
}
.drill-source-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* v85 — Lattice concept lens inside quest drawer */
.quest-concept-line {
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(232,162,104,0.10), rgba(232,162,104,0.02));
  border-left: 2px solid var(--accent);
  border-radius: 6px;
}
.quest-concept-emoji { font-size: 16px; vertical-align: middle; }
.quest-concept-label {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}
.quest-concept-summary {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  font-style: italic;
  line-height: 1.5;
}
.quest-source-line {
  margin-top: 10px;
  font-size: 11px;
}
.quest-source-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-line);
}
.quest-source-link:hover { border-bottom-color: var(--accent); }

/* v86 — Voices library card on Train tab */
.guide-card.voices-card {
  background: linear-gradient(135deg, rgba(232,162,104,0.10), rgba(28,28,32,0.4));
  border-color: var(--gold-line);
}

/* v86 — Individual voice cards on the Voices sub-screen */
.voice-card {
  background: var(--bg-elev, #1b1e25);
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}
.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.voice-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.voice-role {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
}
.voice-insight {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  padding: 8px 0;
}
.voice-concept-tag {
  font-size: 11.5px;
  color: var(--accent);
  margin-top: 6px;
  font-style: italic;
}
.voice-concept-emoji { font-size: 14px; }
.voice-source {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gold-line);
  font-size: 11px;
  color: var(--text-3);
}
.voice-source-kind {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}
.voice-source-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-line);
}
.voice-source-link:hover { border-bottom-color: var(--accent); }

/* v89 — cross-cultural principle banner above Voices */
.voices-principle {
  margin: 6px 0 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(232,162,104,0.10), rgba(232,162,104,0.02));
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.voices-principle-text {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

/* v90 — Fear & falling sub-screen */
.guide-card.fear-falling-card {
  background: linear-gradient(135deg, rgba(76,194,255,0.10), rgba(28,28,32,0.4));
  border-color: rgba(76,194,255,0.22);
}
.fear-mode-banner {
  margin: 8px 0 18px;
  padding: 10px 14px;
  background: rgba(76,194,255,0.06);
  border-left: 3px solid #4CC2FF;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.fear-mode-banner strong { color: var(--text); font-weight: 600; }
.fear-section {
  margin: 22px 0;
  padding: 16px;
  background: var(--bg-elev, #1b1e25);
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
  border-radius: 8px;
}
.fear-section-heading {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.fear-section-para {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}
.fear-section-para:last-child { margin-bottom: 0; }
.fear-section-para strong { color: var(--accent); font-weight: 600; }
.fear-sources {
  margin-top: 28px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.fear-sources-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 10px;
}
.fear-source-row { margin: 6px 0; }
.fear-source-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
  border-bottom: 1px dotted var(--gold-line);
}
.fear-source-link:hover { border-bottom-color: var(--accent); }
.fear-footer {
  margin-top: 26px;
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-3);
  border-top: 1px dashed var(--gold-line);
  padding-top: 20px;
}

/* v92 — Route Gallery: extra photos for a route */
.route-gallery-card {
  margin-top: 12px;
}
.route-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.route-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.route-gallery-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-elev, #1b1e25);
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.route-gallery-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.route-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.route-gallery-tile .route-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--text);
  font-size: 10.5px;
  font-style: italic;
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
  max-height: 40%;
  overflow: hidden;
}
.route-gallery-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  color: var(--text-3);
}
.route-gallery-fullphoto {
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elev, #1b1e25);
}
.route-gallery-fullphoto img {
  width: 100%;
  height: auto;
  display: block;
}

/* v93 — "Just arrived" mode: Map button + landing card */
.just-arrived-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg);
  font-weight: 600;
}
.just-arrived-card {
  margin-top: 16px;
  padding: 0;
}
.ja-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px 18px;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 16px;
}
.ja-flag { font-size: 36px; }
.ja-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.ja-subtitle {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  font-style: italic;
}
.ja-section {
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--bg-elev, #1b1e25);
  border-radius: 8px;
}
.ja-section.ja-raptor {
  border-left: 3px solid #FFA22B;
}
.ja-section.ja-beyond {
  background: linear-gradient(135deg, rgba(232,162,104,0.10), rgba(28,28,32,0.6));
  border: 1px solid var(--gold-line);
}
.ja-section-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 8px;
}
.ja-prose {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.ja-fed-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ja-fed-name a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-line);
}
.ja-fed-role {
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.5;
}
.ja-spot-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
}
.ja-spot-row:last-child { border-bottom: none; }
.ja-spot-icon { font-size: 16px; }
.ja-spot-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.ja-spot-name a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--gold-line); }
.ja-spot-region {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 2px;
}
.ja-phrase-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
  font-size: 12px;
  align-items: baseline;
}
.ja-phrase-row:last-child { border-bottom: none; }
.ja-phrase-en {
  color: var(--text-3);
  font-style: italic;
}
.ja-phrase-local {
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 13px;
}
.ja-phrase-note {
  color: var(--text-2);
  font-size: 11px;
}
.ja-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--gold-line);
  font-size: 11px;
  font-style: italic;
  color: var(--text-3);
  line-height: 1.6;
}
@media (max-width: 480px) {
  .ja-phrase-row {
    grid-template-columns: 1fr 1fr;
  }
  .ja-phrase-note { grid-column: 1 / -1; }
}

/* v94 — Logbook day-cards */
.logbook-days {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.logbook-day {
  padding: 14px 16px;
  background: var(--bg-elev, #1b1e25);
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
  border-radius: 10px;
}
.logbook-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gold-line);
}
.logbook-day-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}
.logbook-day-date {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}
.logbook-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
}
.logbook-event:not(:last-child) {
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
}
.logbook-event:hover .logbook-event-title {
  color: var(--accent);
}
.logbook-event-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.logbook-event-eyebrow,
.logbook-event-status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-top: 2px;
  min-width: 56px;
  flex-shrink: 0;
}
.logbook-event-body {
  flex: 1;
  min-width: 0;
}
.logbook-event-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.15s ease;
}
.logbook-event-note {
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
  margin-top: 3px;
  line-height: 1.55;
}
.logbook-event.session .logbook-event-body > div:first-child {
  font-size: 13px;
  color: var(--text);
}
.logbook-event.drill .logbook-event-body,
.logbook-event.quest .logbook-event-body {
  font-size: 13px;
  color: var(--text);
}

/* v95 — search, actions, reading mode overlay, memory card */
.logbook-search-row {
  display: flex;
}
.input.logbook-search {
  flex: 1;
  font-size: 14px;
  padding: 10px 12px;
  background: var(--bg-elev, #1b1e25);
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
  border-radius: 8px;
  color: var(--text);
}
.input.logbook-search:focus {
  outline: none;
  border-color: var(--accent);
}
.logbook-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reading-mode-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px 22px 80px;
  display: flex;
  flex-direction: column;
}
.reading-mode-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 28px;
}
.reading-mode-counter {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}
.reading-mode-page {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.reading-mode-day-name {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}
.reading-mode-day-date {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 36px;
}
.reading-mode-entry {
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
}
.reading-mode-entry:last-child { border-bottom: none; }
.reading-mode-entry-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.reading-mode-who {
  color: var(--text-3);
  font-weight: 400;
  font-style: italic;
}
.reading-mode-entry-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.reading-mode-entry-note {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 10px;
}
.reading-mode-entry-prose {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.reading-mode-photo-strip {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.reading-mode-photo-strip img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
}
.reading-mode-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  margin: 28px auto 12px;
  width: 100%;
}
.reading-mode-footer {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Memory card on Home — quiet, this-day-last-year */
.memory-card {
  margin-top: 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(76,194,255,0.06), rgba(28,28,32,0.4));
  border: 1px solid rgba(76,194,255,0.22);
  border-radius: 10px;
}
.memory-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #4CC2FF;
  margin-bottom: 6px;
}
.memory-date {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 10px;
}
.memory-line {
  font-size: 13px;
  color: var(--text);
  padding: 4px 0;
  line-height: 1.55;
}
.memory-line.memory-journal-line {
  font-style: italic;
  color: var(--text-2);
}
.memory-status {
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 11px;
}

/* v96 — Through-time route story view */
.route-timeline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route-timeline {
  font-family: var(--font-serif);
}
.route-timeline-empty {
  text-align: center;
  padding: 26px 14px;
  color: var(--text-3);
}
.route-timeline-empty-icon { font-size: 38px; margin-bottom: 10px; }
.route-timeline-empty-text {
  font-style: italic;
  line-height: 1.6;
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto;
}
.route-timeline-header {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-line);
}
.route-timeline-subhead {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
.route-timeline-stats {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}
.route-timeline-card {
  position: relative;
  margin: 18px 0;
  padding: 14px 16px 16px 22px;
  background: var(--bg-elev, #1b1e25);
  border-radius: 8px;
  border-left: 3px solid var(--rule, rgba(255,255,255,0.10));
}
.route-timeline-card-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.route-timeline-who {
  color: var(--text-3);
  font-weight: 400;
  font-style: italic;
}
.route-timeline-milestone {
  color: #6EDB4D;
  font-weight: 700;
}
.route-timeline-card-date {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 8px;
}
.route-timeline-card-body {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}
.route-timeline-card-note {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin-top: 6px;
}
.route-timeline-first-day {
  border-left-color: var(--accent);
  background: linear-gradient(135deg, rgba(232,162,104,0.10), rgba(28,28,32,0.4));
}
.route-timeline-first-day .route-timeline-card-eyebrow { color: var(--accent); }
.route-timeline-first-day .route-timeline-card-body {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
}
.route-timeline-first-send {
  border-left-color: #6EDB4D;
  background: linear-gradient(135deg, rgba(110,219,77,0.08), rgba(28,28,32,0.4));
}
.route-timeline-photo-card { border-left-color: #4CC2FF; }
.route-timeline-photo-img {
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg, #0e0f12);
}
.route-timeline-photo-img img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}
.route-timeline-close-card {
  text-align: center;
  background: none;
  border-left: none;
  margin-top: 32px;
  padding: 14px;
}
.route-timeline-close-card .route-timeline-card-body {
  font-style: italic;
  color: var(--text-3);
  font-size: 13px;
}

/* v97 — Build signature card */
.build-signature-card {
  border-left: 3px solid var(--accent);
}
.build-sig-body { margin-top: 10px; }
.build-sig-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
  font-size: 12.5px;
}
.build-sig-key {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.build-sig-val {
  color: var(--text);
  font-family: var(--mono, 'SF Mono', monospace);
  text-align: right;
  word-break: break-all;
}
.build-sig-version { color: var(--accent); font-weight: 600; }
.build-sig-composite-row { background: rgba(232, 162, 104, 0.04); padding: 8px 10px; border-radius: 6px; margin-top: 4px; }
.build-sig-hash { font-size: 11px; }
.build-sig-details {
  margin-top: 12px;
  font-size: 12px;
}
.build-sig-details summary {
  cursor: pointer;
  padding: 6px 0;
  color: var(--accent);
  font-weight: 500;
}
.build-sig-files {
  margin-top: 6px;
  padding: 8px;
  background: var(--bg, #0e0f12);
  border-radius: 4px;
  max-height: 240px;
  overflow-y: auto;
}
.build-sig-file-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
}
.build-sig-file-name { color: var(--text-2); flex-shrink: 0; }
.build-sig-file-hash {
  color: var(--text-3);
  word-break: break-all;
  text-align: right;
}
.build-sig-verify-cmd {
  background: var(--bg, #0e0f12);
  padding: 10px;
  border-radius: 4px;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 6px 0 0;
}

/* v112 — Live tamper-check results */
.tamper-check-results { margin-top: 12px; }
.tamper-status {
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  line-height: 1.55;
  margin-bottom: 8px;
}
.tamper-status-ok {
  background: rgba(110, 219, 77, 0.10);
  border-left: 3px solid #6EDB4D;
  color: var(--text);
}
.tamper-status-bad {
  background: rgba(229, 91, 106, 0.10);
  border-left: 3px solid #E55B6A;
  color: var(--text);
}
.tamper-rows {
  background: var(--bg, #0e0f12);
  border-radius: 4px;
  padding: 6px 10px;
  max-height: 220px;
  overflow-y: auto;
}
.tamper-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-family: var(--mono, monospace);
  font-size: 11px;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
}
.tamper-row:last-child { border-bottom: none; }
.tamper-file { color: var(--text-2); }
.tamper-pending { color: var(--text-3); }
.tamper-ok { color: #6EDB4D; font-weight: 700; }
.tamper-mismatch { color: #E55B6A; font-weight: 700; text-align: right; }
.tamper-mismatch-detail { font-size: 10px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.tamper-error { color: #FFA22B; font-size: 10px; text-align: right; }

/* v113 — Lives counted card */
.lives-card {
  border-left: 3px solid var(--accent);
}
.lives-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.life-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-elev, #1b1e25);
  border-radius: 8px;
}
.life-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.life-body {
  flex: 1;
  min-width: 0;
}
.life-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.life-born {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
  margin-top: 2px;
}
.life-minutes {
  font-family: var(--mono, 'SF Mono', monospace);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.life-breakdown {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
  font-style: italic;
}
.life-proof {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--gold-line);
  font-size: 10px;
  color: var(--text-3);
  font-family: var(--mono, monospace);
  word-break: break-all;
  line-height: 1.5;
}
.life-proof-label {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--accent);
}
.life-proof-hash {
  color: var(--text-3);
}
.lives-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.lives-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--gold-line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-3);
}

/* v114 — Crux Portatilis (carry-card) */
.carry-card { border-left: 3px solid #A07AFF; }
.carry-body { margin-top: 8px; }
.carry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
  font-size: 12.5px;
}
.carry-key {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.carry-val {
  color: var(--text);
  font-family: var(--mono, 'SF Mono', monospace);
  text-align: right;
  word-break: break-all;
}
.carry-filename { color: #A07AFF; font-weight: 600; }
.carry-hash { font-size: 11px; }
.carry-hash-row {
  background: rgba(160, 122, 255, 0.05);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 4px;
}
.carry-download {
  background: linear-gradient(180deg, #A07AFF 0%, #7B5CD9 100%);
  color: #fff !important;
  border: none;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
.carry-download:hover { filter: brightness(1.08); }
.carry-section {
  background: var(--bg, #0e0f12);
  padding: 10px 12px;
  border-radius: 6px;
}
.carry-section-label {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 5px;
}
.carry-section-body {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}
.carry-details {
  font-size: 12px;
}
.carry-details summary {
  cursor: pointer;
  padding: 6px 0;
  color: #A07AFF;
  font-weight: 500;
}
.carry-verify-cmd {
  background: var(--bg, #0e0f12);
  padding: 10px;
  border-radius: 4px;
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 6px 0 0;
}
.carry-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--gold-line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-3);
}

/* v102 — Practices card + cycling event in logbook */
.practices-card { border-left: 3px solid #4CC2FF; }
.practices-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.practice-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid var(--rule, rgba(255,255,255,0.10));
  border-radius: 20px;
  background: var(--bg-elev, #1b1e25);
  color: var(--text-3);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.practice-pill.active {
  background: rgba(76, 194, 255, 0.10);
  border-color: #4CC2FF;
  color: var(--text);
}
.practice-pill.locked {
  cursor: default;
}
.practice-locked-mark {
  color: var(--accent);
  font-size: 11px;
}
.logbook-event.ride {
  border-left: none;
}
.logbook-event.ride .logbook-event-eyebrow {
  color: #4CC2FF;
}
.logbook-event-stats {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--mono, monospace);
  margin-top: 3px;
}

/* v103 — Cycling-tinted voices + drill cards (sky-blue accent) */
.guide-card.voices-card-cycling {
  background: linear-gradient(135deg, rgba(76, 194, 255, 0.10), rgba(28, 28, 32, 0.4));
  border-color: rgba(76, 194, 255, 0.22);
}
.voice-card.voice-card-cycling {
  border-left-color: #4CC2FF;
}
.drill-card.drill-card-cycling {
  background: linear-gradient(135deg, rgba(76, 194, 255, 0.08), rgba(76, 194, 255, 0.02));
  border-color: rgba(76, 194, 255, 0.22);
}
.drill-card.drill-card-cycling .drill-eyebrow,
.drill-card.drill-card-cycling .drill-label {
  color: #4CC2FF;
}

/* v104 — Ride timeline button + JA cycling section */
.ride-timeline-btn {
  margin-top: 8px;
  padding: 5px 10px;
  background: rgba(76, 194, 255, 0.10);
  border: 1px solid rgba(76, 194, 255, 0.22);
  border-radius: 14px;
  color: #4CC2FF;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ride-timeline-btn:hover {
  background: rgba(76, 194, 255, 0.18);
}
.ja-section.ja-cycling {
  background: linear-gradient(135deg, rgba(76, 194, 255, 0.08), rgba(28, 28, 32, 0.4));
  border: 1px solid rgba(76, 194, 255, 0.22);
}
.ja-section.ja-cycling .ja-section-eyebrow {
  color: #4CC2FF;
}

/* v106 — Multi-pitch routes */
.route-pitches-card {
  margin-top: 12px;
}
.route-pitches-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pitch-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  background: var(--bg-elev, #1b1e25);
  border: 1px solid var(--rule, rgba(255,255,255,0.06));
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pitch-row:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}
.pitch-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 162, 104, 0.18);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.pitch-body {
  flex: 1;
  min-width: 0;
}
.pitch-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pitch-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.pitch-grade {
  color: var(--accent);
  font-weight: 600;
}
.pitch-status {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 11px;
}
.pitch-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-2);
  margin-top: 4px;
  line-height: 1.45;
}
.pitch-attempt-row {
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule, rgba(255,255,255,0.06));
}
.pitch-attempt-row:last-child { border-bottom: none; }

/* v82 — Lattice 4-lens row used in the honest fallback */
.ask-crux-lens-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 10px;
  margin: 4px 0;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.ask-crux-lens-row .ask-crux-lens-emoji {
  font-size: 18px;
  margin-top: 2px;
}
.ask-crux-lens-row .ask-crux-lens-label {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.ask-crux-lens-row .ask-crux-lens-q {
  font-size: 13px;
  color: var(--text);
  font-style: italic;
  margin-top: 2px;
  line-height: 1.45;
}

/* v82 — Concept chip in sequence-step drawer */
.concept-chip-row {
  gap: 6px;
}
.chip-row .chip.concept-chip {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 16px;
}
.chip-row .chip.concept-chip.active {
  background: rgba(232, 162, 104, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

/* ＋ Floating log button — bottom-right, always visible */
.fab-log {
  position: fixed;
  right: 18px;
  bottom: calc(var(--safe-bottom) + 96px);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--bg-deep);
  font-size: 28px; font-weight: 700;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(232, 162, 104, 0.32), 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.fab-log:hover, .fab-log:active {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 36px rgba(232, 162, 104, 0.42), 0 6px 14px rgba(0,0,0,0.35);
}

/* 📜 Quest card collapsible (lux v80) */
.quest-card-collapsible {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.quest-card-collapsible[open] {
  border-color: var(--gold-line);
  background: rgba(232, 162, 104, 0.04);
}
.quest-card-summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.4px;
  padding: 4px 0;
}
.quest-card-summary::-webkit-details-marker { display: none; }
.quest-eyebrow-text {
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-3);
}
.quest-summary-title {
  font-style: italic;
  color: var(--text);
  font-size: 12.5px;
}

/* 📓 Journal entries (Me tab) */
.journal-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.journal-entry:last-of-type { border-bottom: 0; }
.journal-date {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.journal-text {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
  letter-spacing: 0.1px;
  white-space: pre-wrap;
}

/* 📜 Household constitution block */
.constitution-block {
  padding: 14px 16px;
  background: rgba(232, 162, 104, 0.04);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
}
.constitution-line {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
}

/* 🤝 Climbing partners — local address book rows */
.partner-row {
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.partner-row:hover {
  background: rgba(232, 162, 104, 0.05);
  border-color: var(--gold-line);
}
.partner-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.1px;
}
.partner-meta {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 3px;
  letter-spacing: 0.1px;
}
.partner-drawer-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px;
}

/* 📤 Share-beta drawer */
.share-drawer-summary {
  background: rgba(232, 162, 104, 0.06);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.share-drawer-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; color: var(--accent);
  text-transform: uppercase;
}
.share-drawer-name {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-top: 4px;
  color: var(--text);
}
.share-drawer-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.share-drawer-toggle {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  cursor: pointer;
}
.share-drawer-toggle input { margin-top: 2px; }
.share-drawer-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px;
}

/* 📷 QR code panel inside the share drawer */
.share-qr-zone {
  margin: 10px 0;
  min-height: 0;
  transition: min-height var(--transition);
}
.share-qr-label {
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.share-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 280px;
}
.share-qr-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 📥 Inbound shared-route drawer */
.shared-import-summary {
  background: rgba(76, 194, 255, 0.06);
  border-left: 2px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.shared-import-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; color: var(--sky);
}
.shared-import-name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-top: 6px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.shared-import-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}
.shared-import-bullets {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.shared-import-bullets div {
  padding: 2px 0;
}
.shared-import-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px;
}

/* 🌀 The arc of this route — patina + wisdom thread */
.route-arc {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(232, 162, 104, 0.08), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, rgba(22, 23, 27, 0.85) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-soft);
}
.route-arc-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.route-arc-line {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.route-arc-stats {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: 0.3px;
}
.route-arc-stat { font-weight: 500; }
.route-arc-sep { color: var(--text-3); }
.route-wisdom-header {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--gold-line);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}
.route-wisdom-thread {
  display: flex; flex-direction: column;
  gap: 0;
}
.route-wisdom-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.route-wisdom-entry:last-child { border-bottom: 0; }
.route-wisdom-date {
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.route-wisdom-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  letter-spacing: 0.1px;
  /* Subtle indent + open quote feel */
  padding-left: 2px;
}
.route-wisdom-text::before {
  content: '“';
  color: var(--accent);
  margin-right: 2px;
  font-size: 18px;
  vertical-align: -2px;
  opacity: 0.6;
}
.route-wisdom-text::after {
  content: '”';
  color: var(--accent);
  margin-left: 2px;
  font-size: 18px;
  vertical-align: -2px;
  opacity: 0.6;
}
.route-wisdom-empty {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(232, 162, 104, 0.04);
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.55;
  color: var(--text-2);
  font-style: italic;
}

/* 🏠 Home dashboard — lux landing */
.home-greet {
  padding: 8px 4px 0;
  margin-bottom: 18px;
}
.home-greet-hi {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.1;
}
.home-greet-sub {
  margin-top: 8px;
  font-size: 13.5px; color: var(--text-2);
  line-height: 1.6;
  letter-spacing: 0.1px;
}
.home-primary-cta {
  width: 100%;
  margin: 14px 0 16px !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%) !important;
  border: 0 !important;
  color: var(--bg-deep) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.2px;
  padding: 16px 20px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(232, 162, 104, 0.22), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(232, 162, 104, 0.32), 0 4px 10px rgba(0,0,0,0.35);
}
.home-nudge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(76,194,255,0.08);
  border: 1px solid rgba(76,194,255,0.28);
  border-left-width: 3px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.home-nudge:hover { background: rgba(76,194,255,0.14); }
.home-nudge-icon { font-size: 18px; line-height: 1; }
.home-nudge-text { flex: 1; color: var(--text); }
.home-quick-links {
  display: flex; gap: 8px;
  margin-bottom: 18px;
}
.home-quick-link {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.4px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.home-quick-link:hover {
  background: rgba(232, 162, 104, 0.06);
  border-color: var(--gold-line);
  color: var(--text);
  transform: translateY(-1px);
}
.hql-icon {
  color: var(--accent);
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  height: 22px;
}
.hql-label {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 10.5px;
}
.home-routes-header {
  margin: 24px 0 10px;
  padding-top: 18px;
  position: relative;
}
.home-routes-header::before {
  /* Hairline copper divider with fade-out edges */
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-line) 50%, transparent 100%);
}
.home-routes-h {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 600;
  color: var(--text-3);
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ✈️ Trip Planner — destination plan view */
.trip-plan-cta {
  width: 100%;
  margin: 12px 0;
  background: linear-gradient(135deg, rgba(255,162,43,0.20), rgba(255,200,100,0.10));
  border: 1px solid rgba(255,162,43,0.55);
  color: #FFA22B !important;
  font-size: 14px; font-weight: 700;
  padding: 12px 16px !important;
}
.trip-plan-cta:hover { background: linear-gradient(135deg, rgba(255,162,43,0.28), rgba(255,200,100,0.15)); }
.trip-form { padding: 14px; }
.trip-form-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.trip-form-row label {
  flex: 1 1 140px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.trip-party-row { gap: 8px; }
.trip-party-btn {
  flex: 1 1 80px;
  font-size: 13px !important;
  padding: 8px 10px !important;
}
.trip-party-btn.active {
  background: rgba(255,162,43,0.18);
  border-color: rgba(255,162,43,0.55);
  color: #FFA22B !important;
  font-weight: 700;
}
.trip-dates-sum {
  margin: 8px 4px 14px;
  font-size: 13px; color: var(--muted);
  font-style: italic;
}
.trip-card-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.trip-season-card.good {
  background: rgba(110,219,77,0.06);
  border-left: 3px solid #6EDB4D;
}
.trip-season-card.warn {
  background: rgba(255,162,43,0.06);
  border-left: 3px solid #FFA22B;
}
.trip-season-label {
  font-size: 14px; font-weight: 700;
  margin-bottom: 4px;
}
.trip-season-detail {
  font-size: 13px; color: var(--text); opacity: 0.85;
  line-height: 1.5;
}
.trip-forecast-grid {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 4px 0 8px;
}
.trip-forecast-day {
  flex: 0 0 auto;
  min-width: 76px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 11px;
}
.tfd-date { font-weight: 700; font-size: 11px; }
.tfd-emoji { font-size: 22px; line-height: 1.2; margin: 2px 0; }
.tfd-temps { font-size: 13px; font-weight: 600; color: #FFA22B; }
.tfd-precip { font-size: 10px; }
.trip-packing-label {
  font-size: 14px; font-weight: 700;
  color: var(--accent); margin-bottom: 8px;
}
.trip-packing-section-h {
  font-size: 13px; font-weight: 700;
  margin: 12px 0 6px; color: var(--text);
}
.trip-packing-list {
  margin: 0; padding-left: 20px;
  font-size: 13px; line-height: 1.6;
}
.trip-packing-list li { padding: 1px 0; }
.trip-packing-kids li::marker { color: #6EDB4D; }
.trip-packing-note {
  margin-top: 12px; padding: 8px 12px;
  background: rgba(76,194,255,0.08);
  border-left: 2px solid var(--sky);
  border-radius: 4px;
  font-size: 12px; font-style: italic;
}
.trip-nearby-row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.trip-nearby-row:first-of-type { border-top: 0; }
.trip-nearby-meta { flex: 1; min-width: 0; }
.trip-nearby-name { font-weight: 600; font-size: 13px; }
.trip-nearby-sub { font-size: 11px; }
.trip-resource-row {
  font-size: 13px;
  line-height: 1.6;
  padding: 4px 0;
}
.trip-find-more {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.trip-find-more-link {
  background: rgba(255,162,43,0.08);
  border: 1px solid rgba(255,162,43,0.3);
  color: #FFA22B !important;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.trip-find-more-link:hover { background: rgba(255,162,43,0.16); }

/* 🔓 Beyond the public map — gatekept resources card */
.beyond-card {
  border-left: 3px solid #c773ff;
  background: linear-gradient(135deg, rgba(199,115,255,0.04), rgba(255,255,255,0.02));
}
.beyond-card .trip-card-eyebrow { color: #c773ff; }
.beyond-summary {
  font-size: 13px; line-height: 1.55;
  margin-bottom: 8px;
  font-style: italic;
  color: var(--text); opacity: 0.9;
}
.beyond-section-h {
  font-size: 13px; font-weight: 700;
  margin: 14px 0 6px;
  color: var(--text);
  border-bottom: 1px solid rgba(199,115,255,0.18);
  padding-bottom: 4px;
}
.beyond-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.beyond-row:last-child { border-bottom: 0; }
.beyond-row-title {
  font-size: 13px; line-height: 1.4;
  margin-bottom: 2px;
}
.beyond-row-link {
  display: inline-block;
  font-size: 11px;
  color: #c773ff !important;
  word-break: break-all;
  margin: 2px 0;
}
.beyond-row-hint {
  font-size: 12px;
  background: rgba(199,115,255,0.08);
  padding: 6px 10px;
  border-radius: 6px;
  margin: 4px 0;
  color: var(--text);
}
.beyond-row-note {
  font-size: 12px; color: var(--muted);
  margin-top: 2px; line-height: 1.45;
}
.beyond-tips {
  margin: 4px 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.beyond-tips li {
  padding: 3px 0;
  color: var(--text);
}
.beyond-tips li::marker { color: #c773ff; }
.beyond-caveat {
  margin-top: 14px;
  padding: 8px 12px;
  background: rgba(255,162,43,0.06);
  border-left: 2px solid #FFA22B;
  border-radius: 4px;
  font-size: 11px; font-style: italic;
  color: var(--muted);
}

/* 📺 Embedded safety video — verified YouTube clips per section */
.safety-video-frame {
  margin: 6px 0 14px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(76,194,255,0.25);
  border-radius: 10px;
  overflow: hidden;
}
.safety-video-title {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text);
  background: rgba(76,194,255,0.08);
  border-bottom: 1px solid rgba(76,194,255,0.18);
}
.safety-video-source {
  color: var(--sky);
  font-weight: 600;
}
.safety-video-iframe-wrap {
  position: relative;
  padding-top: 56.25%;  /* 16:9 aspect ratio */
  background: #000;
}
.safety-video-iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.rope-knot-card { border-left: 3px solid var(--sky); }
.rope-knot-when {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--sky);
  background: rgba(76,194,255,0.10);
  padding: 3px 8px; border-radius: 999px;
  margin-bottom: 6px;
}
.rope-knot-aka { font-size: 12px; margin-bottom: 8px; }
.rope-watch-for {
  margin: 10px 0;
  padding: 8px 12px;
  background: rgba(229,91,106,0.08);
  border-left: 3px solid var(--rose);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
.rope-watch-for-label { color: var(--rose); font-weight: 700; }
.rope-stage-card { border-left: 3px solid var(--lime); }
.rope-stage-num {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--lime);
  background: rgba(110,219,77,0.10);
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 6px;
}
.rope-stage-block {
  margin: 8px 0;
  font-size: 13px; line-height: 1.5;
}
.rope-stage-label { color: var(--accent); font-weight: 700; }
.rope-stage-selfcheck {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 13px;
}
.rope-stage-selfcheck-label { font-weight: 700; color: var(--text); }
.rope-stage-note {
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(255,162,43,0.10);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
}
.rope-stage-note-label { color: var(--accent); font-weight: 700; }

/* ----- RPE + body-check chips on the attempt log ----- */
.rpe-row { gap: 4px; flex-wrap: wrap; }
.rpe-chip {
  min-width: 32px; padding: 6px 10px;
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.rpe-chip.rpe-easy  { color: var(--lime); }
.rpe-chip.rpe-mid   { color: var(--sky); }
.rpe-chip.rpe-hard  { color: var(--accent); }
.rpe-chip.rpe-limit { color: var(--rose); }
.rpe-chip.active.rpe-easy  { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.rpe-chip.active.rpe-mid   { background: var(--sky); color: var(--bg); border-color: var(--sky); }
.rpe-chip.active.rpe-hard  { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.rpe-chip.active.rpe-limit { background: var(--rose); color: var(--bg); border-color: var(--rose); }

.body-check-row { gap: 6px; flex-wrap: wrap; }
.body-check-chip {
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}
.body-check-chip.bc-great.active { background: rgba(110,219,77,0.18); border-color: var(--lime); color: var(--lime); }
.body-check-chip.bc-warn.active  { background: rgba(229,91,106,0.18); border-color: var(--rose); color: var(--rose); }

/* ----- Adaptive Sticky struggle card ----- */
.struggle-card.welcome-back {
  background: linear-gradient(135deg, rgba(76,194,255,0.10), rgba(110,219,77,0.05));
  border-color: rgba(76,194,255,0.4);
}
.struggle-card.welcome-back .struggle-eyebrow { color: var(--sky); }
.struggle-card.welcome-back .struggle-tip { border-left-color: var(--sky); }
.struggle-card.welcome-back .struggle-tip-eyebrow { color: var(--sky); }
.struggle-card {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255,162,43,0.10), rgba(229,91,106,0.05));
  border: 1px solid rgba(255,162,43,0.4);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
}
.struggle-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--accent); text-transform: uppercase;
}
.struggle-headline { font-size: 15px; font-weight: 700; color: var(--text); }
.struggle-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.struggle-tip {
  margin-top: 4px; padding: 10px 12px;
  background: var(--surface); border-left: 3px solid var(--accent);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--text);
}
.struggle-tip-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--accent); text-transform: uppercase;
}

/* ----- Log tab ----- */
.log-section-title {
  margin: 18px 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--text-2); text-transform: uppercase;
}
.log-achievement {
  margin-top: 16px;
  padding: 14px; background: linear-gradient(135deg, var(--accent-soft), rgba(229,91,106,0.08));
  border: 1px solid var(--accent); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 4px;
}
.log-ach-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; color: var(--accent); }
.log-ach-grade   { font-size: 28px; font-weight: 800; color: var(--text); }
.log-ach-sub     { font-size: 12px; color: var(--text-2); }

/* Guest climber tile — visually distinct on the login picker. */
.login-profile-guest {
  background: var(--surface-2);
  border-style: dashed;
  opacity: 0.85;
}

/* Pre-session checklist inside the New session drawer. Reflective pause. */
.session-preflight {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.session-preflight-title { font-weight: 700; font-size: 14px; color: var(--accent); }
.session-preflight-sub { font-size: 12px; margin-bottom: 4px; }
.session-preflight-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; font-size: 13px; color: var(--text);
  cursor: pointer;
}
.session-preflight-item input { margin-top: 2px; }
.session-preflight-item input:checked + span { color: var(--text-3); text-decoration: line-through; }

.log-plateau {
  margin-top: 12px; padding: 14px;
  background: linear-gradient(135deg, rgba(110,219,77,0.08), rgba(76,194,255,0.06));
  border: 1px solid rgba(110,219,77,0.35);
  border-radius: var(--radius);
}
.log-plateau-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--lime); margin-bottom: 6px;
}
.log-plateau-text { font-size: 13px; color: var(--text); line-height: 1.55; }

.log-heatmap { margin-top: 4px; }
.log-heatmap-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: 3px;
  padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.log-heatmap-cell {
  aspect-ratio: 1; border-radius: 3px;
  background: var(--surface-2);
}
.log-heatmap-cell.on { background: var(--accent); }
.log-heatmap-legend { margin-top: 6px; font-size: 11px; display: flex; align-items: center; }
.log-heatmap-legend .log-heatmap-cell { width: 10px; height: 10px; aspect-ratio: auto; }

.log-pyramid { margin-top: 4px; }
.log-pyramid-bars {
  padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 5px;
}
.log-pyramid-row {
  display: grid; grid-template-columns: 36px 1fr 28px; gap: 8px;
  align-items: center;
}
.log-pyramid-row.empty .log-pyramid-grade { color: var(--text-3); }
.log-pyramid-grade { font-weight: 700; font-size: 13px; color: var(--text); }
.log-pyramid-bar-wrap { background: var(--surface-2); border-radius: 4px; height: 18px; overflow: hidden; }
.log-pyramid-bar {
  height: 100%; background: var(--accent);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6px;
  font-size: 11px; color: var(--bg); font-weight: 700;
  transition: width 0.24s ease;
}
.log-pyramid-row.empty .log-pyramid-bar { background: var(--surface-2); color: var(--text-3); }
.log-pyramid-count { text-align: right; font-size: 12px; color: var(--text-2); font-weight: 600; }

.log-week-eyebrow {
  margin: 14px 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--text-2); text-transform: uppercase;
}

/* Voice dictation field — mic button + live status under a textarea. */
.voice-field { display: flex; flex-direction: column; gap: 6px; }
.voice-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voice-mic {
  font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); cursor: pointer;
  transition: transform 0.06s ease, background 0.12s ease, border-color 0.12s ease;
}
.voice-mic:active { transform: scale(0.97); }
.voice-mic.listening {
  background: rgba(229,91,106,0.12);
  border-color: var(--rose);
  color: var(--rose);
  animation: voice-pulse 1.4s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,91,106,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(229,91,106,0); }
}
.voice-status { font-size: 12px; font-style: italic; min-height: 14px; }

/* Quick-log pills inside route-row — at-the-wall ergonomics.
   Three taps log an attempt without opening the route detail. */
.route-quick-row {
  display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap;
}
.route-quick-pill {
  font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); cursor: pointer;
  transition: transform 0.06s ease, background 0.12s ease;
}
.route-quick-pill:active { transform: scale(0.95); }
.route-quick-pill.status-send     { color: var(--lime); border-color: rgba(110,219,77,0.4); background: rgba(110,219,77,0.08); }
.route-quick-pill.status-progress { color: var(--sky);  border-color: rgba(76,194,255,0.4); background: rgba(76,194,255,0.08); }
.route-quick-pill.status-fall     { color: var(--rose); border-color: rgba(229,91,106,0.4); background: rgba(229,91,106,0.08); }

.filter-row {
  display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap;
}
.filter-row button {
  /* Lux + larger tap targets */
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.2px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--line-soft);
  min-height: 38px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.filter-row button:hover { color: var(--text); border-color: var(--gold-line); }
.filter-row button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--gold-line);
  font-weight: 600;
}

/* ----------  photo annotation  ---------- */
.annotate-stage {
  position: relative; width: 100%;
  background: var(--surface-2); border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.annotate-stage img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
/* Annotation overlay — SVG sits on top of the photo and shows finger-drawn strokes. */
.annotate-stage .annotation-svg {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; pointer-events: none;
  z-index: 5;
}
/* Capture layer — only present when drawMode is on. Receives pointer events
   above the image but BELOW the markers (markers stay z=8 below this if needed). */
.annotate-stage .annotation-capture {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  z-index: 6;
  cursor: crosshair;
  touch-action: none;       /* prevent scrolling while drawing */
}
.annotate-stage.drawing { outline: 2px dashed var(--accent); outline-offset: -2px; }
.draw-toolbar {
  display: flex; gap: 8px; margin: 8px 0 0; flex-wrap: wrap;
}
.draw-toolbar .active-draw {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
}
.annotate-stage .marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--bg); font-weight: 800; font-size: 14px;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.annotate-stage .marker.body-LH { background: var(--sky); }
.annotate-stage .marker.body-RH { background: var(--lime); }
.annotate-stage .marker.body-LF { background: var(--rose); }
.annotate-stage .marker.body-RF { background: #c773ff; }
.annotate-stage .marker.body-BH { background: var(--accent); }
.annotate-stage .marker.body-MA { background: #fff; color: var(--bg); }
.annotate-stage .marker.active {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 0 4px rgba(255,162,43,0.5);
}
.annotate-stage .marker.dim { opacity: 0.4; }
.annotate-stage .placeholder {
  color: var(--text-3); padding: 40px 20px; text-align: center;
}
.annotate-toolbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin: 12px 0;
}
.annotate-toolbar .hint {
  color: var(--text-2); font-size: 12px; flex: 1; min-width: 200px;
}

.sequence-list { margin: 12px 0 0; }
.sequence-list .step {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center;
  padding: 10px; background: var(--surface-2); border-radius: 10px; margin-bottom: 6px;
}
.sequence-list .step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
}
.sequence-list .step .num.body-LH { background: var(--sky); }
.sequence-list .step .num.body-RH { background: var(--lime); }
.sequence-list .step .num.body-LF { background: var(--rose); }
.sequence-list .step .num.body-RF { background: #c773ff; }
.sequence-list .step .num.body-MA { background: #fff; color: var(--bg); }
.sequence-list .step .desc { font-size: 13px; }
.sequence-list .step .desc small { color: var(--text-2); display: block; }

/* ----------  technique library  ---------- */
.category-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px;
}
.category-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  text-align: left; display: flex; flex-direction: column; gap: 4px;
  min-height: 90px;
}
.category-card .lbl { font-weight: 700; font-size: 14px; }
.category-card .hint { color: var(--text-3); font-size: 11px; line-height: 1.3; }
.category-card .count {
  margin-top: 8px;
  font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.3px;
}

.video-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
}
.video-card .embed {
  position: relative; padding-bottom: 56.25%; height: 0; background: #000;
}
.video-card .embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-card .meta { padding: 10px 14px; display: flex; gap: 8px; align-items: center; }
.video-card .meta .title { flex: 1; font-weight: 600; font-size: 13px; }
.video-card .meta button { color: var(--text-3); font-size: 12px; padding: 4px 8px; }

.channel-list { display: flex; flex-direction: column; gap: 6px; }
.channel-list .channel {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 10px 12px; background: var(--surface-2); border-radius: 10px;
}
.channel-list .channel .n { font-weight: 700; font-size: 13px; }
.channel-list .channel .w { font-size: 11px; color: var(--text-2); }
.channel-list .channel a {
  font-size: 12px; padding: 6px 10px; background: var(--bg);
  border-radius: 8px; border: 1px solid var(--line); color: var(--text);
}

/* ----------  sessions  ---------- */
.session-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px var(--pad); margin-bottom: 10px;
}
.session-row .head { display: flex; align-items: baseline; gap: 8px; }
.session-row .head .date { font-weight: 700; font-size: 14px; }
.session-row .head .gym  { color: var(--text-2); font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.session-row .stats {
  display: flex; gap: 12px; margin-top: 8px;
  color: var(--text-2); font-size: 12px;
}
.session-row .stats b { color: var(--text); font-size: 14px; }
.session-row .climbs {
  margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap;
}

/* ----------  goals  ---------- */
.goal-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 8px;
}
.goal-row .check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); font-weight: 800;
}
.goal-row.done .check { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.goal-row.done .text  { color: var(--text-3); text-decoration: line-through; }
.goal-row .text { font-size: 14px; }
.goal-row .text small { display: block; color: var(--text-3); font-size: 11px; }

/* ----------  stats  ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px;
}
.stat-grid .stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
}
.stat-grid .stat .lbl { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-grid .stat .val { font-weight: 800; font-size: 22px; margin-top: 4px; }

/* ----------  modal / drawer  ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100; backdrop-filter: blur(4px);
}
.drawer {
  width: 100%; max-width: 720px;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  padding: 16px var(--pad) calc(var(--safe-bottom) + 16px);
  max-height: 90dvh; overflow-y: auto;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  animation: drawerIn 0.18s ease-out;
}
@keyframes drawerIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.drawer .grip {
  width: 40px; height: 4px; border-radius: 2px; background: var(--text-3);
  margin: 0 auto 12px; opacity: 0.5;
}
.drawer-title {
  font-size: 17px; font-weight: 700; margin: 0 0 12px;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row .chip {
  padding: 8px 14px; border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.2px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.chip-row .chip:hover {
  color: var(--text);
  border-color: var(--line-soft);
}
.chip-row .chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--gold-line);
  font-weight: 600;
}
/* Horizontally-scrollable variant — used for long lists like grades */
.chip-row.chip-row-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.chip-row.chip-row-scroll .chip {
  flex-shrink: 0;
  min-width: 44px;
  text-align: center;
}

/* ----------  install hint / footer  ---------- */
.notice {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 12px 14px; color: var(--text-2); font-size: 13px; line-height: 1.5;
  margin-bottom: 12px;
}
.notice b { color: var(--text); }

/* ----------  body position guide  ---------- */
.guide-card {
  display: block; width: 100%; text-align: left;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(232, 162, 104, 0.14), transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, rgba(22, 23, 27, 0.85) 100%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.guide-card-eyebrow {
  font-size: 10px; color: var(--accent);
  letter-spacing: 2px; font-weight: 600;
  text-transform: uppercase;
}
.guide-card-title {
  font-family: var(--font-serif);
  font-weight: 500; font-size: 22px;
  margin-top: 8px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.guide-card-sub {
  color: var(--text-2); font-size: 13.5px;
  margin-top: 6px; line-height: 1.55;
  letter-spacing: 0.05px;
}
.guide-card-meta {
  color: var(--text-3); font-size: 11px;
  margin-top: 14px; letter-spacing: 0.6px;
  text-transform: uppercase;
}

.guide-section-title {
  font-size: 12px; color: var(--text-2); margin: 22px 0 6px;
  letter-spacing: 0.6px; text-transform: uppercase; font-weight: 700;
}
.guide-section-blurb {
  color: var(--text-3); font-size: 12px; margin: 0 0 12px;
}
.guide-principle-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.guide-principle-name {
  font-weight: 700; font-size: 15px; color: var(--accent); margin-bottom: 6px;
}
.guide-principle-text {
  font-size: 14px; line-height: 1.55; color: var(--text); margin-bottom: 10px;
}
.guide-principle-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.guide-principle-vids { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.guide-principle-vid {
  background: var(--surface-2); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.guide-principle-vid .embed {
  position: relative; padding-bottom: 56.25%; height: 0; background: #000;
}
.guide-principle-vid .embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.guide-principle-vid-meta {
  padding: 8px 12px; font-size: 12px; color: var(--text-2);
}

.guide-scenario-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  border-left: 3px solid var(--sky);
}
.guide-scenario-situation {
  font-weight: 700; font-size: 14px; color: var(--sky); margin-bottom: 4px;
}
.guide-scenario-tech {
  font-size: 13.5px; line-height: 1.55; color: var(--text); margin-bottom: 10px;
}

.guide-mistake-card {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: flex-start;
  background: rgba(229,91,106,0.08);
  border: 1px solid rgba(229,91,106,0.3);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px;
}
.guide-mistake-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--rose); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.guide-mistake-text {
  font-size: 13px; color: var(--text); line-height: 1.5;
}

/* ----------  Version footer (Me tab)  ---------- */
.version-footer {
  text-align: center; padding: 18px 14px 6px;
  font-size: 11px; line-height: 1.55;
}
.version-footer #version-build {
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.2px;
}

/* ----------  Gym input + "Find me" button row  ---------- */
.gym-input-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch;
}
.gym-find {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 14px; min-height: 44px;
  font-size: 12px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
}
.gym-find:active { transform: scale(0.97); }
.gym-status {
  font-size: 11px; margin-top: 6px; line-height: 1.4;
  min-height: 14px;
}

/* ----------  Hand Technique Catalogue  ---------- */
.guide-card.catalogue-card {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(76, 194, 255, 0.18), transparent 60%),
    var(--surface);
  border-color: var(--sky);
}
.guide-card.catalogue-card .guide-card-eyebrow { color: var(--sky); }

.cat-entry {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.cat-entry-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px;
}
.cat-entry-title {
  flex: 1; font-weight: 700; font-size: 15px; color: var(--text);
}
.cat-entry-level {
  font-size: 10px; letter-spacing: 0.6px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid; background: transparent;
  white-space: nowrap;
}
.cat-entry-video {
  margin: 8px 0 10px;
  border-radius: 10px; overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.cat-entry-video .embed {
  position: relative; padding-bottom: 56.25%; height: 0;
}
.cat-entry-video .embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.cat-entry-video-credit {
  padding: 6px 10px; font-size: 10px; color: var(--text-3);
  background: var(--surface-2); border-top: 1px solid var(--line);
}

.cat-entry-desc {
  font-size: 13px; line-height: 1.5; color: var(--text); margin-bottom: 8px;
}
.cat-entry-safety {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: flex-start;
  background: rgba(229,91,106,0.10); border: 1px solid rgba(229,91,106,0.32);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 10px;
}
.cat-entry-safety-icon {
  color: var(--rose); font-weight: 800; font-size: 13px; text-align: center;
}
.cat-entry-safety span:last-child {
  font-size: 12px; line-height: 1.45; color: var(--text);
}
.cat-entry-actions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.cat-entry-saved-count {
  font-size: 11px; color: var(--lime); font-weight: 700;
  margin-left: auto;
}

/* ----------  Login overlay  ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: linear-gradient(135deg, #0a0b0e 0%, #14161b 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: bsFadeIn 0.22s ease-out;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.login-brand {
  font-weight: 800; font-size: 28px; letter-spacing: 2px;
  text-align: center; color: var(--text);
}
.login-brand span { color: var(--accent); }
.login-tag {
  text-align: center; color: var(--text-3); font-size: 11px;
  letter-spacing: 0.6px; font-style: italic; margin-top: 2px;
}
.login-title {
  text-align: center; font-size: 16px; font-weight: 700;
  margin: 22px 0 14px; color: var(--text);
}
.login-profile {
  display: grid; grid-template-columns: 36px 1fr 24px; gap: 12px; align-items: center;
  width: 100%; padding: 12px 14px; margin-bottom: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text);
  cursor: pointer; text-align: left;
}
.login-profile:hover { background: rgba(255,255,255,0.04); }
.login-profile:active { transform: scale(0.99); }
.login-profile-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--bg);
}
.login-dot-big { width: 56px; height: 56px; font-size: 22px; margin: 14px auto; }
.login-profile-name { font-weight: 700; font-size: 15px; }
.login-profile-lock { color: var(--text-3); font-size: 14px; text-align: right; }
.login-note {
  margin-top: 14px; padding: 10px 12px;
  background: rgba(76,194,255,0.06);
  border: 1px solid rgba(76,194,255,0.18);
  border-radius: 10px;
  color: var(--text-2); font-size: 12px; line-height: 1.5;
}
.login-note b { color: var(--text); }
.login-back {
  background: transparent; color: var(--text-3); border: 0;
  font-size: 12px; padding: 0 0 10px; cursor: pointer;
}
.login-pin {
  display: block; width: 60%; margin: 8px auto;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 22px; letter-spacing: 8px; text-align: center;
}
.login-error {
  text-align: center; color: var(--danger); font-size: 12px;
  min-height: 16px; margin: 4px 0;
}
.login-submit {
  display: block; width: 100%; margin-top: 10px;
  background: var(--accent); color: var(--bg);
  border: 0; border-radius: 10px;
  padding: 14px; font-size: 15px; font-weight: 800;
  cursor: pointer;
}

/* ----------  Privacy & PIN section in Me tab  ---------- */
.me-toggle {
  display: flex; gap: 12px; padding: 10px 0;
  cursor: pointer; align-items: flex-start;
}
.me-toggle input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px;
  accent-color: var(--accent); cursor: pointer;
}
.me-toggle-title { display: block; font-weight: 700; font-size: 14px; color: var(--text); }
.me-toggle-sub { display: block; font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.me-divider {
  height: 1px; background: var(--line);
  margin: 12px 0;
}

/* ----------  Beta variant label on route detail  ---------- */
.beta-label {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 10px 0;
}
.beta-label-tag {
  font-size: 10px; letter-spacing: 1.2px; font-weight: 800;
  color: var(--accent);
  padding: 3px 8px; background: var(--accent-soft); border-radius: 6px;
}
.beta-label-explain { font-size: 12px; color: var(--text-2); flex: 1; min-width: 0; }

.family-private-tag {
  font-size: 9px; color: var(--text-3); margin-left: 6px;
  letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600;
}

/* ----------  Beta Story launch button (on route detail)  ---------- */
.beta-story-launch {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
  width: 100%;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(229,91,106,0.20), transparent 60%),
    linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 10px 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.beta-story-launch:active { transform: scale(0.99); }
.beta-story-launch::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255,162,43,0.18), transparent 50%);
  pointer-events: none;
}
.bs-launch-icon {
  width: 56px; height: 70px; display: flex; align-items: end; justify-content: center;
  position: relative; z-index: 1;
}
.bs-launch-icon svg { width: 100%; height: 100%; }
.bs-launch-text { position: relative; z-index: 1; }
.bs-launch-title { font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: 0.3px; }
.bs-launch-sub { color: var(--text-2); font-size: 12px; margin-top: 2px; font-style: italic; }

/* ----------  Beta Story full-screen overlay (Layer 2)  ---------- */
.beta-story {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: #000;
  animation: bsFadeIn 0.22s ease-out;
}
@keyframes bsFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bs-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85);
}
.bs-dim {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.85) 100%);
}

.bs-stage {
  position: absolute; inset: 0;
  cursor: pointer;
}

.bs-pointer {
  position: absolute;
  width: 36px; height: 36px;
  margin-left: -18px; margin-top: -18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(255,162,43,0.35), 0 4px 12px rgba(0,0,0,0.7);
  animation: bsPointerPulse 1.4s ease-in-out infinite;
  z-index: 3;
}
@keyframes bsPointerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255,162,43,0.25), 0 4px 12px rgba(0,0,0,0.7); }
}

.bs-coach {
  position: absolute;
  width: 14%; max-width: 110px; min-width: 64px;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.45, 0, 0.2, 1), top 0.5s cubic-bezier(0.45, 0, 0.2, 1);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  z-index: 4;
  animation: bsCoachBob 3.4s ease-in-out infinite;
}
@keyframes bsCoachBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
.bs-coach svg { width: 100%; height: auto; display: block; }

.bs-bubble {
  position: absolute;
  left: 50%; bottom: 14%;
  transform: translateX(-50%);
  max-width: 86%; width: 480px;
  background: rgba(26,28,32,0.96);
  color: var(--text);
  border: 1px solid rgba(255,162,43,0.6);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 5;
  animation: bsBubbleIn 0.3s ease-out;
}
@keyframes bsBubbleIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bs-bubble::after {
  content: '';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  background: rgba(26,28,32,0.96);
  border-left: 1px solid rgba(255,162,43,0.6);
  border-top: 1px solid rgba(255,162,43,0.6);
  transform: translateX(-50%) rotate(45deg);
}
.bs-bubble-head {
  font-weight: 800; font-size: 14px; color: var(--accent);
  margin-bottom: 4px;
}
.bs-bubble-body {
  font-size: 15px; line-height: 1.5; color: var(--text);
}

.bs-topbar {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  padding: max(env(safe-area-inset-top, 0px), 12px) 14px 8px;
}
.bs-brand {
  flex: 1; text-align: center;
  font-weight: 800; font-size: 14px; color: var(--accent); letter-spacing: 0.6px;
}
.bs-tag {
  display: block;
  font-size: 10px; font-weight: 500; color: var(--text-3);
  letter-spacing: 0.3px; font-style: italic;
}
.bs-btn {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.bs-btn:active { transform: scale(0.95); }
.bs-btn[aria-pressed="true"] {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.bs-close { padding: 8px 12px; }

.bs-bottom {
  position: relative; z-index: 6; margin-top: auto;
  display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: center;
  padding: 10px 14px max(env(safe-area-inset-bottom, 0px), 14px);
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.bs-nav {
  background: rgba(255,255,255,0.12); color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 12px 14px; font-weight: 700;
  cursor: pointer;
}
.bs-nav:disabled { opacity: 0.4; cursor: not-allowed; }
.bs-nav.bs-next {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
  font-size: 13px;
}
.bs-progress {
  text-align: center; font-size: 11px; color: var(--text-2);
  letter-spacing: 0.6px; font-weight: 700;
}

/* ----------  Family Beta Book  ---------- */
.family-ascent-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.family-ascent-row:first-of-type { border-top: 0; }
.family-ascent-chip {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--bg);
}
.family-ascent-info { min-width: 0; }
.family-ascent-name { font-weight: 700; font-size: 14px; color: var(--text); }
.family-ascent-stats { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.your-ascents { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border-color: var(--accent); }
.ascent-attempt {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.ascent-attempt:last-child { border-bottom: 0; }
.ascent-date { font-size: 12px; color: var(--text-2); }
.ascent-note { width: 100%; font-size: 12.5px; color: var(--text); padding-top: 4px; line-height: 1.4; }
.ascent-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  margin-top: 12px;
}
.ascent-actions .button { padding: 10px 6px; font-size: 12px; min-height: 40px; }

/* ----------  media rows  ---------- */
.media-section { margin-top: 12px; }
.media-label {
  font-size: 10px; color: var(--text-3); letter-spacing: 0.6px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
}
.media-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; margin-bottom: 6px;
}
.media-icon { font-size: 16px; }
.media-row audio { flex: 1; min-width: 0; }
.media-delete {
  background: transparent; color: var(--text-3); font-size: 12px;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); cursor: pointer;
}
.media-delete:hover { color: var(--danger); border-color: var(--danger); }

.media-video {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; margin-bottom: 8px;
}
.video-stage {
  position: relative; width: 100%; background: #000; border-radius: 6px; overflow: hidden;
}
.video-stage video { width: 100%; display: block; }
.pose-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.video-controls { background: transparent; border: 0; padding: 6px 0 0; gap: 6px; }

/* ----------  recorder drawer  ---------- */
.rec-preview {
  width: 100%; max-height: 60vh; background: #000;
  border-radius: 10px; margin-bottom: 8px; display: block;
}
.rec-status {
  font-size: 13px; color: var(--text-2); margin: 8px 0;
}
.rec-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 28px; font-weight: 700; color: var(--accent);
  text-align: center; margin: 4px 0 12px;
}

/* ----------  Today's Quest card  ---------- */
.quest-card {
  display: block; width: 100%; text-align: left;
  background:
    linear-gradient(135deg, rgba(255,162,43,0.18), rgba(110,219,77,0.05)),
    var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0 12px;
  color: var(--text);
  cursor: pointer;
}
.quest-card.done {
  border-color: var(--lime);
  background: linear-gradient(135deg, rgba(110,219,77,0.16), rgba(76,194,255,0.04)), var(--surface);
}
.quest-card:active { transform: scale(0.99); }
.quest-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--accent); letter-spacing: 1.2px; font-weight: 800;
}
.quest-card.done .quest-eyebrow { color: var(--lime); }
.quest-cat-icon { font-size: 14px; }
.quest-title { font-weight: 800; font-size: 17px; margin-top: 6px; }
.quest-kid { color: var(--text-2); font-size: 13px; margin-top: 2px; font-style: italic; }
.quest-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.quest-status {
  font-size: 12px; font-weight: 700; color: var(--text);
}
.quest-status.done { color: var(--lime); }
.quest-mins { font-size: 11px; color: var(--text-3); }

.quest-kid-line {
  font-size: 15px; font-style: italic; color: var(--accent);
  padding: 8px 0; line-height: 1.4;
}
.quest-intent {
  font-size: 14px; line-height: 1.55; color: var(--text);
}

/* ----------  finger-health card (Me tab)  ---------- */
.finger-health-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin: 10px 0;
}
.finger-health-card.youth {
  background: linear-gradient(135deg, rgba(229,91,106,0.10), transparent), var(--surface);
  border-color: rgba(229,91,106,0.45);
}
.fh-eyebrow {
  font-size: 10px; color: var(--text-3); letter-spacing: 1.2px; font-weight: 800;
  margin-bottom: 6px;
}
.finger-health-card.youth .fh-eyebrow { color: var(--rose); }
.fh-line {
  font-size: 13.5px; line-height: 1.55; color: var(--text); margin-bottom: 8px;
}
.fh-list {
  margin: 8px 0; padding-left: 18px; color: var(--text);
  font-size: 13px; line-height: 1.5;
}
.fh-list li { margin: 2px 0; }
.fh-sources {
  margin-top: 10px; font-size: 11px; color: var(--text-3);
  border-top: 1px solid var(--line); padding-top: 8px;
}
.fh-sources a { color: var(--sky); }

/* ----------  safety warning banner  ---------- */
.safety-warn {
  background: rgba(255,162,43,0.10);
  border: 1px solid rgba(255,162,43,0.35);
  border-radius: var(--radius);
  padding: 12px 14px; margin: 10px 0;
}
.safety-warn-title {
  font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: 0.3px;
}
.safety-warn-body {
  color: var(--text); font-size: 12.5px; line-height: 1.5; margin-top: 4px;
}

/* ----------  add-marker mode visual cue  ---------- */
.annotate-stage.adding {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  cursor: crosshair;
  position: relative;
}
.annotate-stage.adding::after {
  content: 'Tap a hold';
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px;
  padding: 4px 12px; border-radius: 999px;
  pointer-events: none;
}
.annotate-stage.adding img { cursor: crosshair; }

.stepper-add {
  margin-top: 10px;
  width: 100%; padding: 10px; border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  border: 1px dashed var(--line);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.stepper-add:active { transform: scale(0.99); }
.stepper-add.active {
  background: var(--accent); color: var(--bg);
  border: 1px solid var(--accent);
}

/* ----------  shadow-figure climber overlay  ---------- */
.climber-figure {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity 0.3s ease;
}
.climber-figure .figure-line {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  transition:
    x1 0.55s cubic-bezier(0.5, 0, 0.25, 1.15),
    y1 0.55s cubic-bezier(0.5, 0, 0.25, 1.15),
    x2 0.55s cubic-bezier(0.5, 0, 0.25, 1.15),
    y2 0.55s cubic-bezier(0.5, 0, 0.25, 1.15);
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.85));
}
.climber-figure .figure-line.active {
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.climber-figure .figure-line.synth {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-dasharray: 2 2;
}
.climber-figure .figure-glow {
  fill: var(--accent);
  opacity: 0;
  transition: cx 0.55s cubic-bezier(0.5, 0, 0.25, 1.15), cy 0.55s cubic-bezier(0.5, 0, 0.25, 1.15), opacity 0.4s ease;
  filter: drop-shadow(0 0 6px var(--accent));
  animation: glow-pulse 1.6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}
.climber-head {
  position: absolute;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.85);
  border: 2px solid var(--bg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    left 0.55s cubic-bezier(0.5, 0, 0.25, 1.15),
    top  0.55s cubic-bezier(0.5, 0, 0.25, 1.15),
    opacity 0.3s ease;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.4);
  opacity: 0;
}

/* Markers stay on top so they remain tappable */
.annotate-stage .marker { z-index: 4; }

/* ----------  stepper  ---------- */
.stepper-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 10px 0;
}
.stepper-eyebrow {
  font-size: 10px; color: var(--accent); letter-spacing: 1.4px; font-weight: 800;
  text-align: center; margin-bottom: 10px;
}
.stepper-dots {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.stepper-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.stepper-dot:active { transform: scale(0.92); }
.stepper-dot.active {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,162,43,0.25);
}
.stepper-controls {
  display: grid; grid-template-columns: 40px 1fr 40px auto; gap: 8px; align-items: center;
}
.stepper-arrow {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  cursor: pointer;
}
.stepper-arrow:active { transform: scale(0.94); }
.stepper-label {
  text-align: center; font-weight: 700; font-size: 14px; color: var(--text);
}
.stepper-play {
  padding: 8px 14px; min-height: 40px; border-radius: 10px;
  background: var(--accent); color: var(--bg); font-weight: 800;
  border: 0; font-size: 13px;
  cursor: pointer;
}
.stepper-play:active { transform: scale(0.96); }
.stepper-hint {
  color: var(--text-3); font-size: 11px; text-align: center; margin-top: 8px; line-height: 1.4;
}

/* ----------  workspace hint (empty markers state)  ---------- */
.workspace-hint {
  background: var(--accent-soft); border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
}
.workspace-hint-title {
  font-weight: 800; color: var(--accent); font-size: 14px; letter-spacing: 0.3px;
}
.workspace-hint-sub {
  color: var(--text-2); font-size: 12.5px; line-height: 1.5; margin-top: 4px;
}

/* ----------  discipline note in analysis  ---------- */
.analysis-discipline {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(76,194,255,0.10); border: 1px solid rgba(76,194,255,0.25);
  color: var(--sky); font-size: 12px; line-height: 1.4;
}
.analysis-discipline-icon { font-weight: 800; font-size: 10px; padding-top: 2px; }
.analysis-discipline span:last-child { color: var(--text); }

/* ----------  route analysis card  ---------- */
.analysis-card {
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(76,194,255,0.16), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
}
.analysis-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.analysis-eyebrow {
  font-size: 10px; color: var(--sky); letter-spacing: 1.4px; font-weight: 800;
}
.analysis-angle {
  font-size: 11px; color: var(--text);
  background: var(--surface-2); padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); font-weight: 700;
}
.analysis-line { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.analysis-sub  { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 10px; }
.analysis-block {
  display: grid; grid-template-columns: 92px 1fr; gap: 6px; padding: 6px 0;
  border-top: 1px solid var(--line);
}
.analysis-label {
  font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 700; padding-top: 2px;
}
.analysis-value { font-size: 13px; color: var(--text); line-height: 1.45; }
.analysis-reason { color: var(--text-2); font-weight: 400; }
.analysis-finger {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  padding: 8px 10px; border-radius: 8px; font-size: 12px;
}
.analysis-finger.finger-high { background: rgba(229,91,106,0.12); color: var(--rose); }
.analysis-finger.finger-med  { background: rgba(255,162,43,0.12); color: var(--accent); }
.analysis-finger-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}

/* ----------  per-move solver card (inside drawer)  ---------- */
.solver-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.solver-eyebrow {
  font-size: 10px; color: var(--accent); letter-spacing: 1.4px; font-weight: 800;
  margin-bottom: 8px;
}
.solver-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.solver-row:first-of-type { border-top: 0; padding-top: 4px; }
.solver-label {
  font-size: 10px; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.6px; font-weight: 700; padding-top: 3px;
}
.solver-value { font-size: 13px; line-height: 1.5; color: var(--text); }
.solver-principle { font-weight: 700; color: var(--accent); }
.solver-cue       { font-weight: 700; color: var(--lime); font-style: italic; }
.solver-detail    { color: var(--text); }
.solver-row.solver-warn .solver-label { color: var(--rose); }
.solver-row.solver-warn .solver-value { color: var(--text-2); }

.solver-finger {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.4;
}
.solver-finger.finger-high { background: rgba(229,91,106,0.12); border: 1px solid rgba(229,91,106,0.35); color: var(--rose); }
.solver-finger.finger-med  { background: rgba(255,162,43,0.12); border: 1px solid rgba(255,162,43,0.35); color: var(--accent); }
.solver-finger.finger-low  { background: rgba(110,219,77,0.10); border: 1px solid rgba(110,219,77,0.30); color: var(--lime); }
.solver-finger-dot {
  width: 10px; height: 10px; border-radius: 50%; background: currentColor; margin-top: 4px; flex-shrink: 0;
}
.solver-finger-label { font-weight: 800; }
.solver-finger-detail { color: var(--text); font-weight: 400; }

/* ----------  technique chip on sequence step  ---------- */
.sequence-list .step .desc .desc-line { font-size: 13px; font-weight: 600; color: var(--text); }
.sequence-list .step .desc .desc-chips { margin-top: 6px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(255, 162, 43, 0.4);
  font-size: 11px; font-weight: 700;
  cursor: pointer; line-height: 1.4;
}
.tech-chip:active { transform: scale(0.97); }
.tech-chip .tech-chip-icon { font-size: 9px; }
.tech-chip .tech-chip-count {
  background: var(--accent); color: var(--bg);
  border-radius: 999px; padding: 0 6px;
  font-size: 10px; min-width: 14px; text-align: center;
}
.tech-chip.suggested {
  background: var(--surface-2); color: var(--text-2);
  border-color: var(--line);
}
.tech-chip.suggested .tech-chip-icon { color: var(--text-3); }
.tech-chip.ghost {
  background: var(--surface-2); color: var(--text-2);
  border: 1px dashed var(--line);
}
.category-card.active-tag {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}

/* ----------  add-video drawer  ---------- */
.add-video-help {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 12px;
  font-size: 12.5px; line-height: 1.5; color: var(--text-2);
}
.add-video-help b { color: var(--text); }
.add-video-preview {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px; margin-bottom: 12px;
}
.add-video-preview-label {
  font-size: 10px; letter-spacing: 0.8px; color: var(--text-3);
  text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
}
.add-video-preview .embed {
  position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 6px; overflow: hidden;
}
.add-video-preview .embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.provider-badge {
  display: inline-block; margin-left: 8px;
  padding: 1px 6px; border-radius: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.6px;
  background: var(--surface-2); color: var(--text-3);
  vertical-align: middle;
}

/* ----------  draft banner  ---------- */
.draft-banner {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 12px 14px; margin: 14px 0 0;
  cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.draft-banner:active { transform: scale(0.99); }
.draft-banner-title { font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: 0.3px; }
.draft-banner-sub   { font-size: 12px; color: var(--text-2); }

/* ----------  utility  ---------- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-3); font-size: 12px; }
.right { text-align: right; }

/* Profile-themed accents for the active profile's name only */
.app-header .profile-chip .name[data-profile="dinah"]   { color: var(--rose); }
.app-header .profile-chip .name[data-profile="luca"]    { color: var(--lime); }
.app-header .profile-chip .name[data-profile="alessia"] { color: var(--sky); }
