/* CTO-158: new navigation. Bottom bar (Home, Records, +, History, Share), Home hero,
   Records pages. Matches the founder-approved mockup of 2026-10-21 on the locked palette.
   Active tab = bold + accent + a bar on top, never colour alone. Tap targets >= 48px. */

.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic--lg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

/* ── Bottom bar ───────────────────────────────────────────────────────── */

.vault-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  height: calc(var(--v-bar-height) + env(safe-area-inset-bottom, 0px));
  padding: 0 8px env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.vault-nav-tab,
.vault-nav-tab:visited {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  margin-top: -1px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-top: 3px solid transparent;
}

.vault-nav-tab.active,
.vault-nav-tab.active:visited {
  font-weight: 700;
  color: var(--accent);
  border-top-color: var(--accent);
}

.vault-nav-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.nav-plus-slot {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

.nav-plus,
.nav-plus:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-top: -26px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 115, 149, .35);
}

.nav-plus:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 2px;
}

/* ── Records pages ────────────────────────────────────────────────────── */

.page-sub {
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.back-link,
.back-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.back-link:focus-visible,
.outline-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.outline-link,
.outline-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  background: var(--bg);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.outline-link .ic {
  width: 20px;
  height: 20px;
}

.vault-panel-header {
  align-items: flex-end;
}

/* ── Check the scan: what is being read ──────────────────────────────── */

.scan-kind {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--v-radius-card);
  box-shadow: var(--v-card-shadow);
}

.scan-kind-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
}

.scan-kind-icon svg {
  width: 22px;
  height: 22px;
}

.scan-kind-txt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
