/* ================================================================
   YourVault — app.css
   Single shared stylesheet: palette, layout, components, dark mode.
   ================================================================ */

/* ===== 1. Light-theme tokens ===== */
:root,
[data-bs-theme="light"] {
  --yv-bg: #f8fafc;
  --yv-surface: #ffffff;
  --yv-text: #0f172a;
  --yv-text-muted: #5c6b7f;
  --yv-text-heading: #0f172a;
  --yv-border: #e2e8f0;
  --yv-navy: #1e293b;
  --yv-emerald: #059669;
  --yv-amber: #d97706;
  --yv-rose: #e11d48;
  --yv-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.04);
  --yv-shadow-lg: 0 4px 6px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.08);
  --yv-radius: .625rem;
  --yv-radius-sm: .45rem;
  --yv-font: "Inter Variable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --yv-font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  /* sidebar */
  --yv-sidebar-bg: #1e293b;
  --yv-sidebar-text: #94a3b8;
  --yv-sidebar-text-active: #ffffff;
  --yv-sidebar-hover: rgba(255,255,255,.06);
  --yv-sidebar-w: 15.5rem;
  /* topbar */
  --yv-topbar-bg: var(--yv-surface);
  --yv-topbar-border: var(--yv-border);
  /* Bootstrap overrides */
  --bs-primary: var(--yv-navy);
  --bs-primary-rgb: 30,41,59;
  --bs-body-bg: var(--yv-bg);
  --bs-body-color: var(--yv-text);
  --bs-border-color: var(--yv-border);
  --bs-success: var(--yv-emerald);
  --bs-success-rgb: 5,150,105;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245,158,11;
  --bs-danger: var(--yv-rose);
  --bs-danger-rgb: 225,29,72;
  --bs-info: #0d9488;
  --bs-info-rgb: 13,148,136;
  --bs-secondary-color: var(--yv-text-muted);
}

/* ===== 2. Dark-theme tokens ===== */
[data-bs-theme="dark"] {
  --yv-bg: #0f172a;
  --yv-surface: #1e293b;
  --yv-text: #e2e8f0;
  --yv-text-muted: #94a3b8;
  --yv-text-heading: #f1f5f9;
  --yv-border: #334155;
  --yv-shadow: 0 1px 3px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.18);
  --yv-shadow-lg: 0 4px 8px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.22);
  --yv-sidebar-bg: #0c1222;
  --yv-sidebar-text: #8494a7;
  --yv-sidebar-text-active: #e2e8f0;
  --yv-sidebar-hover: rgba(255,255,255,.04);
  --yv-topbar-bg: #1e293b;
  --yv-topbar-border: #334155;
  --bs-body-bg: var(--yv-bg);
  --bs-body-color: var(--yv-text);
  --bs-border-color: var(--yv-border);
  --bs-secondary-color: var(--yv-text-muted);
  color-scheme: dark;
}

/* ===== 3. Base ===== */
body {
  font-family: var(--yv-font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== 4. App shell — sidebar ===== */
.yv-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--yv-sidebar-w);
  background: var(--yv-sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: transform .22s ease;
}

.yv-sidebar-header {
  padding: 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.yv-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: #fff;
}

.yv-sidebar-brand:hover { color: #fff; }

.yv-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .55rem;
  background: linear-gradient(145deg, #334155, #475569);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: -.04em;
  flex-shrink: 0;
}

.yv-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.yv-sidebar-nav {
  flex: 1;
  padding: .75rem .65rem;
  overflow-y: auto;
}

.yv-sidebar-label {
  display: block;
  padding: .35rem .65rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--yv-sidebar-text);
  margin-top: .75rem;
  margin-bottom: .15rem;
}

.yv-sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  border-radius: var(--yv-radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--yv-sidebar-text);
  text-decoration: none;
  transition: background .12s, color .12s;
  border: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: transparent;
}

.yv-sidebar-link:hover,
.yv-sidebar-link:focus-visible {
  background: var(--yv-sidebar-hover);
  color: var(--yv-sidebar-text-active);
}

.yv-sidebar-link:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: -2px;
}

.yv-sidebar-link.active {
  background: rgba(255,255,255,.1);
  color: var(--yv-sidebar-text-active);
}

