:root {
    --vault-bg: #f5f6f8;
    --vault-surface: #fff;
    --vault-ink: #242223;
    --vault-muted: #60636b;
    --vault-line: #e2e5ea;
    --vault-brand: #c90000;
    --vault-brand-dark: #a90000;
    --vault-info-bg: #eef5ff;
    --vault-warning-bg: #fff7e7;
    --vault-success: #16743b;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--vault-ink);
}

* { box-sizing: border-box; }
button, input { font: inherit; }
.vault-layout { min-height: 100vh; background: var(--vault-bg); }
.vault-topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--vault-line); background: var(--vault-surface); }
.vault-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 15px; font-weight: 600; text-decoration: none; }
.vault-brand strong { font-weight: 750; }
.vault-brand__mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--vault-brand); color: #fff; }
.vault-topbar__context { color: var(--vault-muted); font-size: 12px; }
.vault-shell { width: min(100% - 32px, 960px); margin: 0 auto; padding: 36px 0 64px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header__copy { min-width: 0; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; }
.page-description { max-width: 65ch; margin: 0; color: var(--vault-muted); font-size: 14px; line-height: 1.5; }
.page-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.status-badge { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--vault-line); border-radius: 999px; color: var(--vault-muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-badge--success { border-color: #b9dfc7; background: #effaf2; color: var(--vault-success); }
.status-badge--info { border-color: #c7dcfb; background: var(--vault-info-bg); color: #175cb3; }
.status-badge--warning { border-color: #f0d8a2; background: var(--vault-warning-bg); color: #8c5a00; }
.vault-note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 20px; padding: 15px 17px; border: 1px solid #c7dcfb; border-radius: 14px; background: var(--vault-info-bg); color: #175cb3; }
.vault-note--warning { border-color: #f0d8a2; background: var(--vault-warning-bg); color: #8c5a00; }
.vault-note div { display: grid; gap: 3px; }
.vault-note strong { color: var(--vault-ink); font-size: 13px; }
.vault-note span { color: var(--vault-muted); font-size: 12px; line-height: 1.45; }
.vault-panel { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--vault-line); border-radius: 16px; background: var(--vault-surface); box-shadow: 0 8px 24px rgba(36,34,35,.05); }
.vault-panel__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--vault-line); }
.vault-panel__heading h2 { margin: 0 0 4px; font-size: 16px; }
.vault-panel__heading p { margin: 0; color: var(--vault-muted); font-size: 12px; }
.vault-panel__heading code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.vault-form { padding: 20px; }
.vault-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vault-field { display: grid; gap: 7px; }
.vault-field label { color: var(--vault-ink); font-size: 12px; font-weight: 650; }
.vault-field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd3da; border-radius: 10px; color: var(--vault-ink); background: #fff; }
.vault-field input:focus-visible, .vault-button:focus-visible, .vault-link:focus-visible { outline: 3px solid rgba(201,0,0,.24); outline-offset: 2px; }
.validation-message { color: #a32121; font-size: 11px; }
.vault-form__actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.vault-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 700; }
.vault-button:disabled { cursor: not-allowed; opacity: .55; }
.vault-button--primary { background: var(--vault-brand); color: #fff; }
.vault-button--primary:hover { background: var(--vault-brand-dark); }
.vault-button--quiet { min-height: 38px; padding-inline: 11px; border-color: var(--vault-line); background: #fff; color: var(--vault-muted); }
.vault-button--quiet:hover { border-color: #a8adb7; color: var(--vault-ink); }
.vault-feedback { margin: 0; padding: 12px 20px 16px; font-size: 12px; }
.vault-feedback--success { color: var(--vault-success); }
.vault-feedback--error { color: #a32121; }
.vault-list { display: grid; }
.vault-list__item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--vault-line); }
.vault-list__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--vault-info-bg); color: #175cb3; }
.vault-list__copy { display: grid; min-width: 0; gap: 3px; }
.vault-list__copy strong { overflow-wrap: anywhere; font-size: 13px; }
.vault-list__copy span { overflow-wrap: anywhere; color: var(--vault-muted); font-size: 11px; }
.vault-loading { min-height: 96px; margin: 20px; border-radius: 10px; background: linear-gradient(90deg,#f2f3f5,#fafafa,#f2f3f5); background-size: 220% 100%; animation: vault-shimmer 1.2s ease-in-out infinite; }
@keyframes vault-shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.empty-state { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 28px 20px; }
.empty-state__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: #f3f4f6; color: var(--vault-muted); }
.empty-state__copy h3 { margin: 0 0 4px; font-size: 14px; }
.empty-state__copy p { margin: 0; color: var(--vault-muted); font-size: 12px; line-height: 1.45; }
#blazor-error-ui { display: none; }
@media (max-width: 640px) { .vault-shell { width: min(100% - 24px, 560px); padding-top: 24px; } .vault-topbar { padding-inline: 12px; } .vault-topbar__context { display: none; } .page-header { align-items: start; flex-direction: column; gap: 14px; } .page-header__actions { align-self: flex-start; } .vault-panel__heading { flex-direction: column; } .vault-form__grid { grid-template-columns: minmax(0, 1fr); } .vault-form__actions { justify-content: stretch; } .vault-form__actions .vault-button { width: 100%; } .vault-list__item { grid-template-columns: 38px minmax(0, 1fr); } .vault-list__item .vault-button { grid-column: 2; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
