html, body {
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    position: relative;
    display: flex;
    flex-direction: row;
}

main {
    flex: 1;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #1b1b1b;
    color: white;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.content {
    padding-top: 1.1rem;
}

.fs-sidebar-brand {
    background: #0f172a;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg,#0f172a 0%,#111827 100%);
}

.nav-link {
    color: #cbd5e1 !important;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    margin: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: white !important;
    }

    .nav-link.active {
        background: #2563eb;
        color: white !important;
        box-shadow: 0 8px 20px rgba(37,99,235,0.35);
    }
.fs-topbar {
    height: 64px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.content {
    min-height: calc(100vh - 64px);
}


:root {
    --fs-sidebar: #0f172a;
    --fs-sidebar-hover: rgba(255,255,255,0.06);
    --fs-sidebar-text: #cbd5e1;
    --fs-primary: #3b82f6;
    --fs-primary-soft: #1d4ed8;
}

body {
    background: var(--fs-light);
}

.card {
    border: none;
    border-radius: 18px;
    padding: 10px;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(15,23,42,0.08);
}

.btn-primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 10px;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
        color: #ffffff !important;
    }

    .btn-primary:disabled {
        background-color: #93c5fd !important;
        border-color: #93c5fd !important;
        color: #ffffff !important;
    }

.table {
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
        border-bottom: 1px solid #e5e7eb;
    }

    .table tbody tr:hover {
        background: #f8fafc;
    }

    .table td {
        vertical-align: middle;
    }

h1, h2, h3 {
    font-weight: 700;
    color: #0f172a;
}

.page-title {
    margin-bottom: 24px;
    font-size: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

    .dashboard-grid .card {
        min-height: 120px;
    }

    .dashboard-grid h6 {
        font-size: 14px;
        color: #64748b;
    }

    .dashboard-grid h2 {
        font-size: 34px;
        font-weight: 700;
        color: #0f172a;
    }

.dashboard-card {
    position: relative;
    overflow: hidden;
}

    .dashboard-card::after {
        content: "";
        position: absolute;
        right: -20px;
        top: -20px;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: rgba(37,99,235,0.08);
    }

.fs-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #16a34a;
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 280px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f6fb;
    padding: 30px;
}

.auth-card {
    width: 100%;
    max-width: 470px;
    background: white;
    border-radius: 18px;
    padding: 34px 42px;
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
}

    .auth-card h2 {
        font-weight: 600;
    }

.form-control {
    border-radius: 10px;
}

.btn-primary {
    border-radius: 10px;
    height: 52px;
    font-size: 18px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #f4f7fb;
}

.auth-brand-panel {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    padding: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand-logo {
    max-height: 120px;
    margin-bottom: 30px;
}

.auth-brand-panel h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-brand-subtitle {
    font-size: 20px;
    color: #dbeafe;
    max-width: 520px;
    margin-bottom: 36px;
}

.auth-feature {
    font-size: 18px;
    margin-bottom: 16px;
    color: #eff6ff;
}

.auth-brand-footer {
    font-size: 14px;
    color: #bfdbfe;
}

.auth-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-login-card {
    width: 100%;
    max-width: 430px;
    background: white;
    padding: 44px;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

    .auth-login-card h2 {
        font-weight: 700;
        margin-bottom: 6px;
    }

    .auth-login-card .form-control {
        border-radius: 10px;
    }

    .auth-login-card .btn-primary {
        border-radius: 10px;
        height: 52px;
        font-size: 17px;
        font-weight: 600;
    }

.auth-version {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 40px;
        min-height: 360px;
    }

        .auth-brand-panel h1 {
            font-size: 34px;
        }
}

.auth-logo {
    max-height: 135px;
}

.auth-kicker {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 700;
}

.auth-title {
    font-size: 34px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.auth-signin {
    background: #1565C0;
    border-color: #1565C0;
}

.auth-signin:hover {
    background:#0D47A1;
    border-color: #1e3a8a;
}

.auth-link {
    font-size: 14px;
}

.auth-footer {
    font-size: 12px;
    color: #7b8794;
}

.auth-security {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

    .auth-security i {
        color: #1565C0;
        margin-right: 6px;
    }

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .dashboard-header h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .dashboard-header p {
        color: #64748b;
        margin: 0;
    }

.dashboard-status {
    background: #e0f2fe;
    color: #075985;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.summary-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.summary-value {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 8px;
}

.summary-note {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 6px;
}

.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.section-header {
    margin-bottom: 18px;
}

    .section-header h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .section-header p {
        color: #64748b;
        margin: 0;
    }

.dashboard-table table {
    margin-bottom: 0;
}

.dashboard-table thead {
    background: #f8fafc;
}

.dashboard-table th {
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 1100px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.security-page {
    display: flex;
    justify-content: center;
    padding: 32px;
}

.security-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
}

.security-header {
    text-align: center;
    margin-bottom: 32px;
}

.security-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #1565C0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    font-size: 24px;
}

.security-header h2 {
    font-weight: 700;
    margin-bottom: 8px;
}

.security-header p {
    color: #64748b;
    margin: 0 auto;
    max-width: 560px;
}

.setup-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1565C0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.setup-step h5 {
    font-weight: 700;
    margin-bottom: 6px;
}

.setup-step p {
    color: #64748b;
}

.qr-wrapper {
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 16px;
    margin: 10px 0 16px 0;
}

.qr-code {
    width: 220px;
    height: 220px;
}

.manual-key {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    max-width: 480px;
}

    .manual-key span {
        display: block;
        color: #64748b;
        font-size: 13px;
        margin-bottom: 6px;
    }

.security-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.security-status-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

    .security-status-item span {
        display: block;
        color: #64748b;
        font-size: 13px;
        margin-bottom: 6px;
    }

    .security-status-item strong {
        font-size: 16px;
    }

@media (max-width: 800px) {
    .security-status-grid {
        grid-template-columns: 1fr;
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

    .page-header h1 {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .page-header p {
        color: #64748b;
        margin: 0;
    }

.admin-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.user-row {
    display: grid;
    grid-template-columns: 54px 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

    .user-row:last-child {
        border-bottom: none;
    }

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #075985;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-main h5 {
    margin: 0;
    font-weight: 700;
}

.user-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .user-row {
        grid-template-columns: 46px 1fr;
    }

        .user-meta,
        .user-row button {
            grid-column: 2;
        }
}

/* =========================
   FraudShield Design System
   ========================= */

.fs-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px;
}

.fs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.fs-page-title h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.fs-page-title p {
    margin: 6px 0 0 0;
    color: #64748b;
    font-size: 15px;
}

.fs-actions {
    display: flex;
    gap: 10px;
}

.fs-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.fs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.fs-search {
    max-width: 420px;
    width: 100%;
}

.fs-user-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
}

    .fs-user-row:last-child {
        border-bottom: none;
    }

.fs-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #1e3a8a);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-user-name {
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 3px;
}

.fs-user-email {
    color: #64748b;
    font-size: 14px;
}

.fs-pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fs-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.fs-pill-blue {
    background: #dbeafe;
    color: #1e40af;
}

.fs-pill-green {
    background: #dcfce7;
    color: #166534;
}

.fs-pill-orange {
    background: #ffedd5;
    color: #9a3412;
}

.fs-pill-red {
    background: #fee2e2;
    color: #991b1b;
}

.fs-pill-grey {
    background: #f1f5f9;
    color: #475569;
}

.fs-empty {
    padding: 40px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 900px) {
    .fs-page-header {
        flex-direction: column;
    }

    .fs-user-row {
        grid-template-columns: 48px 1fr;
    }

        .fs-pill-group,
        .fs-user-row .btn {
            grid-column: 2;
        }
}

.user-details-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px;
    margin-bottom: 24px;
}

.user-details-avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
}

.user-details-hero h2 {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
}

.user-details-hero p {
    margin: 4px 0 0 0;
    color: #64748b;
}

.user-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.user-details-card {
    padding: 24px;
}

    .user-details-card h4 {
        font-weight: 750;
        margin-bottom: 18px;
    }

.details-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

    .details-row:last-child {
        border-bottom: none;
    }

    .details-row span {
        color: #64748b;
    }

    .details-row strong {
        color: #0f172a;
        text-align: right;
    }

@media (max-width: 900px) {
    .user-details-grid {
        grid-template-columns: 1fr;
    }

    .user-details-hero {
        align-items: flex-start;
    }
}

.fs-sidebar {
    min-height: 100vh;
    background: #0f172a;
    color: #e5e7eb;
}

.fs-sidebar-brand {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.fs-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-brand-title {
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.fs-brand-subtitle {
    font-size: 12px;
    color: #94a3b8;
}

.fs-nav {
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    gap: 4px;
}

.fs-nav-section {
    margin: 18px 10px 6px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
}

.fs-nav-link,
.fs-nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
}

    .fs-nav-link svg,
    .fs-nav-button svg {
        width: 18px;
        height: 18px;
        color: #94a3b8;
    }

    .fs-nav-link:hover svg,
    .fs-nav-link.active svg,
    .fs-nav-button:hover svg {
        color: #38bdf8;
    }

.fs-summary-icon svg {
    width: 24px;
    height: 24px;
}

        .fs-nav-link:hover i,
        .fs-nav-link.active i,
        .fs-nav-button:hover i {
            color: #38bdf8;
        }

.fs-nav-spacer {
    height: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 18px;
}

.fs-logout-form {
    margin: 0;
}

.fs-nav-button {
    cursor: pointer;
    text-align: left;
}

.fs-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.fs-summary-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.fs-summary-icon svg {
    width: 24px;
    height: 24px;
}

.fs-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

    .fs-summary-icon.success {
        background: #dcfce7;
        color: #166534;
    }

    .fs-summary-icon.warning {
        background: #ffedd5;
        color: #9a3412;
    }

    .fs-summary-icon.danger {
        background: #fee2e2;
        color: #991b1b;
    }

.fs-summary-value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.fs-summary-label {
    font-weight: 700;
    color: #0f172a;
    margin-top: 6px;
}

.fs-summary-note {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.dashboard-panel {
    padding: 22px;
    margin-bottom: 24px;
}

.dashboard-panel-header {
    margin-bottom: 16px;
}

    .dashboard-panel-header h3 {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .dashboard-panel-header p {
        color: #64748b;
        margin: 0;
    }

.fs-table {
    margin-bottom: 0;
}

    .fs-table thead {
        background: #f8fafc;
    }

    .fs-table th {
        color: #475569;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

@media (max-width: 1100px) {
    .fs-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .fs-summary-grid {
        grid-template-columns: 1fr;
    }
}

.fs-empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
}

.fs-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #eef6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

    .fs-empty-icon svg {
        width: 28px;
        height: 28px;
    }

.fs-empty-state h4 {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 6px;
}

.fs-empty-state p {
    margin-bottom: 18px;
}

/* =========================================
   Trusted Device Management
   ========================================= */

.trusted-devices-page {
    max-width: 1200px;
}

.trusted-devices-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.trusted-device-search-card {
    padding: 26px;
    margin-bottom: 26px;
}

.trusted-device-search-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.trusted-device-search-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 24px;
    font-weight: 800;
}

.trusted-device-search-header h2,
.trusted-device-results-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
}

.trusted-device-search-header p,
.trusted-device-results-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.trusted-device-search-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr)
                           minmax(260px, 1.4fr)
                           minmax(180px, 0.6fr);
    gap: 18px;
    align-items: end;
}

.trusted-device-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trusted-device-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.trusted-device-field .form-control,
.trusted-device-field .form-select {
    min-height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    color: #0f172a;
    font-size: 15px;
}

.trusted-device-field .form-control:focus,
.trusted-device-field .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.trusted-device-search-button {
    min-height: 50px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
}

