/* ============================================================
   VaultKey 2.0 â€” components.css
   Capa visual de los componentes base R1 (Plan MÃ³dulo 1 Â· 1.6)
   Fuente de reglas: EspecificaciÃ³n Final v1.0 Â§4/Â§14 + decisiones
   congeladas de Figma (inputs 07-07, anatomÃ­a de filas, chevron).

   REGLA: este fichero consume EXCLUSIVAMENTE tokens --vk-*
   definidos en theme.css. Cero valores hex.

   Commit 1: Header principal Â· AppBar secundaria Â· Botones Â·
   Cards/filas Â· Campos de texto.
   (Bottom Sheet, DiÃ¡logo y Chips llegan en el Commit 2 junto a
   components.js.)
   ============================================================ */

/* ---------- Base comÃºn ---------- */

/* Modelo de caja coherente: los contenedores de componente con
   width + padding usan border-box (los <button> ya lo traen del
   UA stylesheet; los <div>/<input> no, y desbordaban). */
.vk-row,
.vk-input,
.vk-btn,
.vk-card,
.vk-sheet__panel,
.vk-dialog__panel {
  box-sizing: border-box;
}

.vk-screen {
  background: var(--vk-bg);
  color: var(--vk-text);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1 Â· HEADER PRINCIPAL
   Solo pantallas raÃ­z. Logo/tÃ­tulo + Favoritos + Ajustes,
   en ese orden. Sin flecha atrÃ¡s. (EspecificaciÃ³n Â§4)
   ============================================================ */

.vk-header {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 4px 0 16px;
  background: var(--vk-header);
  color: var(--vk-text);
}

.vk-header__title {
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vk-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* BotÃ³n de icono compartido (Header y AppBar) */
.vk-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--vk-text);
  cursor: pointer;
}

.vk-iconbtn:hover { background: var(--vk-card); }
.vk-iconbtn:active { background: var(--vk-border); }
.vk-iconbtn svg { width: 24px; height: 24px; }

/* ============================================================
   2 Â· APPBAR SECUNDARIA
   Flecha atrÃ¡s + tÃ­tulo. Sin estrella, sin ajustes, sin logo,
   sin handle. Pantallas de detalle/creaciÃ³n/ediciÃ³n/config.
   ============================================================ */

.vk-appbar {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px 0 4px;
  background: var(--vk-header);
  color: var(--vk-text);
  gap: 4px;
}

.vk-appbar__title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   5 Â· BOTONES
   Primario azul Â· secundario gris oscuro Â· destructivo rojo
   (siempre con confirmaciÃ³n â€” el diÃ¡logo llega en Commit 2).
   ============================================================ */

.vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 112px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: filter 120ms ease, opacity 120ms ease;
}

.vk-btn:active { filter: brightness(0.88); }

.vk-btn--primary {
  background: var(--vk-primary);
  color: var(--vk-text);
}

.vk-btn--secondary {
  background: var(--vk-card);
  color: var(--vk-text);
  border: 1px solid var(--vk-border);
}

.vk-btn--danger {
  background: var(--vk-danger);
  color: var(--vk-text);
}

.vk-btn--block { display: flex; width: 100%; }

.vk-btn:disabled {
  background: var(--vk-card);
  color: var(--vk-text-disabled);
  border: 1px solid var(--vk-border);
  cursor: not-allowed;
  filter: none;
}

/* Variante de texto (acciones ligeras, p. ej. "Cancelar" en pie) */
.vk-btn--text {
  background: transparent;
  color: var(--vk-primary);
}

/* ============================================================
   6 Â· CARDS Y FILAS
   Regla congelada: fila con chevron SOLO si navega; fila con
   toggle NO lleva chevron y no navega.
   ============================================================ */

.vk-card {
  background: var(--vk-card);
  border: 1px solid var(--vk-border);
  border-radius: 12px;
  overflow: hidden;
}

/* Fila de lista genÃ©rica */
.vk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  background: var(--vk-card);
  color: var(--vk-text);
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: default;
}

/* Separador entre filas dentro de una card */
.vk-card .vk-row + .vk-row {
  border-top: 1px solid var(--vk-border);
}

/* Fila que navega: cursor + chevron obligatorio */
.vk-row--nav { cursor: pointer; }
.vk-row--nav:active { background: var(--vk-border); }

.vk-row__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--vk-text-muted);
  flex: none;
}
.vk-row__icon svg { width: 24px; height: 24px; }

.vk-row__body { flex: 1; min-width: 0; }

.vk-row__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--vk-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vk-row__subtitle {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--vk-text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vk-row__chevron {
  flex: none;
  color: var(--vk-text-muted);
}
.vk-row__chevron svg { width: 20px; height: 20px; }

/* Toggle (switch) â€” CSS puro con input[type=checkbox] */
.vk-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex: none;
  flex-shrink: 0;
}

/* AcciÃ³n derecha de fila (toggle o chevron): anclada al extremo,
   sin padding interno (deformarÃ­a el toggle: sus hijos absolutos
   con inset:0 cubrirÃ­an tambiÃ©n el padding). La separaciÃ³n con el
   cuerpo la da el gap de .vk-row; la respiraciÃ³n con el borde,
   el padding derecho de la fila. */
.vk-row .vk-toggle,
.vk-row .vk-row__chevron {
  margin-left: auto;
}

/* RespiraciÃ³n de la acciÃ³n derecha respecto al borde de la card */
.vk-row:has(.vk-toggle),
.vk-row:has(.vk-row__chevron) {
  padding-right: 20px;
}

.vk-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.vk-toggle__track {
  position: absolute;
  inset: 0;
  background: var(--vk-border);
  border-radius: 13px;
  transition: background 150ms ease;
  pointer-events: none;
}

.vk-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vk-text-muted);
  transition: transform 150ms ease, background 150ms ease;
}

.vk-toggle input:checked + .vk-toggle__track {
  background: var(--vk-primary);
}

.vk-toggle input:checked + .vk-toggle__track::after {
  transform: translateX(18px);
  background: var(--vk-text);
}

/* ============================================================
   7 Â· CAMPOS DE TEXTO
   Estilo congelado de Figma (07-07): fondo --vk-input-bg,
   borde --vk-input-border, radio 6 px, padding 8â€“12 px,
   relleno horizontal. Variantes: normal Â· enmascarado con ojo Â·
   confirmaciÃ³n integrada (onboarding sin pantallas separadas).
   ============================================================ */

.vk-field { display: block; width: 100%; }

.vk-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--vk-text-muted);
  margin-bottom: 6px;
}

.vk-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.vk-input {
  flex: 1;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--vk-input-bg);
  border: 1px solid var(--vk-input-border);
  border-radius: 6px;
  color: var(--vk-text);
  font-size: 15px;
  outline: none;
}

.vk-input::placeholder { color: var(--vk-text-disabled); }

.vk-input:focus {
  border-color: var(--vk-primary);
}

.vk-input:disabled {
  color: var(--vk-text-disabled);
  cursor: not-allowed;
}

/* Enmascarado con ojo: el input reserva sitio para el botÃ³n */
.vk-field--masked .vk-input { padding-right: 48px; }

.vk-field__eye {
  position: absolute;
  right: 2px;
  width: 44px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--vk-text-muted);
  cursor: pointer;
  border-radius: 6px;
}
.vk-field__eye:hover { color: var(--vk-text); }
.vk-field__eye svg { width: 20px; height: 20px; }

/* Mensajes de ayuda/estado bajo el campo */
.vk-field__hint {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  color: var(--vk-text-muted);
}

.vk-field__hint--ok { color: var(--vk-success); }
.vk-field__hint--error { color: var(--vk-danger); }

/* ConfirmaciÃ³n integrada: estados de coincidencia */
.vk-input--ok { border-color: var(--vk-success); }
.vk-input--error { border-color: var(--vk-danger); }

/* Espaciado vertical estÃ¡ndar entre campos de un formulario */
.vk-form > .vk-field + .vk-field { margin-top: 16px; }

/* ============================================================
   3 Â· BOTTOM SHEET  (Commit 2)
   Handle superior + tÃ­tulo + contenido. SuperposiciÃ³n inferior;
   cierra al tocar fuera (scrim). TransiciÃ³n 300 ms (Espec. Â§13).
   ============================================================ */

.vk-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.vk-sheet__scrim {
  position: absolute;
  inset: 0;
  background: var(--vk-bg);
  opacity: 0;
  transition: opacity 300ms ease;
}

.vk-sheet__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--vk-card);
  border: 1px solid var(--vk-border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 8px 16px 24px;
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.vk-sheet.vk-open {
  visibility: visible;
  pointer-events: auto;
}

.vk-sheet.vk-open .vk-sheet__scrim { opacity: 0.6; }
.vk-sheet.vk-open .vk-sheet__panel { transform: translateY(0); }

.vk-sheet__handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--vk-border);
  margin: 4px auto 12px;
}

