/* Workspace account — profile, settings, modals */
.ws-page-card {
    background: #fff;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-xl);
    box-shadow: var(--ws-shadow-sm);
    padding: 24px;
}

.ws-page-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ws-page-card-head-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ws-page-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow:
        0 10px 18px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

[class*="ws-gradient-"].ws-page-card-icon,
[class*="ws-gradient-"].ws-modal-icon {
    background: linear-gradient(145deg, var(--ws-icon-from, #6366f1), var(--ws-icon-to, #4338ca));
}

.ws-page-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--ws-slate-900);
}

.ws-page-subtitle {
    margin: 0;
    color: var(--ws-slate-500);
    font-size: var(--ws-font-size);
}

.ws-page-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-btn-outline {
    border: 1px solid var(--ws-border);
    background: #fff;
    color: var(--ws-slate-700);
    font-weight: 700;
    border-radius: var(--ws-radius-full);
    padding: 8px 16px;
}

.ws-btn-outline:hover {
    border-color: var(--ws-indigo-200);
    background: var(--ws-indigo-50);
    color: var(--ws-indigo-700);
}

.ws-btn-outline-danger {
    border: 1px solid rgba(225, 29, 72, 0.28);
    background: #fff;
    color: #e11d48;
    font-weight: 700;
    border-radius: var(--ws-radius-full);
    padding: 8px 16px;
}

.ws-btn-outline-danger:hover {
    border-color: rgba(225, 29, 72, 0.45);
    background: #fff1f2;
    color: #be123c;
}

.ws-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: var(--ws-radius-full);
    padding: 8px 18px;
}

.ws-btn-danger {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: var(--ws-radius-full);
    padding: 8px 18px;
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.24);
}

.ws-btn-danger:hover {
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.ws-btn-danger:disabled {
    opacity: 0.7;
    box-shadow: none;
}

.ws-btn-ghost {
    background: transparent;
    border: none;
    color: var(--ws-slate-600);
    font-weight: 600;
    border-radius: var(--ws-radius-full);
    padding: 8px 18px;
}

/* ─── Profile page (mockup) ─── */
.ws-profile-page {
    --profile-purple: #5b50d6;
    --profile-purple-soft: #f4f3ff;
    gap: 0;
}

.ws-profile-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ws-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 12px;
}

.ws-profile-side-card {
    background: #fff;
    border: 1px solid var(--ws-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 20px 16px 14px;
}

.ws-profile-side-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 12px;
}

.ws-profile-side-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    margin-bottom: 12px;
}

.ws-profile-side-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.ws-profile-side-role {
    margin: 4px 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.ws-profile-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--profile-purple-soft);
    color: var(--profile-purple);
    font-size: 11px;
    font-weight: 700;
}

.ws-profile-side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.ws-profile-nav-item i {
    font-size: 15px;
    color: #94a3b8;
}

.ws-profile-nav-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.ws-profile-nav-item.is-active {
    background: var(--profile-purple-soft);
    color: var(--profile-purple);
}

.ws-profile-nav-item.is-active i {
    color: var(--profile-purple);
}

.ws-profile-secure-card {
    background: linear-gradient(160deg, #f4f3ff, #eef2ff);
    border: 1px solid #e4e0ff;
    border-radius: 16px;
    padding: 18px;
}

.ws-profile-secure-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--profile-purple);
    font-size: 16px;
    margin-bottom: 10px;
    box-shadow: 0 6px 14px rgba(91, 80, 214, 0.15);
}

.ws-profile-secure-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 800;
    color: #312e81;
}

.ws-profile-secure-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5b568f;
    font-weight: 500;
}

.ws-profile-main {
    min-width: 0;
}

.ws-profile-panel {
    display: none;
}

.ws-profile-panel.is-active {
    display: block;
}