.yv-sidebar-link--danger {
  color: #fca5a5;
}

.yv-sidebar-link--danger:hover,
.yv-sidebar-link--danger:focus-visible {
  color: #fecaca;
  background: rgba(252,165,165,.1);
}

.yv-sidebar-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: .75;
}

.yv-sidebar-link:hover svg,
.yv-sidebar-link.active svg { opacity: 1; }

.yv-sidebar-footer {
  padding: .75rem .65rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.yv-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1039;
}

@media (max-width: 991.98px) {
  .yv-sidebar {
    transform: translateX(-100%);
  }
  body.yv-sidebar-open .yv-sidebar {
    transform: translateX(0);
  }
  body.yv-sidebar-open .yv-sidebar-overlay {
    display: block;
  }
}

/* ===== 5. App shell — topbar ===== */
.yv-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  background: var(--yv-topbar-bg);
  border-bottom: 1px solid var(--yv-topbar-border);
  min-height: 3.25rem;
}

.yv-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--yv-radius-sm);
  border: 1px solid var(--yv-border);
  background: transparent;
  color: var(--yv-text-muted);
  cursor: pointer;
  transition: background .12s;
}

.yv-sidebar-toggle:hover {
  background: var(--yv-bg);
}

.yv-sidebar-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.yv-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--yv-radius-sm);
  border: 1px solid var(--yv-border);
  background: transparent;
  color: var(--yv-text-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.yv-theme-btn:hover {
  background: var(--yv-bg);
  color: var(--yv-text);
}

.yv-theme-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

[data-bs-theme="light"] .yv-theme-icon-dark,
[data-bs-theme="dark"] .yv-theme-icon-light { display: none; }

/* ===== 6. App shell — content ===== */
.yv-content {
  min-height: 100vh;
}

@media (min-width: 992px) {
  .yv-content {
    margin-left: var(--yv-sidebar-w);
  }
}

.yv-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
}

/* ===== 7. Auth shell (no sidebar) ===== */
.yv-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yv-bg);
  padding: 2rem 1rem;
}

.yv-auth-card {
  border: 1px solid var(--yv-border);
  border-radius: var(--yv-radius);
  box-shadow: var(--yv-shadow-lg);
  background: var(--yv-surface);
  overflow: hidden;
  width: 100%;
}

.yv-auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
  background: linear-gradient(145deg, #1e293b, #334155);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.04em;
  box-shadow: 0 4px 14px rgba(30,41,59,.35);
}

.yv-auth-title {
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--yv-text-heading);
}

.yv-auth-lead {
  color: var(--yv-text-muted);
  font-size: .92rem;
}

.yv-auth-footer a {
  font-weight: 500;
  color: var(--yv-text-muted);
  text-decoration: none;
}

.yv-auth-footer a:hover {
  color: var(--yv-text);
  text-decoration: underline;
}

/* ===== 8. Page headings ===== */
.yv-page-title {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.03em;
  color: var(--yv-text-heading);
}

/* ===== 9. Cards ===== */
.yv-card {
  border: 1px solid var(--yv-border);
  border-radius: var(--yv-radius);
  box-shadow: var(--yv-shadow);
  background: var(--yv-surface);
}

.yv-card .card-header {
  background: var(--yv-bg);
  border-bottom: 1px solid var(--yv-border);
  font-weight: 600;
  font-size: .875rem;
  color: var(--yv-text-muted);
  padding: .7rem 1.15rem;
  border-radius: var(--yv-radius) var(--yv-radius) 0 0;
}

.yv-card .card-body { padding: 1.15rem; }

/* ===== 10. Buttons ===== */
.btn {
  border-radius: var(--yv-radius-sm);
  font-weight: 500;
  padding: .45rem 1rem;
}

.btn-sm {
  padding: .3rem .65rem;
  font-size: .8125rem;
  border-radius: calc(var(--yv-radius-sm) - .05rem);
}

.btn-primary {
  background-color: var(--yv-navy);
  border-color: var(--yv-navy);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30,41,59,.15);
}

.btn-primary:hover {
  background-color: #334155;
  border-color: #334155;
  color: #fff;
}

.btn-secondary {
  background-color: #64748b;
  border-color: #64748b;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #475569;
  border-color: #475569;
  color: #fff;
}