.vk-sheet__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--vk-text);
  margin-bottom: 16px;
}

/* Pie de acciones estÃ¡ndar de sheet/diÃ¡logo */
.vk-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.vk-actions > .vk-btn { flex: 1; }

/* ============================================================
   4 Â· DIÃLOGO DE CONFIRMACIÃ“N  (Commit 2)
   SuperposiciÃ³n centrada; cierra al tocar fuera; Cancelar cierra;
   acciÃ³n destructiva en rojo. Componente Ãºnico reutilizable.
   ============================================================ */

.vk-dialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.vk-dialog__scrim {
  position: absolute;
  inset: 0;
  background: var(--vk-bg);
  opacity: 0;
  transition: opacity 300ms ease;
}

.vk-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--vk-card);
  border: 1px solid var(--vk-border);
  border-radius: 16px;
  padding: 20px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.vk-dialog.vk-open {
  visibility: visible;
  pointer-events: auto;
}
.vk-dialog.vk-open .vk-dialog__scrim { opacity: 0.6; }
.vk-dialog.vk-open .vk-dialog__panel { transform: scale(1); opacity: 1; }

.vk-dialog__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--vk-text);
  margin: 0 0 8px;
}

.vk-dialog__text {
  font-size: 14px;
  color: var(--vk-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   8 Â· CHIPS DE TIPO  (Commit 2)
   Selector exclusivo Web / Wi-Fi / PIN / RecuperaciÃ³n.
   Web por defecto (decisiÃ³n congelada 05-07).
   ============================================================ */

.vk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 17px;
  border: 1px solid var(--vk-border);
  background: transparent;
  color: var(--vk-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.vk-chip:hover { color: var(--vk-text); }

.vk-chip.vk-chip--active {
  background: var(--vk-primary);
  border-color: var(--vk-primary);
  color: var(--vk-text);
}

/* ============================================================
   Auxiliares de componentes con comportamiento
   ============================================================ */

/* Slider (maqueta del generador) â€” nativo con acento por token */
.vk-slider {
  width: 100%;
  accent-color: var(--vk-primary);
}

/* Caja de vista previa (maqueta del generador) */
.vk-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  background: var(--vk-input-bg);
  border: 1px solid var(--vk-input-border);
  border-radius: 6px;
  color: var(--vk-text);
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 16px;
  letter-spacing: 0.5px;
  word-break: break-all;
}

/* Bloqueo de scroll del fondo con capa abierta */
body.vk-lock { overflow: hidden; }

/* ============================================================
   vk-unlock â€” desbloqueo diario VK2.1
   Bloque aislado: PIN y contraseÃ±a maestra, todos sus estados.
   ============================================================ */
#pin.pinScreen:has(.vk-unlock) {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  text-align: initial;
  background: var(--vk-bg);
}

#pin.pinScreen:has(.vk-unlock)::before,
#pin.pinScreen:has(.vk-unlock)::after {
  display: none;
}

.vk-unlock {
  --vk-unlock-stroke: var(--vk-text-muted);
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--vk-bg);
  color: var(--vk-text);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.vk-unlock__panel,
