/* In-page navigation: tabs, the pill sub navigation, tab panels and the wizard step rail. */

.tabs {
  display: flex; gap: 2px; margin-bottom: 20px; padding: 0 10px; overflow-x: auto; overflow-y: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-card);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs .tab {
  padding: 14px 14px 12px;
  border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  color: var(--ink-3); font-size: var(--fs-s); font-weight: 500; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover, .tabs .tab:hover { color: var(--ink); }
.tabs a.on, .tabs .tab.on { color: var(--brand-text); border-bottom-color: var(--brand); font-weight: 600; }

.subnav {
  display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; overflow-x: auto;
  border-radius: var(--r-m); background: var(--panel-3); scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-s);
  color: var(--ink-3); font-size: var(--fs-s); font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--sh-xs); }

/* Tab panels: only the chosen one shows. */
.rpanel, .spanel, .mpanel { display: none; }
.rpanel.on, .spanel.on, .mpanel.on { display: block; }

/* ---------- Wizard steps: a small block at the top of the Summary card ---------- */
.wsteps { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-l); background: var(--panel-2); border: 1px solid var(--line-soft); }
.wsteps-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wsteps-top b { font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.wsteps-top span { font-size: var(--fs-xs); color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wsteps-bars { display: flex; gap: 4px; margin-top: 10px; }
.wsteps-bars > * { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); }
.wsteps-bars > .done { background: var(--brand-text); opacity: .45; }
.wsteps-bars > a.done:hover { opacity: 1; }
.wsteps-bars > .now { background: var(--brand); }
.wsteps-next { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-4); }