.btn-outline-primary {
  --bs-btn-color: #1e293b;
  --bs-btn-border-color: #1e293b;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1e293b;
  --bs-btn-hover-border-color: #1e293b;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0f172a;
  --bs-btn-active-border-color: #0f172a;
}

.btn-outline-secondary {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #94a3b8;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #475569;
  --bs-btn-hover-border-color: #475569;
}

.btn-outline-danger {
  --bs-btn-color: #be123c;
  --bs-btn-border-color: #be123c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #be123c;
  --bs-btn-hover-border-color: #be123c;
}

/* ===== 11. Forms ===== */
.form-control, .form-select {
  border-radius: var(--yv-radius-sm);
  border-color: var(--yv-border);
  background-color: var(--yv-surface);
  color: var(--yv-text);
}

.form-control:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 .2rem rgba(30,41,59,.12);
}

.form-label {
  font-weight: 600;
  font-size: .875rem;
  color: var(--yv-text-muted);
  margin-bottom: .35rem;
}

/* ===== 12. Alerts ===== */
.alert {
  border-radius: var(--yv-radius-sm);
  border: none;
  box-shadow: var(--yv-shadow);
}

[data-bs-theme="light"] .alert-danger  { background: #fff1f2; color: #9f1239; }
[data-bs-theme="light"] .alert-warning { background: #fffbeb; color: #92400e; }
[data-bs-theme="light"] .alert-success { background: #ecfdf5; color: #065f46; }
[data-bs-theme="light"] .alert-info    { background: #f0fdfa; color: #115e59; }

[data-bs-theme="dark"] .alert-danger  { background: rgba(225,29,72,.12); color: #fca5a5; }
[data-bs-theme="dark"] .alert-warning { background: rgba(245,158,11,.1); color: #fde68a; }
[data-bs-theme="dark"] .alert-success { background: rgba(5,150,105,.12); color: #6ee7b7; }
[data-bs-theme="dark"] .alert-info    { background: rgba(13,148,136,.1); color: #5eead4; }

/* ===== 12b. Dark-mode button contrast ===== */
[data-bs-theme="dark"] .btn-primary {
  background-color: #334155;
  border-color: #475569;
  color: #f1f5f9;
}
[data-bs-theme="dark"] .btn-primary:hover {
  background-color: #475569;
  border-color: #64748b;
  color: #fff;
}
[data-bs-theme="dark"] .btn-outline-primary {
  --bs-btn-color: #93c5fd;
  --bs-btn-border-color: #93c5fd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2563eb;
  --bs-btn-hover-border-color: #2563eb;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1d4ed8;
  --bs-btn-active-border-color: #1d4ed8;
}
[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: #cbd5e1;
  --bs-btn-border-color: #475569;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #475569;
  --bs-btn-hover-border-color: #64748b;
}
[data-bs-theme="dark"] .btn-outline-danger {
  --bs-btn-color: #fca5a5;
  --bs-btn-border-color: #fca5a5;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #dc2626;
  --bs-btn-hover-border-color: #dc2626;
}

/* ===== 13. Tables ===== */
.yv-table-wrap {
  border-radius: var(--yv-radius);
  overflow: hidden;
  box-shadow: var(--yv-shadow);
  border: 1px solid var(--yv-border);
  background: var(--yv-surface);
}

.yv-table-wrap .table { margin-bottom: 0; }

.yv-table-wrap thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--yv-text-muted);
  background: var(--yv-bg);
  border-bottom: 1px solid var(--yv-border);
  padding: .8rem 1rem;
}

.yv-table-wrap tbody td {
  padding: .85rem 1rem;
  vertical-align: middle;
  border-color: var(--yv-border);
  color: var(--yv-text);
}

.yv-table-wrap tbody tr:hover td {
  background: var(--yv-bg);
}

/* ===== 14. Strength feedback ===== */
.yv-strength-feedback {
  padding: .7rem .9rem;
  background: var(--yv-bg);
  border: 1px solid var(--yv-border);
  border-radius: var(--yv-radius-sm);
  margin-top: .5rem;
}

.yv-strength-feedback .progress {
  height: .5rem;
  border-radius: 100px;
  background-color: var(--yv-border);
  overflow: hidden;
}

.yv-strength-feedback .progress-bar {
  border-radius: 100px;
  transition: width .25s ease, background-color .2s ease;
}

.yv-strength-feedback .progress-bar.bg-danger  { background-color: #fb7185 !important; }
.yv-strength-feedback .progress-bar.bg-warning { background-color: #fbbf24 !important; }
.yv-strength-feedback .progress-bar.bg-info    { background-color: #2dd4bf !important; }
.yv-strength-feedback .progress-bar.bg-success { background-color: #34d399 !important; }

.yv-strength-feedback .strength-label.badge {
  font-weight: 600;
  font-size: .75rem;
  padding: .3em .6em;
  border-radius: 100px;
  margin-top: .3rem;
}

.yv-strength-feedback .strength-label.text-bg-danger  { background-color: #fb7185 !important; color: #450a0a !important; }
.yv-strength-feedback .strength-label.text-bg-warning { background-color: #fcd34d !important; color: #78350f !important; }
.yv-strength-feedback .strength-label.text-bg-info    { background-color: #5eead4 !important; color: #134e4a !important; }
.yv-strength-feedback .strength-label.text-bg-success { background-color: #6ee7b7 !important; color: #064e3b !important; }

.yv-strength-feedback .strength-reasons {
  padding-left: 1.1rem;
  margin-top: .45rem !important;
  color: var(--yv-text-muted) !important;
}

/* ===== 15. Vault list ===== */
.yv-filter-bar {
  background: var(--yv-surface);
  border: 1px solid var(--yv-border);
  border-radius: var(--yv-radius);
  padding: .9rem 1.1rem;
  box-shadow: var(--yv-shadow);
}

.yv-kind-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  font-size: .875rem;
  color: var(--yv-text-muted);
}

.yv-kind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yv-text-muted);
}

.yv-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.yv-icon--lg {
  width: 2.75rem;
  height: 2.75rem;
}

.yv-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--yv-radius);
  border: 1px dashed var(--yv-border);
  background: var(--yv-surface);
  box-shadow: var(--yv-shadow);
}

.yv-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--yv-text-muted);
  opacity: .7;
}

.yv-empty-text {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 16. Vault view ===== */
.yv-detail-meta {
  background: var(--yv-surface);
  border: 1px solid var(--yv-border);
  border-radius: var(--yv-radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--yv-shadow);
}

.yv-detail-meta dt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--yv-text-muted);
  font-weight: 600;
}

.yv-detail-meta dd {
  margin-bottom: .65rem;
  font-weight: 500;
  color: var(--yv-text);
}

.yv-detail-meta dd:last-child { margin-bottom: 0; }

.yv-secret-card .card-body { padding: 0; }

.yv-secret-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  padding: .55rem 1rem;
  background: var(--yv-bg);
  border-bottom: 1px solid var(--yv-border);
}

.yv-secret-pre {
  margin: 0;
  padding: 1.15rem;
  font-size: .875rem;
  line-height: 1.55;
  background: var(--yv-surface);
  border: none;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--yv-font-mono);
  color: var(--yv-text);
}

.yv-secret-pre.yv-masked {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.yv-secret-pre.yv-secret-unloaded {
  color: var(--yv-text-muted, #6c757d);
  font-style: italic;
}

.yv-context-card {
  border: 1px solid var(--yv-border);
  border-radius: var(--yv-radius);
  box-shadow: var(--yv-shadow);
  background: var(--yv-surface);
}

.yv-context-card .card-header {
  background: var(--yv-bg);
  border-bottom: 1px solid var(--yv-border);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--yv-text-muted);
  padding: .65rem 1rem;
}

.yv-context-card .card-body { padding: 1rem; }

.yv-meta-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--yv-border);
}

.yv-meta-row:last-child { border-bottom: none; }

.yv-meta-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--yv-text-muted);
}

.yv-meta-value {
  font-weight: 500;
  font-size: .875rem;
  color: var(--yv-text);
  word-break: break-word;
}

/* ===== 17. Password health ===== */
.yv-stat-card {
  border: none;
  border-radius: var(--yv-radius);
  box-shadow: var(--yv-shadow);
  background: var(--yv-surface);
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

.yv-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--yv-shadow-lg);
}