.trusted-device-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.45;
}

.trusted-device-privacy-icon {
    flex: 0 0 auto;
    font-weight: 800;
}

.trusted-device-initial-state {
    margin-top: 4px;
}

.trusted-device-empty-warning {
    background: #fff7ed;
    color: #c2410c;
}

.trusted-device-results {
    margin-top: 6px;
}

.trusted-device-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.trusted-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.trusted-device-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trusted-device-card-top {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.trusted-device-platform-icon {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.trusted-device-shield-icon {
    font-size: 28px;
    line-height: 1;
}

.trusted-device-platform-badge {
    position: absolute;
    right: -5px;
    bottom: -5px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 999px;
    background: #2563eb;
    color: white;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.trusted-device-platform-active {
    background: #dbeafe;
    color: #1e40af;
}

.trusted-device-platform-revoked
.trusted-device-platform-badge {
    background: #64748b;
}

.trusted-device-card-heading {
    min-width: 0;
}

.trusted-device-card-heading h3 {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trusted-device-card-heading p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.trusted-device-details {
    padding: 13px 0 4px;
}

.trusted-device-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
}

.trusted-device-detail-row:last-child {
    border-bottom: none;
}

.trusted-device-detail-row span {
    color: #64748b;
    font-size: 13px;
}

.trusted-device-detail-row strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.trusted-device-status-active {
    color: #166534 !important;
}

.trusted-device-status-revoked {
    color: #64748b !important;
}

.trusted-device-card-actions {
    margin-top: auto;
    padding-top: 16px;
}

.trusted-device-revoke-button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 11px;
    font-weight: 700;
}

.trusted-device-no-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 980px) {
    .trusted-device-search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trusted-device-search-action {
        grid-column: 1 / -1;
    }

    .trusted-device-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .trusted-devices-page {
        padding: 18px;
    }

    .trusted-devices-status {
        white-space: normal;
    }

    .trusted-device-search-card {
        padding: 20px;
    }

    .trusted-device-search-grid {
        grid-template-columns: 1fr;
    }

    .trusted-device-search-action {
        grid-column: auto;
    }

    .trusted-device-results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .trusted-device-card-top {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .trusted-device-card-top .fs-pill {
        grid-column: 2;
        justify-self: start;
    }

    .trusted-device-detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .trusted-device-detail-row strong {
        text-align: left;
    }
}

/* =========================================
   Verified Communications
   ========================================= */

.verified-communications-page {
    max-width: 1250px;
}

.verified-communication-header-pill,
.verified-communication-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.create-communication-card {
    max-width: 980px;
    padding: 28px;
}

.create-communication-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.create-communication-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 23px;
    font-weight: 800;
}

.create-communication-header h2,
.verified-communication-list-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
}

.create-communication-header p,
.verified-communication-list-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 14px;
}

.verified-call-created-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
    padding: 21px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.verified-call-created-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #dcfce7;
    color: #16a34a;
}

    .verified-call-created-icon svg {
        width: 27px;
        height: 27px;
    }

.verified-call-created-kicker {
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verified-call-created-content h2 {
    margin: 4px 0 5px;
    color: #14532d;
    font-family: monospace;
    font-size: 26px;
    font-weight: 900;
}

.verified-call-created-content > p {
    margin: 0;
    color: #166534;
    font-size: 13px;
}

.verified-call-created-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #bbf7d0;
}

    .verified-call-created-meta div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .verified-call-created-meta span {
        color: #15803d;
        font-size: 11px;
        font-weight: 700;
    }

    .verified-call-created-meta strong {
        color: #14532d;
        font-size: 13px;
    }

.verified-call-created-session {
    font-family: monospace;
}

@media (max-width: 600px) {
    .verified-call-created-card {
        grid-template-columns: 1fr;
    }
}

.create-communication-section {
    padding: 4px 0;
}

.create-communication-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

    .create-communication-section-heading > span {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #2563eb;
        color: white;
        font-size: 13px;
        font-weight: 800;
    }

    .create-communication-section-heading h3 {
        margin: 1px 0 0;
        color: #0f172a;
        font-size: 17px;
        font-weight: 800;
    }

    .create-communication-section-heading p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
    }

.create-communication-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.create-communication-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-communication-field-wide {
    grid-column: 1 / -1;
}

.create-communication-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.create-communication-field .form-control,
.create-communication-field .form-select {
    min-height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 15px;
}

    .create-communication-field .form-control:focus,
    .create-communication-field .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

.create-communication-textarea {
    min-height: 100px !important;
    resize: vertical;
}

.create-communication-character-count {
    position: absolute;
    right: 12px;
    bottom: 9px;
    color: #94a3b8;
    font-size: 11px;
}

.create-communication-privacy-note {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
}

    .create-communication-privacy-note p {
        margin: 0;
    }

.create-communication-divider {
    height: 1px;
    margin: 28px 0;
    background: #e5e7eb;
}

.create-communication-preview {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    background: #f0fdf4;
}

.create-communication-preview-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: white;
    font-size: 28px;
}

.create-communication-preview h3 {
    margin: 0 0 6px;
    color: #14532d;
    font-size: 15px;
    font-weight: 800;
}

.create-communication-preview p {
    margin: 3px 0;
    color: #166534;
    font-size: 13px;
}

.create-communication-preview-organisation {
    font-size: 16px !important;
    font-weight: 800;
}

.create-communication-preview span {
    display: inline-block;
    margin-top: 7px;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
}

.create-communication-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

.create-communication-submit {
    min-width: 280px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.verified-communication-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verified-communication-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.verified-communication-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.verified-communication-list-card {
    overflow: hidden;
}

.verified-communication-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.verified-communication-last-updated {
    color: #64748b;
    font-size: 12px;
}

.verified-communication-loading {
    padding: 60px 24px;
    text-align: center;
    color: #64748b;
}

    .verified-communication-loading p {
        margin: 14px 0 0;
    }

.verified-communication-list {
    display: flex;
    flex-direction: column;
}

.verified-communication-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

    .verified-communication-row:last-child {
        border-bottom: none;
    }

    .verified-communication-row:hover {
        background: #f8fafc;
    }

.verified-communication-row-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 800;
}

    .verified-communication-row-icon.pending {
        background: #fff7ed;
        color: #c2410c;
    }

    .verified-communication-row-icon.confirmed {
        background: #ecfdf5;
        color: #166534;
    }

    .verified-communication-row-icon.suspicious {
        background: #fef2f2;
        color: #b91c1c;
    }

    .verified-communication-row-icon.expired {
        background: #f1f5f9;
        color: #64748b;
    }

.verified-communication-row-main {
    min-width: 0;
}

.verified-communication-row-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .verified-communication-row-title h3 {
        margin: 0;
        color: #0f172a;
        font-size: 16px;
        font-weight: 800;
    }

.verified-communication-row-reason {
    margin: 5px 0 10px;
    color: #475569;
    font-size: 14px;
}

.verified-communication-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #64748b;
    font-size: 12px;
}

    .verified-communication-row-meta strong {
        color: #475569;
    }

@media (max-width: 1050px) {
    .verified-communication-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .create-communication-card {
        padding: 20px;
    }

    .create-communication-grid {
        grid-template-columns: 1fr;
    }

    .create-communication-field-wide {
        grid-column: auto;
    }

    .create-communication-actions {
        justify-content: stretch;
    }

    .create-communication-submit {
        width: 100%;
        min-width: 0;
    }

    .verified-communication-page-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .verified-communication-summary-grid {
        grid-template-columns: 1fr;
    }

    .verified-communication-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .verified-communication-row {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 17px;
    }

    .verified-communication-row-icon {
        width: 40px;
        height: 40px;
    }

    .verified-communication-row-title {
        flex-direction: column;
        gap: 7px;
    }

    .verified-communication-row-meta {
        flex-direction: column;
        gap: 5px;
    }
}

    /* =========================================
   Verified Communication Filters
   ========================================= */

    .verified-call-filter-card {
        padding: 22px;
        margin-bottom: 24px;
    }

    .verified-call-filter-header {
        margin-bottom: 18px;
    }

        .verified-call-filter-header h2 {
            margin: 0;
            color: #0f172a;
            font-size: 19px;
            font-weight: 800;
        }

        .verified-call-filter-header p {
            margin: 4px 0 0;
            color: #64748b;
            font-size: 13px;
        }

    .verified-call-filter-grid {
        display: flex;
        align-items: flex-end;
        gap: 16px;
        flex-wrap: wrap;
    }

    .verified-call-filter-field {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 7px;
        width: auto;
        max-width: none;
    }

        .verified-call-filter-field label {
            color: #334155;
            font-size: 13px;
            font-weight: 700;
        }

        .verified-call-filter-field .form-control,
        .verified-call-filter-field .form-select {
            min-height: 46px;
            border: 1px solid #cbd5e1;
            border-radius: 11px;
            background: #ffffff;
            color: #0f172a;
            font-size: 14px;
        }

            .verified-call-filter-field .form-control:focus,
            .verified-call-filter-field .form-select:focus {
                border-color: #2563eb;
                box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
            }

        .verified-call-filter-field input[type="date"] {
            width: 190px;
            min-width: 190px;
            max-width: 190px;
        }

        .verified-call-filter-field select {
            width: 220px;
            min-width: 220px;
            max-width: 220px;
        }

    .verified-call-filter-actions {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 9px;
    }

        .verified-call-filter-actions .btn {
            min-width: 100px;
            min-height: 46px;
            padding: 0 18px;
            border-radius: 11px;
            font-size: 14px;
            font-weight: 700;
        }

        .verified-call-filter-actions .btn-primary {
            background-color: #2563eb !important;
            border-color: #2563eb !important;
            color: #ffffff !important;
        }

            .verified-call-filter-actions .btn-primary:hover,
            .verified-call-filter-actions .btn-primary:focus {
                background-color: #1d4ed8 !important;
                border-color: #1d4ed8 !important;
                color: #ffffff !important;
            }

    @media (max-width: 900px) {
        .verified-call-filter-field {
            flex: 1 1 210px;
        }

            .verified-call-filter-field input[type="date"],
            .verified-call-filter-field select {
                width: 100%;
                min-width: 0;
                max-width: none;
            }

        .verified-call-filter-actions {
            flex: 1 0 100%;
        }
    }

    @media (max-width: 600px) {
        .verified-call-filter-grid {
            flex-direction: column;
            align-items: stretch;
        }

        .verified-call-filter-field {
            width: 100%;
            flex: none;
        }

        .verified-call-filter-actions {
            width: 100%;
            flex-direction: column;
            align-items: stretch;
        }

            .verified-call-filter-actions .btn {
                width: 100%;
            }
    }

/* =========================================
   FraudShield Dashboard
   ========================================= */

.dashboard-page {
    max-width: 1400px;
}

.dashboard-environment-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-environment-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.13);
}

.dashboard-summary-card {
    min-height: 142px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

    .dashboard-summary-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.11);
    }

.dashboard-panel {
    padding: 0;
    overflow: hidden;
    margin-bottom: 24px;
}

.dashboard-panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

    .dashboard-panel-header-row h2 {
        margin: 0;
        color: #0f172a;
        font-size: 20px;
        font-weight: 800;
    }

    .dashboard-panel-header-row p {
        margin: 5px 0 0;
        color: #64748b;
        font-size: 14px;
    }