.ws-profile-main-card {
    background: #fff;
    border: 1px solid var(--ws-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 22px 24px 28px;
}

.ws-profile-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ws-profile-main-head-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ws-profile-main-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(145deg, #6d63f2, #5b50d6);
    box-shadow: 0 10px 20px rgba(91, 80, 214, 0.28);
    flex-shrink: 0;
}

.ws-profile-main-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ws-profile-main-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.ws-profile-main-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-profile-btn-edit,
.ws-profile-btn-save,
.ws-profile-btn-cancel {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-family: inherit;
}

.ws-profile-btn-edit {
    border: 1.5px solid rgba(91, 80, 214, 0.35);
    background: #fff;
    color: var(--profile-purple);
}

.ws-profile-btn-edit:hover {
    background: var(--profile-purple-soft);
}

.ws-profile-btn-save {
    border: none;
    background: linear-gradient(135deg, #6d63f2, #5b50d6);
    color: #fff;
    box-shadow: 0 10px 20px rgba(91, 80, 214, 0.28);
}

.ws-profile-btn-cancel {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.ws-profile-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.07));
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.ws-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ws-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.ws-profile-photo-btn {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: linear-gradient(135deg, #6d63f2, #5b50d6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(67, 56, 202, 0.35);
}

.ws-profile-photo-hint {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 11px;
}

.ws-profile-banner-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.ws-profile-banner-meta {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.ws-profile-banner-dot {
    margin: 0 4px;
}

.ws-profile-banner-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.ws-profile-banner-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.ws-profile-banner-contact i {
    color: var(--profile-purple);
}

.ws-profile-section {
    margin-top: 8px;
}

.ws-profile-section + .ws-profile-section {
    margin-top: 26px;
}

.ws-profile-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ws-profile-section-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.ws-profile-section-head::after {
    content: '';
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(91, 80, 214, 0.35), rgba(91, 80, 214, 0.05));
}

.ws-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.ws-profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.ws-profile-info-item.is-full {
    grid-column: 1 / -1;
}

.ws-profile-info-item > i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--profile-purple-soft);
    color: var(--profile-purple);
    font-size: 14px;
    margin-top: 2px;
}

.ws-profile-info-body {
    min-width: 0;
    flex: 1;
}

.ws-profile-info-body label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.ws-profile-view-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    word-break: break-word;
}

.ws-profile-edit-control {
    width: 100%;
    min-height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
}

.ws-profile-edit-control:focus {
    outline: none;
    border-color: var(--profile-purple);
    box-shadow: 0 0 0 4px rgba(91, 80, 214, 0.12);
}

textarea.ws-profile-edit-control {
    min-height: 88px;
    resize: vertical;
}

.ws-profile-page.is-editing .ws-profile-view-value {
    display: none;
}

.ws-profile-page.is-editing .ws-profile-edit-control {
    display: block !important;
}

.ws-profile-placeholder-card {
    text-align: center;
    padding: 56px 28px;
}

.ws-profile-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--profile-purple-soft);
    color: var(--profile-purple);
    font-size: 24px;
}

.ws-profile-placeholder-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
}

.ws-profile-placeholder-card p {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 14px;
}

/* Notification Preferences */
.ws-notif-prefs {
    padding: 22px 24px 20px !important;
}

.ws-notif-prefs-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ws-notif-prefs-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.ws-notif-prefs-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.ws-notif-prefs-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #5c42e2;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(92, 66, 226, 0.28);
}

.ws-notif-prefs-save:hover {
    filter: brightness(1.05);
}

.ws-notif-summary-card.is-on {
    border-color: rgba(16, 185, 129, 0.35);
}

.ws-notif-summary-card.is-off {
    border-color: rgba(220, 38, 38, 0.22);
}

.ws-notif-prefs-save.is-dirty {
    box-shadow: 0 8px 18px rgba(92, 66, 226, 0.4);
    animation: wsNotifSavePulse 1.2s ease-in-out infinite;
}

@keyframes wsNotifSavePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