.yv-stat-card .card-body { padding: 1.25rem 1rem; }

.yv-stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--yv-text-muted);
  margin-bottom: .3rem;
}

.yv-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--yv-text-heading);
}

.yv-stat-card--rose   { border-top: 4px solid #fb7185; }
.yv-stat-card--rose .yv-stat-value  { color: #e11d48; }
.yv-stat-card--amber  { border-top: 4px solid #fbbf24; }
.yv-stat-card--amber .yv-stat-value { color: #d97706; }
.yv-stat-card--teal   { border-top: 4px solid #2dd4bf; }
.yv-stat-card--teal .yv-stat-value  { color: #0d9488; }

[data-bs-theme="dark"] .yv-stat-card--rose .yv-stat-value  { color: #fb7185; }
[data-bs-theme="dark"] .yv-stat-card--amber .yv-stat-value { color: #fbbf24; }
[data-bs-theme="dark"] .yv-stat-card--teal .yv-stat-value  { color: #2dd4bf; }

.yv-risk-badge {
  font-weight: 600;
  font-size: .75rem;
  padding: .35em .65em;
  border-radius: 100px;
}

.yv-btn-fix {
  font-weight: 600;
  border-radius: var(--yv-radius-sm);
  box-shadow: 0 1px 2px rgba(190,18,60,.2);
}

/* ===== 18. Account ===== */
.yv-account-actions { gap: .5rem; }
.yv-account-actions .btn { border-radius: var(--yv-radius-sm); }

/* ===== 19. Form actions ===== */
.yv-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: .85rem;
  border-top: 1px solid var(--yv-border);
}

.yv-form-page .yv-page-title { margin-bottom: .25rem; }

/* ===== 20. Backup codes ===== */
.yv-backup-codes li:last-child { border-bottom: none !important; }

/* ===== 21. Onboarding callouts ===== */
.yv-callout {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--yv-radius);
  border: 1px solid var(--yv-border);
  background: var(--yv-surface);
  box-shadow: var(--yv-shadow);
  margin-bottom: 1.25rem;
  border-left: 4px solid #3b82f6;
}

.yv-callout-body { flex: 1; }

.yv-callout-title {
  font-weight: 700;
  font-size: .8125rem;
  color: var(--yv-text-heading);
  margin-bottom: .2rem;
}

.yv-callout-text {
  font-size: .8125rem;
  color: var(--yv-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.yv-callout-dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  border-radius: var(--yv-radius-sm);
  background: transparent;
  color: var(--yv-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition: background .12s;
}

.yv-callout-dismiss:hover {
  background: var(--yv-bg);
  color: var(--yv-text);
}

/* ===== 22. Security badge ===== */
.yv-security-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--yv-emerald);
  background: rgba(5,150,105,.08);
  border-radius: 100px;
  padding: .3em .7em;
}

.yv-security-chip svg {
  width: .85rem;
  height: .85rem;
}

/* ===== 23. Favourite button ===== */
.yv-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--yv-radius-sm);
  background: transparent;
  color: var(--yv-text-muted);
  cursor: pointer;
  transition: color .12s, background .12s;
}

.yv-favorite-btn:hover {
  background: var(--yv-bg);
  color: #f59e0b;
}

.yv-favorite-btn.active {
  color: #f59e0b;
}

.yv-favorite-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ===== 24. Utility classes (CSP-safe replacements for inline styles) ===== */
.yv-d-none { display: none; }
.yv-text-muted-var { color: var(--yv-text-muted); }
.yv-text-var { color: var(--yv-text); }
.yv-fav-col { width: 2.5rem; }
.yv-qr-wrap {
  display: inline-block;
  max-width: 220px;
  width: 100%;
  background: #ffffff;
  padding: .75rem;
  border-radius: var(--yv-radius);
  box-shadow: 0 0 0 1px var(--yv-border);
}
.yv-secret-key { font-size: .95rem; letter-spacing: .05em; }
.yv-break-all { word-break: break-all; }
.yv-pre-wrap { white-space: pre-wrap; }

/* ===== 25. Item subtitle (compact metadata) ===== */
.yv-item-subtitle {
  font-size: .78rem;
  color: var(--yv-text-muted);
  line-height: 1.35;
  margin-top: .1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 20rem;
}