.dashboard-panel-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-view-all {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.dashboard-loading-state {
    padding: 60px 24px;
    text-align: center;
    color: #64748b;
}

    .dashboard-loading-state p {
        margin: 14px 0 0;
    }

.dashboard-audit-table,
.dashboard-communications-table {
    margin-bottom: 0;
}

    .dashboard-audit-table th,
    .dashboard-communications-table th {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .dashboard-audit-table td,
    .dashboard-communications-table td {
        padding-top: 16px;
        padding-bottom: 16px;
    }

.dashboard-time-cell {
    min-width: 135px;
}

    .dashboard-time-cell strong,
    .dashboard-time-cell span {
        display: block;
    }

    .dashboard-time-cell strong {
        color: #0f172a;
        font-size: 13px;
    }

    .dashboard-time-cell span {
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
    }

.dashboard-actor {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 120px;
    color: #334155;
    font-weight: 600;
}

.dashboard-actor-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-details-cell {
    max-width: 520px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dashboard-organisation {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.dashboard-organisation-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
}

    .dashboard-organisation-icon svg {
        width: 17px;
        height: 17px;
    }

.dashboard-organisation strong {
    color: #0f172a;
    font-size: 14px;
}

.dashboard-reference {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .dashboard-panel-header-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-details-cell {
        min-width: 300px;
    }
}

@media (max-width: 650px) {
    .dashboard-environment-pill {
        white-space: normal;
    }

    .dashboard-panel-header-row {
        padding: 19px;
    }

    .dashboard-summary-card {
        min-height: auto;
    }
}

/* =========================================
   Audit History
   ========================================= */

.audit-page {
    max-width: 1400px;
}

.audit-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audit-security-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.audit-page-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.audit-filter-card {
    padding: 22px;
    margin-bottom: 24px;
}

.audit-filter-header {
    margin-bottom: 18px;
}

    .audit-filter-header h2,
    .audit-list-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 19px;
        font-weight: 800;
    }

    .audit-filter-header p,
    .audit-list-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
    }

.audit-filter-grid {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.audit-filter-field {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 7px;
}

    .audit-filter-field label {
        color: #334155;
        font-size: 13px;
        font-weight: 700;
    }

    .audit-filter-field input[type="date"] {
        width: 180px;
        min-width: 180px;
        min-height: 46px;
    }

    .audit-filter-field select {
        width: 210px;
        min-width: 210px;
        min-height: 46px;
    }

    .audit-filter-field .form-control,
    .audit-filter-field .form-select {
        border: 1px solid #cbd5e1;
        border-radius: 11px;
        background: white;
    }

        .audit-filter-field .form-control:focus,
        .audit-filter-field .form-select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        }

.audit-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .audit-filter-actions .btn {
        min-width: 95px;
        min-height: 46px;
        font-weight: 700;
    }

.audit-list-card {
    overflow: hidden;
}

.audit-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid #e5e7eb;
}

.audit-last-updated {
    color: #64748b;
    font-size: 12px;
}

.audit-loading-state {
    padding: 60px 24px;
    text-align: center;
    color: #64748b;
}

    .audit-loading-state p {
        margin: 14px 0 0;
    }

.audit-table {
    margin-bottom: 0;
}

    .audit-table th {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .audit-table td {
        padding-top: 16px;
        padding-bottom: 16px;
    }

.audit-time-cell {
    min-width: 135px;
}

    .audit-time-cell strong,
    .audit-time-cell span {
        display: block;
    }

    .audit-time-cell strong {
        color: #0f172a;
        font-size: 13px;
    }

    .audit-time-cell span {
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
    }

.audit-actor {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 120px;
    color: #334155;
    font-weight: 600;
}

.audit-actor-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.audit-device-id {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
}

.audit-details-cell {
    min-width: 260px;
    max-width: 520px;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .audit-page-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-filter-field {
        flex: 1 1 200px;
    }

        .audit-filter-field input[type="date"],
        .audit-filter-field select {
            width: 100%;
            min-width: 0;
        }

    .audit-filter-actions {
        flex: 1 0 100%;
    }
}

@media (max-width: 600px) {
    .audit-security-pill {
        white-space: normal;
    }

    .audit-filter-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-filter-field {
        width: 100%;
        flex: none;
    }

    .audit-filter-actions {
        width: 100%;
        flex-direction: column;
    }

        .audit-filter-actions .btn {
            width: 100%;
        }

    .audit-list-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================================
   Security Alerts
   ========================================= */

.security-alerts-page {
    max-width: 1400px;
}

.security-alerts-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .security-alerts-page-actions .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
    }

.security-alerts-open-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.security-alerts-open-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.security-alert-filter-card {
    padding: 22px;
    margin-bottom: 24px;
}

.security-alert-filter-header {
    margin-bottom: 18px;
}

    .security-alert-filter-header h2,
    .security-alert-queue-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 19px;
        font-weight: 800;
    }

    .security-alert-filter-header p,
    .security-alert-queue-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
    }

.security-alert-filter-grid {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.security-alert-filter-field {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 7px;
}

    .security-alert-filter-field label {
        color: #334155;
        font-size: 13px;
        font-weight: 700;
    }

    .security-alert-filter-field select {
        width: 210px;
        min-width: 210px;
        min-height: 46px;
    }

    .security-alert-filter-field input[type="date"] {
        width: 180px;
        min-width: 180px;
        min-height: 46px;
    }

    .security-alert-filter-field .form-control,
    .security-alert-filter-field .form-select {
        border: 1px solid #cbd5e1;
        border-radius: 11px;
        background: white;
    }

        .security-alert-filter-field .form-control:focus,
        .security-alert-filter-field .form-select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        }

.security-alert-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .security-alert-filter-actions .btn {
        min-width: 95px;
        min-height: 46px;
        font-weight: 700;
    }

.security-alert-loading-state {
    padding: 60px 24px;
    text-align: center;
    color: #64748b;
}

    .security-alert-loading-state p {
        margin: 14px 0 0;
    }

.security-alert-empty-state {
    margin-top: 4px;
}

.security-alert-empty-icon {
    background: #ecfdf5;
    color: #166534;
}

.security-alert-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
    gap: 22px;
    align-items: start;
}

.security-alert-queue-header {
    margin-bottom: 16px;
}

.security-alert-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-alert-card {
    padding: 20px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

    .security-alert-card:hover {
        transform: translateY(-1px);
        border-color: #bfdbfe;
        box-shadow: 0 15px 36px rgba(15, 23, 42, 0.1);
    }

.security-alert-card-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.security-alert-card-top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.security-alert-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

    .security-alert-icon svg {
        width: 22px;
        height: 22px;
    }

    .security-alert-icon.critical,
    .security-alert-icon.high {
        background: #fef2f2;
        color: #dc2626;
    }

    .security-alert-icon.medium {
        background: #fff7ed;
        color: #c2410c;
    }

    .security-alert-icon.low {
        background: #f1f5f9;
        color: #64748b;
    }

.security-alert-card-heading {
    min-width: 0;
}

.security-alert-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .security-alert-title-row h3 {
        margin: 0;
        color: #0f172a;
        font-size: 17px;
        font-weight: 800;
    }

.security-alert-card-heading > p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.security-alert-card-body {
    padding-top: 16px;
}

.security-alert-primary-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f8fafc;
}

    .security-alert-primary-detail > span,
    .security-alert-detail-grid span,
    .security-alert-reason > span {
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

.security-alert-reference {
    color: #1d4ed8;
    font-family: monospace;
    font-size: 13px;
}

.security-alert-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
}

    .security-alert-detail-grid > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .security-alert-detail-grid strong {
        color: #0f172a;
        font-size: 13px;
    }

    .security-alert-detail-grid small {
        color: #64748b;
        font-size: 11px;
    }

.security-alert-open-status {
    color: #b91c1c !important;
}

.security-alert-reason {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

    .security-alert-reason p {
        margin: 5px 0 0;
        color: #475569;
        font-size: 13px;
        line-height: 1.45;
    }

.security-alert-card-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
}

    .security-alert-card-actions .btn {
        min-width: 130px;
        font-weight: 700;
    }

.security-alert-review-panel {
    position: sticky;
    top: 20px;
    min-height: 480px;
    overflow: hidden;
}

.security-alert-review-placeholder {
    min-height: 480px;
    padding: 40px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.security-alert-review-placeholder-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 19px;
    background: #eff6ff;
    color: #2563eb;
}

    .security-alert-review-placeholder-icon svg {
        width: 29px;
        height: 29px;
    }

.security-alert-review-placeholder h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.security-alert-review-placeholder p {
    max-width: 310px;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.security-alert-review-content {
    padding: 24px;
}

.security-alert-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.security-alert-review-kicker {
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.security-alert-review-header h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 21px;
    font-weight: 800;
}

.security-alert-close-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
}

    .security-alert-close-button:hover {
        background: #e2e8f0;
    }

.security-alert-review-badges {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.security-alert-review-reference {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
}

    .security-alert-review-reference span,
    .security-alert-review-reference strong {
        display: block;
    }

    .security-alert-review-reference span {
        color: #1e40af;
        font-size: 11px;
        font-weight: 700;
    }

    .security-alert-review-reference strong {
        margin-top: 4px;
        color: #1d4ed8;
        font-family: monospace;
        font-size: 16px;
    }

.security-alert-review-section {
    margin-top: 22px;
}

    .security-alert-review-section h3 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
    }

.security-alert-review-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .security-alert-review-row span {
        color: #64748b;
        font-size: 12px;
    }

    .security-alert-review-row strong {
        color: #0f172a;
        font-size: 13px;
        text-align: right;
    }

.security-alert-review-text {
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .security-alert-review-text span {
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

    .security-alert-review-text p {
        margin: 5px 0 0;
        color: #475569;
        font-size: 13px;
        line-height: 1.45;
    }

.security-alert-guidance {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #fed7aa;
    border-radius: 13px;
    background: #fff7ed;
}

.security-alert-guidance-icon {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffedd5;
    color: #c2410c;
    font-weight: 800;
}

.security-alert-guidance strong {
    color: #9a3412;
    font-size: 13px;
}

.security-alert-guidance p {
    margin: 4px 0 0;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.45;
}

.security-alert-review-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

    .security-alert-review-actions .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
    }

    .security-alert-review-actions .btn-primary {
        flex: 1;
    }

@media (max-width: 1100px) {
    .security-alert-layout {
        grid-template-columns: 1fr;
    }

    .security-alert-review-panel {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 800px) {
    .security-alerts-page-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .security-alert-filter-field {
        flex: 1 1 190px;
    }

        .security-alert-filter-field select,
        .security-alert-filter-field input[type="date"] {
            width: 100%;
            min-width: 0;
        }

    .security-alert-filter-actions {
        flex: 1 0 100%;
    }
}

@media (max-width: 600px) {
    .security-alerts-open-pill {
        white-space: normal;
    }

    .security-alert-filter-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .security-alert-filter-field {
        width: 100%;
        flex: none;
    }

    .security-alert-filter-actions {
        width: 100%;
        flex-direction: column;
    }

        .security-alert-filter-actions .btn {
            width: 100%;
        }

    .security-alert-title-row {
        flex-direction: column;
        gap: 7px;
    }

    .security-alert-detail-grid {
        grid-template-columns: 1fr;
    }

    .security-alert-primary-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .security-alert-card-actions .btn {
        width: 100%;
    }

    .security-alert-review-actions {
        flex-direction: column;
    }

        .security-alert-review-actions .btn {
            width: 100%;
        }
}

/* =========================================
   Security Alert Detail
   ========================================= */

.security-alert-detail-page {
    max-width: 1400px;
}

.security-alert-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.security-alert-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

    .security-alert-back-button:hover {
        color: #1d4ed8;
    }

    .security-alert-back-button svg {
        width: 18px;
        height: 18px;
    }

.security-alert-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-alert-detail-loading {
    padding: 70px 24px;
    text-align: center;
    color: #64748b;
}

    .security-alert-detail-loading p {
        margin: 14px 0 0;
    }

.security-alert-incident-hero {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 26px;
    margin-bottom: 22px;
}

.security-alert-incident-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

    .security-alert-incident-icon svg {
        width: 31px;
        height: 31px;
    }

    .security-alert-incident-icon.critical,
    .security-alert-incident-icon.high {
        background: #fef2f2;
        color: #dc2626;
    }

    .security-alert-incident-icon.medium {
        background: #fff7ed;
        color: #c2410c;
    }

    .security-alert-incident-icon.low {
        background: #f1f5f9;
        color: #64748b;
    }

.security-alert-incident-heading {
    min-width: 0;
}

.security-alert-incident-kicker {
    color: #b91c1c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.security-alert-incident-heading h1 {
    margin: 4px 0 5px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
}

.security-alert-incident-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.security-alert-incident-reference {
    min-width: 210px;
    padding: 14px 17px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
}

    .security-alert-incident-reference span,
    .security-alert-incident-reference strong {
        display: block;
    }

    .security-alert-incident-reference span {
        color: #1e40af;
        font-size: 11px;
        font-weight: 700;
    }

    .security-alert-incident-reference strong {
        margin-top: 5px;
        color: #1d4ed8;
        font-family: monospace;
        font-size: 17px;
    }

.security-alert-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr);
    gap: 22px;
    align-items: start;
}

