:root {
    --color-primary: #285694;
    --color-primary-light: rgba(40, 86, 148, 0.1);
    --color-accent: #47bcc2;
    --color-danger: #d93025;
    --color-success: #2ecc71;
    --color-bg: #f4f7fa;
    --color-bg-card: #ffffff;
    --color-bg-input: #ffffff;
    --color-bg-nav: #2c3e50;
    --color-text: #1a202c;
    --color-text-secondary: #5a657d;
    --color-border: #e2e8f0;
    --header-height: 60px;
    --mobile-nav-height: 60px;
    --sidebar-width: 260px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --page-padding: 12px;
    --content-max-width: 100%;
    --content-max-width-desktop: 1600px;
    --content-max-width-wide: 1800px;
    --card-padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html.dark {
    --color-bg: #1a202c;
    --color-bg-card: #2d3748;
    --color-bg-input: #171d29;
    --color-bg-nav: #2d3748;
    --color-text: #e4e6eb;
    --color-text-secondary: #b0b3b8;
    --color-border: #333333;
    --color-primary: #64b5f6;
    --color-primary-light: rgba(100, 181, 246, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-bg-nav);
    color: white;
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
    margin-bottom: 5px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-link.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.app-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--mobile-nav-height);
}

.app-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--page-padding);
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
}

.app-header > * {
    min-width: 0;
}

.app-header > :first-child,
.header-title {
    flex: 1 1 auto;
}

.app-header > :last-child,
.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.header-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
}

#theme-toggle .icon-moon {
    display: none;
}

html.dark #theme-toggle .icon-moon {
    display: block;
}

html.dark #theme-toggle .icon-sun {
    display: none;
}

.app-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 95;
    padding-bottom: env(safe-area-inset-bottom);
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    gap: 4px;
    width: 20%;
    height: 100%;
    min-width: 0;
    text-align: center;
}

.mobile-nav-link.active {
    color: var(--color-primary);
    font-weight: bold;
}

.main-content-area,
.main-container-list {
    display: block;
    width: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--page-padding);
}

.app-main > :not(.app-header):not(.app-mobile-nav) {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.content-card,
.detail-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    width: 100%;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    min-width: 0;
}

.card-striped {
    padding: 0 !important;
    overflow: hidden;
    border-left: 5px solid var(--color-primary);
}

.news-home-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.3;
}

.news-detail-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.list-card-item {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    width: 50px;
    height: 50px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    margin-right: 12px;
    flex: 0 0 50px;
}