.ws-notif-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ws-notif-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-notif-summary-card:hover {
    border-color: rgba(92, 66, 226, 0.35);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.ws-notif-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.ws-notif-summary-icon--purple { background: #5c42e2; }
.ws-notif-summary-icon--green { background: #10b981; }
.ws-notif-summary-icon--orange { background: #f59e0b; }

.ws-notif-summary-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ws-notif-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.ws-notif-summary-status {
    font-size: 15px;
    font-weight: 800;
}

.ws-notif-summary-status.is-enabled { color: #059669; }
.ws-notif-summary-status.is-disabled { color: #dc2626; }

.ws-notif-summary-desc {
    font-size: 11px;
    color: #94a3b8;
}

.ws-notif-summary-chevron {
    color: #94a3b8;
    font-size: 14px;
}

.ws-notif-section {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.ws-notif-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ws-notif-section-head h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.ws-notif-col-labels {
    display: grid;
    grid-template-columns: repeat(3, 52px);
    gap: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.ws-notif-channel-list,
.ws-notif-category-list {
    background: #fff;
}

.ws-notif-channel-row,
.ws-notif-category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin: 0;
    cursor: pointer;
}

.ws-notif-category-row {
    cursor: default;
}

.ws-notif-channel-row:last-child,
.ws-notif-category-row:last-child {
    border-bottom: none;
}

.ws-notif-channel-row.is-highlight {
    background: #f5f3ff;
}

.ws-notif-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ws-notif-row-icon--purple { background: #ede9fe; color: #6d28d9; }
.ws-notif-row-icon--green { background: #d1fae5; color: #059669; }
.ws-notif-row-icon--orange { background: #ffedd5; color: #ea580c; }
.ws-notif-row-icon--blue { background: #dbeafe; color: #2563eb; }
.ws-notif-row-icon--red { background: #fee2e2; color: #dc2626; }

.ws-notif-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-notif-row-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.ws-notif-row-text span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.ws-notif-category-toggles {
    display: grid;
    grid-template-columns: repeat(3, 52px);
    gap: 10px;
    justify-items: center;
    flex-shrink: 0;
}

.ws-notif-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 24px;
    margin: 0;
    cursor: pointer;
}

.ws-notif-switch input {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.ws-notif-switch-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.15s ease;
}

.ws-notif-switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease;
}

.ws-notif-switch input:checked + .ws-notif-switch-ui {
    background: #10b981;
}

.ws-notif-switch input:checked + .ws-notif-switch-ui::after {
    transform: translateX(20px);
}

.ws-notif-switch input:disabled + .ws-notif-switch-ui {
    opacity: 0.45;
    cursor: not-allowed;
}

.ws-notif-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3f0ff;
    border: 1px solid rgba(92, 66, 226, 0.16);
    color: #4c1d95;
}

.ws-notif-info-banner i {
    margin-top: 1px;
    color: #5c42e2;
    flex-shrink: 0;
}

.ws-notif-info-banner p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .ws-notif-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ws-notif-prefs-head {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-notif-prefs-save {
        width: 100%;
        justify-content: center;
    }

    .ws-notif-section-head--categories {
        flex-direction: column;
        align-items: flex-start;
    }

    .ws-notif-category-row {
        flex-wrap: wrap;
    }

    .ws-notif-category-toggles,
    .ws-notif-col-labels {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Security page */
.ws-security-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-security-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ws-security-head-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ws-security-save-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ws-security-save-status.is-saving {
    background: #eff6ff;
    color: #2563eb;
}

.ws-security-save-status.is-saved {
    background: #ecfdf5;
    color: #059669;
}

.ws-security-save-status.is-error {
    background: #fef2f2;
    color: #dc2626;
}

.ws-security-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.ws-security-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.ws-security-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ws-security-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ws-security-summary-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.ws-security-summary-card.is-on {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.ws-security-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ws-security-summary-icon--purple { background: #ede9fe; color: #6d28d9; }
.ws-security-summary-icon--green { background: #d1fae5; color: #059669; }
.ws-security-summary-icon--blue { background: #dbeafe; color: #2563eb; }

.ws-security-summary-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ws-security-summary-body strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
}

.ws-security-summary-body p,
.ws-security-summary-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.ws-security-summary-chevron {
    color: #94a3b8;
    margin-top: 4px;
}

.ws-security-outline-btn {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    pointer-events: none;
}

.ws-security-outline-btn:hover {
    border-color: rgba(148, 163, 184, 0.3);
    color: #334155;
}

.ws-security-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 0;
    font-family: inherit;
}

.ws-security-status-pill.is-enabled {
    background: #ecfdf5;
    color: #059669;
}

.ws-security-status-pill.is-disabled {
    background: #fef2f2;
    color: #dc2626;
}

button.ws-security-status-pill {
    cursor: pointer;
}

.ws-security-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 14px;
    align-items: start;
}

.ws-security-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ws-security-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ws-security-card-head-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ws-security-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ws-security-card-icon--blue { background: #dbeafe; color: #2563eb; }
.ws-security-card-icon--purple { background: #ede9fe; color: #6d28d9; }

.ws-security-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.ws-security-card-head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.ws-security-signout-all {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: #fff;
    color: #dc2626;
    border-radius: 8px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.ws-security-signout-all:hover {
    background: #fef2f2;
}

.ws-security-session-list {
    padding: 4px 8px;
}

.ws-security-session-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 160px) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ws-security-session-row:last-child {
    border-bottom: none;
}

.ws-security-device-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.ws-security-device-icon--purple { background: #8b5cf6; }
.ws-security-device-icon--green { background: #10b981; }
.ws-security-device-icon--orange { background: #f59e0b; }
.ws-security-device-icon--blue { background: #3b82f6; }
.ws-security-device-icon--pink { background: #ec4899; }
.ws-security-device-icon--cyan { background: #06b6d4; }

.ws-security-session-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-security-session-title strong {
    font-size: 13px;
    color: #0f172a;
}

.ws-security-session-main p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.ws-security-current-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #5c42e2;
    font-size: 10px;
    font-weight: 800;
}

.ws-security-session-meta {
    text-align: right;
    line-height: 1.35;
}

.ws-security-session-meta strong {
    display: block;
    font-size: 12px;
    color: #334155;
}

.ws-security-session-meta span {
    font-size: 11px;
    color: #94a3b8;
}

.ws-security-session-signout {
    border: 0;
    background: transparent;
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 6px;
    white-space: nowrap;
}

.ws-security-session-signout:hover {
    text-decoration: underline;
}

.ws-security-session-spacer {
    width: 56px;
}

.ws-security-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    padding: 12px;
    cursor: pointer;
}

.ws-security-view-all.is-static {
    color: #94a3b8;
    cursor: default;
}

.ws-security-empty {
    padding: 28px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.ws-security-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-security-setting-list {
    padding: 6px 10px 10px;
}

.ws-security-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 8px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: transparent;
    text-align: left;
    font-family: inherit;
    margin: 0;
}

.ws-security-setting-row .ws-notif-switch {
    margin-left: auto;
    flex-shrink: 0;
}

.ws-security-setting-row .ws-security-status-pill {
    flex-shrink: 0;
}

.ws-security-setting-row:last-child {
    border-bottom: none;
}

.ws-security-setting-row--btn {
    cursor: pointer;
}

.ws-security-setting-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ws-security-setting-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ws-security-setting-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ws-security-setting-text span {
    font-size: 12px;
    color: #64748b;
}

.ws-security-recovery-value {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-security-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.ws-security-tip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fef3c7;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ws-security-tip strong {
    display: block;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 2px;
}

.ws-security-tip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #a16207;
}

@media (max-width: 1100px) {
    .ws-security-summary {
        grid-template-columns: 1fr;
    }

    .ws-security-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ws-security-session-row {
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-areas:
            "icon main"
            "icon meta"
            "icon action";
    }

    .ws-security-device-icon { grid-area: icon; }
    .ws-security-session-main { grid-area: main; }
    .ws-security-session-meta {
        grid-area: meta;
        text-align: left;
    }
    .ws-security-session-signout,
    .ws-security-session-spacer { grid-area: action; justify-self: start; }
}

/* Activity Log */
.ws-activity-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-activity-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ws-activity-head {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ws-activity-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.ws-activity-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

.ws-activity-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ws-activity-stat-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

.ws-activity-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ws-activity-stat-icon--blue { background: #dbeafe; color: #2563eb; }
.ws-activity-stat-icon--purple { background: #ede9fe; color: #7c3aed; }
.ws-activity-stat-icon--orange { background: #ffedd5; color: #ea580c; }
.ws-activity-stat-icon--violet { background: #f3e8ff; color: #9333ea; }

.ws-activity-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ws-activity-stat-value {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.ws-activity-stat-value--name {
    font-size: 15px;
}

.ws-activity-stat-card p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

.ws-activity-card {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ws-activity-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    flex-wrap: wrap;
}

.ws-activity-search {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 480px;
}

.ws-activity-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.ws-activity-search input {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    padding: 0 12px 0 36px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
}

.ws-activity-search input:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ws-activity-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ws-activity-filters-btn,
.ws-activity-date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.ws-activity-date-range {
    position: relative;
    min-width: 220px;
}

.ws-activity-filters-bar {
    display: none;
    gap: 12px;
    padding: 0 16px 12px;
    flex-wrap: wrap;
}

.ws-activity-filters-bar.is-open {
    display: flex !important;
}

.ws-activity-filters-btn[aria-expanded="true"] {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}

.ws-activity-filters-bar .ws-settings-filter-field input[type="date"] {
    min-width: 160px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    font-family: inherit;
}

.ws-activity-table-wrap {
    overflow-x: auto;
    padding: 0 8px 0 16px;
}

.ws-activity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
}

.ws-activity-table thead th {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    white-space: nowrap;
}

.ws-activity-table thead th:first-child { border-radius: 10px 0 0 10px; }
.ws-activity-table thead th:last-child { border-radius: 0 10px 10px 0; }

.ws-activity-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    vertical-align: middle;
    font-size: 13px;
    color: #334155;
}

.ws-activity-table tbody tr:last-child td {
    border-bottom: none;
}

.ws-activity-th-menu {
    width: 40px;
}

.ws-activity-time strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ws-activity-time span {
    font-size: 12px;
    color: #64748b;
}

.ws-activity-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.ws-activity-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    flex-shrink: 0;
}

.ws-activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-activity-avatar--initials {
    background: #dbeafe;
    color: #1d4ed8;
}

.ws-activity-user strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.ws-activity-user span span {
    font-size: 12px;
    color: #64748b;
}

.ws-activity-action {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.ws-activity-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.ws-activity-action-icon--green { background: #10b981; }
.ws-activity-action-icon--blue { background: #3b82f6; }
.ws-activity-action-icon--red { background: #ef4444; }
.ws-activity-action-icon--orange { background: #f59e0b; }
.ws-activity-action-icon--purple,
.ws-activity-action-icon--violet { background: #8b5cf6; }
.ws-activity-action-icon--slate { background: #64748b; }

.ws-activity-action-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.ws-activity-action-text strong {
    font-size: 13px;
    color: #0f172a;
}

.ws-activity-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ws-activity-badge--green { background: #d1fae5; color: #047857; }
.ws-activity-badge--blue { background: #dbeafe; color: #1d4ed8; }
.ws-activity-badge--red { background: #fee2e2; color: #b91c1c; }
.ws-activity-badge--orange { background: #ffedd5; color: #c2410c; }
.ws-activity-badge--purple,
.ws-activity-badge--violet { background: #ede9fe; color: #6d28d9; }
.ws-activity-badge--slate { background: #f1f5f9; color: #475569; }

.ws-activity-details {
    margin: 0;
    max-width: 360px;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.ws-activity-quote {
    font-weight: 700;
    color: #0f172a;
}

.ws-activity-ip {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.ws-activity-menu-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.ws-activity-menu-btn:hover {
    background: #f1f5f9;
    color: #475569;
}

.ws-activity-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    flex-wrap: wrap;
}

.ws-activity-footer-meta {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.ws-activity-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-activity-pager {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ws-activity-pager .ws-settings-page-num.is-active {
    background: #2563eb;
    border-color: #2563eb;
}

.ws-activity-per-page {
    min-height: 32px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    background: #fff;
    font-family: inherit;
}

.ws-activity-empty-row td {
    border-bottom: none !important;
    padding: 48px 16px !important;
}

.ws-activity-empty {
    text-align: center;
    color: #64748b;
}

.ws-activity-empty i {
    font-size: 28px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.ws-activity-empty p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .ws-activity-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ws-activity-stats {
        grid-template-columns: 1fr;
    }

    .ws-activity-footer-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .ws-profile-layout {
        grid-template-columns: 1fr;
    }

    .ws-profile-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .ws-profile-info-grid {
        grid-template-columns: 1fr;
    }

    .ws-profile-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ws-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ws-form-field--full {
    grid-column: 1 / -1;
}

.ws-form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ws-slate-600);
    letter-spacing: 0.02em;
}

/* ─── 3D form inputs — extends global ws-field styles ─── */
.ws-input-3d-wrap .ws-input-3d,
.ws-input-3d-wrap select.ws-input-3d,
.ws-input-3d-wrap textarea.ws-input-3d {
    width: 100%;
}

.ws-input-toggle {
    position: absolute;
    right: 10px;
    z-index: 2;
    border: none;
    background: transparent;
    color: var(--ws-slate-400);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-input-toggle:hover {
    background: var(--ws-indigo-50);
    color: var(--ws-indigo-600);
}

.ws-input-3d-wrap:has(.ws-input-toggle) .ws-input-3d,
.ws-input-3d-wrap:has(.ws-input-toggle) .form-control {
    padding-right: 42px;
}

.ws-app .ws-input-3d-wrap:has(.ws-input-toggle) input.form-control {
    padding: 0 42px 0 42px;
}

/* Settings page */
.ws-settings-page .ws-page-card {
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    box-shadow: var(--ws-shadow-md);
    padding: 20px;
}

.ws-settings-page .ws-page-card-head {
    margin-bottom: 18px;
}

.ws-settings-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-full);
    background: var(--ws-slate-50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ws-settings-tabs .nav-item {
    margin: 0;
}

.ws-settings-tabs .nav-link {
    border: none;
    border-radius: var(--ws-radius-full);
    color: var(--ws-slate-600);
    font-weight: 700;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--ws-transition);
    background: transparent;
}

.ws-settings-tabs .nav-link:hover {
    color: var(--ws-indigo-700);
    background: rgba(255, 255, 255, 0.7);
}

.ws-settings-tabs .nav-link.active {
    background: #fff;
    color: var(--ws-indigo-700);
    box-shadow: var(--ws-shadow-sm);
}

.ws-settings-tab-content {
    animation: wsSettingsFade 0.28s ease;
}

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

.ws-settings-split {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 16px;
    align-items: start;
}

.ws-settings-form-panel,
.ws-settings-list-panel {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);
    background: #fff;
    box-shadow: var(--ws-shadow-sm);
    overflow: hidden;
}

.ws-settings-list-panel .ws-settings-panel-head {
    padding: 12px 14px;
}

.ws-settings-list-panel .ws-settings-panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
}

.ws-settings-list-panel .ws-settings-panel-head h3 {
    font-size: 15px;
}

.ws-settings-list-panel .ws-settings-panel-head p {
    display: none;
}

.ws-settings-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ws-border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(14, 165, 233, 0.04));
}

.ws-settings-panel-head-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.ws-settings-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(67, 56, 202, 0.22);
}

.ws-settings-panel-icon--job-types {
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.ws-settings-panel-icon--list {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.ws-settings-panel-icon--roles {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.ws-settings-panel-icon--shield {
    background: linear-gradient(135deg, #10b981, #047857);
}

.ws-settings-panel-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ws-slate-900);
}

.ws-settings-panel-head p {
    margin: 0;
    font-size: 12px;
    color: var(--ws-slate-500);
    line-height: 1.45;
}

.ws-settings-count-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--ws-radius-full);
    background: var(--ws-indigo-50);
    color: var(--ws-indigo-700);
    font-size: 11px;
    font-weight: 800;
}

.ws-settings-panel-body {
    padding: 16px;
}

.ws-settings-panel-body--list {
    padding: 8px 10px 10px;
}

.ws-settings-form-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-color-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ws-color-input-wrap input[type="color"] {
    width: 44px;
    height: 38px;
    border: 1.5px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    padding: 2px;
    background: #fff;
    cursor: pointer;
    box-shadow: var(--ws-shadow-xs);
}

.ws-color-input-wrap .form-control {
    flex: 1;
}

.ws-settings-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    padding-top: 4px;
}

.ws-settings-list-scroll {
    max-height: min(480px, 56vh);
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.ws-job-type-list,
.ws-role-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-job-type-item,
.ws-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    padding: 8px 10px;
    transition: border-color var(--ws-transition), box-shadow var(--ws-transition), background var(--ws-transition);
}

.ws-job-type-item:hover,
.ws-role-item:not(.ws-role-item--locked):hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: var(--ws-shadow-xs);
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.ws-settings-list-main {
    flex: 1;
    min-width: 0;
}

.ws-settings-list-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
}

.ws-settings-list-actions .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-job-type-item {
    border-left: 3px solid var(--ws-job-type-color, #6366f1);
}

.ws-job-type-item-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.ws-job-type-meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--ws-slate-500);
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-job-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--ws-radius-full);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--ws-job-type-color, #6366f1);
    box-shadow: none;
}

.ws-empty-note {
    color: var(--ws-slate-500);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.ws-empty-state {
    text-align: center;
    padding: 28px 16px;
    border: 1px dashed var(--ws-border);
    border-radius: var(--ws-radius-md);
    background: var(--ws-slate-50);
}

.ws-empty-state--compact {
    padding: 16px 12px;
}

.ws-empty-state--compact i {
    font-size: 22px;
    margin-bottom: 6px;
}

.ws-empty-state i {
    display: block;
    font-size: 28px;
    color: var(--ws-indigo-400);
    margin-bottom: 10px;
}

.ws-role-item--locked {
    background: var(--ws-slate-50);
    border-color: rgba(99, 102, 241, 0.18);
}

.ws-role-item-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.ws-role-item-head strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--ws-slate-900);
}

.ws-role-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--ws-indigo-700);
    background: var(--ws-indigo-50);
    padding: 2px 8px;
    border-radius: var(--ws-radius-full);
}

.ws-role-perm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.ws-role-perm-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--ws-radius-full);
    background: var(--ws-slate-100);
    color: var(--ws-slate-700);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.ws-role-perm-empty {
    font-size: 11px;
    color: var(--ws-slate-400);
}

.ws-perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1.5px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    background: var(--ws-slate-50);
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ws-perm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--ws-radius-full);
    border: 1.5px solid var(--ws-border);
    background: #fff;
    box-shadow: var(--ws-shadow-xs);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-slate-700);
    margin: 0;
    transition: var(--ws-transition);
}

.ws-perm-check:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.ws-perm-check:has(input:checked) {
    border-color: var(--ws-indigo-500);
    background: var(--ws-indigo-50);
    color: var(--ws-indigo-800);
    box-shadow: var(--ws-shadow-glow);
}

.ws-perm-check input {
    accent-color: var(--ws-indigo-600);
}

.ws-status-pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: var(--ws-radius-full);
    font-size: 10px;
    font-weight: 700;
}

.ws-status-pill--active {
    background: #dcfce7;
    color: #166534;
}

.ws-status-pill--muted {
    background: var(--ws-slate-100);
    color: var(--ws-slate-600);
}

.ws-status-pill--warning {
    background: #fef3c7;
    color: #92400e;
}

/* Boards page */
.ws-boards-split {
    align-items: stretch;
}

.ws-boards-form-panel .ws-settings-form-panel form,
.ws-boards-form-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ws-boards-table-panel {
    min-width: 0;
}

.ws-boards-table-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px !important;
}

.ws-boards-table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
}

.ws-boards-table-search-wrap {
    position: relative;
    flex: 1;
    width: 100%;
}

.ws-boards-table-shell {
    position: relative;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    background: #fff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ws-boards-table-scroll {
    overflow: auto;
    max-height: min(480px, 56vh);
}

.ws-boards-table-search-wrap .bi-search {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ws-slate-400);
    font-size: 14px;
    pointer-events: none;
}

.ws-boards-search-input {
    min-height: 38px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--ws-border);
    border-radius: var(--ws-radius-full);
    background: #fff;
    font-size: var(--ws-font-size);
    box-shadow: var(--ws-shadow-xs);
}

.ws-boards-search-input:focus {
    border-color: var(--ws-indigo-400);
    box-shadow: var(--ws-shadow-glow);
}

.ws-boards-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--ws-font-size);
}

.ws-boards-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ws-slate-600);
    background: var(--ws-slate-50);
    border-bottom: 1px solid var(--ws-border);
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.18);
}

.ws-boards-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--ws-slate-800);
}

.ws-boards-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.04), rgba(248, 250, 252, 0.95));
}

.ws-board-row.is-editing {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(238, 242, 255, 0.85)) !important;
    box-shadow: inset 3px 0 0 var(--ws-indigo-500);
}

.ws-board-row--inactive {
    opacity: 0.88;
}

.ws-board-row--suspended .ws-board-name {
    color: var(--ws-slate-600);
}

.ws-boards-col-board {
    min-width: 180px;
}

.ws-board-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ws-board-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(145deg, var(--ws-board-accent, #6366f1), color-mix(in srgb, var(--ws-board-accent, #6366f1) 78%, #000));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--ws-board-accent, #6366f1) 28%, transparent);
}

.ws-board-cell-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ws-board-name {
    font-weight: 700;
    color: var(--ws-slate-900);
    line-height: 1.3;
}

.ws-board-id {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ws-slate-400);
}

.ws-boards-col-status {
    width: 160px;
}

.ws-board-status-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.ws-board-status-pill {
    font-size: 10px;
}

.ws-boards-col-updated {
    width: 120px;
    white-space: nowrap;
}

.ws-board-updated {
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-slate-500);
}

.ws-boards-col-actions {
    width: 96px;
    text-align: center;
}

.ws-board-status-select {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    width: 100%;
    max-width: 138px;
}

.ws-board-status-select--active {
    border-color: rgba(22, 101, 52, 0.22);
    background: #f0fdf4;
    color: #166534;
}

.ws-board-status-select--muted {
    border-color: rgba(100, 116, 139, 0.22);
    background: var(--ws-slate-50);
    color: var(--ws-slate-700);
}

.ws-board-status-select--warning {
    border-color: rgba(146, 64, 14, 0.22);
    background: #fffbeb;
    color: #92400e;
}

.ws-boards-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ws-boards-table-actions .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-boards-empty-row td {
    padding: 0 !important;
    border-bottom: none !important;
}

.ws-boards-empty-row .ws-empty-state {
    border: none;
    background: transparent;
}

.ws-boards-table-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    color: var(--ws-slate-500);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.ws-boards-table-empty i {
    font-size: 24px;
    color: var(--ws-indigo-400);
}

/* Teams page (reuses boards layout) */
.ws-teams-col-board {
    min-width: 120px;
    width: 150px;
}

.ws-team-board-name {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ws-slate-700);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ws-slate-50);
    border: 1px solid var(--ws-border);
}

.ws-form-hint {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-slate-500);
}