.security-alert-detail-main,
.security-alert-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-alert-detail-card {
    padding: 24px;
}

.security-alert-detail-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.security-alert-detail-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
}

    .security-alert-detail-card-icon.danger {
        background: #fef2f2;
        color: #dc2626;
    }

    .security-alert-detail-card-icon svg {
        width: 21px;
        height: 21px;
    }

.security-alert-detail-card-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.security-alert-detail-card-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.security-alert-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.security-alert-information-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.security-alert-information-wide {
    grid-column: 1 / -1;
}

.security-alert-information-item span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.security-alert-information-item strong {
    color: #0f172a;
    font-size: 14px;
}

.security-alert-technical-id {
    color: #475569 !important;
    font-family: monospace;
    font-size: 12px !important;
    overflow-wrap: anywhere;
}

.security-alert-communication-confirmed {
    color: #166534 !important;
}

.security-alert-communication-pending {
    color: #c2410c !important;
}

.security-alert-communication-suspicious {
    color: #b91c1c !important;
}

.security-alert-communication-expired {
    color: #64748b !important;
}

.security-alert-report-block {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .security-alert-report-block span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

    .security-alert-report-block p {
        margin: 6px 0 0;
        color: #334155;
        font-size: 14px;
        line-height: 1.55;
    }

.security-alert-report-warning {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fef2f2;
}

    .security-alert-report-warning > div {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #fee2e2;
        color: #dc2626;
    }

    .security-alert-report-warning svg {
        width: 19px;
        height: 19px;
    }

    .security-alert-report-warning p {
        margin: 0;
        color: #991b1b;
        font-size: 13px;
        line-height: 1.5;
    }

.security-alert-context-list {
    display: flex;
    flex-direction: column;
}

.security-alert-context-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .security-alert-context-row:last-child {
        border-bottom: none;
    }

    .security-alert-context-row span {
        color: #64748b;
        font-size: 13px;
    }

    .security-alert-context-row strong {
        text-align: right;
    }

.security-alert-detail-sidebar {
    position: sticky;
    top: 20px;
}

.security-alert-status-card,
.security-alert-timeline-card,
.security-alert-action-card {
    padding: 22px;
}

.security-alert-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e5e7eb;
}

    .security-alert-status-header span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

    .security-alert-status-header h2 {
        margin: 3px 0 0;
        color: #0f172a;
        font-size: 22px;
        font-weight: 800;
    }

.security-alert-status-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

    .security-alert-status-icon svg {
        width: 23px;
        height: 23px;
    }

    .security-alert-status-icon.open {
        background: #fef2f2;
        color: #dc2626;
    }

    .security-alert-status-icon.investigating {
        background: #fff7ed;
        color: #c2410c;
    }

    .security-alert-status-icon.resolved {
        background: #ecfdf5;
        color: #166534;
    }

    .security-alert-status-icon.unknown {
        background: #f1f5f9;
        color: #64748b;
    }

.security-alert-status-details {
    padding-top: 10px;
}

    .security-alert-status-details > div {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 10px 0;
    }

    .security-alert-status-details span {
        color: #64748b;
        font-size: 12px;
    }

    .security-alert-status-details strong {
        color: #0f172a;
        font-size: 13px;
        text-align: right;
    }

.security-alert-sidebar-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.security-alert-sidebar-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.security-alert-timeline {
    position: relative;
    margin-top: 20px;
}

.security-alert-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    min-height: 72px;
}

    .security-alert-timeline-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 18px;
        top: 38px;
        bottom: 0;
        width: 2px;
        background: #e2e8f0;
    }

.security-alert-timeline-marker {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

    .security-alert-timeline-marker svg {
        width: 17px;
        height: 17px;
    }

.security-alert-timeline-item.complete
.security-alert-timeline-marker {
    background: #ecfdf5;
    color: #166534;
}

.security-alert-timeline-item.pending
.security-alert-timeline-marker {
    background: #f1f5f9;
    color: #94a3b8;
}

.security-alert-timeline-item strong,
.security-alert-timeline-item span {
    display: block;
}

.security-alert-timeline-item strong {
    padding-top: 2px;
    color: #0f172a;
    font-size: 13px;
}

.security-alert-timeline-item span {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.security-alert-action-guidance {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 10px;
    margin-top: 17px;
    padding: 13px;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    background: #eff6ff;
    color: #1e40af;
}

    .security-alert-action-guidance svg {
        width: 18px;
        height: 18px;
        margin-top: 1px;
    }

    .security-alert-action-guidance p {
        margin: 0;
        font-size: 12px;
        line-height: 1.45;
    }

.security-alert-resolve-button,
.security-alert-return-button {
    width: 100%;
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    font-weight: 700;
}

    .security-alert-resolve-button svg {
        width: 18px;
        height: 18px;
    }

.security-alert-resolved-message {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-top: 17px;
    padding: 15px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}

    .security-alert-resolved-message > svg {
        width: 28px;
        height: 28px;
        color: #16a34a;
    }

    .security-alert-resolved-message strong {
        color: #166534;
        font-size: 13px;
    }

    .security-alert-resolved-message p {
        margin: 4px 0 0;
        color: #166534;
        font-size: 12px;
        line-height: 1.45;
    }

@media (max-width: 1050px) {
    .security-alert-detail-grid {
        grid-template-columns: 1fr;
    }

    .security-alert-detail-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .security-alert-incident-hero {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .security-alert-incident-icon {
        width: 56px;
        height: 56px;
    }

    .security-alert-incident-reference {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .security-alert-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .security-alert-information-grid {
        grid-template-columns: 1fr;
    }

    .security-alert-information-wide {
        grid-column: auto;
    }

    .security-alert-incident-hero {
        padding: 20px;
    }

    .security-alert-incident-heading h1 {
        font-size: 21px;
    }

    .security-alert-detail-card {
        padding: 20px;
    }

    .security-alert-context-row {
        flex-direction: column;
        gap: 5px;
    }

        .security-alert-context-row strong {
            text-align: left;
        }
}

.security-alert-resolve-button {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

    .security-alert-resolve-button span,
    .security-alert-resolve-button svg {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }

    .security-alert-resolve-button:hover,
    .security-alert-resolve-button:focus {
        background-color: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
        color: #ffffff !important;
    }

    .security-alert-resolve-button:disabled {
        background-color: #93c5fd !important;
        border-color: #93c5fd !important;
        color: #ffffff !important;
    }

.security-investigation-form,
.security-investigation-active {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.security-investigation-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

    .security-investigation-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 700;
    }

    .security-investigation-field .form-control {
        border: 1px solid #cbd5e1;
        border-radius: 11px;
        font-size: 13px;
    }

    .security-investigation-field textarea {
        resize: vertical;
    }

.security-investigation-start-button {
    width: 100%;
    min-height: 45px;
    font-weight: 700;
}

.security-investigation-active {
    border-color: #fed7aa;
    background: #fff7ed;
}

    .security-investigation-active strong {
        color: #9a3412;
        font-size: 13px;
    }

    .security-investigation-active p {
        margin: 6px 0 0;
        color: #7c2d12;
        font-size: 12px;
        line-height: 1.45;
    }

.security-investigation-active-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .security-investigation-active-heading svg {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        color: #c2410c;
    }

    .security-investigation-active-heading strong,
    .security-investigation-active-heading span {
        display: block;
    }

    .security-investigation-active-heading span {
        margin-top: 3px;
        color: #7c2d12;
        font-size: 12px;
    }

.security-investigation-notes,
.security-resolution-notes {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(194, 65, 12, 0.18);
}

    .security-investigation-notes > span,
    .security-resolution-notes > span {
        color: inherit;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .security-investigation-notes p,
    .security-resolution-notes p {
        margin: 5px 0 0;
        white-space: pre-wrap;
    }

.security-resolution-field {
    margin-top: 17px;
}

/* =========================================
   Customer 360
   ========================================= */

.customer-360-page {
    max-width: 1450px;
}

.customer-360-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

    .customer-360-header-pill svg {
        width: 17px;
        height: 17px;
    }

.customer-360-search-card {
    padding: 24px;
    margin-bottom: 24px;
}

.customer-360-search-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 21px;
}

.customer-360-search-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eff6ff;
    color: #2563eb;
}

    .customer-360-search-icon svg {
        width: 23px;
        height: 23px;
    }

.customer-360-search-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.customer-360-search-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.customer-360-search-grid {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(280px, 1fr) auto;
    gap: 15px;
    align-items: end;
}

.customer-360-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .customer-360-field label {
        color: #334155;
        font-size: 13px;
        font-weight: 700;
    }

    .customer-360-field .form-control,
    .customer-360-field .form-select {
        min-height: 48px;
        border: 1px solid #cbd5e1;
        border-radius: 11px;
    }

        .customer-360-field .form-control:focus,
        .customer-360-field .form-select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
        }

.customer-360-search-actions {
    display: flex;
    gap: 9px;
}

    .customer-360-search-actions .btn {
        min-height: 48px;
        min-width: 115px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 700;
    }

.customer-360-search-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #f8fafc;
    color: #64748b;
}

    .customer-360-search-note svg {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        color: #2563eb;
    }

    .customer-360-search-note p {
        margin: 0;
        font-size: 12px;
    }

.customer-360-loading-state {
    padding: 70px 24px;
    text-align: center;
    color: #64748b;
}

    .customer-360-loading-state p {
        margin: 14px 0 0;
    }

.customer-360-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px;
    margin-bottom: 20px;
}

.customer-360-profile {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.customer-360-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
}

    .customer-360-avatar svg {
        width: 30px;
        height: 30px;
    }

.customer-360-profile-kicker {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.customer-360-profile-heading h2 {
    margin: 4px 0 7px;
    color: #0f172a;
    font-family: monospace;
    font-size: 25px;
    font-weight: 800;
}

.customer-360-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: #64748b;
    font-size: 12px;
}

    .customer-360-profile-meta strong {
        color: #475569;
    }

.customer-360-risk {
    min-width: 235px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: 16px;
}

.customer-360-risk-score {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.customer-360-risk span,
.customer-360-risk strong {
    display: block;
}

.customer-360-risk span {
    font-size: 11px;
    font-weight: 700;
}

.customer-360-risk strong {
    margin-top: 4px;
    font-size: 15px;
}

.customer-360-risk.critical,
.customer-360-risk.high {
    background: #fef2f2;
    color: #b91c1c;
}

.customer-360-risk.medium {
    background: #fff7ed;
    color: #c2410c;
}

.customer-360-risk.low {
    background: #ecfdf5;
    color: #166534;
}

.customer-360-risk.unknown {
    background: #f1f5f9;
    color: #64748b;
}

.customer-360-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.customer-360-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr);
    gap: 22px;
    align-items: start;
}