.vk-unlock__master-panel {
  width: min(100%, 430px);
  min-height: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.vk-unlock__shield {
  position: relative;
  width: 84px;
  height: 101px;
  flex: none;
  margin: 0 0 10px;
}

.vk-unlock__shield-outline {
  width: 84px;
  height: 101px;
}

.vk-unlock__shield-outline path,
.vk-unlock__shield-lock path {
  stroke: var(--vk-unlock-stroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-unlock__shield-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 22px;
  transform: translate(-50%, -44%);
}

.vk-unlock__brand {
  margin: 0 0 8px;
  color: var(--vk-text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.vk-unlock__subtitle {
  margin: 0 0 14px;
  color: var(--vk-text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.vk-unlock__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 14px;
  margin-bottom: 10px;
}

.vk-unlock__dot {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1.5px solid var(--vk-text-muted);
  border-radius: 50%;
  background: transparent;
}

.vk-unlock__dot--filled {
  border-color: var(--vk-text);
  background: var(--vk-text);
}

.vk-unlock__status {
  width: 100%;
  min-height: 18px;
  margin: 0 0 10px;
  color: var(--vk-text-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.vk-unlock--error .vk-unlock__status,
.vk-unlock--wiping .vk-unlock__status,
.vk-unlock--master.vk-unlock--error .vk-unlock__status {
  color: var(--vk-text-muted);
}

.vk-unlock__keypad {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  gap: 10px 18px;
  justify-content: center;
  margin-bottom: 16px;
}

.vk-unlock__key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--vk-border);
  border-radius: 50%;
  background: var(--vk-text);
  color: var(--vk-primary);
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 100ms ease, opacity 120ms ease;
}

.vk-unlock__key:active:not(:disabled) { transform: scale(.93); }
.vk-unlock__key:disabled { cursor: default; }
.vk-unlock__key--empty { border-color: transparent; background: transparent; }

.vk-unlock__key--delete svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-unlock--checking .vk-unlock__keypad,
.vk-unlock--wiping .vk-unlock__keypad {
  opacity: .22;
}

.vk-unlock__actions {
  width: min(100%, 320px);
}

.vk-unlock__master-submit {
  min-height: 44px;
  border-radius: 9px;
}

.vk-unlock__master-link { margin-top: 4px; }
.vk-unlock__master-link:disabled { opacity: .45; }

.vk-unlock__legal {
  margin: auto 0 0;
  padding-top: 12px;
  color: var(--vk-text-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.vk-unlock__legal a {
  color: var(--vk-text-muted);
  text-decoration: none;
}

.vk-unlock__legal a:focus-visible,
.vk-unlock__legal a:hover { text-decoration: underline; }

/* ============================================================
   UNLOCK-01 · PIN — Figma aprobado
   Bloque visual aislado. No afecta a UNLOCK-02 ni a la lógica.
   ============================================================ */
#pin.pinScreen:has(.vk-unlock:not(.vk-unlock--master)) {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  text-align: initial;
  background: var(--vk-r1-bg-gradient);
}

#pin.pinScreen:has(.vk-unlock:not(.vk-unlock--master))::before,
#pin.pinScreen:has(.vk-unlock:not(.vk-unlock--master))::after {
  display: none;
}

.vk-unlock:not(.vk-unlock--master) {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__panel {
  position: relative;
  width: min(100%, 412px);
  height: 917px;
  min-height: 917px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__shield {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 150px;
  height: 180px;
  margin: 0;
  transform: translateX(-50%);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__shield-outline {
  width: 150px;
  height: 180px;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__shield-outline path,
.vk-unlock:not(.vk-unlock--master) .vk-unlock__shield-lock path {
  stroke: var(--vk-r1-text-tertiary);
  stroke-width: 1;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__shield-lock {
  width: 36px;
  height: 40px;
  transform: translate(-50%, -46%);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__brand {
  position: absolute;
  top: 263px;
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: 36px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__subtitle {
  position: absolute;
  top: 328px;
  left: 0;
  width: 100%;
  margin: 0;
  color: var(--vk-r1-text-tertiary);
  font-size: 16px;
  line-height: normal;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__dots {
  position: absolute;
  top: 366px;
  left: 50%;
  width: max-content;
  min-height: 15px;
  margin: 0;
  gap: 11px;
  transform: translateX(-50%);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__dot {
  width: 15px;
  height: 15px;
  border: 1px solid var(--vk-r1-text);
  background: transparent;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__dot--filled {
  border-color: var(--vk-r1-text);
  background: var(--vk-r1-text);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__status {
  position: absolute;
  top: 390px;
  left: 26px;
  width: 360px;
  min-height: 20px;
  margin: 0;
  color: var(--vk-r1-text-tertiary);
  font-size: 13px;
  line-height: 20px;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__keypad {
  position: absolute;
  top: 426px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 56px);
  gap: 21px 32px;
  width: 232px;
  height: 287px;
  margin: 0;
  transform: translateX(-50%);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__key {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--vk-r1-neutral-light);
  color: var(--vk-r1-accent);
  font-family: var(--vk-r1-font-family);
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__key:hover,
.vk-unlock:not(.vk-unlock--master) .vk-unlock__key:focus-visible {
  background: var(--vk-r1-neutral-light);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__key--empty {
  background: transparent;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__key--delete svg {
  width: 27px;
  height: 27px;
  stroke-width: 2;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__actions {
  position: absolute;
  top: 741px;
  left: 50%;
  width: 320px;
  margin: 0;
  transform: translateX(-50%);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__submit {
  width: 320px;
  height: 56px;
  min-height: 56px;
  border: 1px solid var(--vk-r1-border-soft);
  border-radius: 16px;
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text-secondary);
  font-size: 20px;
  font-weight: 600;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__submit:not(:disabled) {
  border-color: transparent;
  background: var(--vk-r1-primary);
  color: var(--vk-r1-text);
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__master-link {
  width: auto;
  min-height: 24px;
  margin: 16px auto 0;
  padding: 0;
  color: var(--vk-r1-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--vk-r1-text-tertiary);
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  z-index: 2;
}

.vk-unlock:not(.vk-unlock--master) .vk-unlock__legal a {
  color: var(--vk-r1-text-tertiary);
}

/* Adaptación proporcional para alturas inferiores al frame 412×917. */
@media (max-height: 916px) {
  .vk-unlock:not(.vk-unlock--master) .vk-unlock__panel {
    transform: scale(var(--vk-pin-scale, 1));
    transform-origin: top center;
  }
}



/* UNLOCK-02 · Master Password — integración Figma consolidada */
#pin.pinScreen:has(.vk-unlock--master) {
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
}

#pin.pinScreen:has(.vk-unlock--master)::before,
#pin.pinScreen:has(.vk-unlock--master)::after {
  display: none;
}

.vk-unlock--master {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.vk-unlock--master .vk-unlock__appbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: #243246;
  color: #ffffff;
}

.vk-unlock--master .vk-unlock__appbar .vk-iconbtn {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #a7b6c9;
}

.vk-unlock--master .vk-unlock__appbar .vk-iconbtn:disabled { opacity: .45; }
.vk-unlock--master .vk-unlock__appbar .vk-iconbtn svg,
.vk-unlock--master .vk-unlock__eye svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-unlock--master .vk-unlock__appbar-title {
  width: 100%;
  padding: 0 52px;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.vk-unlock--master .vk-unlock__master-panel {
  position: absolute;
  top: 0;
  left: 50%;
  width: 412px;
  height: 917px;
  min-height: 917px;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  text-align: center;
  transform: translateX(-50%) scale(var(--vk-master-scale, 1));
  transform-origin: top center;
}

.vk-unlock--master .vk-unlock__shield {
  position: absolute;
  left: 126px;
  top: 150px;
  width: 150px;
  height: 180px;
  margin: 0;
}

.vk-unlock--master .vk-unlock__shield-outline {
  width: 150px;
  height: 180px;
}

.vk-unlock--master .vk-unlock__shield-outline path,
.vk-unlock--master .vk-unlock__shield-lock path {
  stroke: #a7b6c9;
  stroke-width: 1;
}

.vk-unlock--master .vk-unlock__shield-lock {
  width: 20px;
  height: 22px;
}

.vk-unlock--master .vk-unlock__brand {
  position: absolute;
  left: 129px;
  top: 343px;
  width: 155px;
  height: 44px;
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  font-weight: 600;
  line-height: 44px;
  letter-spacing: 0;
  text-align: center;
}

.vk-unlock--master .vk-unlock__master-field {
  position: absolute;
  left: 27px;
  top: 434px;
  width: 363px;
  height: 53px;
  margin: 0;
}

.vk-unlock--master .vk-unlock__master-control {
  position: relative;
  width: 100%;
  height: 100%;
}

.vk-unlock--master .vk-unlock__master-control .vk-input {
  width: 100%;
  height: 53px;
  min-height: 53px;
  padding: 0 52px 0 20px;
  box-sizing: border-box;
  border: 1px solid rgba(58, 74, 96, .6);
  border-radius: 16px;
  background: #243246;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  outline: none;
}

.vk-unlock--master .vk-unlock__master-control .vk-input::placeholder {
  color: #a7b6c9;
  opacity: 1;
}

.vk-unlock--master .vk-unlock__master-control .vk-input:focus {
  border-color: rgba(58, 74, 96, .6);
}

.vk-unlock--master .vk-unlock__eye {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #3b82f6;
  cursor: pointer;
}

.vk-unlock--master .vk-unlock__eye svg { width: 20px; height: 20px; }

.vk-unlock--master .vk-unlock__master-info {
  position: absolute;
  left: 27px;
  top: 522px;
  width: 363px;
  height: 80px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(58, 74, 96, .6);
  border-radius: 16px;
  background: rgba(58, 74, 96, .6);
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  text-align: center;
}

.vk-unlock--master .vk-unlock__status {
  position: absolute;
  left: 52px;
  top: 607px;
  width: 320px;
  min-height: 20px;
  margin: 0;
  color: #a7b6c9;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.vk-unlock--master.vk-unlock--error .vk-unlock__status {
  color: #a7b6c9;
}

.vk-unlock--master .vk-unlock__master-submit {
  position: absolute;
  left: 52px;
  top: 638px;
  width: 320px;
  height: 56px;
  min-height: 56px;
  margin: 0;
  border-radius: 16px;
}

.vk-unlock--master .vk-unlock__master-submit:not(:disabled) {
  background: #2f6fea;
  color: #ffffff;
}

.vk-unlock--master .vk-unlock__legal {
  position: absolute;
  left: 0;
  top: auto;
  bottom: 18px;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #a7b6c9;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
}

.vk-unlock--master .vk-unlock__legal a {
  color: #a7b6c9;
  text-decoration: none;
}

.vk-unlock--master .vk-unlock__legal a:focus-visible,
.vk-unlock--master .vk-unlock__legal a:hover { text-decoration: underline; }

.vk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-height: 720px) {
  .vk-unlock__panel { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .vk-unlock__shield { width: 66px; height: 80px; margin-bottom: 5px; }
  .vk-unlock__shield-outline { width: 66px; height: 80px; }
  .vk-unlock__shield-lock { width: 17px; height: 19px; }
  .vk-unlock__brand { font-size: 24px; margin-bottom: 4px; }
  .vk-unlock__subtitle { margin-bottom: 8px; }
  .vk-unlock__status { margin-bottom: 6px; }
  .vk-unlock__keypad { grid-template-columns: repeat(3, 50px); gap: 7px 16px; margin-bottom: 10px; }
  .vk-unlock__key { width: 50px; height: 50px; font-size: 19px; }
  .vk-unlock__legal { padding-top: 6px; }
}

/* VK2 Figma onboarding welcome v2 — Figma 02 · Bienvenida */
:root {
  --vk-onb-stroke: #a7b6c9;
}

#onboardingModal.vk2-onboarding,
#onboardingModal .vk2-onboarding-host {
  min-height: 100dvh;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
}

.vk-onb {
  position: relative;
  width: 100%;
  min-height: 917px;
  box-sizing: border-box;
  color: #ffffff;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  overflow: hidden;
}

.vk-onb__shield {
  position: absolute;
  top: 337px;
  left: 50%;
  width: 150px;
  height: 180px;
  transform: translateX(-50%);
  color: var(--vk-onb-stroke);
}

.vk-onb__shield > svg:first-child {
  display: block;
  width: 150px;
  height: 180px;
}

.vk-onb__shield path {
  stroke: var(--vk-onb-stroke);
}

.vk-onb__shield-lock {
  position: absolute;
  left: 50%;
  top: 91.5px;
  width: 36px;
  height: 40px;
  transform: translate(-50%, -50%);
  color: var(--vk-onb-stroke);
}

.vk-onb__shield-lock path,
.vk-onb__shield-lock rect {
  stroke: var(--vk-onb-stroke);
}

.vk-onb__brand {
  position: absolute;
  top: 527px;
  left: 0;
  width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  line-height: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.vk-onb__subtitle {
  position: absolute;
  top: 580px;
  left: 0;
  width: 100%;
  margin: 0;
  color: #a7b6c9;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
}

.vk-onb > .vk-onb__start {
  position: absolute;
  top: 644px;
  left: 50%;
  width: 320px;
  min-height: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 16px;
  background: #2f6fea;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

/* VK2 Figma onboarding master CSS v1 */
.vk-onb-master {
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-onb-master__appbar {
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
}

.vk-onb-master__back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text);
}

.vk-onb-master__content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  padding:
    32px
    var(--vk-r1-screen-padding-inline)
    24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.vk-onb-master__content::-webkit-scrollbar {
  display: none;
}

.vk-onb-master__title {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-master__subtitle {
  max-width: 330px;
  margin: 12px auto 0;
  color: var(--vk-r1-text-secondary);
  font-size: 14px;
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.45;
  text-align: center;
}

.vk-onb-master__form {
  margin-top: 32px;
}

.vk-onb-master__field {
  display: block;
  margin-top: 16px;
}

.vk-onb-master__field:first-child {
  margin-top: 0;
}

.vk-onb-master__control {
  display: block;
}

.vk-onb-master__input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  outline: none;
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  box-shadow: none;
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
}

.vk-onb-master__input::placeholder {
  color: var(--vk-r1-text-secondary);
  opacity: 1;
}

.vk-onb-master__input:focus {
  border-color: var(--vk-r1-accent);
}

.vk-onb-master__hint {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #FCA5A5;
  font-size: 12px;
  line-height: 1.35;
}

.vk-onb-master__strength {
  margin-top: 18px;
  color: var(--vk-r1-text-secondary);
  font-size: 13px;
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.4;
}

.vk-onb-master__strength-track {
  width: 100%;
  height: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(167, 182, 201, 0.22);
}

.vk-onb-master__strength-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--vk-r1-danger);
  transition: width 160ms ease;
}

.vk-onb-master__strength-track > span.is-débil,
.vk-onb-master__strength-track > span.is-debil {
  width: 33%;
}

.vk-onb-master__strength-track > span.is-media {
  width: 66%;
  background: var(--vk-r1-warning);
}

.vk-onb-master__strength-track > span.is-fuerte {
  width: 100%;
  background: #22C55E;
}

.vk-onb-master__rules {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--vk-r1-text-secondary);
  font-size: 13px;
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.45;
}

.vk-onb-master__rules li {
  position: relative;
  margin-top: 10px;
  padding-left: 24px;
}

.vk-onb-master__rules li::before {
  content: "\25CB";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vk-r1-text-secondary);
}

.vk-onb-master__rules li.is-ok {
  color: #86EFAC;
}

.vk-onb-master__rules li.is-ok::before {
  content: "\2713";
  color: #22C55E;
}

.vk-onb-master__footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding:
    16px
    var(--vk-r1-screen-padding-inline)
    calc(24px + env(safe-area-inset-bottom, 0px));
}

.vk-onb-master__footer .vk-btn {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-primary);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-button);
  font-weight: var(--vk-r1-font-weight-regular);
  box-shadow: none;
}

.vk-onb-master__footer .vk-btn:disabled {
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  opacity: 1;
  cursor: not-allowed;
}


/* VK2 Figma onboarding PIN CSS v1 */
.vk-onb-pin {
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-onb-pin__appbar {
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom: var(--vk-r1-border-width) solid var(--vk-r1-border-soft);
}

.vk-onb-pin__back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text-secondary);
  cursor: pointer;
}

.vk-onb-pin__back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-onb-pin__content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 16px var(--vk-r1-screen-padding-inline) 20px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.vk-onb-pin__content::-webkit-scrollbar {
  display: none;
}

.vk-onb-pin__title {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: 18px;
  font-weight: var(--vk-r1-font-weight-semibold);
  line-height: 1.3;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-pin__subtitle {
  max-width: 330px;
  margin: 10px auto 0;
  color: var(--vk-r1-text-secondary);
  font-size: 12px;
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.4;
  text-align: center;
}

.vk-onb-pin__form {
  width: 100%;
  max-width: 320px;
  margin: 44px auto 0;
  display: grid;
  gap: 22px;
}

.vk-onb-pin__field {
  display: grid;
  gap: 6px;
}

.vk-onb-pin__sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vk-onb-pin__input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: var(--vk-r1-border-width) solid var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  outline: none;
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  box-shadow: none;
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.vk-onb-pin__input::placeholder {
  color: var(--vk-r1-text-secondary);
  letter-spacing: 0;
  opacity: 1;
}

.vk-onb-pin__input:focus {
  border-color: var(--vk-r1-accent);
}

.vk-onb-pin__hint {
  display: block;
  min-height: 18px;
  color: #FCA5A5;
  font-size: 12px;
  line-height: 1.35;
}

.vk-onb-pin__explanation {
  width: 100%;
  max-width: 320px;
  margin: 10px auto 0;
  color: var(--vk-r1-text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.vk-onb-pin__explanation p {
  margin: 0;
}

.vk-onb-pin__footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 0;
  padding:
    16px
    var(--vk-r1-screen-padding-inline)
    calc(160px + env(safe-area-inset-bottom, 0px));
}

.vk-onb-pin__submit {
  width: 100%;
  max-width: 320px;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-primary);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-button);
  font-weight: var(--vk-r1-font-weight-semibold);
  box-shadow: none;
}

.vk-onb-pin__submit:disabled {
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text-secondary);
  opacity: 1;
  cursor: not-allowed;
}


/* VK2 Figma onboarding Emergency Kit save CSS v2 — Figma ONBOARD-06 */
.vk-onb-kit-save {
  position: relative;
  width: 100%;
  min-height: 917px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.vk-onb-kit-save__appbar {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 64px;
  background: #243246;
}

.vk-onb-kit-save__back {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a7b6c9;
  cursor: pointer;
}

.vk-onb-kit-save__back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-onb-kit-save__heading {
  position: absolute;
  left: 0;
  top: 82px;
  width: 100%;
  text-align: center;
}

.vk-onb-kit-save__title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}

.vk-onb-kit-save__subtitle {
  margin: 10px 0 0;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
}

.vk-onb-kit-save__block {
  position: absolute;
  left: 50%;
  top: 332px;
  width: 393px;
  height: 335px;
  transform: translateX(-50%);
}

.vk-onb-kit-save__code,
.vk-onb-kit-save__download,
.vk-onb-kit-save__submit {
  position: absolute;
  left: 50%;
  width: 360px;
  height: 56px;
  box-sizing: border-box;
  transform: translateX(-50%);
  border-radius: 16px;
}

.vk-onb-kit-save__code {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(58, 74, 96, .6);
  background: #243246;
  color: #a7b6c9;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vk-onb-kit-save__help {
  position: absolute;
  top: 85px;
  left: 0;
  width: 100%;
  margin: 0;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-kit-save__download,
.vk-onb-kit-save__submit {
  border: 0;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  cursor: pointer;
}

.vk-onb-kit-save__download {
  top: 131px;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  padding: 0 16px;
  background: #3a4a60;
}

.vk-onb-kit-save__download svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #a7b6c9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-onb-kit-save__download span {
  grid-column: 2;
  text-align: center;
}

.vk-onb-kit-save__submit {
  top: 216px;
  background: #2f6fea;
}

.vk-onb-kit-save__warning {
  position: absolute;
  left: 0;
  top: 301px;
  width: 393px;
  min-height: 34px;
  margin: 0;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-kit-save__hint {
  position: absolute;
  left: 26px;
  top: 190px;
  width: 341px;
  min-height: 17px;
  color: #a7b6c9;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

/* VK2 Figma onboarding Emergency Kit verify CSS v2 — Figma ONBOARD-07 */
.vk-onb-kit-verify {
  position: relative;
  width: 100%;
  min-height: 917px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.vk-onb-kit-verify__appbar {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 64px;
  background: #243246;
}

.vk-onb-kit-verify__back {
  position: absolute;
  left: 16px;
  top: 8px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a7b6c9;
  cursor: pointer;
}

.vk-onb-kit-verify__back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-onb-kit-verify__heading {
  position: absolute;
  left: 0;
  top: 82px;
  width: 100%;
  text-align: center;
}

.vk-onb-kit-verify__title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0;
}

.vk-onb-kit-verify__subtitle {
  margin: 10px 0 0;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
}

.vk-onb-kit-verify__block {
  position: absolute;
  left: 0;
  top: 309px;
  width: 100%;
  height: 323px;
}

.vk-onb-kit-verify__label {
  position: absolute;
  left: 62px;
  top: 0;
  width: 298px;
  height: 17px;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-kit-verify__input-wrap,
.vk-onb-kit-verify__submit,
.vk-onb-kit-verify__download {
  position: absolute;
  left: 50%;
  width: 360px;
  height: 56px;
  box-sizing: border-box;
  transform: translateX(-50%);
  border-radius: 16px;
}

.vk-onb-kit-verify__input-wrap {
  top: 29px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(58, 74, 96, .6);
  background: #243246;
}

.vk-onb-kit-verify__input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.vk-onb-kit-verify__input {
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 0 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.vk-onb-kit-verify__input::placeholder {
  color: #a7b6c9;
  opacity: 1;
  text-transform: none;
}

.vk-onb-kit-verify__hint {
  position: absolute;
  left: 26px;
  top: 86px;
  width: 360px;
  min-height: 17px;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.vk-onb-kit-verify__help {
  position: absolute;
  left: 4px;
  top: 97px;
  width: 392px;
  min-height: 34px;
  margin: 0;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-kit-verify__submit,
.vk-onb-kit-verify__download {
  border: 0;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  cursor: pointer;
}

.vk-onb-kit-verify__submit {
  top: 146px;
  background: #2f6fea;
}

.vk-onb-kit-verify__submit:disabled {
  cursor: default;
}

.vk-onb-kit-verify__confirmation {
  position: absolute;
  left: 7px;
  top: 214px;
  width: 288px;
  min-height: 34px;
  margin: 0;
  color: #a7b6c9;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-kit-verify__download {
  top: 267px;
  background: #3a4a60;
}

/* VK2 Figma onboarding creating CSS v2 — Figma 04 · Creando bóveda */
.vk-onb-creating {
  position: relative;
  width: 100%;
  min-height: 917px;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 17%, #182f4e 67%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}

.vk-onb-creating__shield {
  position: absolute;
  top: 206px;
  left: 134px;
  width: 150px;
  height: 180px;
  color: #a7b6c9;
}

.vk-onb-creating__shield > svg:first-child {
  display: block;
  width: 150px;
  height: 180px;
}

.vk-onb-creating__shield path {
  stroke-width: 1;
}

.vk-onb-creating__lock {
  position: absolute;
  top: 91.5px;
  left: 50%;
  width: 36px;
  height: 40px;
  transform: translate(-50%, -50%);
}

.vk-onb-creating__title {
  position: absolute;
  top: 430px;
  left: 95px;
  width: 221px;
  height: 29px;
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-creating__subtitle {
  position: absolute;
  top: 514px;
  left: 99px;
  width: 219px;
  height: 19px;
  margin: 0;
  color: #a7b6c9;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-onb-creating__dots {
  position: absolute;
  top: 565px;
  left: 181px;
  width: 53px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vk-onb-creating__dots span {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: transparent;
  animation: vkCreatingDotFill .01s linear forwards;
}

.vk-onb-creating__dots span:nth-child(1) { animation-delay: .35s; }
.vk-onb-creating__dots span:nth-child(2) { animation-delay: .95s; }
.vk-onb-creating__dots span:nth-child(3) { animation-delay: 1.55s; }

@keyframes vkCreatingDotFill {
  to { background: #d9d9d9; }
}

@media (prefers-reduced-motion: reduce) {
  .vk-onb-creating__dots span { animation-delay: 0s; }
}

/* Estado de error — contraseña maestra */
.vk-unlock--master.vk-unlock--error .vk-unlock__status {
  color: #FCA5A5;
  font-weight: 500;
}

/* VAULTKEY DASHBOARD 05 - FIGMA APROBADO V6 */
/* Preview aislada 05 Dashboard v5. No forma parte de producciÃ³n. */
.vk-dash-root {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-dash-root .vk-header {
  flex: 0 0 56px;
  padding-left: 12px;
  border-bottom: var(--vk-r1-border-width) solid var(--vk-r1-border-soft);
}

.vk-dash-root .vk-header__title { min-width: 0; }

.vk-dash-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 18px 22px 112px;
}

.vk-dash-brand {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.2px;
}

.vk-dash-greeting {
  margin: 8px 0 0;
  color: var(--vk-r1-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.vk-dash-status {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  color: var(--vk-r1-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.vk-dash-status:active {
  transform: scale(.988);
  opacity: .9;
}

.vk-dash-status:focus-visible {
  outline: 2px solid rgba(0,217,255,.48);
  outline-offset: 3px;
}

.vk-dash-status__header,
.vk-dash-status__identity,
.vk-dash-status__copy,
.vk-dash-status__state,
.vk-dash-status__areas,
.vk-dash-status__area {
  display: flex;
}

.vk-dash-status__header {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vk-dash-status__identity {
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.vk-dash-status__copy {
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.vk-dash-status__state,
.vk-dash-status__area {
  align-items: center;
}

.vk-dash-status__state {
  gap: 8px;
}

.vk-dash-status__shield {
  width: 28px;
  height: 33px;
  flex: none;
  color: var(--vk-r1-accent);
  transform-origin: 50% 55%;
  animation: vk-health-shield-breathe 3.2s ease-in-out infinite;
}

.vk-dash-status__title {
  color: var(--vk-r1-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.vk-dash-status__dot,
.vk-dash-status__area-dot {
  flex: none;
  border-radius: 50%;
  background: var(--vk-success);
}

.vk-dash-status__dot {
  width: 9px;
  height: 9px;
}

.vk-dash-status__area-dot {
  width: 7px;
  height: 7px;
}

.vk-dash-status__label {
  color: var(--vk-r1-text-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.vk-dash-status__chevron {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--vk-r1-text-tertiary);
}

.vk-dash-status__desc,
.vk-dash-status__action {
  display: block;
}

.vk-dash-status__desc {
  margin-top: 17px;
  color: var(--vk-r1-text-tertiary);
  font-size: 13px;
  line-height: 1.4;
}

.vk-dash-status__action {
  margin-top: 7px;
  color: var(--vk-r1-text-secondary);
  font-size: 12px;
  line-height: 1.35;
}

.vk-dash-status__areas {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--vk-r1-border-soft);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vk-dash-status__area {
  min-width: 0;
  gap: 6px;
  color: var(--vk-r1-text-tertiary);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.vk-dash-status[data-health-level="empty"] .vk-dash-status__dot,
.vk-dash-status__area-dot[data-health-level="empty"] {
  background: #64748b;
}

.vk-dash-status[data-health-level="protected"] .vk-dash-status__dot,
.vk-dash-status__area-dot[data-health-level="protected"] {
  background: var(--vk-success);
}

.vk-dash-status[data-health-level="good"] .vk-dash-status__dot,
.vk-dash-status__area-dot[data-health-level="good"] {
  background: #3b82f6;
}

.vk-dash-status[data-health-level="attention"] .vk-dash-status__dot,
.vk-dash-status__area-dot[data-health-level="attention"] {
  background: #f59e0b;
}

.vk-dash-status[data-health-level="risk"] .vk-dash-status__dot,
.vk-dash-status__area-dot[data-health-level="risk"] {
  background: #ef4444;
}



@keyframes vk-health-shield-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: .88;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

#healthModal.vk-health-modal {
  position: absolute;
  inset: 0;
  z-index: 1100;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: linear-gradient(
    143.863deg,
    #111827 15.964%,
    #182f4e 63.204%
  );
  backdrop-filter: none;
}

#healthModal.vk-health-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 60px;
  background: #243246;
  pointer-events: none;
}

#healthModal.vk-health-modal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.35);
  pointer-events: none;
}

#healthModal .vk-health-sheet {
  position: relative;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

#healthModal .vk-health-sheet::-webkit-scrollbar {
  display: none;
}

#healthModal .vk-health-sheet::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  z-index: 4;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #6b7280;
  transform: translateX(-50%);
  pointer-events: none;
}

#healthModal .vk-health-sheet::after {
  content: "";
  position: absolute;
  inset: 121px 0 0;
  z-index: 0;
  min-height: calc(100% - 121px);
  border-radius: 24px 24px 0 0;
  background: rgba(36,50,70,.35);
  pointer-events: none;
}

#healthModal .vk-health-head {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  min-height: 121px;
  margin: 0;
  padding: 83px 20px 8px;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  background: transparent;
}

#healthModal .vk-health-head .sheetTitle {
  width: 100%;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  text-shadow: none;
}

#healthModal .vk-health-content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  min-height: 0;
  padding: 23px 16px 0;
  overflow: visible;
}

#healthModal .vk-health-footer {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  padding: 40px 0 max(23px,env(safe-area-inset-bottom));
  border: 0;
  background: transparent;
}

#healthModal .vk-health-cancel {
  display: flex;
  box-sizing: border-box;
  width: 174px;
  height: 48px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a4a60;
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  box-shadow: none;
}

.vk-health-loading {
  padding: 28px 12px;
  color: var(--vk-r1-text-tertiary);
  text-align: center;
}

.vk-health-overview {
  box-sizing: border-box;
  padding: 18px 20px 16px;
  border: 1px solid rgba(58,74,96,.6);
  border-radius: 20px;
  background: #243246;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.vk-health-overview__row {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  align-items: center;
  gap: 12px;
}

.vk-health-overview__shield {
  display: block;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  color: var(--vk-r1-accent);
}

.vk-health-overview__row > .vk-health-status {
  justify-self: start;
  gap: 9px;
  color: #b9c6d8;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.vk-health-overview__row > .vk-health-status .vk-health-status__dot {
  width: 9px;
  height: 9px;
}

.vk-health-overview__chevron {
  display: block;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  color: var(--vk-r1-text-tertiary);
}

.vk-health-overview__summary,
.vk-health-overview__action {
  color: var(--vk-r1-text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.vk-health-overview__summary {
  margin: 15px 0 0 8px;
}

.vk-health-overview__action {
  margin: 8px 0 0 8px;
}

.vk-health-areas {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.vk-health-area {
  box-sizing: border-box;
  padding: 16px 18px 18px;
  border: 1px solid rgba(58,74,96,.9);
  border-radius: 16px;
  background: rgba(17,24,39,.14);
}

.vk-health-area__title {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.vk-health-status,
.vk-health-detail__top,
.vk-health-metrics {
  display: flex;
  align-items: center;
}

.vk-health-status {
  flex: none;
  gap: 6px;
  color: #b9c6d8;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.vk-health-status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #3b82f6;
}

.vk-health-status[data-health-level="empty"] .vk-health-status__dot {
  background: #64748b;
}

.vk-health-status[data-health-level="protected"] .vk-health-status__dot {
  background: var(--vk-success);
}

.vk-health-status[data-health-level="attention"] .vk-health-status__dot {
  background: #f59e0b;
}

.vk-health-status[data-health-level="risk"] .vk-health-status__dot {
  background: #ef4444;
}

.vk-health-metrics {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.vk-health-metrics--two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.vk-health-metrics--three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.vk-health-metrics--four {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.vk-health-inventory {
  margin-top: 16px;
}

.vk-health-inventory .vk-health-metric {
  padding: 8px 4px 7px;
}

.vk-health-inventory .vk-health-metric__label {
  font-size: 11px;
}

.vk-health-metric {
  min-width: 0;
  padding: 10px 8px 9px;
  border-radius: 12px;
  background: rgba(36,50,70,.72);
  text-align: center;
}

.vk-health-metric__value,
.vk-health-metric__label {
  display: block;
}

.vk-health-metric__value {
  color: var(--vk-r1-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.vk-health-metric__label {
  margin-top: 5px;
  color: var(--vk-r1-text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.vk-health-detail {
  margin-top: 18px;
}

.vk-health-detail__top {
  justify-content: space-between;
  gap: 14px;
}

.vk-health-detail__title {
  min-width: 0;
  color: var(--vk-r1-text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.vk-health-detail__reason {
  max-width: 82%;
  margin: 7px 0 0;
  color: var(--vk-r1-text-tertiary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.vk-health-error {
  padding: 28px 18px;
  border: 1px solid rgba(239,68,68,.32);
  border-radius: 16px;
  background: rgba(239,68,68,.08);
  text-align: center;
}

.vk-health-error strong {
  color: var(--vk-r1-text);
  font-size: 14px;
}

.vk-health-error p {
  margin: 8px 0 0;
  color: var(--vk-r1-text-tertiary);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .vk-health-overview {
    padding: 16px 17px 15px;
  }

  .vk-health-overview__row > .vk-health-status {
    font-size: 18px;
  }

  .vk-health-area {
    padding: 15px 14px 17px;
  }

  .vk-health-metrics {
    gap: 8px;
  }

  .vk-health-metric {
    padding-inline: 5px;
  }

  .vk-health-metric__label {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .vk-dash-status {
    padding: 16px;
  }

  .vk-dash-status__areas {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vk-dash-status,
  .vk-dash-status__shield {
    animation: none;
    transition: none;
  }
}

.vk-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 30px;
  box-sizing: border-box;
}

.vk-dash-tile {
  width: 100%;
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 13px;
  align-items: center;
  box-sizing: border-box;
  padding: 18px 14px;
  border: var(--vk-r1-border-width) solid var(--vk-r1-border-soft);
  border-radius: 16px;
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}


.vk-dash-tile__icon {
  grid-column: 1;
  grid-row: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vk-r1-accent);
}

.vk-dash-tile__icon svg { width: 100%; height: 100%; }


/* Icono ContraseÃ±as: composiciÃ³n exacta de dos capas exportadas de Figma. */
.vk-dash-key-icon {
  position: relative;
  width: 32px;
  height: 32px;
}

.vk-dash-key-icon__body {
  position: absolute;
  inset: 3px;
  width: 26px !important;
  height: 26px !important;
}

.vk-dash-key-icon__hole {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 3px !important;
  height: 2px !important;
}

.vk-dash-tile__label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: var(--vk-r1-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.vk-dash-tile__count {
  grid-column: 2;
  grid-row: 2;
  color: var(--vk-r1-text-tertiary);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.vk-dash-fab {
  position: fixed;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: var(--vk-r1-accent);
  color: var(--vk-r1-text);
  cursor: pointer;
}

.vk-dash-fab:active { filter: brightness(.88); }
.vk-dash-fab svg { width: 28px; height: 28px; }

@media (max-height: 760px) {
  .vk-dash-content { padding-top: 12px; padding-bottom: 90px; }
  .vk-dash-grid { margin-top: 28px; }
  .vk-dash-status { margin-top: 12px; }
}
/* FIN VAULTKEY DASHBOARD 05 - FIGMA APROBADO V6 */

/* DASHBOARD 05 - CORRECCION FINAL FAB */
#home.vk-dash-root > .vk-dash-fab {
  position: fixed !important;
  left: auto !important;
  right: max(22px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 1000 !important;
}

/* ============================================================
   VaultKey R1 — pantalla Contraseñas
   Integración visual aislada. Sin cambios de lógica o datos.
   ============================================================ */

/* SELECTOR GENERAL DE CREACION - FIGMA 535:15 */

.vk-create-picker[hidden] {
  display: none !important;
}

.vk-create-picker {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 450px);
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%);
  font-family: var(--vk-r1-font-family);
}

.vk-create-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  animation: vk-create-picker-backdrop-in 180ms ease-out both;
}

.vk-create-picker__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 412px);
  box-sizing: border-box;
  padding: 22px 24px calc(29px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: #182F4E;
  color: #FFFFFF;
  animation: vk-create-picker-sheet-in 260ms cubic-bezier(.22, 1, .36, 1) both;
}

.vk-create-picker__sheet h2 {
  margin: 0 0 18px;
  color: #A7B6C9;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

.vk-create-picker__options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vk-create-picker__options button {
  width: 100%;
  height: 65px;
  padding: 0 20px;
  border: 1px solid rgba(58, 74, 96, .6);
  border-radius: 16px;
  background: #243246;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.vk-create-picker__options button:active {
  filter: brightness(.88);
}

.vk-create-picker__divider {
  width: 300px;
  max-width: calc(100% - 32px);
  height: 1px;
  margin: 18px auto;
  background: rgba(58, 74, 96, .8);
}

.vk-create-picker__cancel {
  display: block;
  width: 174px;
  height: 48px;
  margin: 0 auto;
  border: 1px solid #3A4A60;
  border-radius: 16px;
  background: transparent;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.vk-create-picker__cancel:active {
  filter: brightness(.88);
}

body.vk-create-picker-open {
  overflow: hidden;
}

@keyframes vk-create-picker-sheet-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes vk-create-picker-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vk-create-picker__sheet,
  .vk-create-picker__backdrop {
    animation: none;
  }
}

#passwords.vk-passwords-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

#passwords .vk-passwords-header {
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
}

#passwords .vk-passwords-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

#passwords .vk-passwords-header .vk-iconbtn {
  width: 48px;
  height: 48px;
}

#passwords .vk-passwords-header .vk-iconbtn svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

#passwords .vk-passwords-content {
  height: calc(100% - 56px);
  box-sizing: border-box;
  padding:
    20px
    var(--vk-r1-screen-padding-inline)
    calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

#passwords .vk-passwords-content::-webkit-scrollbar {
  display: none;
}

#passwords .vk-passwords-title {
  margin: 0 0 24px;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

#passwords .vk-passwords-search {
  box-sizing: border-box;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 16px;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text-tertiary);
}

#passwords .vk-passwords-search:focus-within {
  border-color: var(--vk-r1-accent);
}

#passwords .vk-passwords-search > svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  flex: none;
}

#passwords .vk-passwords-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
}

#passwords .vk-passwords-search input::placeholder {
  color: var(--vk-r1-text-tertiary);
  opacity: 1;
}

#passwords .vk-passwords-list {
  display: grid;
  gap: var(--vk-r1-row-gap);
}

#passwords .vk-passwords-row {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--vk-r1-row-height);
  display: grid;
  grid-template-columns:
    var(--vk-r1-icon-size)
    minmax(0, 1fr)
    20px;
  align-items: center;
  gap: 15px;
  padding: 0 16px;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  text-align: left;
  font-family: var(--vk-r1-font-family);
  cursor: pointer;
}

#passwords .vk-passwords-row__icon {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vk-r1-accent);
}

#passwords .vk-passwords-row__icon svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

#passwords .vk-passwords-row__copy {
  min-width: 0;
}

#passwords .vk-passwords-row__copy strong {
  display: block;
  overflow: hidden;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-row-title);
  font-weight: var(--vk-r1-font-weight-semibold);
  line-height: normal;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#passwords .vk-passwords-row__copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#passwords .vk-passwords-row__chevron {
  width: 20px;
  height: 20px;
  color: var(--vk-r1-text-tertiary);
}

#passwords .vk-passwords-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 24px 72px;
  text-align: center;
}

#passwords .vk-passwords-empty__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--vk-r1-accent);
}

#passwords .vk-passwords-empty__icon svg {
  width: 48px;
  height: 48px;
}

#passwords .vk-passwords-empty h2 {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  letter-spacing: 0;
}

#passwords .vk-passwords-empty p {
  max-width: 290px;
  margin: 12px 0 24px;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  line-height: 1.5;
}

#passwords .vk-passwords-empty button {
  width: 174px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-primary);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-button);
  font-weight: var(--vk-r1-font-weight-regular);
  cursor: pointer;
}

/* Protección de geometría del FAB de Home frente a reglas legacy. */
#home.vk-dash-root > button.vk-dash-fab {
  position: absolute !important;
  left: auto !important;
  right: max(20px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  z-index: 1000 !important;
}

#home.vk-dash-root > button.vk-dash-fab svg {
  width: 29px !important;
  height: 29px !important;
  max-width: 29px !important;
  max-height: 29px !important;
}

/* VaultKey 2.0 - 07 Detalle de contraseña aprobado */.vk-password-detail-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-password-detail-header {
  height: 56px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
}

.vk-password-detail-back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text);
  cursor: pointer;
}

.vk-password-detail-back svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-detail-content {
  height: calc(100% - 56px);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}

.vk-password-detail-content::-webkit-scrollbar {
  display: none;
}

.vk-password-detail-title {
  margin: 24px var(--vk-r1-screen-padding-inline) 0;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

#passwordDetailBody {
  padding-bottom: 32px;
}

.vk-password-detail-card {
  margin: 24px var(--vk-r1-screen-padding-inline) 0;
  padding: 16px;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-surface);
  box-shadow: none;
}

.vk-password-detail-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vk-password-detail-card__title > svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  color: var(--vk-r1-accent);
}

.vk-password-detail-card__title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-row-title);
  font-weight: var(--vk-r1-font-weight-semibold);
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vk-password-detail-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  padding: 8px 0;
}

.vk-password-detail-row > div:first-child {
  min-width: 0;
}

.vk-password-detail-row small {
  display: block;
  margin-bottom: 4px;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
}

.vk-password-detail-row span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.35;
}

.vk-password-detail-row--actions {
  align-items: center;
}

.vk-password-detail-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vk-password-detail-row button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-accent);
  cursor: pointer;
}

.vk-password-detail-row button svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-detail-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin:
    32px
    var(--vk-r1-screen-padding-inline)
    0;
}

.vk-password-detail-actions button {
  width: 174px;
  max-width: calc(50% - 8px);
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: var(--vk-r1-radius-md);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-button);
  font-weight: var(--vk-r1-font-weight-regular);
  cursor: pointer;
}