.date-day {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

.item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.item-category {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.item-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    max-width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.dash-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--color-bg-card);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content-img {
    max-width: 95%;
    max-height: 80%;
    border-radius: var(--radius-md);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media (min-width: 600px) {
    :root {
        --page-padding: 16px;
        --card-padding: 1.1rem;
    }

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

@media (min-width: 768px) {
    :root {
        --page-padding: 18px;
        --card-padding: 1.2rem;
    }

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

@media (min-width: 1024px) {
    :root {
        --page-padding: 24px;
        --content-max-width: min(calc(100vw - var(--sidebar-width) - 32px), var(--content-max-width-desktop));
        --card-padding: 1.35rem;
    }

    .app-sidebar {
        display: flex;
    }

    .app-main {
        margin-left: var(--sidebar-width);
        padding-bottom: 0;
    }

    .app-mobile-nav {
        display: none;
    }

    .app-main > :not(.app-header):not(.app-mobile-nav),
    .main-content-area,
    .main-container-list {
        width: 100%;
    }

    .content-card,
    .detail-card {
        padding: var(--card-padding);
        margin-bottom: 1.25rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .dash-btn {
        padding: 18px;
    }
}

@media (min-width: 1280px) {
    :root {
        --page-padding: 28px;
        --content-max-width: min(calc(100vw - var(--sidebar-width) - 48px), 1500px);
        --card-padding: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .content-card,
    .detail-card {
        border-radius: 14px;
    }
}

@media (min-width: 1536px) {
    :root {
        --page-padding: 32px;
        --content-max-width: min(calc(100vw - var(--sidebar-width) - 64px), var(--content-max-width-wide));
        --card-padding: 1.6rem;
    }

    .dashboard-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0 var(--page-padding);
    }

    .app-main > :not(.app-header):not(.app-mobile-nav) {
        padding-left: var(--page-padding);
        padding-right: var(--page-padding);
    }

    .main-content-area,
    .main-container-list {
        padding-left: 0;
        padding-right: 0;
    }

    .content-card,
    .detail-card {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .page-header {
        gap: 10px;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .btn {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    :root {
        --page-padding: 6px;
        --card-padding: 0.95rem;
    }

    .app-header {
        padding: 0 var(--page-padding);
    }

    .app-main > :not(.app-header):not(.app-mobile-nav) {
        padding-left: var(--page-padding);
        padding-right: var(--page-padding);
    }

    .content-card,
    .detail-card {
        border-radius: 10px;
    }
}
.chat-page {
    padding-top: 0;
    padding-bottom: 0;
}

.chat-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - (var(--page-padding) * 2));
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-sidebar,
.chat-main {
    min-width: 0;
    min-height: 0;
}

.chat-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    flex: 1 1 auto;
}

.chat-sidebar-top {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.chat-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.chat-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-secondary);
    pointer-events: none;
}

.chat-search-input,
.chat-message-input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text);
    padding: 0 14px;
    outline: none;
}

.chat-search-input {
    padding-left: 40px;
    padding-right: 14px;
}

.chat-search-input:focus,
.chat-message-input:focus {
    border-color: var(--color-primary);
}

.chat-new-btn,
.chat-back-btn,
.chat-delete-btn,
.chat-attach-btn,
.chat-send-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-send-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.chat-delete-btn {
    color: var(--color-danger);
}

.chat-filter-bar {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chat-filter-bar::-webkit-scrollbar {
    display: none;
}

.chat-filter-btn {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.chat-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.chat-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 30;
    max-height: 280px;
    overflow-y: auto;
}

.chat-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border);
}

.chat-search-result-item:last-child {
    border-bottom: none;
}

.chat-search-result-item:hover {
    background: var(--color-primary-light);
}

.chat-search-result-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.chat-search-result-name {
    color: var(--color-text);
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 280px;
}

.chat-list-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    background: var(--color-bg-card);
}

.chat-list-item.active,
.chat-list-item:hover {
    background: var(--color-primary-light);
}

.chat-list-item.unread .chat-list-name {
    font-weight: 700;
}

.chat-list-avatar,
.chat-header-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.chat-list-content {
    flex: 1 1 auto;
    min-width: 0;
}

.chat-list-top,
.chat-list-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-list-top {
    margin-bottom: 3px;
}

.chat-list-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--color-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list-time {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.chat-list-preview {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-danger);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-main {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
    background: var(--color-bg);
}

.chat-layout.chat-open .chat-main {
    display: flex;
}

.chat-layout.chat-open .chat-sidebar {
    display: none;
}

.chat-main-header {
    min-height: 60px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-main-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.chat-main-title-wrap {
    min-width: 0;
}

.chat-main-title {
    color: var(--color-text);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-messages {
    flex: 1 1 auto;
    min-height: 280px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message-row {
    display: flex;
    justify-content: flex-start;
}

.chat-message-row.own {
    justify-content: flex-end;
}

.chat-message-bubble {
    max-width: 88%;
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 10px 12px 8px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.chat-message-row.own .chat-message-bubble {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.chat-message-body {
    word-break: break-word;
    font-size: 0.92rem;
    padding-right: 18px;
}

.chat-message-time {
    margin-top: 6px;
    text-align: right;
    font-size: 0.68rem;
    opacity: 0.8;
}

.chat-message-delete {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
}

.chat-message-image {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
}

.chat-message-link-wrap,
.chat-poll-box,
.chat-file-gone {
    margin-top: 8px;
}

.chat-poll-btn {
    margin-top: 6px;
    width: 100%;
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.chat-message-input {
    flex: 1 1 auto;
    min-width: 0;
}

.chat-attachment-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
}

.chat-attachment-bar span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-attachment-remove {
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--color-danger);
    cursor: pointer;
}

.chat-empty-state {
    margin: auto;
    text-align: center;
    color: var(--color-text-secondary);
    padding: 20px;
}

.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
    padding: 20px;
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 1.7rem;
    cursor: pointer;
}

.image-modal-image {
    max-width: 95%;
    max-height: 80vh;
    border-radius: var(--radius-md);
}

.image-modal-actions {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .chat-page {
        min-height: calc(100vh - var(--mobile-nav-height));
    }

    .chat-layout {
        min-height: calc(100vh - var(--mobile-nav-height) - (var(--page-padding) * 2));
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .chat-header-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .chat-message-bubble {
        max-width: 92%;
    }
}

@media (min-width: 769px) {
    .chat-page {
        min-height: calc(100vh - var(--header-height));
    }

    .chat-layout {
        flex-direction: row;
        min-height: calc(100vh - var(--header-height) - (var(--page-padding) * 2));
    }

    .chat-sidebar {
        display: flex !important;
        width: 360px;
        min-width: 360px;
        max-width: 360px;
        border-right: 1px solid var(--color-border);
        flex: 0 0 360px;
    }

    .chat-main {
        display: flex !important;
        flex: 1 1 auto;
    }

    .chat-back-btn {
        display: none;
    }

    .chat-layout.chat-open .chat-sidebar {
        display: flex !important;
    }

    .chat-layout.chat-open .chat-main {
        display: flex !important;
    }
}
.chat-page {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 768px) {
    .chat-layout.chat-open .chat-main-header .chat-back-btn {
        display: inline-flex;
    }
}
@media (max-width: 768px) {
    .app-main > .main-container-list.chat-page {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .chat-page .chat-layout {
        min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - env(safe-area-inset-bottom));
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .chat-page .chat-main {
        min-height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - env(safe-area-inset-bottom));
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .chat-page .chat-input-area,
    .chat-page .chat-attachment-bar {
        position: sticky;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        z-index: 20;
    }

    .chat-page .chat-main-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .chat-page .chat-messages {
        padding-left: 10px;
        padding-right: 10px;
    }
}