.customer-360-main,
.customer-360-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.customer-360-sidebar {
    position: sticky;
    top: 20px;
}

.customer-360-panel,
.customer-360-risk-panel,
.customer-360-audit-panel {
    overflow: hidden;
}

.customer-360-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 22px;
    border-bottom: 1px solid #e5e7eb;
}

    .customer-360-panel-header h2,
    .customer-360-sidebar-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 800;
    }

    .customer-360-panel-header p,
    .customer-360-sidebar-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 12px;
    }

.customer-360-panel-count {
    min-width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

    .customer-360-panel-count.danger {
        background: #fef2f2;
        color: #b91c1c;
    }

.customer-360-panel-empty {
    padding: 38px 22px;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

    .customer-360-panel-empty.success {
        color: #166534;
    }

.customer-360-device-list,
.customer-360-communication-list,
.customer-360-incident-list {
    display: flex;
    flex-direction: column;
}

.customer-360-device-row,
.customer-360-communication-row,
.customer-360-incident-row {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

    .customer-360-device-row:last-child,
    .customer-360-communication-row:last-child,
    .customer-360-incident-row:last-child {
        border-bottom: none;
    }

.customer-360-device-icon,
.customer-360-status-icon,
.customer-360-incident-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-weight: 800;
}

    .customer-360-device-icon svg,
    .customer-360-incident-icon svg {
        width: 20px;
        height: 20px;
    }

    .customer-360-device-icon.active {
        background: #ecfdf5;
        color: #166534;
    }

    .customer-360-device-icon.revoked {
        background: #f1f5f9;
        color: #64748b;
    }

.customer-360-device-main,
.customer-360-communication-main,
.customer-360-incident-main {
    min-width: 0;
    flex: 1;
}

.customer-360-device-title,
.customer-360-communication-title,
.customer-360-incident-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .customer-360-device-title strong {
        color: #0f172a;
        font-size: 14px;
    }

.customer-360-device-meta,
.customer-360-communication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
}

.customer-360-status-icon.confirmed {
    background: #ecfdf5;
    color: #166534;
}

.customer-360-status-icon.pending {
    background: #fff7ed;
    color: #c2410c;
}

.customer-360-status-icon.suspicious {
    background: #fef2f2;
    color: #b91c1c;
}

.customer-360-status-icon.expired {
    background: #f1f5f9;
    color: #64748b;
}

.customer-360-communication-title > div strong,
.customer-360-communication-title > div span,
.customer-360-incident-title > div strong,
.customer-360-incident-title > div span {
    display: block;
}

.customer-360-communication-title > div strong,
.customer-360-incident-title > div strong {
    color: #1d4ed8;
    font-family: monospace;
    font-size: 13px;
}

.customer-360-communication-title > div span,
.customer-360-incident-title > div span {
    margin-top: 3px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.customer-360-communication-row p,
.customer-360-incident-row p {
    margin: 7px 0 0;
    color: #475569;
    font-size: 13px;
}

.customer-360-incident-icon.critical,
.customer-360-incident-icon.high {
    background: #fef2f2;
    color: #dc2626;
}

.customer-360-incident-icon.medium {
    background: #fff7ed;
    color: #c2410c;
}

.customer-360-incident-icon.low {
    background: #f1f5f9;
    color: #64748b;
}

.customer-360-incident-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-360-incident-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: #64748b;
    font-size: 11px;
}

.customer-360-sidebar-header {
    padding: 21px 21px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.customer-360-risk-factor-list {
    padding: 7px 21px;
}

.customer-360-risk-factor {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .customer-360-risk-factor:last-child {
        border-bottom: none;
    }

.customer-360-risk-factor-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
}

    .customer-360-risk-factor-icon.risk {
        background: #fef2f2;
        color: #b91c1c;
    }

    .customer-360-risk-factor-icon.protective {
        background: #ecfdf5;
        color: #166534;
    }

.customer-360-risk-factor strong,
.customer-360-risk-factor span {
    display: block;
}

.customer-360-risk-factor strong {
    color: #334155;
    font-size: 12px;
    line-height: 1.4;
}

.customer-360-risk-factor span {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
}

    .customer-360-risk-factor span.risk {
        color: #b91c1c;
    }

    .customer-360-risk-factor span.protective {
        color: #166534;
    }

.customer-360-low-risk-message {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 11px;
    margin: 19px;
    padding: 14px;
    border: 1px solid #bbf7d0;
    border-radius: 13px;
    background: #f0fdf4;
}

    .customer-360-low-risk-message svg {
        width: 25px;
        height: 25px;
        color: #16a34a;
    }

    .customer-360-low-risk-message strong {
        color: #166534;
        font-size: 13px;
    }

    .customer-360-low-risk-message p {
        margin: 4px 0 0;
        color: #166534;
        font-size: 12px;
    }

.customer-360-risk-disclaimer {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 9px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #64748b;
}

    .customer-360-risk-disclaimer svg {
        width: 17px;
        height: 17px;
    }

    .customer-360-risk-disclaimer p {
        margin: 0;
        font-size: 11px;
        line-height: 1.45;
    }

.customer-360-audit-timeline {
    padding: 18px 21px;
}

.customer-360-audit-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 18px;
}

    .customer-360-audit-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 13px;
        bottom: 0;
        width: 2px;
        background: #e2e8f0;
    }

.customer-360-audit-marker {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #cbd5e1;
    background: #64748b;
}

    .customer-360-audit-marker.success {
        background: #16a34a;
        box-shadow: 0 0 0 2px #bbf7d0;
    }

    .customer-360-audit-marker.warning {
        background: #f59e0b;
        box-shadow: 0 0 0 2px #fed7aa;
    }

    .customer-360-audit-marker.danger {
        background: #dc2626;
        box-shadow: 0 0 0 2px #fecaca;
    }

    .customer-360-audit-marker.info {
        background: #2563eb;
        box-shadow: 0 0 0 2px #bfdbfe;
    }

.customer-360-audit-content strong,
.customer-360-audit-content span {
    display: block;
}

.customer-360-audit-content strong {
    color: #0f172a;
    font-size: 12px;
}

.customer-360-audit-content span {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

.customer-360-audit-content p {
    margin: 5px 0 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.4;
}

.customer-360-communication-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
}

    .customer-360-communication-footer .customer-360-communication-meta {
        margin-top: 0;
    }

@media (max-width: 600px) {
    .customer-360-communication-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1120px) {
    .customer-360-content-grid {
        grid-template-columns: 1fr;
    }

    .customer-360-sidebar {
        position: static;
    }
}

@media (max-width: 960px) {
    .customer-360-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-360-search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .customer-360-search-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .customer-360-header-pill {
        white-space: normal;
    }

    .customer-360-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-360-risk {
        width: 100%;
    }

    .customer-360-search-grid {
        grid-template-columns: 1fr;
    }

    .customer-360-search-actions {
        grid-column: auto;
    }

        .customer-360-search-actions .btn {
            flex: 1;
        }

    .customer-360-device-title,
    .customer-360-communication-title,
    .customer-360-incident-title {
        flex-direction: column;
        gap: 8px;
    }

    .customer-360-incident-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .customer-360-summary-grid {
        grid-template-columns: 1fr;
    }

    .customer-360-profile {
        align-items: flex-start;
    }

    .customer-360-avatar {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .customer-360-profile-heading h2 {
        font-size: 20px;
    }

    .customer-360-search-actions {
        flex-direction: column;
    }

        .customer-360-search-actions .btn {
            width: 100%;
        }

    .customer-360-device-row,
    .customer-360-communication-row,
    .customer-360-incident-row {
        padding: 16px;
    }

    .customer-360-incident-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================
   Fraud Timeline
   ========================================= */

.fraud-timeline-page {
    max-width: 1450px;
}

.fraud-timeline-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.fraud-timeline-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

    .fraud-timeline-back-button:hover {
        color: #1d4ed8;
    }

    .fraud-timeline-back-button svg {
        width: 18px;
        height: 18px;
    }

.fraud-timeline-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .fraud-timeline-header-actions .btn {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
    }

.fraud-timeline-loading {
    padding: 75px 24px;
    text-align: center;
    color: #64748b;
}

    .fraud-timeline-loading p {
        margin: 14px 0 0;
    }

.fraud-timeline-hero {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 25px;
    margin-bottom: 22px;
}

.fraud-timeline-hero-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

    .fraud-timeline-hero-icon svg {
        width: 30px;
        height: 30px;
    }

    .fraud-timeline-hero-icon.confirmed {
        background: #ecfdf5;
        color: #166534;
    }

    .fraud-timeline-hero-icon.pending {
        background: #fff7ed;
        color: #c2410c;
    }

    .fraud-timeline-hero-icon.suspicious {
        background: #fef2f2;
        color: #dc2626;
    }

    .fraud-timeline-hero-icon.expired,
    .fraud-timeline-hero-icon.unknown {
        background: #f1f5f9;
        color: #64748b;
    }

.fraud-timeline-kicker {
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.fraud-timeline-hero-content h1 {
    margin: 4px 0 5px;
    color: #0f172a;
    font-family: monospace;
    font-size: 27px;
    font-weight: 900;
}

.fraud-timeline-hero-content > p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.fraud-timeline-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 11px;
    color: #64748b;
    font-size: 11px;
}

    .fraud-timeline-hero-meta strong {
        color: #475569;
    }

.fraud-timeline-hero-status {
    min-width: 190px;
    padding: 15px 17px;
    border-radius: 15px;
    background: #f8fafc;
}

    .fraud-timeline-hero-status span,
    .fraud-timeline-hero-status strong,
    .fraud-timeline-hero-status small {
        display: block;
    }

    .fraud-timeline-hero-status span {
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
    }

    .fraud-timeline-hero-status strong {
        margin-top: 4px;
        color: #0f172a;
        font-size: 16px;
    }

    .fraud-timeline-hero-status small {
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
    }

.fraud-timeline-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    gap: 22px;
    align-items: start;
}

.fraud-timeline-main-card {
    overflow: hidden;
}

.fraud-timeline-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e7eb;
}

    .fraud-timeline-section-header h2,
    .fraud-timeline-sidebar-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 19px;
        font-weight: 800;
    }

    .fraud-timeline-section-header p,
    .fraud-timeline-sidebar-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 12px;
    }

.fraud-timeline-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

    .fraud-timeline-live-pill > span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #16a34a;
    }

.fraud-timeline-list {
    padding: 25px 24px 12px;
}

.fraud-timeline-item {
    display: grid;
    grid-template-columns: 108px 46px minmax(0, 1fr);
    gap: 10px;
    min-height: 135px;
}

.fraud-timeline-time-column {
    padding-top: 7px;
    text-align: right;
}

    .fraud-timeline-time-column strong,
    .fraud-timeline-time-column span {
        display: block;
    }

    .fraud-timeline-time-column strong {
        color: #0f172a;
        font-size: 16px;
        font-weight: 800;
    }

    .fraud-timeline-time-column span {
        margin-top: 3px;
        color: #64748b;
        font-size: 10px;
    }

.fraud-timeline-track {
    position: relative;
    display: flex;
    justify-content: center;
}