.vk-password-detail-actions svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-detail-edit {
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  background: transparent;
}

.vk-password-detail-delete {
  border: var(--vk-r1-border-width) solid var(--vk-r1-danger);
  background: var(--vk-r1-danger);
}


/* VaultKey 2.0 - 08 Editar password aprobado */.vk-password-edit-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-password-edit-header {
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
}

.vk-password-edit-back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text);
  cursor: pointer;
}

.vk-password-edit-back svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-edit-content {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  padding:
    16px
    var(--vk-r1-screen-padding-inline)
    calc(16px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
}

.vk-password-edit-content::-webkit-scrollbar {
  display: none;
}

.vk-password-edit-title {
  margin: 0 0 16px;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-password-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vk-password-edit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vk-password-edit-field > span {
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-label);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
}

.vk-password-edit-field input,
.vk-password-edit-field textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  outline: none;
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  box-shadow: none;
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.35;
}

.vk-password-edit-field input {
  height: 48px;
  padding: 0 16px;
}

.vk-password-edit-field textarea {
  height: 96px;
  min-height: 96px;
  padding: 14px 16px;
  resize: none;
}

.vk-password-edit-field input:focus,
.vk-password-edit-field textarea:focus {
  border-color: var(--vk-r1-accent);
}

.vk-password-edit-secret {
  position: relative;
}

