/* Clefkey — vault-content-b.css */
.search-icon svg,
.search-icon .lucide { width: 16px; height: 16px; }

.search-box input {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input::placeholder { color: var(--text-muted); }

/* ── Entries ───────────────────────────────────────────── */
.vault-content {
  padding-bottom: 5rem;
}

.entries-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  animation: slideUp 0.3s ease backwards;
}

.entry-card:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.entry-card:hover .entry-actions { opacity: 1; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.entry-avatar {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.entry-avatar.lg { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 13px; }

.entry-icon {
  position: relative;
  overflow: hidden;
}

.entry-icon-branded {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: var(--accent);
}

.entry-icon-branded.is-fallback {
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)) !important;
  border-color: transparent;
  color: #fff;
}

.entry-icon .entry-letter {
  display: none;
}

.entry-favicon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.entry-avatar.lg .entry-favicon {
  width: 28px;
  height: 28px;
}

.entry-icon.is-fallback .entry-favicon {
  display: none;
}

.entry-icon.is-fallback .entry-letter {
  display: flex;
  line-height: 1;
}

.entry-info { flex: 1; min-width: 0; }

.entry-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.entry-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-type-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.entry-type-badge-login {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.entry-type-badge-api_key {
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.entry-type-badge-ssh_key {
  color: #4338ca;
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.28);
}

.entry-type-badge-oauth {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
}

.entry-secret-block {
  width: 100%;
  min-height: 9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  resize: vertical;
}

.entry-secret-block:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.btn-generate-ssh {
  margin-top: 0.65rem;
  width: 100%;
}

.entry-ssh-hint {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

#detail-password.detail-secret-block {
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  max-height: 14rem;
  overflow-y: auto;
}

a.detail-url-plain {
  color: var(--text-primary);
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

.modal-header-text .entry-type-badge {
  margin-top: 0.25rem;
}

.dash-tile-badge {
  position: absolute;
  top: 0.45rem;
  inset-inline-end: 0.45rem;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dash-tile-badge.dash-tile-badge-login {
  background: #2563eb;
}

.dash-tile-badge.dash-tile-badge-api {
  background: #10b981;
}

.dash-tile-badge.dash-tile-badge-ssh {
  background: #4f46e5;
}

.dash-tile-badge.dash-tile-badge-oauth {
  background: #f97316;
}

.entry-username {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.entry-actions {
  display: flex;
  gap: 0.1rem;
  flex-shrink: 0;
  opacity: 1;
  transition: var(--transition);
}

.entries-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-illustration {
  width: 100px; height: 100px;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-illustration svg,
.empty-illustration .lucide { width: 80px; height: 80px; opacity: 0.35; }

.empty-illustration-sm svg,
.empty-illustration-sm .lucide { width: 56px; height: 56px; }

.entries-empty h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.entries-empty p { margin-bottom: 1.5rem; font-size: 0.875rem; }

/* ── FAB ───────────────────────────────────────────────── */
.fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  z-index: 40;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.fab svg, .fab .lucide { width: 24px; height: 24px; }

.field-link-icon, .field-link-icon.lucide {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.fab:hover { transform: scale(1.05); }

/* ── Audit interne ─────────────────────────────────────── */
.audit-view {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 2rem 1rem;
}

.audit-card-vault {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  text-align: center;
}

.audit-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.audit-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.audit-card-icon svg,
.audit-card-icon .lucide {
  width: 26px;
  height: 26px;
}

.audit-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-card-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
}

.audit-form-vault {
  margin: 0 auto 1.25rem;
  max-width: 520px;
}

.audit-field-vault {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 58px;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 60px rgba(99, 102, 241, 0.16);
  transition: var(--transition);
}

[data-theme="light"] .audit-field-vault {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 0 60px rgba(99, 102, 241, 0.10);
}

.audit-field-vault:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--accent),
    0 0 60px rgba(99, 102, 241, 0.28);
}

[data-theme="light"] .audit-field-vault:focus-within {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--accent),
    0 0 60px rgba(99, 102, 241, 0.18);
}

.audit-input-vault {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0.75rem 0 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

[data-theme="light"] .audit-input-vault {
  color: #0f172a;
}

.audit-input-vault::placeholder { color: rgba(255, 255, 255, 0.5); }

[data-theme="light"] .audit-input-vault::placeholder { color: rgba(15, 23, 42, 0.5); }

.audit-toggle-vault {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .audit-toggle-vault { color: rgba(15, 23, 42, 0.55); }

.audit-toggle-vault:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }

[data-theme="light"] .audit-toggle-vault:hover { background: rgba(0, 0, 0, 0.06); color: #0f172a; }

.audit-toggle-vault svg {
  width: 18px;
  height: 18px;
}

.audit-toggle-vault[hidden] {
  display: none;
}

.audit-view .audit-eye-off,
.audit-view[data-reveal="true"] .audit-eye-open {
  display: none;
}

.audit-view .audit-eye-open,
.audit-view[data-reveal="true"] .audit-eye-off {
  display: inline-flex;
}

.audit-submit-vault {
  height: 40px;
  padding: 0 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.audit-submit-vault:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.audit-result-vault {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto 1rem;
}

.audit-result-vault.is-visible { display: block; }

.audit-result-vault.is-safe {
  background: rgba(6, 78, 59, 0.9);
  color: #34d399;
}

[data-theme="light"] .audit-result-vault.is-safe {
  background: #d1fae5;
  color: #047857;
}

.audit-result-vault.is-pwned {
  background: rgba(127, 29, 29, 0.9);
  color: #fca5a5;
}

[data-theme="light"] .audit-result-vault.is-pwned {
  background: #fee2e2;
  color: #b91c1c;
}

.audit-privacy-vault {
  margin: 0 auto;
  max-width: 520px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.audit-info-wrap {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5;
}

.audit-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.audit-info-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent);
}

.audit-info-btn svg,
.audit-info-btn .lucide {
  width: 16px;
  height: 16px;
}

.audit-info-popover {
  position: absolute;
  top: 36px;
  right: 0;
  width: 280px;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
  z-index: 10;
}

.audit-info-popover[hidden] {
  display: none;
}

.audit-advice-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.audit-advice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.audit-advice-btn[hidden] {
  display: none;
}

.audit-advice-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent);
}

.audit-advice-btn svg {
  width: 16px;
  height: 16px;
}

.audit-advice-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  overscroll-behavior: none;
  z-index: 40;
}

.audit-advice-backdrop[hidden] {
  display: none;
}

.audit-advice-panel {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.audit-advice-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.audit-advice-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-advice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.audit-advice-close:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.audit-advice-close svg {
  width: 16px;
  height: 16px;
}

.audit-advice-label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.audit-advice-label + .audit-advice-text {
  margin-bottom: 0.85rem;
}

.audit-advice-text {
  margin: 0;
}

.breach-result-more {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.breach-result-more:hover {
  opacity: 0.8;
}

.audit-breaches-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  overscroll-behavior: none;
  z-index: 40;
}

.audit-breaches-backdrop[hidden] {
  display: none;
}

.audit-breaches-panel {
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.audit-breaches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.audit-breaches-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-breaches-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.audit-breaches-close:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.audit-breaches-close svg {
  width: 16px;
  height: 16px;
}

.audit-breaches-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audit-breaches-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.audit-breaches-item {
  padding: 0.5rem 0.7rem;
  background: rgba(127, 29, 29, 0.15);
  border: 1px solid rgba(252, 165, 165, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
}

[data-theme="light"] .audit-breaches-item {
  background: #fee2e2;
  border-color: #fecaca;
  color: #7f1d1d;
}

/* ── Générateur ────────────────────────────────────────── */
.generator-view {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 180px);
  padding: 2.5rem 1rem 2rem;
}

.generator-switch {
  margin: 0 auto 1.75rem;
}

.generator-card {
  flex: 1;
  width: 100%;
  max-width: 560px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.generator-panel {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.generator-panel[hidden] {
  display: none;
}

.generator-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: left;
}

.generator-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.generator-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.generator-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.generator-input::placeholder {
  color: var(--text-muted);
}

.generator-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
}

.generator-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.generator-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.generator-hint {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.generator-length-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.generator-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
}

.generator-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.generator-stepper-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.generator-stepper-btn:active {
  transform: scale(0.92);
}

.generator-stepper-btn svg,
.generator-stepper-btn .lucide {
  width: 14px;
  height: 14px;
}

.generator-length {
  width: 46px;
  padding: 0.3rem 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.generator-length::-webkit-outer-spin-button,
.generator-length::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.generator-note {
  margin: -0.4rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.generator-note svg,
.generator-note .lucide {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}

.generator-field-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.generator-field-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.generator-password-value {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-align: center;
  outline: none;
  transition: var(--transition);
}

.generator-field-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.generator-field-copy[hidden] {
  display: none;
}

.generator-field-copy:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.generator-field-copy.copied {
  color: #34d399;
}

.generator-password-value::placeholder {
  color: var(--text-muted);
}

.generator-password-value:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.generator-password-value.is-safe {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

[data-theme="light"] .generator-password-value.is-safe {
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.generator-gen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.generator-gen-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.generator-gen-btn:active {
  transform: scale(0.96);
}

.generator-gen-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.generator-gen-btn svg,
.generator-gen-btn .lucide {
  width: 20px;
  height: 20px;
}

.generator-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.generator-status[hidden] {
  display: none;
}

[data-theme="light"] .generator-status {
  background: rgba(15, 23, 42, 0.05);
}

.generator-status.is-safe {
  color: #34d399;
  background: rgba(6, 78, 59, 0.45);
}

[data-theme="light"] .generator-status.is-safe {
  color: #047857;
  background: #d1fae5;
}

.generator-status.is-pwned {
  color: #f87171;
  background: rgba(127, 29, 29, 0.45);
}

[data-theme="light"] .generator-status.is-pwned {
  color: #b91c1c;
  background: #fee2e2;
}