.fraud-timeline-marker {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

    .fraud-timeline-marker svg {
        width: 20px;
        height: 20px;
    }

.fraud-timeline-line {
    position: absolute;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.fraud-timeline-item:last-child .fraud-timeline-line {
    display: none;
}

.fraud-timeline-marker.communication {
    background: #eff6ff;
    color: #2563eb;
}

.fraud-timeline-marker.notification {
    background: #eef2ff;
    color: #4f46e5;
}

.fraud-timeline-marker.customer {
    background: #ecfdf5;
    color: #166534;
}

.fraud-timeline-marker.security {
    background: #fef2f2;
    color: #dc2626;
}

.fraud-timeline-marker.investigation {
    background: #fff7ed;
    color: #c2410c;
}

.fraud-timeline-marker.resolution {
    background: #ecfdf5;
    color: #15803d;
}

.fraud-timeline-marker.system {
    background: #f1f5f9;
    color: #64748b;
}

.fraud-timeline-event-card {
    align-self: start;
    padding: 17px 18px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

    .fraud-timeline-event-card:hover {
        transform: translateY(-1px);
        border-color: #bfdbfe;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    }

.fraud-timeline-item.security .fraud-timeline-event-card {
    border-left: 4px solid #dc2626;
}

.fraud-timeline-item.investigation .fraud-timeline-event-card {
    border-left: 4px solid #f59e0b;
}

.fraud-timeline-item.resolution .fraud-timeline-event-card {
    border-left: 4px solid #16a34a;
}

.fraud-timeline-event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.fraud-timeline-category {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .fraud-timeline-category.communication {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .fraud-timeline-category.notification {
        background: #eef2ff;
        color: #4338ca;
    }

    .fraud-timeline-category.customer {
        background: #ecfdf5;
        color: #166534;
    }

    .fraud-timeline-category.security {
        background: #fef2f2;
        color: #b91c1c;
    }

    .fraud-timeline-category.investigation {
        background: #fff7ed;
        color: #c2410c;
    }

    .fraud-timeline-category.resolution {
        background: #ecfdf5;
        color: #166534;
    }

    .fraud-timeline-category.system,
    .fraud-timeline-category.other {
        background: #f1f5f9;
        color: #64748b;
    }

.fraud-timeline-event-header h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.fraud-timeline-event-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

    .fraud-timeline-event-status.completed {
        background: #ecfdf5;
        color: #166534;
    }

    .fraud-timeline-event-status.warning {
        background: #fef2f2;
        color: #b91c1c;
    }

    .fraud-timeline-event-status.investigating {
        background: #fff7ed;
        color: #c2410c;
    }

    .fraud-timeline-event-status.reviewed {
        background: #eff6ff;
        color: #1d4ed8;
    }

    .fraud-timeline-event-status.expired,
    .fraud-timeline-event-status.information {
        background: #f1f5f9;
        color: #64748b;
    }

.fraud-timeline-description {
    margin: 11px 0 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.fraud-timeline-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.fraud-timeline-actor {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.fraud-timeline-actor-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
}

.fraud-timeline-precise-time {
    color: #94a3b8;
    font-size: 10px;
}

.fraud-timeline-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fraud-timeline-summary-card,
.fraud-timeline-breakdown-card {
    overflow: hidden;
}

.fraud-timeline-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.fraud-timeline-summary-list {
    padding: 7px 20px;
}

    .fraud-timeline-summary-list > div {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

        .fraud-timeline-summary-list > div:last-child {
            border-bottom: none;
        }

    .fraud-timeline-summary-list span {
        color: #64748b;
        font-size: 11px;
    }

    .fraud-timeline-summary-list strong {
        max-width: 190px;
        color: #0f172a;
        font-size: 12px;
        text-align: right;
    }

.fraud-timeline-reference {
    color: #1d4ed8 !important;
    font-family: monospace;
}

.fraud-timeline-technical-id {
    color: #475569 !important;
    font-family: monospace;
    font-size: 11px !important;
}

.fraud-timeline-breakdown-list {
    padding: 8px 20px;
}

.fraud-timeline-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .fraud-timeline-breakdown-row:last-child {
        border-bottom: none;
    }

.fraud-timeline-breakdown-name {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 12px;
}

.fraud-timeline-breakdown-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

    .fraud-timeline-breakdown-dot.communication {
        background: #2563eb;
    }

    .fraud-timeline-breakdown-dot.notification {
        background: #4f46e5;
    }

    .fraud-timeline-breakdown-dot.customer {
        background: #16a34a;
    }

    .fraud-timeline-breakdown-dot.security {
        background: #dc2626;
    }

    .fraud-timeline-breakdown-dot.investigation {
        background: #f59e0b;
    }

    .fraud-timeline-breakdown-dot.resolution {
        background: #15803d;
    }

    .fraud-timeline-breakdown-dot.system,
    .fraud-timeline-breakdown-dot.other {
        background: #64748b;
    }

.fraud-timeline-breakdown-row strong {
    color: #0f172a;
    font-size: 13px;
}

.fraud-timeline-guidance-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.fraud-timeline-guidance-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #dbeafe;
    color: #2563eb;
}

    .fraud-timeline-guidance-icon svg {
        width: 20px;
        height: 20px;
    }

.fraud-timeline-guidance-card h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 14px;
    font-weight: 800;
}

.fraud-timeline-guidance-card p {
    margin: 5px 0 0;
    color: #1e40af;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .fraud-timeline-layout {
        grid-template-columns: 1fr;
    }

    .fraud-timeline-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .fraud-timeline-hero {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .fraud-timeline-hero-icon {
        width: 56px;
        height: 56px;
    }

    .fraud-timeline-hero-status {
        grid-column: 1 / -1;
        width: 100%;
    }

    .fraud-timeline-item {
        grid-template-columns: 72px 40px minmax(0, 1fr);
    }

    .fraud-timeline-list {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 600px) {
    .fraud-timeline-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fraud-timeline-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fraud-timeline-item {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 10px;
    }

    .fraud-timeline-time-column {
        grid-column: 2;
        grid-row: 1;
        padding: 0 0 7px;
        text-align: left;
    }

        .fraud-timeline-time-column strong,
        .fraud-timeline-time-column span {
            display: inline;
        }

        .fraud-timeline-time-column span {
            margin-left: 6px;
        }

    .fraud-timeline-track {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .fraud-timeline-event-card {
        grid-column: 2;
        grid-row: 2;
    }

    .fraud-timeline-event-header {
        flex-direction: column;
        gap: 9px;
    }

    .fraud-timeline-event-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .fraud-timeline-summary-list > div {
        flex-direction: column;
        gap: 4px;
    }

    .fraud-timeline-summary-list strong {
        max-width: none;
        text-align: left;
    }
}

.webhook-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.webhook-summary-card {
    padding: 18px 20px;
}

.webhook-summary-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.webhook-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.webhook-deliveries-card {
    overflow: hidden;
}

.webhook-deliveries-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e2e8f0;
}

    .webhook-deliveries-card-header h2 {
        margin: 0;
        font-size: 18px;
    }

    .webhook-deliveries-card-header p {
        margin: 5px 0 0;
        color: #64748b;
        font-size: 13px;
    }

.webhook-record-count {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.webhook-deliveries-table {
    margin: 0;
    vertical-align: middle;
}

    .webhook-deliveries-table th {
        padding: 13px 16px;
        color: #64748b;
        background: #f8fafc;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .webhook-deliveries-table td {
        padding: 15px 16px;
        border-color: #e2e8f0;
        color: #334155;
        font-size: 13px;
    }

.webhook-reference {
    display: block;
    color: #0f172a;
}

.webhook-event-id {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-family: monospace;
    font-size: 11px;
}

.webhook-event-type {
    color: #334155;
    font-weight: 600;
}

.webhook-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.webhook-status-delivered {
    color: #166534;
    background: #dcfce7;
}

.webhook-status-pending {
    color: #92400e;
    background: #fef3c7;
}

.webhook-status-processing {
    color: #1d4ed8;
    background: #dbeafe;
}

.webhook-status-dead-letter {
    color: #991b1b;
    background: #fee2e2;
}

.webhook-status-unknown {
    color: #475569;
    background: #e2e8f0;
}

.webhook-http-status {
    font-family: monospace;
    font-weight: 700;
}

.webhook-muted {
    color: #94a3b8;
}

.webhook-actions-cell {
    text-align: right;
    white-space: nowrap;
}

.webhook-loading-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px;
}

.webhook-empty-state {
    padding: 48px 24px;
    text-align: center;
}

    .webhook-empty-state h3 {
        margin: 0;
        font-size: 17px;
    }

    .webhook-empty-state p {
        max-width: 520px;
        margin: 8px auto 0;
        color: #64748b;
        font-size: 13px;
    }

@media (max-width: 900px) {
    .webhook-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .webhook-summary-grid {
        grid-template-columns: 1fr;
    }

    .webhook-deliveries-card-header {
        flex-direction: column;
    }
}

/* =========================
   Create User
   ========================= */

.fs-create-user-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    margin-top: 8px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #eff6ff;
}

.fs-create-user-note-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-create-user-note-icon svg {
        width: 20px;
        height: 20px;
    }

.fs-create-user-note strong {
    color: #0f172a;
}

.fs-create-user-note p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.fs-create-user-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.validation-message {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #cbd5e1;
    border-radius: 10px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    }

@media (max-width: 900px) {
    .fs-create-user-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .fs-create-user-actions .d-flex {
            width: 100%;
        }

        .fs-create-user-actions .btn {
            flex: 1;
        }
}

/* =========================
   User account actions
   ========================= */

.fs-user-action-confirmation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff7f7;
}

    .fs-user-action-confirmation strong {
        color: #0f172a;
    }

    .fs-user-action-confirmation p {
        color: #64748b;
        font-size: 14px;
        line-height: 1.5;
    }

@media (max-width: 800px) {
    .fs-user-action-confirmation {
        flex-direction: column;
        align-items: stretch;
    }

        .fs-user-action-confirmation .btn {
            flex: 1;


            .fs-temporary-password {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
                padding: 12px 14px;
                border: 1px solid #f59e0b;
                border-radius: 10px;
                background: #fffbeb;
            }

                .fs-temporary-password code {
                    color: #78350f;
                    font-size: 17px;
                    font-weight: 700;
                    letter-spacing: 0.06em;
                    overflow-wrap: anywhere;
                }

            @media (max-width: 800px) {
                .fs-user-action-confirmation {
                    flex-direction: column;
                    align-items: stretch;
                }

                    .fs-user-action-confirmation .btn {
                        flex: 1;
                    }
            }
        }
}

/* =========================
   MFA authenticator setup
   ========================= */

.fs-mfa-intro {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.fs-mfa-intro-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-mfa-intro-icon svg {
        width: 27px;
        height: 27px;
    }

.fs-mfa-intro h3 {
    margin: 0 0 5px;
    color: #0f172a;
}

.fs-mfa-intro p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.fs-mfa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fs-mfa-step-card {
    min-width: 0;
}

.fs-mfa-verification-card {
    grid-column: 1 / -1;
}

.fs-mfa-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

    .fs-mfa-step-heading h4 {
        margin: 0 0 5px;
        color: #0f172a;
    }

    .fs-mfa-step-heading p {
        margin: 0;
        color: #64748b;
        line-height: 1.5;
    }

.fs-mfa-step-number {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.fs-mfa-app-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
}

    .fs-mfa-app-note svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        color: #2563eb;
    }

.fs-mfa-qr-container {
    display: flex;
    justify-content: center;
    margin: 12px 0 22px;
}

.fs-mfa-qr-frame {
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.fs-mfa-qr-code {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.fs-mfa-manual-key {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #eff6ff;
}

.fs-mfa-manual-label {
    display: block;
    margin-bottom: 3px;
    color: #1e3a8a;
    font-weight: 700;
}

.fs-mfa-manual-key p {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
}

.fs-mfa-manual-key code {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.fs-mfa-code-input {
    min-height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.fs-mfa-security-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 24px;
    border-color: #fde68a;
    background: #fffbeb;
}

.fs-mfa-security-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
}

    .fs-mfa-security-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-mfa-security-note strong {
    color: #78350f;
}

.fs-mfa-security-note p {
    margin: 4px 0 0;
    color: #92400e;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .fs-mfa-grid {
        grid-template-columns: 1fr;
    }

    .fs-mfa-verification-card {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .fs-mfa-intro {
        align-items: flex-start;
    }

    .fs-mfa-step-heading {
        align-items: flex-start;
    }

    .fs-mfa-qr-code {
        width: 185px;
    }
}

/* =========================
   Account management layout
   ========================= */

.fs-account-page {
    width: 100%;
}

.fs-account-layout {
    display: grid;
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.fs-account-sidebar {
    min-width: 0;
}

.fs-account-content {
    min-width: 0;
}

.fs-account-navigation-card {
    padding: 14px;
    position: sticky;
    top: 24px;
}

.fs-account-navigation-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 8px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

    .fs-account-navigation-heading h3 {
        margin: 0 0 2px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 750;
    }

    .fs-account-navigation-heading p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
    }

.fs-account-navigation-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-navigation-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fs-account-nav-link {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #475569;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

    .fs-account-nav-link:hover {
        border-color: #e2e8f0;
        background: #f8fafc;
        color: #0f172a;
        text-decoration: none;
    }

    .fs-account-nav-link.active {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .fs-account-nav-link > svg:first-child {
        width: 20px;
        height: 20px;
    }

    .fs-account-nav-link span {
        display: flex;
        min-width: 0;
        flex-direction: column;
    }

    .fs-account-nav-link strong {
        color: inherit;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    .fs-account-nav-link small {
        margin-top: 2px;
        overflow: hidden;
        color: #64748b;
        font-size: 12px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fs-account-nav-link.active small {
        color: #3b82f6;
    }

.fs-account-nav-chevron {
    width: 15px !important;
    height: 15px !important;
    color: #94a3b8;
}

.fs-account-nav-link.active .fs-account-nav-chevron {
    color: #2563eb;
}

/*
 * Shared wrapper for the individual account pages.
 * We will apply this class as each page is restyled.
 */
.fs-account-section {
    width: 100%;
}

.fs-account-section-header {
    margin-bottom: 20px;
}

    .fs-account-section-header h2 {
        margin: 0 0 6px;
        color: #0f172a;
        font-size: 24px;
        font-weight: 750;
    }

    .fs-account-section-header p {
        margin: 0;
        color: #64748b;
        line-height: 1.55;
    }

.fs-account-form-card {
    max-width: 760px;
}

    .fs-account-form-card .form-label {
        color: #334155;
        font-size: 14px;
        font-weight: 650;
    }

.fs-account-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 1050px) {
    .fs-account-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .fs-account-nav-link small {
        display: none;
    }

    .fs-account-nav-link {
        min-height: 48px;
    }
}

@media (max-width: 820px) {
    .fs-account-layout {
        grid-template-columns: 1fr;
    }

    .fs-account-navigation-card {
        position: static;
    }

    .fs-account-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fs-account-nav-link small {
        display: block;
    }
}

@media (max-width: 560px) {
    .fs-account-nav {
        grid-template-columns: 1fr;
    }

    .fs-account-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .fs-account-form-actions .btn {
            width: 100%;
        }
}

/* =========================
   Account profile page
   ========================= */

.fs-account-profile-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.fs-account-profile-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.fs-account-profile-summary h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 19px;
}

.fs-account-profile-summary p {
    margin: 0 0 10px;
    color: #64748b;
}

.fs-account-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

    .fs-account-card-heading h3 {
        margin: 0 0 5px;
        color: #0f172a;
        font-size: 18px;
    }

    .fs-account-card-heading p {
        margin: 0;
        color: #64748b;
        line-height: 1.5;
    }

.fs-account-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

    .fs-account-card-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-security-summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    max-width: 760px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-security-summary-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-security-summary-icon svg {
        width: 22px;
        height: 22px;
    }

.fs-account-security-summary strong {
    color: #0f172a;
}

.fs-account-security-summary p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 650px) {
    .fs-account-security-summary {
        grid-template-columns: 44px minmax(0, 1fr);
    }

        .fs-account-security-summary .btn {
            grid-column: 1 / -1;
            width: 100%;
        }
}

/* =========================
   Account email page
   ========================= */

.fs-account-email-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    max-width: 760px;
    margin-bottom: 24px;
}

.fs-account-email-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-email-icon svg {
        width: 23px;
        height: 23px;
    }

.fs-account-email-summary-content {
    min-width: 0;
}

.fs-account-email-label {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 13px;
}

.fs-account-email-summary-content strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 16px;
}

.fs-account-email-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    margin-bottom: 24px;
    border-color: #fde68a;
    background: #fffbeb;
}

.fs-account-email-warning-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
}

    .fs-account-email-warning-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-email-warning strong {
    color: #78350f;
}

.fs-account-email-warning p {
    margin: 4px 0 0;
    color: #92400e;
    line-height: 1.5;
}

.fs-account-email-security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-email-security-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-email-security-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-email-security-note strong {
    color: #0f172a;
}

.fs-account-email-security-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .fs-account-email-summary {
        grid-template-columns: 48px minmax(0, 1fr);
    }

        .fs-account-email-summary > .btn {
            grid-column: 1 / -1;
            width: 100%;
        }
}

/* =========================
   Account password page
   ========================= */

.fs-account-password-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 760px;
    margin-bottom: 24px;
}

.fs-account-password-summary-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-password-summary-icon svg {
        width: 23px;
        height: 23px;
    }

.fs-account-password-summary h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 17px;
}

.fs-account-password-summary p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-password-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-password-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-password-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-password-note strong {
    color: #0f172a;
}

.fs-account-password-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

/* =========================
   Account MFA overview
   ========================= */

.fs-account-mfa-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.fs-account-mfa-hero-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-mfa-hero-icon svg {
        width: 29px;
        height: 29px;
    }

.fs-account-mfa-hero-content h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 19px;
}

