* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Liberation Sans', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h1 { margin-bottom: 10px; color: #2c3e50; }
.subtitle { color: #7f8c8d; margin-bottom: 30px; }
.error-message, .success-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}
.error-message { background: #fee; color: #c0392b; }
.success-message { background: #e8f8f5; color: #27ae60; }
.admin-flash-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.flash-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}
.flash-message.success {
    background: #e8f8f5;
    border-color: #a7e4d1;
    color: #1d7a56;
}
.flash-message.error {
    background: #fff1f1;
    border-color: #f4b4b4;
    color: #b42318;
}
.flash-message.info {
    background: #eef4ff;
    border-color: #bfd3ff;
    color: #2958b6;
}
.inline-validation-message {
    margin-top: 8px;
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    color: #b42318;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    display: block;
}

/* Forms */
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #2c3e50; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row-small { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7fb 100%);
    border: 1px solid #e3ebf5;
    padding: 14px;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
}
.checkbox-label:hover {
    border-color: #bfd3ff;
    background: #f6faff;
    transform: translateY(-1px);
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #2d6cdf;
    cursor: pointer;
}
.checkbox-group-inline { display: flex; align-items: center; padding-top: 25px; }

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.3s;
    font-weight: 600;
}
.btn-primary { background: #3498db; color: white; }
.btn-primary:hover { background: #2980b9; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-secondary:hover { background: #7f8c8d; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-logout { background: #e74c3c; color: white; padding: 8px 16px; font-size: 14px; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-nav {
    background: none;
    border: 1px solid #ddd;
    color: #2c3e50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-nav:hover { background: #f0f2f5; border-color: #3498db; }
.btn-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-reimburse-full { background: #2ecc71; color: white; }
.btn-reimburse-full:hover { background: #27ae60; }
.btn-reimburse-partial { background: #f39c12; color: white; }
.btn-reimburse-partial:hover { background: #d68910; }

/* Navbar */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand { font-size: 20px; font-weight: bold; }
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-link { color: #ecf0f1; text-decoration: none; font-weight: 500; }
.nav-link:hover { color: #3498db; }

/* Main Layout */
.container { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }
.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.card h2 { margin-bottom: 20px; color: #2c3e50; border-bottom: 2px solid #f0f2f5; padding-bottom: 10px; }
.card h3 { margin: 15px 0 10px; color: #34495e; font-size: 18px; }
.full-width { grid-column: 1 / -1; }

/* Month Navigation & Stats */
.month-navigation { margin-bottom: 30px; }
.month-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}
.month-nav { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; }
.month-nav h2 { font-size: 24px; color: #2c3e50; margin: 0; min-width: 200px; }
.month-total h3 { font-size: 14px; color: #7f8c8d; text-transform: uppercase; letter-spacing: 1px; }
.total-amount { font-size: 36px; font-weight: bold; color: #2c3e50; margin: 10px 0 20px; }

.month-breakdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}
.breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.breakdown-item .amount { font-weight: bold; color: #2c3e50; }

/* Expenses List */
.expenses-list { display: flex; flex-direction: column; gap: 20px; }
.expense-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.3s;
}
.expense-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.expense-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 0;
}
.expense-summary-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex: 1;
}
.expense-summary-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.expense-summary-meta {
    color: #7f8c8d;
    font-size: 12px;
}
.expense-summary-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.expense-summary-count {
    font-size: 12px;
    color: #7f8c8d;
}
.expense-summary-status-dots {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 12px;
    margin-top: 4px;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}
.status-dot.status-pending { background: #dc2626; }
.status-dot.status-paid { background: #16a34a; }
.status-dot.status-partial { background: #2563eb; }
.status-dot.status-ignored { background: #f59e0b; }
.expense-toggle-button {
    min-width: 110px;
}
.expense-details {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0f2f5;
}
.expense-item.expanded .expense-details {
    display: block;
}
.expense-item.expanded .expense-toggle-button {
    background: #2c3e50;
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.expense-title-section { flex: 1; min-width: 200px; }
.expense-title { font-size: 20px; color: #2c3e50; margin-bottom: 5px; }
.expense-description { color: #555; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.expense-owner { color: #7f8c8d; font-size: 13px; margin-top: 5px; }
.expense-inline-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.expense-owner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff7e6;
    border: 1px solid #f0d39b;
    color: #8a5a00;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    width: fit-content;
}
.expense-owner-badge strong {
    color: #5f3d00;
    font-size: 14px;
}
.owner-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
}
.participants-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.compact-participants {
    margin: 0;
    padding: 0;
    border: none;
}
.participants-label {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.participants-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}
.participant-tag {
    display: inline-flex;
    align-items: center;
    background: #eef3ff;
    border: 1px solid #d7e4ff;
    color: #3757a8;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
}
.expense-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.expense-date { display: block; color: #7f8c8d; font-size: 14px; margin-bottom: 5px; }
.expense-amount { font-size: 22px; font-weight: bold; color: #2c3e50; }

.expense-receipt {
    margin: 15px 0;
    text-align: center;
    cursor: pointer;
}
.expense-receipt img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}
.expense-receipt:hover img { transform: scale(1.02); }
.receipt-hint { display: block; font-size: 12px; color: #7f8c8d; margin-top: 5px; }

/* Shares Table */
.expense-shares { margin-top: 20px; }
.expense-shares h4 { margin-bottom: 10px; color: #34495e; font-size: 16px; }
.shares-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shares-table th, .shares-table td { padding: 10px; text-align: left; border-bottom: 1px solid #eee; }
.shares-table th { background: #f8f9fa; color: #2c3e50; font-weight: 600; }
.edit-reimbursed { width: 100px; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    display: inline-block;
}
.status-pending { background: #fdecea; color: #b42318; }
.status-paid { background: #e8f7ee; color: #1a7f5a; }
.status-partial { background: #eaf2ff; color: #1f5ecb; }
.status-ignored { background: #fff4e5; color: #b26a00; }

.expense-actions { margin-top: 15px; display: flex; gap: 10px; }
.edit-expense-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

/* Reimbursement Section - To Treat */
.reimbursement-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #e0e0e0;
}
.reimbursement-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.reimbursement-form { display: flex; flex-direction: column; gap: 10px; }
.debt-summary {
    margin-bottom: 18px;
    background: linear-gradient(135deg, #fdf2f8, #f4f7ff);
    border: 1px solid #e6d3ea;
    border-radius: 8px;
    padding: 12px 14px;
}
.debt-summary-header {
    font-size: 13px;
    font-weight: 700;
    color: #5d4764;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.debt-summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.debt-summary-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
    color: #34495e;
}
.debt-summary-row strong {
    color: #2c3e50;
}
.reimbursement-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reimbursement-actions input[type="number"] {
    width: 170px;
    min-width: 170px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.reimbursement-edit-form .reimbursement-actions input[type="number"] {
    width: 200px;
    min-width: 200px;
}

/* Modify Notice */
.modify-notice { margin-bottom: 20px; }
.notice-banner {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    border-left: 5px solid #ffc107;
}

.no-data { text-align: center; color: #7f8c8d; font-style: italic; padding: 20px; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
}
.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Admin & Profile */
.inline-form { display: flex; gap: 5px; align-items: center; }
.inline-form input { padding: 6px; font-size: 13px; width: 120px; }

.admin-shell { max-width: 1400px; }
.admin-section { display: flex; flex-direction: column; gap: 24px; }
.admin-layout {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #edf6ff 0%, #ffffff 100%);
}
.eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4b6baf;
    font-weight: 700;
}
.admin-header h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    color: #1f2d3d;
}
.admin-header-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    color: #2a4d9d;
    border: 1px solid #d9e6ff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}
.mini-badge.accent {
    background: #f3f8ef;
    border-color: #d7ebc7;
    color: #2f6b35;
}
.create-user-card,
.users-card {
    padding: 24px;
}
.create-user-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.admin-checkbox {
    margin-top: 0;
    background: #f8fbff;
    border: 1px solid #e3ecf7;
    border-radius: 10px;
    padding: 12px 14px;
}
.users-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.user-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.user-panel {
    border: 1px solid #e5ebf2;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 18px;
    box-shadow: 0 8px 18px rgba(31, 45, 61, 0.04);
}
.user-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
}
.user-panel-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #1f2d3d;
}
.user-panel-header p {
    margin: 0;
    color: #5d6b7f;
    font-size: 13px;
}
.self-tag {
    color: #4b6baf;
    font-weight: 700;
}
.user-panel-meta {
    font-size: 12px;
    color: #73839b;
    background: #f4f7fb;
    border: 1px solid #e7edf6;
    border-radius: 999px;
    padding: 7px 10px;
}
.user-panel-body {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.identity-box {
    background: #fafbfd;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mini-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mini-section h4 {
    margin: 0;
    color: #1f2d3d;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.identity-box .inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.identity-box .inline-form input {
    width: 100%;
    min-width: 160px;
    flex: 1;
}
.visibility-box {
    background: #fafbfd;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
}
.visibility-box h4 {
    margin: 0 0 12px;
    color: #1f2d3d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.visibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.visibility-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #e7edf6;
    border-radius: 10px;
    background: white;
    color: #2a3644;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.visibility-option:hover {
    border-color: #bfd3ff;
    transform: translateY(-1px);
}
.visibility-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #2d6cdf;
}
.user-panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}
.user-panel-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.danger-group {
    justify-content: flex-end;
    margin-left: auto;
}
.muted-action {
    color: #7f8c8d;
    font-style: italic;
}
.admin-visibility-form {
    margin-top: 6px;
}

.profile-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e5ebf2;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}
.profile-panel h3 {
    margin-bottom: 10px;
    color: #1f2d3d;
}
.profile-hint {
    margin-bottom: 18px;
    color: #5f6f85;
    font-size: 14px;
}
.inline-profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.profile-email-group {
    margin-bottom: 0;
}
.profile-email-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Edit form checkbox group */
.edit-expense-form .checkbox-group {
    margin-top: 10px;
}

.edit-expense-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.edit-expense-form .checkbox-label input[type="checkbox"] {
    width: auto;
}

.edit-expense-form .reimbursed-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-left: 25px;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.edit-expense-form .reimbursed-field input {
    width: 150px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.edit-expense-form .reimbursed-field label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

/* History section */
.history-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}
.history-section h2 {
    color: #7f8c8d;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Animation fluide pour le formulaire Nouvelle Dépense */
#new-expense-content {
    display: block; /* Toujours block pour le layout, on joue sur max-height */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    margin-top: 0;
    padding-top: 0;
    border-top: 0px solid transparent;
}

#new-expense-content.open {
    max-height: 2000px; /* Valeur suffisamment grande pour contenir le formulaire */
    opacity: 1;
    margin-top: 20px;
    padding-top: 0;
    border-top: 1px solid #f0f2f5;
}

/* Ajustement pour éviter l'espace blanc quand c'est fermé */
#new-expense-content .form-group {
    margin-bottom: 15px;
}

/* Petit effet sur le bouton */
#toggle-expense-form {
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 10px; padding: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-small { flex-direction: column; }
    .form-row-small input, .form-row-small button { width: 100%; }
    .month-breakdown { flex-direction: column; align-items: stretch; }
    .breakdown-item { justify-content: space-between; }
    .expense-header { flex-direction: column; }
    .expense-meta { text-align: left; width: 100%; border-top: 1px solid #eee; padding-top: 10px; }
    .shares-table { display: block; overflow-x: auto; }
    .reimbursement-actions { flex-direction: column; }
    .reimbursement-actions input[type="number"] { width: 100%; }
    .admin-layout { grid-template-columns: 1fr; }
    .user-panel-header { flex-direction: column; align-items: flex-start; }
    .user-panel-body { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; align-items: flex-start; }
    .admin-header-badges { justify-content: flex-start; }
}