/* passman_style_a3f9m2.css */
/* Passman */
/* Full application styles: design tokens, auth views, sidebar vault layout, entry cards, modals, and PWA install prompt. */

/* Part 1: Variables, reset, body, auth */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #0a0a0f;
    --surface:      #13131a;
    --surface2:     #1c1c26;
    --surface3:     #252533;
    --border:       #2a2a3e;
    --border-h:     #3d3d5c;
    --text:         #e8e8f0;
    --text-muted:   #7b7b9a;
    --text-dim:     #4a4a6a;
    --accent:       #7c3aed;
    --accent-h:     #8b5cf6;
    --accent-light: rgba(124,58,237,0.12);
    --accent-glow:  rgba(124,58,237,0.28);
    --danger:       #dc2626;
    --danger-h:     #ef4444;
    --success:      #16a34a;
    --success-h:    #22c55e;
    --warning:      #d97706;
    --warning-h:    #f59e0b;
    --radius:       10px;
    --radius-sm:    6px;
    --shadow:       0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg:    0 8px 48px rgba(0,0,0,0.6);
    --sidebar-w:    240px;
    --transition:   0.18s ease;
}

html { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Auth ── */

.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 56px 20px 48px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.auth-brand-icon {
    color: var(--accent-h);
    flex-shrink: 0;
}

.auth-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-h);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.88rem;
}

.auth-tabs {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.auth-tab.active { background: var(--accent); color: #fff; }
.auth-tab:not(.active):hover { background: var(--surface2); color: var(--text); }

.auth-form {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-forgot {
    text-align: center;
    margin-top: 12px;
    font-size: 0.83rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-h);
    transition: color var(--transition);
}

.btn-link:hover { color: var(--accent-h); text-decoration-color: var(--accent-h); }

/* ── Inputs ── */

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    font-family: inherit;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea { resize: vertical; min-height: 72px; }
.form-select { appearance: none; cursor: pointer; }
.form-error { color: var(--danger-h); font-size: 0.83rem; }

/* Part 2: Buttons, vault layout, sidebar */

/* ── Buttons ── */

.btn {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    transition: background var(--transition), opacity var(--transition), transform var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn:not(:disabled):active { transform: scale(0.97); }

.btn-primary  { background: var(--accent);   color: #fff; }
.btn-primary:hover:not(:disabled)   { background: var(--accent-h); }

.btn-secondary { background: var(--surface3); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--border-h); }

.btn-danger    { background: var(--danger);  color: #fff; }
.btn-danger:hover:not(:disabled)    { background: var(--danger-h); }

.btn-ghost  { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--surface2); color: var(--text); border-color: var(--border-h); }

.btn-copy {
    background: var(--surface3);
    color: var(--text-muted);
    padding: 3px 10px;
    font-size: 0.78rem;
    border-radius: 4px;
    flex-shrink: 0;
}
.btn-copy:hover:not(:disabled) { color: var(--text); background: var(--border-h); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: 5px 12px; font-size: 0.82rem; }
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: var(--surface3); color: var(--text); }

/* ── Vault layout ── */

.vault-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.visible { display: block; }

/* ── Sidebar ── */

.vault-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-brand-icon { color: var(--accent-h); flex-shrink: 0; }

.sidebar-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-h);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-dim);
    padding: 10px 8px 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.87rem;
    transition: background var(--transition), color var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.sidebar-nav-item:hover { background: var(--surface2); color: var(--text); }

.sidebar-nav-item.active {
    background: var(--accent-light);
    color: var(--accent-h);
    font-weight: 500;
}

.sidebar-nav-count {
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--surface3);
    color: var(--text-muted);
    flex-shrink: 0;
}

.sidebar-nav-item.active .sidebar-nav-count {
    background: var(--accent-glow);
    color: var(--accent-h);
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px 10px;
}

.sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-username {
    font-size: 0.83rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.sidebar-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: background var(--transition), color var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.sidebar-action:hover { background: var(--surface2); color: var(--text); }
.sidebar-action.danger:hover { color: var(--danger-h); background: rgba(220,38,38,0.08); }

/* ── Vault content ── */

.vault-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.vault-topbar {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    flex-shrink: 0;
}

.search-wrap {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.vault-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.import-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 4px 10px;
}

/* Part 3: Entry cards, modal, generator, strength, requirements, recovery, animations, responsive */

/* ── Entries grid ── */

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
}

.empty-state {
    text-align: center;
    color: var(--text-dim);
    padding: 72px 20px;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-state svg { opacity: 0.25; }

/* ── Entry cards ── */

.entry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.entry-card { cursor: pointer; }

.entry-card:hover {
    border-color: var(--border-h);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.entry-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light), var(--shadow);
}

.entry-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.entry-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
}

.entry-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}

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