.vk-password-edit-secret input {
  padding-right: 56px;
}

.vk-password-edit-eye {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-accent);
  cursor: pointer;
}

.vk-password-edit-eye svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-edit-hidden {
  display: none !important;
}

.vk-password-create-favorite,
.vk-password-edit-favorite {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vk-password-create-favorite {
  margin: 0 0 20px;
}

.vk-password-edit-favorite {
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-label);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
}

.vk-favorite-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--vk-r1-text-secondary);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.vk-favorite-switch > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vk-r1-text);
  transition: transform 160ms ease;
}

.vk-favorite-switch[aria-checked="true"] {
  background: var(--vk-r1-primary);
}

.vk-favorite-switch[aria-checked="true"] > span {
  transform: translateX(20px);
}

.vk-password-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
  padding-bottom: 0;
}

.vk-password-edit-actions button {
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: var(--vk-r1-radius-md);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-button);
  font-weight: var(--vk-r1-font-weight-regular);
  cursor: pointer;
}

.vk-password-edit-cancel {
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  background: transparent;
}

.vk-password-edit-save {
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-primary);
  background: var(--vk-r1-primary);
}


/* VaultKey 2.0 - 09 Añadir password aprobado */.vk-password-create-root {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

.vk-password-create-topbar {
  position: relative;
  flex: 0 0 56px;
  height: 56px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
}

.vk-password-create-back {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text);
  cursor: pointer;
}