.ws-page-card-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.ws-users-list-only {
    margin-top: 0;
}

.ws-users-form-wrap {
    max-width: 720px;
}

.ws-users-form-panel {
    width: 100%;
}

.ws-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ws-users-col-meta {
    min-width: 110px;
    width: 140px;
}

.ws-user-meta-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ws-slate-700);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ws-slate-50);
    border: 1px solid var(--ws-border);
}

@media (max-width: 640px) {
    .ws-form-row-2 {
        grid-template-columns: 1fr;
    }

    .ws-page-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ws-page-card-head-right {
        margin-left: 0;
        width: 100%;
    }
}

.ws-settings-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 0 4px;
    border-radius: var(--ws-radius-md);
    background: var(--ws-indigo-50);
    border: 1px solid rgba(99, 102, 241, 0.12);
    font-size: 12px;
    font-weight: 600;
    color: var(--ws-indigo-800);
    line-height: 1.45;
}

.ws-settings-note i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Remove legacy overrides — global field styles apply */
.ws-form-field .form-control:disabled {
    background: var(--ws-slate-50);
}

.ws-form-field .form-control:not(:disabled) {
    border-color: var(--ws-border);
    box-shadow: var(--ws-shadow-xs);
}

.ws-password-checklist--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ─── Change Password modal (mockup) ─── */
.ws-modal--password .modal-dialog {
    max-width: 560px;
}

