:root {
    --bg-primary: #08080a;
    --bg-secondary: #111113;
    --bg-card: #151517;
    --bg-input: #1c1c1f;
    --bg-navbar: rgba(8, 8, 10, 0.8);
    --border-color: #28272b;
    --border-focus: #c9a227;
    --text-primary: #f0ece4;
    --text-secondary: #a09882;
    --text-muted: #7d7468;
    --accent: #c9a227;
    --accent-hover: #e0b82d;
    --accent-glow: rgba(201, 162, 39, 0.12);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}
[data-theme="light"] {
    --bg-primary: #f8f8fa;
    --bg-secondary: #f0f0f3;
    --bg-card: #ffffff;
    --bg-input: #e8e8ec;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --border-color: #d5d5db;
    --border-focus: #b8921e;
    --text-primary: #1a1a1e;
    --text-secondary: #5a5a66;
    --text-muted: #8a8a96;
    --accent: #b8921e;
    --accent-hover: #a07d14;
    --accent-glow: rgba(184, 146, 30, 0.1);
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
#main-content { flex: 1; }

/* Navbar */
.sc-navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sc-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.sc-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.sc-brand:hover { color: var(--text-primary); }
.sc-brand span { color: var(--accent); }
.sc-nav-right { display: flex; align-items: center; gap: 4px; }
.sc-nav { display: flex; align-items: center; gap: 4px; }
.sc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.sc-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-input);
}
.sc-nav .sc-btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}
.sc-nav .sc-btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-input);
}
.sc-nav a.sc-nav-active {
    color: var(--accent);
    background: var(--accent-glow);
}
.sc-nav-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    vertical-align: middle;
    border: 1.5px solid var(--border-color);
    flex-shrink: 0;
}
.sc-nav-user {
    display: inline-flex;
    align-items: center;
}

/* Cards */
.sc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

/* Forms */
.sc-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.sc-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.15s ease;
    outline: none;
}
.sc-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.sc-input::placeholder { color: var(--text-muted); }

.sc-field { margin-bottom: 20px; }

/* Buttons */
.sc-btn {
    width: 100%;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sc-btn-primary {
    background: var(--accent);
    color: #fff;
}
.sc-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.sc-btn-primary:active { transform: translateY(0); }

/* Checkbox */
.sc-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.sc-checkbox input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-input);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.sc-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='14' height='14'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.sc-checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Links */
.sc-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}
.sc-link:hover { color: var(--accent-hover); }

/* Validation errors */
.sc-errors {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--danger);
}
.sc-errors ul { margin: 0; padding-left: 16px; }
.sc-errors li { margin-bottom: 2px; }

/* Auth page layout */
.sc-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 16px;
}
.sc-auth-container { width: 100%; max-width: 420px; }
.sc-auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.sc-auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.sc-auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.sc-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sc-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

/* Password strength meter */
.vault-strength-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.vault-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}
.vault-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}
.vault-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.sc-animate { animation: fadeIn 0.4s ease; }

/* Smooth theme transition */
body,
.sc-navbar,
.sc-card,
.sc-input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Toast notifications */
.sc-toast-container {
    position: fixed;
    top: 68px;
    right: 16px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    pointer-events: none;
}
.sc-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    animation: scToastIn 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}
.sc-toast.sc-toast-out {
    animation: scToastOut 0.25s ease forwards;
}
.sc-toast-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--success);
}
.sc-toast-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--danger);
}
.sc-toast-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--warning);
}
.sc-toast-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--info);
}
.sc-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 1px;
}
.sc-toast-message {
    flex: 1;
    line-height: 1.4;
}
.sc-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0 2px;
    font-size: 1.1rem;
    line-height: 1;
    transition: opacity 0.15s ease;
}
.sc-toast-close:hover { opacity: 1; }
.sc-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.4;
    border-radius: 0 0 0 10px;
}
@keyframes scToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scToastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}
@media (max-width: 576px) {
    .sc-toast-container {
        top: auto;
        bottom: 16px;
        right: 8px;
        left: 8px;
        max-width: none;
    }
    .sc-toast {
        animation: scToastInMobile 0.3s ease forwards;
    }
    .sc-toast.sc-toast-out {
        animation: scToastOutMobile 0.25s ease forwards;
    }
}
@keyframes scToastInMobile {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scToastOutMobile {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

/* Theme toggle */
.sc-theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}
.sc-theme-toggle:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Language toggle */
.sc-lang-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
}
.sc-lang-toggle:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Password eye toggle */
.sc-input-eye-wrap { position: relative; }
.sc-input-eye-wrap .sc-input { padding-right: 42px; }
.sc-eye-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-eye-toggle:hover { color: var(--text-secondary); }
.sc-eye-toggle::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6455' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.sc-eye-toggle.visible::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6455' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

