/* SHA TIN GROUP — Bright, high-contrast portal dashboards */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--dash-bg, #F7F0E2);
    color: var(--dash-text, #1C140E);
}

.sidebar {
    width: 260px;
    background: var(--dash-sidebar, #1C140E);
    border-right: 1px solid rgba(232, 200, 122, 0.45);
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
    transition: var(--transition);
    color: var(--dash-sidebar-text, #F5EBD8);
}

.sidebar-header {
    padding: 20px; border-bottom: 1px solid rgba(232, 200, 122, 0.35);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-header img { width: auto; height: 36px; max-width: 200px; border-radius: 0; object-fit: contain; }
.sidebar-header .sidebar-brand {
    display: block;
    color: var(--dash-gold-soft, #E8C87A);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sidebar-nav { padding: 15px 0; }
.sidebar-nav .nav-section {
    padding: 10px 20px 5px;
    font-size: 0.7rem;
    color: var(--dash-sidebar-muted, #D4C4A8);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    color: var(--dash-sidebar-text, #F5EBD8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #FFF6D8;
    background: rgba(232, 200, 122, 0.18);
    border-left-color: var(--dash-gold-bright, #D4A84B);
}
.sidebar-nav a i { width: 20px; text-align: center; color: var(--dash-gold-soft, #E8C87A); }

.dashboard-main {
    flex: 1; margin-left: 260px; padding: 20px 30px;
    min-height: 100vh;
    color: var(--dash-text, #1C140E);
    background: var(--dash-bg, #F7F0E2);
}

.dashboard-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 20px;
    border-bottom: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
}
.dashboard-header h1 {
    font-size: 1.8rem;
    color: var(--dash-gold, #B8860B);
    font-weight: 700;
}
.dashboard-header p,
.dashboard-header .user-info {
    color: var(--dash-text-soft, #3A2A1A);
}
.dashboard-header .user-info { display: flex; align-items: center; gap: 15px; }
.balance-status-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 12px;
    border: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
    border-radius: 999px;
    background: var(--dash-card, #FFFCFA);
    box-shadow: 0 2px 8px rgba(61, 42, 22, 0.06);
}
.balance-status-pill i { color: var(--dash-gold, #B8860B); font-size: 0.85rem; }
.balance-status-pill .balance-amount {
    font-weight: 700; font-size: 0.85rem;
    color: var(--dash-text, #1C140E);
    white-space: nowrap;
}
.balance-status-pill .badge { margin: 0; }
.dashboard-header .user-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    border: 2px solid var(--dash-gold-bright, #D4A84B); object-fit: cover; cursor: pointer;
}
.dashboard-header .user-avatar.broker-welcome-photo,
.sidebar .sidebar-profile-photo,
.admin-profile-hero .profile-upload,
.admin-profile-hero .admin-avatar,
.admin-profile-hero .admin-avatar--xl {
    width: 155px;
    height: 160px;
    border-radius: 0;
    object-fit: cover;
}
.broker-welcome-user-info {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-main .card,
.dashboard-layout .card {
    background: var(--dash-card, #FFFCFA);
    border: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
    color: var(--dash-text, #1C140E);
    box-shadow: 0 8px 24px rgba(61, 42, 22, 0.08);
}

.dashboard-main .card h2,
.dashboard-main .card h3,
.dashboard-main h2,
.dashboard-main h3 {
    color: var(--dash-gold, #B8860B) !important;
}

.dashboard-main p,
.dashboard-main td,
.dashboard-main th,
.dashboard-main li,
.dashboard-main .timeline-text {
    color: var(--dash-text-soft, #3A2A1A);
}

.dashboard-main th {
    color: var(--dash-text, #1C140E);
    font-weight: 700;
}

.dashboard-main .form-control {
    background: var(--dash-input-bg, #FFF9F0);
    color: var(--dash-text, #1C140E);
    border-color: var(--dash-input-border, rgba(92, 61, 30, 0.28));
}

.dashboard-main .form-group label {
    color: var(--dash-text, #1C140E) !important;
    font-weight: 600;
}

/* WIDGETS */
.widget-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.widget {
    background: var(--dash-card, #FFFCFA);
    border: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
    border-radius: 8px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(61, 42, 22, 0.08);
}
.widget::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-gold);
}
.widget .widget-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--dash-gold, #B8860B);
    font-weight: 700;
    margin: 10px 0 5px;
}
.widget .widget-label {
    color: var(--dash-muted, #6B5640);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.widget .widget-icon {
    position: absolute; top: 20px; right: 20px; font-size: 1.5rem;
    color: rgba(184, 134, 11, 0.35);
}

/* PROGRESS BAR */
.progress-bar {
    height: 8px; background: var(--dark-light); border-radius: 4px; overflow: hidden;
    margin: 10px 0;
}
.progress-bar .progress-fill {
    height: 100%; background: var(--gradient-gold); border-radius: 4px;
    transition: width 0.5s ease;
}

/* REGISTRATION STAGES */
.stage-progress {
    display: flex; justify-content: space-between; margin-bottom: 40px;
    position: relative;
}
.stage-progress::before {
    content: ''; position: absolute; top: 20px; left: 0; right: 0;
    height: 2px; background: var(--dark-light); z-index: 0;
}
.stage-step {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 1; flex: 1;
}
.stage-step .step-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--dark-light); border: 2px solid var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: var(--text-muted);
    transition: var(--transition);
}
.stage-step.completed .step-circle { background: var(--gold); border-color: var(--gold); color: var(--black); }
.stage-step.active .step-circle { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 15px rgba(212,175,55,0.4); }
.stage-step .step-label {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--dash-text-soft, #3A2A1A);
    text-align: center;
    max-width: 100px;
    font-weight: 600;
}
.stage-step.active .step-label,
.stage-step.completed .step-label {
    color: var(--dash-gold, #B8860B);
}

.form-group label {
    display: block;
    color: var(--dash-text, #1C140E);
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 600;
}

/* MESSAGING */
.chat-container { display: flex; height: calc(100vh - 200px); border: 1px solid var(--border-gold); border-radius: 4px; }
.chat-sidebar { width: 300px; border-right: 1px solid var(--border-gold); overflow-y: auto; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; }
.chat-input { display: flex; padding: 15px; border-top: 1px solid var(--border-gold); gap: 10px; }
.chat-input input { flex: 1; }
.message-bubble {
    max-width: 70%; padding: 12px 16px; border-radius: 8px;
    margin-bottom: 10px; font-size: 0.9rem;
}
.message-bubble.sent {
    background: rgba(212, 168, 75, 0.22);
    color: var(--dash-text, #1C140E);
    margin-left: auto;
    border: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
}
.message-bubble.received {
    background: #F0E4C8;
    color: var(--dash-text-soft, #3A2A1A);
}

/* Single-thread chat pane (borrower/broker <-> admin) */
.chat-thread {
    height: calc(100vh - 340px);
    min-height: 320px;
    max-height: 640px;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
    .chat-thread { height: calc(100vh - 300px); min-height: 260px; max-height: none; padding: 14px; }
}
@media (max-width: 480px) {
    .chat-thread { height: calc(100vh - 280px); min-height: 220px; }
    .message-bubble { max-width: 86%; font-size: 0.85rem; }
}

/* PROFILE PHOTO UPLOAD */
.profile-upload {
    width: 155px; height: 160px; border-radius: 0;
    border: 3px dashed var(--gold); display: flex; align-items: center;
    justify-content: center; cursor: pointer; overflow: hidden;
    position: relative; transition: var(--transition);
}
.profile-upload:hover { border-color: var(--gold-light); box-shadow: var(--shadow-gold); }
.profile-upload img { width: 100%; height: 100%; object-fit: cover; }
.profile-upload .upload-hint {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: var(--gold); text-align: center; padding: 10px;
    opacity: 0; transition: var(--transition);
}
.profile-upload:hover .upload-hint { opacity: 1; }

/* DOCUMENT UPLOAD */
.doc-upload-zone {
    border: 2px dashed var(--border-gold); border-radius: 4px;
    padding: 40px; text-align: center; cursor: pointer;
    transition: var(--transition); background: rgba(212,175,55,0.02);
}
.doc-upload-zone:hover { border-color: var(--gold); background: rgba(212,175,55,0.05); }
.doc-upload-zone i { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }

/* TIMELINE */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border-gold); }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before {
    content: ''; position: absolute; left: -24px; top: 5px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold); border: 2px solid var(--dark);
}
.timeline-item .timeline-date { font-size: 0.75rem; color: var(--dash-muted, #6B5640); }
.timeline-item .timeline-text { color: var(--dash-text-soft, #3A2A1A); font-size: 0.9rem; margin-top: 3px; }

/* COMMISSION CALCULATOR */
.calculator-card {
    background: var(--dash-card, #FFFCFA);
    border: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
    border-radius: 8px;
    padding: 30px;
}
.calculator-result {
    text-align: center; padding: 30px; margin-top: 20px;
    background: rgba(212, 168, 75, 0.14);
    border: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45));
    border-radius: 8px;
}
.calculator-result .result-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--dash-gold, #B8860B);
}

/* TABS */
.tabs { display: flex; border-bottom: 1px solid var(--dash-card-border, rgba(184, 134, 11, 0.45)); margin-bottom: 25px; }
.tab {
    padding: 12px 24px;
    color: var(--dash-muted, #6B5640);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
}
.tab.active { color: var(--dash-gold, #B8860B); border-bottom-color: var(--dash-gold, #B8860B); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(28, 20, 14, 0.72);
    display: none; align-items: center; justify-content: center; z-index: 9999;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--dash-card, #FFFCFA);
    border: 1px solid var(--dash-gold-bright, #D4A84B);
    border-radius: 10px;
    max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 30px;
    color: var(--dash-text, #1C140E);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.modal-overlay--fullscreen {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}
.modal.modal--fullscreen {
    width: 100vw !important;
    max-width: none !important;
    height: 100vh;
    max-height: none !important;
    margin: 0;
    padding: clamp(18px, 3vw, 42px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.modal h2 { color: var(--dash-gold, #B8860B); margin-bottom: 20px; }
.modal .form-group label { color: var(--dash-text, #1C140E) !important; }
.modal .form-control {
    background: var(--dash-input-bg, #FFF9F0);
    color: var(--dash-text, #1C140E);
    border-color: var(--dash-input-border, rgba(92, 61, 30, 0.28));
}

/* NOTIFICATION BELL */
.notification-badge {
    position: relative;
}
.notification-badge .badge-count {
    position: absolute; top: -5px; right: -5px;
    background: #dc3545; color: white; font-size: 0.65rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}
.form-row > .form-group { min-width: 0; }

/* Tables & badges — readable on bright cards */
.dashboard-main table,
.modal table {
    width: 100%;
    border-collapse: collapse;
    color: var(--dash-text, #1C140E);
}

.admin-list-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-list-table {
    min-width: 900px;
}

.dashboard-main table th,
.dashboard-main table td,
.modal table th,
.modal table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(184, 134, 11, 0.22);
    text-align: left;
    vertical-align: top;
}

.dashboard-main table th,
.modal table th {
    background: rgba(232, 200, 122, 0.22);
    color: var(--dash-text, #1C140E);
    font-weight: 700;
}

.dashboard-main table tbody tr:hover {
    background: rgba(212, 168, 75, 0.1);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-pending,
.badge-incomplete-registration,
.badge-incomplete_registration { background: #FFF3CD; color: #7A5B00; }
.badge-approved,
.badge-active { background: #D4EDDA; color: #155724; }
.badge-rejected,
.badge-declined,
.badge-suspended { background: #F8D7DA; color: #721C24; }
.badge-review,
.badge-under-review,
.badge-under_review,
.badge-pending-verification,
.badge-pending_verification { background: #D6EAF8; color: #0B4F79; }
.badge-disbursed,
.badge-conditional-approval,
.badge-conditional_approval { background: #F7E7B5; color: #6B4F00; }

.dashboard-main .btn-dark,
.modal .btn-dark {
    background: #2A1C10;
    color: #F5EBD8;
    border: 1px solid #B8860B;
}

.dashboard-main a:not(.btn):not(.pill) {
    color: var(--dash-gold, #B8860B);
    font-weight: 600;
}

/* Admin media previews — profile photos & uploads */
.media-thumb,
.admin-avatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid rgba(184, 134, 11, 0.55);
    border-radius: 50%;
    overflow: hidden;
    background: #FFF8EB;
    cursor: pointer;
}

.media-thumb img,
.admin-avatar,
.admin-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-thumb--empty {
    color: #8B6914;
    font-size: 0.95rem;
    cursor: default;
}

.admin-avatar-btn--lg,
.admin-avatar--lg {
    width: 155px; height: 160px;
    border-radius: 0;
}

.admin-avatar-btn--xl,
.admin-avatar--xl {
    width: 155px; height: 160px;
    border-radius: 0;
}

.admin-profile-hero,
.profile-preview-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 10px;
    background: rgba(232, 200, 122, 0.12);
}

.profile-preview-bar img#broker-photo-preview,
.profile-preview-bar img#borrower-photo-preview {
    width: 155px; height: 160px;
    border-radius: 0;
    object-fit: cover;
    border: 2px solid #B8860B;
    background: #FFF8EB;
}

.profile-preview-bar img#broker-photo-preview.application-avatar--xl {
    width: 155px; height: 160px;
}

.admin-photo-meta,
.profile-preview-label,
#broker-photo-caption,
#borrower-photo-meta {
    margin: 0 0 8px;
    color: var(--dash-text-soft, #3A2A1A);
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-uploads-block,
.uploads-panel,
.uploads-section {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(184, 134, 11, 0.28);
}

.admin-uploads-block h3,
.uploads-panel h3,
.uploads-section h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--dash-gold, #B8860B) !important;
}

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

.media-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 10px;
    background: #FFFCFA;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.media-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #F0E4C8;
}

.media-card--file {
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 16px 10px;
    gap: 10px;
}

.media-card--file i {
    font-size: 1.8rem;
    color: #B8860B;
}

.media-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px 12px;
}

.media-card-meta strong {
    font-size: 0.78rem;
    color: var(--dash-text, #1C140E);
}

.media-card-meta small {
    font-size: 0.68rem;
    color: var(--dash-muted, #6B5640);
    word-break: break-word;
}

.media-empty {
    color: var(--dash-muted, #6B5640);
    font-size: 0.9rem;
    margin: 0;
}

.doc-preview-pane {
    margin-bottom: 16px;
}

.doc-preview-image,
.doc-preview-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 10px;
    background: #FFF8EB;
    text-decoration: none;
    color: var(--dash-text, #1C140E);
    cursor: pointer;
}

.doc-preview-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 6px;
}

.doc-preview-file i {
    font-size: 2rem;
    color: #B8860B;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: rgba(14, 10, 6, 0.88);
}

.media-lightbox.active { display: flex; }

.media-lightbox img {
    max-width: min(920px, 92vw);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    background: #1C140E;
}

.media-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 248, 235, 0.95);
    color: #1C140E;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

#media-lightbox-caption {
    color: #F5EBD8;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

.sidebar-toggle-btn { display: none; }
.sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 150;
}
.sidebar-backdrop.open { display: block; }

@media (max-width: 768px) {
    .sidebar-toggle-btn { display: inline-flex; align-items: center; justify-content: center; }
    .sidebar {
        transform: translateX(-100%);
        width: min(280px, 86vw);
        z-index: 200;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35); }
    body.sidebar-locked { overflow: hidden; }
    .dashboard-main { margin-left: 0; padding: 14px; width: 100%; max-width: 100%; }
    .dashboard-header {
        align-items: flex-start;
        gap: 14px;
        flex-wrap: wrap;
    }
    .broker-welcome-user-info {
        width: 100%;
        justify-content: space-between;
    }
    .widget-grid { grid-template-columns: 1fr 1fr !important; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tabs .tab { flex-shrink: 0; }
    .chat-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 180px);
    }
    .chat-sidebar {
        width: 100%;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-gold);
    }
    .chat-main { min-height: 50vh; }
    .chat-input { flex-wrap: wrap; }
    .chat-input input { min-width: 0; flex: 1 1 100%; }
    .chat-input .btn { width: 100%; }
    .stage-progress { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
    .stage-step .step-label { font-size: 0.65rem; max-width: 72px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .card { padding: 18px 14px; }
    .calculator-card { padding: 18px 14px; }
    .calculator-result .result-amount { font-size: 2.2rem; word-break: break-word; }
    table { font-size: 0.8rem; }
    .modal { width: 100%; max-width: 100%; }
    .admin-list-toolbar {
        align-items: stretch;
        gap: 10px;
    }
    .admin-list-toolbar > .form-control,
    .admin-list-toolbar > input.form-control,
    .admin-list-toolbar > select.form-control {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: none !important;
        min-height: 44px;
    }
    .admin-list-toolbar > .btn {
        flex: 1 1 calc(50% - 5px);
        min-height: 44px;
        margin-left: 0 !important;
        justify-content: center;
    }
    .admin-list-toolbar > label,
    .admin-list-toolbar > span {
        flex: 1 1 100%;
        margin-left: 0 !important;
    }
    .modal.modal--fullscreen {
        padding: 14px;
    }
    .modal.modal--fullscreen > div:first-child {
        gap: 8px !important;
        flex-wrap: wrap;
    }
    .modal.modal--fullscreen > div:first-child h2 {
        font-size: clamp(1.2rem, 6vw, 1.65rem);
    }
    .admin-profile-hero,
    .profile-preview-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .widget-grid { grid-template-columns: 1fr !important; }
    .admin-list-toolbar > .btn {
        flex-basis: 100%;
        width: 100%;
    }
}