.ws-modal--password .ws-pwd-modal {
    border: none;
    border-radius: 28px;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    background: #fff;
}

.ws-pwd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 28px 0;
}

.ws-pwd-header-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.ws-pwd-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(145deg, #6d63f2 0%, #5b50d6 55%, #4f46e5 100%);
    box-shadow: 0 12px 24px rgba(91, 80, 214, 0.35);
}

.ws-pwd-title {
    margin: 2px 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ws-pwd-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

.ws-pwd-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ws-pwd-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ws-pwd-form {
    padding: 20px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-pwd-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f3ff;
    border: 1px solid #e4e0ff;
    color: #4c44b8;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.ws-pwd-tip i {
    color: #5b50d6;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.ws-pwd-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ws-pwd-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ws-pwd-input-wrap .ws-pwd-input-ico {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.ws-pwd-input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-pwd-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.ws-pwd-input-wrap input:focus {
    outline: none;
    border-color: #5b50d6;
    box-shadow: 0 0 0 4px rgba(91, 80, 214, 0.12);
}

.ws-pwd-input-wrap .ws-input-toggle {
    right: 8px;
    color: #94a3b8;
}

.ws-pwd-input-wrap .ws-input-toggle:hover {
    background: #f4f3ff;
    color: #5b50d6;
}

.ws-pwd-reqs {
    list-style: none;
    margin: 10px 0 0;
    padding: 10px 4px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e8eaf0;
    border-radius: 14px;
    background: #fbfbfe;
    overflow: hidden;
}

.ws-pwd-reqs li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 6px;
    padding: 10px 8px;
    text-align: center;
    position: relative;
    min-width: 0;
}

