/* Human body page: extends style.css */
a.brand { color: inherit; text-decoration: none; }
.site-nav a.car-tab { text-decoration: none; }

.scene-tabs {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
}
.mode-tab {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active { background: #f43f5e; color: #fff; }

.label-layer { position: absolute; inset: 0; pointer-events: none; }
.sys-label {
  display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: rgba(7, 11, 18, 0.78); border: 1px solid var(--line-strong); color: var(--text); transition: opacity 0.2s;
}
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }

/* overview CTA + system chips */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.route-grid button {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--text);
}
.route-grid button:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.route-grid .wide { grid-column: 1 / -1; }
.route-grid .primary { background: linear-gradient(135deg, #e11d48, #be123c); border-color: transparent; font-weight: 600; }
.route-grid .primary:hover { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.route-grid.cta { margin: 16px 0 4px; }
.sys-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sys-chip { margin: 0 !important; cursor: pointer; }
.sys-chip .sw { background: var(--c); }

/* flow panel */
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 2px; font-size: 12px; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.hr-control { display: flex; align-items: center; gap: 12px; }
.hr-control input { flex: 1; accent-color: #f43f5e; }
.hr-control .mono { font-size: 12px; min-width: 62px; text-align: right; }
.hr-presets { display: flex; gap: 4px; margin-top: 6px; }
.hr-presets button {
  flex: 1; border: 1px solid var(--line); background: transparent; border-radius: 7px; padding: 4px 0; font-size: 11.5px; color: var(--muted);
}
.hr-presets button:hover { color: var(--text); border-color: var(--line-strong); }

.toolbar button.flow-btn.active { background: #f43f5e; color: #fff; }

/* journey / nerve caption */
.flow-caption {
  position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px); z-index: 13;
  width: min(440px, calc(100% - 680px)); min-width: 300px;
  padding: 12px 14px; border-radius: 14px; background: rgba(9, 14, 24, 0.9); border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.flow-caption.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
body:has(.flow-caption.show) .hint { display: none; }
.j-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.j-step { font-size: 10.5px; color: #fda4af; letter-spacing: 0.06em; text-transform: uppercase; }
.j-dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.j-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.j-dots i.done { background: #9f1239; }
.j-dots i.now { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.j-title { font-weight: 700; font-size: 15px; margin: 6px 0 2px; letter-spacing: -0.01em; }
.j-text { font-size: 13px; color: #cbd5e1; line-height: 1.5; }
.j-actions { display: flex; gap: 6px; margin-top: 10px; }
.j-actions button {
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 5px 10px; font-size: 12px;
}
.j-actions button:hover { border-color: #f43f5e; }
.j-actions .ghost { margin-left: auto; border-color: transparent; background: transparent; color: var(--muted); }

@media (max-width: 1180px) {
  .flow-caption { width: min(420px, calc(100% - 590px)); }
}
@media (max-width: 900px) {
  .scene-tabs { margin-left: auto; }
  .mode-tab { padding: 5px 9px; font-size: 12px; }
  .flow-caption { top: 50px; width: calc(100% - 32px); min-width: 0; }
}
@media (max-width: 420px) {
  .scene-tabs .mode-tab[data-scene="nerve"] { display: none; }
}