.fs-account-mfa-hero-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.fs-account-mfa-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.fs-account-mfa-status-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 4px 13px;
}

.fs-account-mfa-status-icon {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

    .fs-account-mfa-status-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-mfa-status-card span {
    color: #64748b;
    font-size: 13px;
}

.fs-account-mfa-status-card strong {
    color: #0f172a;
    font-size: 16px;
}

.fs-account-mfa-warning {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    border-color: #fde68a;
    background: #fffbeb;
}

.fs-account-mfa-warning-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fef3c7;
    color: #b45309;
}

    .fs-account-mfa-warning-icon svg {
        width: 22px;
        height: 22px;
    }

.fs-account-mfa-warning strong {
    color: #78350f;
}

.fs-account-mfa-warning p {
    margin: 4px 0 0;
    color: #92400e;
    line-height: 1.5;
}

.fs-account-mfa-actions-card {
    max-width: 900px;
}

.fs-account-mfa-actions {
    display: flex;
    flex-direction: column;
}

.fs-account-mfa-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 19px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .fs-account-mfa-action-row:first-child {
        padding-top: 0;
    }

    .fs-account-mfa-action-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .fs-account-mfa-action-row strong {
        color: #0f172a;
        font-size: 15px;
    }

    .fs-account-mfa-action-row p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 14px;
        line-height: 1.5;
    }

.fs-account-mfa-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 900px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-mfa-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-mfa-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-mfa-note strong {
    color: #0f172a;
}

.fs-account-mfa-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .fs-account-mfa-status-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .fs-account-mfa-warning {
        grid-template-columns: 44px minmax(0, 1fr);
    }

        .fs-account-mfa-warning .btn {
            grid-column: 1 / -1;
            width: 100%;
        }

    .fs-account-mfa-action-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

        .fs-account-mfa-action-row .btn,
        .fs-account-mfa-action-row form,
        .fs-account-mfa-action-row form .btn {
            width: 100%;
        }
}

/* =========================
   Account destructive actions
   ========================= */

.fs-account-danger-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 820px;
    margin-bottom: 24px;
    border-color: #fecaca;
    background: #fff7f7;
}

.fs-account-danger-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fee2e2;
    color: #b91c1c;
}

    .fs-account-danger-hero-icon svg {
        width: 26px;
        height: 26px;
    }

.fs-account-danger-hero h3 {
    margin: 0 0 5px;
    color: #7f1d1d;
    font-size: 18px;
}

.fs-account-danger-hero p {
    margin: 0;
    color: #991b1b;
    line-height: 1.5;
}

.fs-account-danger-card {
    max-width: 820px;
}

.fs-account-card-icon-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.fs-account-danger-list {
    display: flex;
    flex-direction: column;
}

.fs-account-danger-list-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .fs-account-danger-list-item:first-child {
        padding-top: 0;
    }

    .fs-account-danger-list-item > svg {
        width: 21px;
        height: 21px;
        margin-top: 2px;
        color: #dc2626;
    }

    .fs-account-danger-list-item strong {
        color: #0f172a;
    }

    .fs-account-danger-list-item p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 14px;
        line-height: 1.5;
    }

.fs-account-danger-guidance {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fbff;
}

.fs-account-danger-guidance-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-danger-guidance-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-danger-guidance strong {
    color: #0f172a;
}

.fs-account-danger-guidance p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.fs-account-danger-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 700px) {
    .fs-account-danger-guidance {
        grid-template-columns: 42px minmax(0, 1fr);
    }

        .fs-account-danger-guidance .btn {
            grid-column: 1 / -1;
            width: 100%;
        }

    .fs-account-danger-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .fs-account-danger-actions form,
        .fs-account-danger-actions .btn {
            width: 100%;
        }
}  

/* =========================
   Account recovery codes
   ========================= */

.fs-account-recovery-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 820px;
    margin-bottom: 24px;
}

.fs-account-recovery-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fef3c7;
    color: #b45309;
}

.fs-account-recovery-hero-icon svg {
    width: 26px;
    height: 26px;
}

.fs-account-recovery-hero h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-recovery-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-recovery-card {
    max-width: 820px;
}

.fs-account-card-icon-warning {
    background: #fef3c7;
    color: #b45309;
}

.fs-account-recovery-list {
    display: flex;
    flex-direction: column;
}

.fs-account-recovery-list-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fs-account-recovery-list-item:first-child {
    padding-top: 0;
}

.fs-account-recovery-list-item > svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
    color: #b45309;
}

.fs-account-recovery-list-item strong {
    color: #0f172a;
}

.fs-account-recovery-list-item p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.fs-account-recovery-guidance {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fbff;
}

.fs-account-recovery-guidance-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

.fs-account-recovery-guidance-icon svg {
    width: 21px;
    height: 21px;
}

.fs-account-recovery-guidance strong {
    color: #0f172a;
}

.fs-account-recovery-guidance p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .fs-account-recovery-guidance {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .fs-account-recovery-guidance .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* =========================
   Recovery-code display
   ========================= */

.fs-recovery-codes-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 820px;
    margin-bottom: 24px;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.fs-recovery-codes-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dcfce7;
    color: #15803d;
}

    .fs-recovery-codes-hero-icon svg {
        width: 26px;
        height: 26px;
    }

.fs-recovery-codes-hero h3 {
    margin: 0 0 5px;
    color: #14532d;
    font-size: 18px;
}

.fs-recovery-codes-hero p {
    margin: 0;
    color: #166534;
    line-height: 1.5;
}

.fs-recovery-codes-card {
    max-width: 820px;
}