.ws-pwd-reqs li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: #e2e8f0;
}

.ws-pwd-req-mark {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1;
    flex-shrink: 0;
}

.ws-pwd-req-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 18px;
    color: #5b50d6;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.ws-pwd-req-badge i {
    font-size: 13px;
}

.ws-pwd-req-badge em {
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
}

.ws-pwd-req-badge.is-text {
    font-size: 12px;
    letter-spacing: 0.02em;
}

.ws-pwd-req-badge.is-star {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.ws-pwd-req-text {
    flex: 1 1 100%;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}

.ws-pwd-reqs li.is-valid .ws-pwd-req-mark {
    color: #16a34a;
}

.ws-pwd-reqs li.is-valid .ws-pwd-req-mark.bi-circle::before {
    content: "\f26b";
}

.ws-pwd-reqs li.is-valid .ws-pwd-req-text {
    color: #15803d;
}

.ws-pwd-reqs li.is-valid .ws-pwd-req-badge {
    color: #16a34a;
}

.ws-pwd-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 12px;
    margin-top: 8px;
}

.ws-pwd-btn-cancel,
.ws-pwd-btn-submit {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ws-pwd-btn-cancel {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.ws-pwd-btn-cancel:hover {
    background: #f8fafc;
}

.ws-pwd-btn-submit {
    border: none;
    background: linear-gradient(135deg, #6d63f2 0%, #5b50d6 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(91, 80, 214, 0.32);
}

.ws-pwd-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(91, 80, 214, 0.38);
}

.ws-pwd-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ws-pwd-btn-submit .ws-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 560px) {
    .ws-pwd-header,
    .ws-pwd-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ws-pwd-reqs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-pwd-reqs li:nth-child(2)::after {
        display: none;
    }

    .ws-pwd-reqs li:nth-child(1)::after,
    .ws-pwd-reqs li:nth-child(3)::after {
        display: block;
    }

    .ws-pwd-actions {
        grid-template-columns: 1fr;
    }
}

/* Modals */
.ws-modal .modal-content {
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-xl);
    box-shadow: var(--ws-shadow-lg);
    overflow: hidden;
}