.vk-password-create-back svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-create-title {
  flex: 0 0 auto;
  width: auto;
  margin: 24px var(--vk-r1-screen-padding-inline) 0;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

.vk-password-create-tabs {
  position: relative;
  z-index: 2;
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  box-sizing: border-box;
  margin: 24px var(--vk-r1-screen-padding-inline) 0;
  overflow: hidden;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-sm);
  background: var(--vk-r1-surface);
}

.vk-password-create-tab {
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text-secondary);
  font-family: var(--vk-r1-font-family);
  font-size: 12px;
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
  text-align: center;
  cursor: pointer;
}

.vk-password-create-tab[aria-selected="true"] {
  color: var(--vk-r1-accent);
}

.vk-password-create-form {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
  padding:
    48px
    var(--vk-r1-screen-padding-inline)
    24px;
  overflow-y: hidden;
  overflow-x: hidden;
  scroll-padding-block: 24px;
  scrollbar-width: none;
}

.vk-password-create-form:has(.vk-password-create-note.is-visible) {
  overflow-y: auto;
}

.vk-password-create-form::-webkit-scrollbar {
  display: none;
}

.vk-password-create-field {
  margin: 0 0 20px;
}

.vk-password-create-label {
  display: block;
  margin: 0 0 8px;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-label);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
}