/* Confirm dialog */
.sc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.sc-confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sc-confirm-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 380px;
    transform: scale(0.95) translateY(8px);
    transition: transform 0.2s ease;
}
.sc-confirm-overlay.active .sc-confirm-dialog {
    transform: scale(1) translateY(0);
}
.sc-confirm-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.sc-confirm-message {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}
.sc-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.sc-confirm-cancel {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sc-confirm-cancel:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--text-muted);
}
.sc-confirm-ok {
    padding: 8px 20px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sc-confirm-ok.sc-confirm-danger {
    background: var(--danger);
    color: #fff;
}
.sc-confirm-ok.sc-confirm-danger:hover {
    background: #dc2626;
}
.sc-confirm-ok.sc-confirm-primary {
    background: var(--accent);
    color: #fff;
}
.sc-confirm-ok.sc-confirm-primary:hover {
    background: var(--accent-hover);
}

/* Password Generator Panel */
.pwd-gen-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.pwd-gen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pwd-gen-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
}
.pwd-gen-close:hover { color: var(--text-primary); }
.pwd-gen-mode-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pwd-gen-mode-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pwd-gen-mode-btn:hover:not(.active) {
    background: var(--bg-input);
    border-color: var(--text-muted);
}
.pwd-gen-check {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.pwd-gen-check input[type="checkbox"] {
    accent-color: var(--accent);
    width: 14px;
    height: 14px;
}
.pwd-gen-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    outline: none;
}
.pwd-gen-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* Trash */
.vault-trash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}
.vault-trash-card {
    opacity: 0.85;
    border-style: dashed;
}

/* Password Health */
.vault-health-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}
.vault-health-score {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}
.vault-health-ring {
    width: 110px;
    height: 110px;
    transform: rotate(-90deg);
}
.vault-health-score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.vault-health-score-num {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.vault-health-score-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 3px;
}
.vault-health-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
}
.vault-health-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: border-color 0.15s ease;
}
.vault-health-stat-count {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.vault-health-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vault-health-issues-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.vault-health-issues-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vault-health-issue {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.15s ease;
}
.vault-health-issue:hover {
    border-color: var(--text-muted);
}
.vault-health-issue-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vault-health-issue-info {
    flex: 1;
    min-width: 0;
}
.vault-health-issue-name {
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vault-health-issue-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.vault-health-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .vault-health-summary {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .vault-health-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .vault-health-issue {
        flex-wrap: wrap;
        gap: 8px;
    }
    .vault-health-issue-icon {
        display: none;
    }
}

/* Health loading */
.vault-health-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.vault-health-loading svg {
    animation: healthPulse 1.5s ease-in-out infinite;
}
@keyframes healthPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* Mobile hamburger */
.sc-hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}
.sc-hamburger:hover {
    background: var(--bg-input);
    color: var(--text-primary);
}

/* ===== Mobile responsive ===== */
@media (max-width: 640px) {
    .sc-hamburger { display: flex; }

    .sc-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
        z-index: 99;
    }
    .sc-nav.sc-nav-open { display: flex; }

    .sc-nav a {
        display: block;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .sc-nav .sc-nav-user {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
        margin-bottom: 2px;
    }
    .sc-nav .sc-btn-outline {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        border-radius: 8px;
        margin-top: 2px;
    }
    .sc-nav #sc-logout-form { display: block; }

    .sc-navbar { position: relative; }

    .sc-page-wrapper { padding: 24px 0 !important; }

    .sc-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .sc-auth-wrapper {
        padding: 24px 12px;
    }
    .sc-auth-header { margin-bottom: 24px; }
    .sc-auth-header h1 { font-size: 1.3rem; }

    .sc-confirm-dialog {
        padding: 20px 16px;
        border-radius: 12px;
    }

    /* Profile name grid stacking */
    #sc-name-grid { grid-template-columns: 1fr !important; }

    /* Global search mobile */
    .gs-overlay { padding-top: 8vh; }
    .gs-container { margin: 0 8px; border-radius: 12px; }

    /* Table scroll on mobile */
    .sc-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sc-table-responsive table { min-width: 480px; }

    /* Modal mobile adjustments */
    .sc-modal-content { margin: 8px !important; max-width: calc(100vw - 16px) !important; }
    .sc-modal-body { max-height: calc(100vh - 120px); overflow-y: auto; }

    /* Vault bulk bar mobile */
    .vault-bulk-bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
    .vault-bulk-bar .sc-btn { font-size: 0.8rem; padding: 6px 10px; }
}

/* Footer */
.sc-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.sc-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.sc-footer a:hover {
    color: var(--text-secondary);
}
.sc-footer-sep {
    margin: 0 6px;
}

/* Loading spinner for buttons */
.sc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: scSpin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes scSpin {
    to { transform: rotate(360deg); }
}

/* Vault skeleton loaders */
.vault-skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    height: 120px;
    position: relative;
    overflow: hidden;
}
.vault-skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: scShimmer 1.5s infinite;
}
@keyframes scShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Accessibility: Skip Link */
.sc-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.15s ease;
}
.sc-skip-link:focus {
    top: 0;
}