.entry-site {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.entry-category {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 1px;
    letter-spacing: 0.2px;
}

.entry-card-body {
    padding: 10px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.entry-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.entry-field label {
    font-size: 0.68rem;
    color: var(--text-dim);
    width: 58px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-field-value {
    flex: 1;
    font-size: 0.87rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    color: var(--text-muted);
}

.entry-field-value.mono {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.5px;
}

.entry-field-value.pw-visible {
    white-space: normal;
    overflow: visible;
    word-break: break-all;
    text-overflow: clip;
}

.entry-notes {
    display: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    word-break: break-word;
    line-height: 1.5;
    white-space: pre-wrap;
}

.entry-notes.expanded {
    display: block;
}

.dup-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(217,119,6,0.15);
    color: var(--warning-h);
    flex-shrink: 0;
    white-space: nowrap;
}

.entry-card-actions {
    display: flex;
    gap: 6px;
    padding: 10px 16px 12px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

/* ── Modal ── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: slideUp 0.2s ease;
}

.modal-title { font-size: 1.08rem; font-weight: 700; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; }
.modal-row { display: flex; gap: 8px; align-items: center; }

/* ── Strength meter ── */

.strength-bar { display: flex; gap: 3px; height: 3px; margin-top: 4px; }
.strength-bar span { flex: 1; border-radius: 99px; background: var(--surface3); transition: background 0.3s; }
.strength-label { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }
.strength-1 span:nth-child(-n+1) { background: var(--danger); }
.strength-2 span:nth-child(-n+2) { background: var(--danger); }
.strength-3 span:nth-child(-n+3) { background: var(--warning); }
.strength-4 span:nth-child(-n+4) { background: var(--warning); }
.strength-5 span:nth-child(-n+5) { background: var(--success); }
.strength-6 span:nth-child(-n+6) { background: var(--success); }
.strength-7 span:nth-child(-n+7) { background: var(--success); }

/* ── Generator ── */

.generator-panel {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gen-options { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-option { display: flex; align-items: center; gap: 5px; font-size: 0.83rem; color: var(--text-muted); cursor: pointer; }
.gen-option input[type=checkbox] { accent-color: var(--accent); cursor: pointer; }

.gen-result {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    background: var(--surface3);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    color: var(--text);
    min-height: 40px;
    letter-spacing: 0.3px;
}

/* ── Password requirements ── */

.pw-requirements {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.81rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.requirement.met { color: var(--success-h); }
.req-icon { font-size: 0.72rem; width: 14px; text-align: center; flex-shrink: 0; }
.requirement:not(.met) .req-icon { color: var(--danger-h); }
.requirement.met .req-icon { color: var(--success-h); }

/* ── Recovery screen ── */

.recovery-warning {
    font-size: 0.87rem;
    color: var(--warning-h);
    background: rgba(217,119,6,0.08);
    border: 1px solid rgba(217,119,6,0.25);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    line-height: 1.55;
}

.recovery-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recovery-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    text-align: center;
    color: var(--text);
    background: var(--surface3);
    padding: 16px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    user-select: all;
    border: 1px solid var(--border-h);
}

.recovery-actions { display: flex; gap: 8px; justify-content: center; }

.recovery-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.45;
    margin-top: 4px;
}

.recovery-confirm-label input[type=checkbox] {
    accent-color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ── About modal ── */

.about-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.about-section:last-of-type { border-bottom: none; padding-bottom: 0; }

.about-heading {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.about-body {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 2px;
}

.about-list li {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.about-list li::before {
    position: absolute;
    left: 0;
    font-size: 0.75rem;
}

.about-list.positive li::before { content: '✓'; color: var(--success-h); }
.about-list.negative li::before { content: '~'; color: var(--warning-h); }

.about-caveat {
    font-size: 0.83rem;
    color: var(--text-muted);
    background: var(--accent-light);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    line-height: 1.65;
}

/* ── Animations ── */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.vault-scroll .entries-grid { animation: slideIn 0.2s ease; }

/* ── Responsive ── */

@media (max-width: 768px) {
    .vault-sidebar {
        position: fixed;
        top: 0;
        left: calc(-1 * var(--sidebar-w) - 2px);
        bottom: 0;
        transition: left 0.25s cubic-bezier(0.4,0,0.2,1);
        box-shadow: none;
    }

    .vault-sidebar.open {
        left: 0;
        box-shadow: var(--shadow-lg);
    }

    .vault-scroll { padding: 14px; }
    .vault-topbar { padding: 10px 14px; }
    .entries-grid { grid-template-columns: 1fr; }

    .auth-container { padding: 40px 16px 32px; }
}

@media (min-width: 769px) {
    .btn-hamburger { display: none; }
}

/* Part 4: MFA modal components */

.mfa-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mfa-loading {
    font-size: 0.87rem;
    color: var(--text-muted);
    padding: 12px 0;
}

.mfa-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mfa-section:last-of-type { border-bottom: none; padding-bottom: 4px; }

.mfa-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mfa-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.mfa-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 99px;
    background: var(--surface3);
    color: var(--text-muted);
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.mfa-badge.on {
    background: rgba(22,163,74,0.15);
    color: var(--success-h);
}

.mfa-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.mfa-qr {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.mfa-qr svg {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 8px;
}

.mfa-secret {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    text-align: center;
    color: var(--text);
    word-break: break-all;
    user-select: all;
}

.mfa-key-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.mfa-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    gap: 10px;
}

.mfa-key-name {
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Settings modal ── */

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.settings-row:last-of-type { border-bottom: none; }

.settings-row-info { flex: 1; }

.settings-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 3px;
}

.settings-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-body {
    display: flex;
    flex-direction: column;
}

.settings-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-bottom: 12px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
}

.settings-form-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.settings-body .pw-requirements { margin-bottom: 12px; }

.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--surface3);
    border-radius: 24px;
    transition: background var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--text-dim);
    border-radius: 50%;
    transition: transform var(--transition), background var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: #fff; }

/* ── Keyboard shortcut toast ── */

.kb-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface3);
    border: 1px solid var(--border-h);
    color: var(--text);
    font-size: 0.84rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 500;
    animation: fadeIn 0.15s ease;
    pointer-events: none;
}