.vk-password-create-control {
  position: relative;
  width: 100%;
  height: 48px;
}

.vk-password-create-input,
.vk-password-create-textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  outline: none;
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  box-shadow: none;
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.35;
}

.vk-password-create-input {
  height: 48px;
  padding: 0 52px 0 16px;
}

.vk-password-create-input--plain {
  padding-right: 16px;
}

.vk-password-create-input--secret {
  padding-right: 88px;
}

.vk-password-create-input::placeholder,
.vk-password-create-textarea::placeholder {
  color: var(--vk-r1-text-secondary);
  opacity: 1;
}

.vk-password-create-input:focus,
.vk-password-create-textarea:focus {
  border-color: var(--vk-r1-accent);
}

.vk-password-create-inline-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: var(--vk-r1-accent);
  pointer-events: none;
}

.vk-password-create-inline-icon svg,
.vk-password-create-action svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

.vk-password-create-secret-actions {
  position: absolute;
  top: 50%;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateY(-50%);
}

.vk-password-create-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-accent);
  cursor: pointer;
}

.vk-password-create-generator-image {
  display: block;
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  object-fit: contain;
}

.vk-password-create-hidden {
  display: none !important;
}

.vk-password-create-add-note {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vk-r1-text-tertiary);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-label);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
  cursor: pointer;
}

.vk-password-create-note {
  display: none;
  margin-top: 20px;
}

.vk-password-create-note.is-visible {
  display: block;
}

.vk-password-create-textarea {
  min-height: 104px;
  padding: 14px 16px;
  resize: none;
}

.vk-password-create-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-sizing: border-box;
  margin-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  padding:
    16px
    var(--vk-r1-screen-padding-inline)
    0;
}

.vk-password-create-button {
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
  border-radius: var(--vk-r1-radius-md);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-button);
  font-weight: var(--vk-r1-font-weight-regular);
  cursor: pointer;
}

/* Android keyboard: interactive-widget=resizes-content reduces the visual
   viewport. Compact the screen and enable form scrolling only while height
   is constrained, keeping the focused field visible above the keyboard. */