.ws-modal .modal-header {
    border-bottom: 1px solid var(--ws-border);
    padding: 20px 24px;
}

.ws-modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(67, 56, 202, 0.25);
}

.ws-modal-header-gradient {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.06));
}

.ws-modal-body-padded {
    padding: 20px 24px 24px;
}

.ws-modal-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--ws-indigo-50);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--ws-indigo-800);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.ws-modal-submit-btn {
    padding: 12px 16px;
    margin-top: 4px;
    box-shadow: 0 10px 22px rgba(67, 56, 202, 0.28);
}

.ws-modal-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ws-slate-500);
}

.ws-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--ws-border);
    background: var(--ws-slate-50);
}

.ws-modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ws-confirm-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ws-slate-700);
}

.ws-confirm-message strong {
    color: var(--ws-slate-900);
    font-weight: 700;
}

.ws-password-checklist {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.ws-password-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ws-slate-500);
}

.ws-password-checklist li.is-valid {
    color: #15803d;
}

.ws-password-checklist li.is-valid .bi {
    color: #16a34a;
}

.ws-password-checklist li.is-valid .bi::before {
    content: "\f26b";
}

@media (max-width: 900px) {
    .ws-form-grid,
    .ws-settings-split,
    .ws-boards-split,
    .ws-perm-grid,
    .ws-password-checklist--grid {
        grid-template-columns: 1fr;
    }

    .ws-boards-table-toolbar {
        flex-wrap: wrap;
    }
}