/* Offline banner */
.sc-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(201, 162, 39, 0.15);
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
}

/* Accessibility: Screen reader only */
.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;
}

/* Accessibility: Focus visible styles */
.sc-btn:focus-visible,
.sc-btn-outline:focus-visible,
.sc-btn-primary:focus-visible,
.sc-nav a:focus-visible,
.sc-nav-user:focus-visible,
.sc-theme-toggle:focus-visible,
.sc-lang-toggle:focus-visible,
.sc-hamburger:focus-visible,
.sc-input:focus-visible,
.vault-icon-btn:focus-visible,
.vault-sidebar-item:focus-visible,
.vault-sidebar-add-btn:focus-visible,
.vault-action-btn:focus-visible,
.vault-fav-btn:focus-visible,
.vault-select-check:focus-visible,
.vault-view-btn:focus-visible,
.vault-folder-toggle:focus-visible,
.vault-reveal-btn:focus-visible,
.vault-copy-btn:focus-visible,
.vault-generate-btn:focus-visible,
.vault-color-dot:focus-visible,
.vault-share-tag:focus-visible,
.ext-share-link-trigger:focus-visible,
.vault-bulk-bar button:focus-visible,
.btn-close:focus-visible,
.vault-item-card:focus-visible,
.sc-profile-tab:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Notification Center ──────────────────────────── */
.sc-notif-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}
.sc-notif-bell {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color .2s, background .2s;
    width: 32px;
    height: 32px;
}
.sc-notif-bell:hover {
    color: var(--accent);
    background: var(--accent-glow);
}
.sc-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    padding: 2px 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.sc-notif-badge.sc-notif-pulse {
    animation: sc-notif-pulse 1.5s ease-in-out 3;
}
@keyframes sc-notif-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6); }
    50% { transform: scale(1.3); box-shadow: 0 0 8px 4px rgba(231, 76, 60, 0); }
}
.sc-notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 200;
    overflow: hidden;
    margin-top: 8px;
}
.sc-notif-open .sc-notif-dropdown {
    display: flex;
    flex-direction: column;
}
.sc-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.sc-notif-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sc-notif-actions-sep {
    color: var(--border-color);
    font-size: 12px;
    user-select: none;
}
.sc-notif-mark-all,
.sc-notif-clear-all {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 0;
    font-size: 12px;
    font-family: inherit;
    transition: color .2s;
}
.sc-notif-mark-all:hover {
    color: var(--accent);
}
.sc-notif-clear-all:hover {
    color: var(--danger);
}
.sc-notif-mark-all:focus-visible,
.sc-notif-clear-all:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.sc-notif-list {
    overflow-y: auto;
    flex: 1;
    max-height: 388px;
}
.sc-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background .15s;
}
.sc-notif-item:last-child {
    border-bottom: none;
}
.sc-notif-item:hover {
    background: rgba(255,255,255,.03);
}
.sc-notif-unread {
    background: rgba(201,162,39,.06);
}
.sc-notif-unread:hover {
    background: rgba(201,162,39,.10);
}
.sc-notif-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.sc-notif-content {
    flex: 1;
    min-width: 0;
}
.sc-notif-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}
.sc-notif-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.3;
    word-break: break-word;
}
.sc-notif-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.sc-notif-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s, color .15s, background .15s;
    margin-left: auto;
    align-self: center;
}
.sc-notif-item:hover .sc-notif-dismiss,
.sc-notif-item:focus-within .sc-notif-dismiss {
    opacity: 1;
}
.sc-notif-dismiss:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, .1);
}
.sc-notif-dismiss:focus-visible {
    opacity: 1;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.sc-notif-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 32px 16px;
    font-size: 13px;
}
.sc-notif-bell:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.sc-notif-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