@media (max-height: 640px) {
  .vk-password-create-topbar {
    display: none;
  }

  .vk-password-create-title {
    margin: 10px var(--vk-r1-screen-padding-inline) 0;
    font-size: 18px;
  }

  .vk-password-create-tabs {
    flex-basis: 32px;
    height: 32px;
    margin: 10px var(--vk-r1-screen-padding-inline) 0;
  }

  .vk-password-create-form {
    padding: 12px var(--vk-r1-screen-padding-inline);
    overflow-y: auto;
    scroll-padding-block: 12px;
  }

  .vk-password-create-field,
  .vk-password-create-add-note,
  .vk-password-create-note {
    scroll-margin-block: 12px;
  }

  .vk-password-create-footer {
    margin-bottom: 0;
    padding:
      8px
      var(--vk-r1-screen-padding-inline)
      calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .vk-password-create-button {
    height: 44px;
  }
}

.vk-password-create-cancel {
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  background: transparent;
}

.vk-password-create-submit {
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-primary);
  background: var(--vk-r1-primary);
}


/* =============================================================
   VaultKey R1 â€” componentes visuales aislados
   Fuente: docs/design-system/
   No sustituye todavÃ­a los componentes legacy .vk-*.
   ============================================================ */

.vk-r1-screen {
  min-height: 100%;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  -webkit-font-smoothing: antialiased;
}

.vk-r1-header {
  display: flex;
  align-items: center;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: transparent;
  color: var(--vk-r1-text);
}

.vk-r1-title {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: var(--vk-r1-line-height-auto);
  letter-spacing: var(--vk-r1-letter-spacing);
  text-align: center;
}

.vk-r1-list {
  display: grid;
  gap: var(--vk-r1-row-gap);
}

.vk-r1-row {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--vk-r1-row-height);
  display: grid;
  grid-template-columns: var(--vk-r1-icon-size) minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  padding: 0 16px;
  border: var(--vk-r1-border-width) solid var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  text-align: left;
  font: inherit;
}

.vk-r1-row__icon {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vk-r1-accent);
}

.vk-r1-row__icon--warning {
  color: var(--vk-r1-warning);
}

.vk-r1-row__icon svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--vk-r1-icon-stroke-width);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vk-r1-row__body {
  min-width: 0;
}

.vk-r1-row__title {
  display: block;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-row-title);
  font-weight: var(--vk-r1-font-weight-semibold);
  line-height: var(--vk-r1-line-height-auto);
  letter-spacing: var(--vk-r1-letter-spacing);
}

.vk-r1-row__subtitle {
  display: block;
  margin-top: 3px;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: var(--vk-r1-line-height-auto);
  letter-spacing: var(--vk-r1-letter-spacing);
}

.vk-r1-row__chevron {
  justify-self: end;
  color: var(--vk-r1-text-tertiary);
  font-size: 24px;
  line-height: 1;
}

/* ============================================================
   VaultKey R1 — pantalla Favoritos
   Integración visual aislada. Sin cambios de datos o navegación.
   ============================================================ */

#fav.vk-favorites-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--vk-r1-bg-gradient);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
}

#fav.vk-favorites-root::before,
#fav.vk-favorites-root::after {
  display: none !important;
  content: none !important;
}

#fav .vk-favorites-header {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  height: 64px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 var(--vk-r1-screen-padding-inline);
  background: var(--vk-r1-surface);
  border-bottom:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
}

#fav .vk-favorites-title {
  margin: 0;
  color: var(--vk-r1-text);
  font-size: var(--vk-r1-font-size-screen-title);
  font-weight: var(--vk-r1-font-weight-bold);
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
}

#fav .vk-favorites-header .vk-iconbtn {
  width: 48px;
  height: 48px;
  color: var(--vk-r1-text);
}

#fav .vk-favorites-header .vk-iconbtn svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
}

#fav .vk-favorites-content {
  position: relative;
  z-index: 1;
  height: calc(100% - 64px);
  box-sizing: border-box;
  padding: 24px 23px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

#fav .vk-favorites-content::-webkit-scrollbar {
  display: none;
}

#fav .vk-favorites-count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#fav .vk-favorites-list {
  display: grid;
  gap: 16px;
}

#fav.vk-favorites-root--content .vk-favorites-list {
  margin-top: 81px;
}

#fav .vk-favorites-row {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--vk-r1-row-height);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px 20px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  text-align: left;
  cursor: pointer;
}

#fav .vk-favorites-row__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vk-r1-accent);
}

#fav .vk-favorites-row__icon svg {
  width: 24px;
  height: 24px;
}

#fav .vk-favorites-row__copy {
  min-width: 0;
}

#fav .vk-favorites-row__copy strong,
#fav .vk-favorites-row__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#fav .vk-favorites-row__copy strong {
  color: var(--vk-r1-text);
  font-size: 20px;
  font-weight: var(--vk-r1-font-weight-semibold);
  line-height: normal;
}

#fav .vk-favorites-row__copy span {
  margin-top: 3px;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
}

#fav .vk-favorites-row__star,
#fav .vk-favorites-row__chevron {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  color: var(--vk-r1-text-tertiary);
}

#fav .vk-favorites-row__star {
  color: var(--vk-r1-warning);
}

#fav .vk-favorites-row__chevron {
  width: 20px;
  height: 20px;
}

#fav .vk-favorites-empty {
  min-height: calc(100vh - 72px);
}

#fav.vk-favorites-root--empty .vk-favorites-list {
  margin-top: 13px;
}

#fav .vk-favorites-search {
  box-sizing: border-box;
  width: calc(100% - 2px);
  height: 45px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 1px;
  padding: 0 16px;
  border:
    var(--vk-r1-border-width)
    solid
    var(--vk-r1-border-soft);
  border-radius: var(--vk-r1-radius-md);
  background: var(--vk-r1-surface);
  color: var(--vk-r1-text-tertiary);
}

#fav .vk-favorites-search:focus-within {
  border-color: var(--vk-r1-accent);
}

#fav .vk-favorites-search svg {
  width: var(--vk-r1-icon-size);
  height: var(--vk-r1-icon-size);
  flex: none;
}

#fav .vk-favorites-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--vk-r1-text);
  font-family: var(--vk-r1-font-family);
  font-size: var(--vk-r1-font-size-input);
  font-weight: var(--vk-r1-font-weight-regular);
}

#fav .vk-favorites-search input::placeholder {
  color: var(--vk-r1-text-tertiary);
  opacity: 1;
}

#fav .vk-favorites-empty__message {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 20px 24px 0;
  text-align: center;
}

#fav .vk-favorites-empty__icon {
  width: 60px;
  height: 60px;
  margin-top: 238px;
  color: var(--vk-r1-warning);
}

#fav .vk-favorites-empty h2 {
  margin: 0;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: normal;
}

#fav .vk-favorites-empty p {
  max-width: 290px;
  margin: 20px 0 0;
  color: var(--vk-r1-text-tertiary);
  font-size: var(--vk-r1-font-size-row-subtitle);
  font-weight: var(--vk-r1-font-weight-regular);
  line-height: 1.5;
}

/* Onboarding: adaptación al teclado virtual en alta inicial */
.vk-onb-master.is-keyboard-open,
.vk-onb-pin.is-keyboard-open {
  height: var(--vk-onb-visible-height, 100dvh);
  min-height: 0;
}

.vk-onb-master.is-keyboard-open .vk-onb-master__appbar,
.vk-onb-pin.is-keyboard-open .vk-onb-pin__appbar {
  display: none;
}

.vk-onb-master.is-keyboard-open .vk-onb-master__content {
  padding-top: 12px;
  padding-bottom: 12px;
  scroll-padding-top: 12px;
  scroll-padding-bottom: 84px;
}

.vk-onb-pin.is-keyboard-open .vk-onb-pin__content {
  padding-top: 12px;
  padding-bottom: 8px;
  scroll-padding-top: 12px;
  scroll-padding-bottom: 84px;
}

.vk-onb-master.is-keyboard-open .vk-onb-master__form {
  margin-top: 18px;
}

.vk-onb-pin.is-keyboard-open .vk-onb-pin__form {
  margin-top: 18px;
  gap: 12px;
}

.vk-onb-master.is-keyboard-open .vk-onb-master__footer,
.vk-onb-pin.is-keyboard-open .vk-onb-pin__footer {
  padding: 8px var(--vk-r1-screen-padding-inline)
    calc(8px + env(safe-area-inset-bottom, 0px));
}

.vk-onb-master.is-keyboard-open .vk-onb-master__footer .vk-btn,
.vk-onb-pin.is-keyboard-open .vk-onb-pin__submit {
  min-height: 48px;
}

/* VaultKey R1 — ajuste móvil de la pantalla de bienvenida */
@media (max-width: 600px) {
  .vk-onb {
    --vk-welcome-shift-y: calc(-1 * clamp(125px, 8dvh, 96px));
  }

  .vk-onb__shield {
    transform: translate(-50%, var(--vk-welcome-shift-y));
  }

  .vk-onb__brand,
  .vk-onb__subtitle {
    transform: translateY(var(--vk-welcome-shift-y));
  }

  .vk-onb > .vk-onb__start {
    width: min(320px, calc(100% - 40px));
    transform: translate(-50%, var(--vk-welcome-shift-y));
  }
}