.fs-recovery-codes-warning {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid #fde68a;
    border-radius: 13px;
    background: #fffbeb;
}

    .fs-recovery-codes-warning > svg {
        width: 21px;
        height: 21px;
        margin-top: 2px;
        color: #b45309;
    }

    .fs-recovery-codes-warning strong {
        color: #78350f;
    }

    .fs-recovery-codes-warning p {
        margin: 4px 0 0;
        color: #92400e;
        font-size: 14px;
        line-height: 1.5;
    }

.fs-recovery-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fs-recovery-code-item {
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    background: #f8fafc;
    text-align: center;
}

    .fs-recovery-code-item code {
        color: #0f172a;
        font-size: 16px;
        font-weight: 750;
        letter-spacing: 0.08em;
    }

.fs-recovery-codes-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.fs-recovery-codes-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 820px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-recovery-codes-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-recovery-codes-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-recovery-codes-note strong {
    color: #0f172a;
}

.fs-recovery-codes-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .fs-recovery-codes-grid {
        grid-template-columns: 1fr;
    }

    .fs-recovery-codes-actions {
        flex-direction: column;
    }

        .fs-recovery-codes-actions .btn {
            width: 100%;
        }
}

/* =========================
   Account external logins
   ========================= */

.fs-account-external-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 860px;
    margin-bottom: 24px;
}

.fs-account-external-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-external-hero-icon svg {
        width: 26px;
        height: 26px;
    }

.fs-account-external-hero h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-external-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-external-card {
    max-width: 860px;
}

.fs-account-external-list {
    display: flex;
    flex-direction: column;
}

.fs-account-external-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .fs-account-external-row:first-child {
        padding-top: 0;
    }

    .fs-account-external-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.fs-account-external-provider {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fs-account-external-provider-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

    .fs-account-external-provider-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-external-provider strong {
    color: #0f172a;
}

.fs-account-external-provider p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.fs-account-external-provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fs-account-external-provider-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 15px;
    border: 1px solid #dbe3ef;
    border-radius: 13px;
    background: #ffffff;
    color: #334155;
    text-align: left;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

    .fs-account-external-provider-button:hover {
        border-color: #93c5fd;
        background: #f8fbff;
        transform: translateY(-1px);
    }

.fs-account-external-provider-button-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-external-provider-button-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-external-provider-button span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.fs-account-external-provider-button strong {
    color: #0f172a;
    font-size: 14px;
}

.fs-account-external-provider-button small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.fs-account-external-provider-button > svg {
    width: 17px;
    height: 17px;
    color: #94a3b8;
}

.fs-account-empty-card {
    max-width: 860px;
    padding: 38px;
    text-align: center;
}

.fs-account-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #64748b;
}

    .fs-account-empty-icon svg {
        width: 27px;
        height: 27px;
    }

.fs-account-empty-card h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-empty-card p {
    margin: 0;
    color: #64748b;
}

.fs-account-external-note,
.fs-account-external-security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 860px;
}

.fs-account-external-note {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.fs-account-external-security-note {
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-external-note-icon,
.fs-account-external-security-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.fs-account-external-note-icon {
    background: #e2e8f0;
    color: #475569;
}

.fs-account-external-security-note-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-external-note-icon svg,
    .fs-account-external-security-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-external-note strong,
.fs-account-external-security-note strong {
    color: #0f172a;
}

.fs-account-external-note p,
.fs-account-external-security-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .fs-account-external-provider-grid {
        grid-template-columns: 1fr;
    }

    .fs-account-external-row {
        grid-template-columns: 1fr;
    }

        .fs-account-external-row form,
        .fs-account-external-row .btn {
            width: 100%;
        }
}  

/* =========================
   Account passkeys
   ========================= */

.fs-account-passkey-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 860px;
    margin-bottom: 24px;
    border-color: #c7d2fe;
    background: #f8faff;
}

.fs-account-passkey-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #e0e7ff;
    color: #4338ca;
}

.fs-account-passkey-hero-icon svg {
    width: 27px;
    height: 27px;
}

.fs-account-passkey-hero h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-passkey-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-passkey-card,
.fs-account-passkey-add-card {
    max-width: 860px;
}

.fs-account-passkey-add-card {
    margin-top: 24px;
}

.fs-account-passkey-list {
    display: flex;
    flex-direction: column;
}

.fs-account-passkey-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fs-account-passkey-row:first-child {
    padding-top: 0;
}

.fs-account-passkey-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.fs-account-passkey-details {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fs-account-passkey-device-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
}

.fs-account-passkey-device-icon svg {
    width: 21px;
    height: 21px;
}

.fs-account-passkey-details strong {
    color: #0f172a;
}

.fs-account-passkey-details p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.fs-account-passkey-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-account-passkey-benefits {
    display: flex;
    flex-direction: column;
}

.fs-account-passkey-benefit {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fs-account-passkey-benefit:first-child {
    padding-top: 0;
}

.fs-account-passkey-benefit:last-child {
    border-bottom: 0;
}

.fs-account-passkey-benefit > svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
    color: #4f46e5;
}

.fs-account-passkey-benefit strong {
    color: #0f172a;
}

.fs-account-passkey-benefit p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.fs-account-passkey-add-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.fs-account-passkey-limit {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fff7f7;
}

.fs-account-passkey-limit > svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
    color: #dc2626;
}

.fs-account-passkey-limit strong {
    color: #7f1d1d;
}

.fs-account-passkey-limit p {
    margin: 4px 0 0;
    color: #991b1b;
    font-size: 14px;
}

.fs-account-passkey-security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 860px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-passkey-security-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

.fs-account-passkey-security-note-icon svg {
    width: 21px;
    height: 21px;
}

.fs-account-passkey-security-note strong {
    color: #0f172a;
}

.fs-account-passkey-security-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .fs-account-passkey-row {
        grid-template-columns: 1fr;
    }

    .fs-account-passkey-actions {
        width: 100%;
    }

    .fs-account-passkey-actions .btn {
        flex: 1;
    }

    .fs-account-passkey-add-actions,
    .fs-account-passkey-add-actions .btn {
        width: 100%;
    }
}

/* =========================
   Rename passkey
   ========================= */

.fs-account-passkey-rename-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 760px;
    margin-bottom: 24px;
    border-color: #c7d2fe;
    background: #f8faff;
}

.fs-account-passkey-rename-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #e0e7ff;
    color: #4338ca;
}

    .fs-account-passkey-rename-hero-icon svg {
        width: 26px;
        height: 26px;
    }

.fs-account-passkey-rename-hero h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-passkey-rename-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-passkey-rename-card {
    max-width: 760px;
}

.fs-account-passkey-rename-example {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fbff;
}

    .fs-account-passkey-rename-example > svg {
        width: 21px;
        height: 21px;
        margin-top: 2px;
        color: #2563eb;
    }

    .fs-account-passkey-rename-example strong {
        color: #0f172a;
    }

    .fs-account-passkey-rename-example p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 14px;
        line-height: 1.5;
    }

/* =========================
   Account personal data
   ========================= */

.fs-account-data-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 900px;
    margin-bottom: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-data-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-data-hero-icon svg {
        width: 26px;
        height: 26px;
    }

.fs-account-data-hero h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-data-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
}

.fs-account-data-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.fs-account-data-card-danger {
    border-color: #fecaca;
}

.fs-account-data-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 14px;
    background: #dbeafe;
    color: #1d4ed8;
}

.fs-account-data-card-icon-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.fs-account-data-card-icon svg {
    width: 24px;
    height: 24px;
}

.fs-account-data-card-content {
    flex: 1;
}

    .fs-account-data-card-content h3 {
        margin: 0 0 7px;
        color: #0f172a;
        font-size: 18px;
    }

    .fs-account-data-card-content > p {
        margin: 0;
        color: #64748b;
        line-height: 1.55;
    }

.fs-account-data-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

    .fs-account-data-points > div {
        display: flex;
        align-items: center;
        gap: 9px;
        color: #475569;
        font-size: 14px;
    }

    .fs-account-data-points svg {
        width: 17px;
        height: 17px;
        color: #15803d;
    }

.fs-account-data-warning {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

    .fs-account-data-warning svg {
        width: 19px;
        height: 19px;
        margin-top: 1px;
        color: #dc2626;
    }

.fs-account-data-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.fs-account-data-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 900px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-data-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

    .fs-account-data-note-icon svg {
        width: 21px;
        height: 21px;
    }

.fs-account-data-note strong {
    color: #0f172a;
}

.fs-account-data-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 800px) {
    .fs-account-data-grid {
        grid-template-columns: 1fr;
    }

    .fs-account-data-card-actions,
    .fs-account-data-card-actions .btn {
        width: 100%;
    }
}  

/* =========================
   Delete personal data
   ========================= */

.fs-account-delete-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 820px;
    margin-bottom: 24px;
    border-color: #fecaca;
    background: #fff7f7;
}

.fs-account-delete-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fee2e2;
    color: #b91c1c;
}

.fs-account-delete-hero-icon svg {
    width: 26px;
    height: 26px;
}

.fs-account-delete-hero h3 {
    margin: 0 0 5px;
    color: #7f1d1d;
    font-size: 18px;
}

.fs-account-delete-hero p {
    margin: 0;
    color: #991b1b;
    line-height: 1.5;
}

.fs-account-delete-card {
    max-width: 820px;
    border-color: #fecaca;
}

.fs-account-delete-list {
    display: flex;
    flex-direction: column;
}

.fs-account-delete-list-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fs-account-delete-list-item:first-child {
    padding-top: 0;
}

.fs-account-delete-list-item > svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
    color: #dc2626;
}

.fs-account-delete-list-item strong {
    color: #0f172a;
}

.fs-account-delete-list-item p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.fs-account-delete-retention-note,
.fs-account-delete-no-password {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 13px;
    margin-top: 22px;
    padding: 16px;
    border-radius: 13px;
}

.fs-account-delete-retention-note {
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.fs-account-delete-no-password {
    border: 1px solid #dbeafe;
    background: #f8fbff;
}

.fs-account-delete-retention-note > svg {
    color: #b45309;
}

.fs-account-delete-no-password > svg {
    color: #2563eb;
}

.fs-account-delete-retention-note > svg,
.fs-account-delete-no-password > svg {
    width: 21px;
    height: 21px;
    margin-top: 2px;
}

.fs-account-delete-retention-note strong,
.fs-account-delete-no-password strong {
    color: #0f172a;
}

.fs-account-delete-retention-note p,
.fs-account-delete-no-password p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.fs-account-delete-card form {
    margin-top: 24px;
}

.fs-account-delete-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
}

.fs-account-delete-confirmation .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.fs-account-delete-confirmation label {
    color: #7f1d1d;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}  

/* =========================
   Set local password
   ========================= */

.fs-account-password-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    max-width: 760px;
    margin-bottom: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-password-hero-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #dbeafe;
    color: #1d4ed8;
}

.fs-account-password-hero-icon svg {
    width: 26px;
    height: 26px;
}

.fs-account-password-hero h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 18px;
}

.fs-account-password-hero p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.fs-account-password-card {
    max-width: 760px;
}

.fs-account-password-requirements {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fbff;
}

.fs-account-password-requirements-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
    color: #0f172a;
}

.fs-account-password-requirements-title svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.fs-account-password-requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.fs-account-password-requirements-grid > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
}

.fs-account-password-requirements-grid svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #15803d;
}

.fs-account-password-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    margin-top: 24px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.fs-account-password-note-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

.fs-account-password-note-icon svg {
    width: 21px;
    height: 21px;
}

.fs-account-password-note strong {
    color: #0f172a;
}

.fs-account-password-note p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .fs-account-password-requirements-grid {
        grid-template-columns: 1fr;
    }
}