@media (max-width: 640px) {
    .sc-notif-dropdown {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 56px);
        border-radius: 0;
        margin-top: 0;
    }
}

/* Global Search Overlay (Ctrl+K) */
.gs-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}
.gs-overlay.active {
    display: flex;
    animation: fadeIn 0.12s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gs-container {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}
.gs-input-wrap {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}
.gs-search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}
.gs-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}
.gs-input::placeholder {
    color: var(--text-muted);
}
.gs-kbd {
    display: inline-block;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2px 8px;
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.gs-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}
.gs-group-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px 18px 4px;
}
.gs-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.1s;
}
.gs-result:hover, .gs-result-active {
    background: var(--accent-glow);
}
.gs-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}
.gs-result-info {
    flex: 1;
    min-width: 0;
}
.gs-result-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gs-result-name mark {
    background: rgba(201,162,39,0.25);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
.gs-result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.gs-result-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-muted);
    flex-shrink: 0;
}
.gs-empty, .gs-hint {
    text-align: center;
    padding: 32px 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.gs-hint {
    font-size: 0.82rem;
    padding: 24px 18px;
}

/* Dashboard */
.sc-dash-page { padding: 48px 0; }
.sc-dash-container { max-width: 800px; margin: 0 auto; }
.sc-dash-welcome { margin-bottom: 32px; transition: opacity 0.6s ease, transform 0.6s ease; }
.sc-dash-welcome-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.sc-dash-welcome-sub { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.sc-dash-setup-card { text-align: center; padding: 48px 32px; }
.sc-dash-icon-wrap { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-glow); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.sc-dash-setup-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.sc-dash-setup-desc { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 24px; max-width: 400px; display: inline-block; }
.sc-dash-setup-btn { width: auto; display: inline-block; padding: 11px 32px; }
.sc-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.sc-dash-stat { padding: 24px; }
.sc-dash-stat-label { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.sc-dash-stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sc-dash-stat-sub { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.sc-dash-stat-link { padding: 24px; text-decoration: none; color: inherit; display: block; transition: border-color 0.15s; }
.sc-dash-stat-link:hover { border-color: var(--accent); }
.sc-dash-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sc-dash-section-label { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.sc-dash-col { display: flex; flex-direction: column; gap: 10px; }
.sc-dash-share-link { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: inherit; padding: 4px 8px; margin: -4px -8px; border-radius: 6px; transition: background 0.15s; }
.sc-dash-share-link:hover { background: var(--bg-input); }
.sc-dash-share-label { font-size: 0.85rem; color: var(--text-secondary); }
.sc-dash-share-count { font-size: 1rem; font-weight: 600; }
.sc-dash-donut-wrap { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.sc-dash-donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.sc-dash-donut-total { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.sc-dash-donut-sub { font-size: 0.65rem; color: var(--text-muted); }
.sc-dash-legend { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.sc-dash-legend-item { display: flex; align-items: center; gap: 8px; }
.sc-dash-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-dash-legend-label { font-size: 0.78rem; color: var(--text-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-dash-legend-count { font-size: 0.8rem; font-weight: 600; }
.sc-dash-empty { color: var(--text-muted); font-size: 0.85rem; }
.sc-dash-card { padding: 24px; margin-bottom: 16px; }
.sc-dash-bar-row { display: flex; align-items: center; gap: 10px; }
.sc-dash-bar-label { font-size: 0.78rem; color: var(--text-secondary); width: 90px; flex-shrink: 0; }
.sc-dash-bar-track { flex: 1; height: 8px; background: var(--bg-input); border-radius: 4px; overflow: hidden; }
.sc-dash-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }
.sc-dash-bar-count { font-size: 0.8rem; font-weight: 600; min-width: 24px; text-align: right; }
.sc-dash-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-dash-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); }
.sc-dash-tag-count { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.sc-dash-actions-card { padding: 20px 24px; margin-bottom: 16px; }
.sc-dash-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-dash-action-btn { width: auto; padding: 10px 24px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; }
.sc-dash-action-btn-outline { width: auto; padding: 10px 24px; font-size: 0.85rem; background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.sc-dash-health-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sc-dash-health-link { font-size: 0.78rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.sc-dash-health-body { display: flex; align-items: center; gap: 20px; }
.sc-dash-health-score { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; flex-shrink: 0; border: 3px solid var(--border-color); }
.sc-dash-health-summary { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.sc-dash-security-col { display: flex; flex-direction: column; gap: 12px; }
.sc-dash-security-row { display: flex; align-items: center; justify-content: space-between; }
.sc-dash-security-label { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.sc-dash-badge-enabled { font-size: 0.8rem; font-weight: 600; color: var(--success); background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); padding: 3px 10px; border-radius: 6px; }
.sc-dash-badge-warning { font-size: 0.8rem; font-weight: 600; color: var(--warning); background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); padding: 3px 10px; border-radius: 6px; text-decoration: none; }
.sc-dash-badge-active { font-size: 0.82rem; font-weight: 600; color: var(--success); }
.sc-dash-badge-muted { font-size: 0.82rem; color: var(--text-muted); }
.sc-onboarding-icon-wrap { width: 72px; height: 72px; border-radius: 18px; background: var(--accent-glow); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.sc-onboarding-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.03em; }
.sc-onboarding-desc { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 24px; line-height: 1.6; }
.sc-onboarding-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; text-align: left; }
.sc-onboarding-feature { display: flex; align-items: center; gap: 12px; }
.sc-onboarding-feature-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-onboarding-feature-title { font-weight: 600; font-size: 0.88rem; }
.sc-onboarding-feature-desc { color: var(--text-muted); font-size: 0.78rem; }
.sc-onboarding-actions { display: flex; gap: 12px; justify-content: center; }
.sc-onboarding-btn-skip { width: auto; padding: 10px 24px; background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }
.sc-onboarding-btn-next { width: auto; padding: 10px 28px; }
.sc-onboarding-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.sc-onboarding-warning { background: rgba(201, 162, 39, 0.08); border: 1px solid rgba(201, 162, 39, 0.2); border-radius: 12px; padding: 16px; margin-bottom: 28px; font-size: 0.84rem; color: var(--accent); line-height: 1.5; }
.sc-onboarding-desc-sm { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 12px; line-height: 1.6; }
.sc-onboarding-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sc-onboarding-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 40px 36px; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.sc-onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); transition: background 0.2s; }
.sc-onboarding-dot.active { background: var(--accent); }
@media (max-width: 480px) { .sc-onboarding-card { padding: 28px 20px; } }

/* Vault Modal Utilities */
.vault-modal-cancel { flex: 0 0 auto; padding: 8px 20px; }
.vault-modal-save { width: auto; padding: 8px 24px; }
.vault-modal-delete-btn { width: auto; padding: 8px 24px; background: var(--danger); color: #fff; }
.vault-modal-folder-delete { width: auto; padding: 8px 16px; background: var(--danger); color: #fff; margin-right: auto; }
.vault-modal-folder-share { width: auto; padding: 8px 16px; background: rgba(59,130,246,0.15); color: #3b82f6; border-color: rgba(59,130,246,0.3); }
.vault-modal-new-folder-row { display: flex; gap: 8px; align-items: center; }
.vault-modal-new-folder-cancel { padding: 8px 14px; flex-shrink: 0; }
.vault-modal-loading { color: var(--text-muted); font-size: 0.85rem; }
.vault-modal-delete-msg { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.vault-modal-delete-name { color: var(--text-primary); }
.vault-modal-ext-desc { font-size: 0.82rem; color: var(--text-secondary); margin: 0 0 16px; }
.vault-modal-pw-row { display: flex; gap: 8px; }
.vault-modal-success-box { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.vault-modal-success-label { font-size: 0.78rem; font-weight: 600; color: var(--success); margin-bottom: 8px; }
.vault-share-link-field { font-size: 0.8rem; font-family: monospace; }
.vault-modal-copy-btn { width: auto; padding: 8px 16px; flex-shrink: 0; }
.vault-modal-divider { border: 0; border-top: 1px solid var(--border-color); margin: 14px 0; }
.vault-share-section-title { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.vault-modal-email-row { display: flex; gap: 8px; }
.vault-modal-email-input { font-size: 0.85rem; flex: 1; }
.vault-modal-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.vault-modal-qr-btn { font-size: 0.78rem; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }
.vault-modal-qr-container { display: inline-block; padding: 12px; background: #fff; border-radius: 8px; }
.vault-modal-qr-caption { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; }
.vault-modal-qr-download { margin-top: 8px; font-size: 0.75rem; padding: 5px 12px; }
.vault-modal-footer-wrap { flex-wrap: wrap; }
.vault-modal-ext-link-row { width: 100%; text-align: center; margin-bottom: 8px; }

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
