    .message-page {
        display: flex;
        flex-direction: row;
        flex-grow: 1;
        min-height: calc(100vh - 48px);
        min-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px));
        overflow-y: visible;
        overflow-x: hidden;
    }

    .chats-pane {
        min-width: 380px;
        min-height: 100%;
        width: 420px;
        max-width: 45%;
        flex-shrink: 1;
        flex-grow: 1;
        background: var(--surface);
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        overflow-y: auto;
    }
    .message-new-container {
        width: 100%;
        height: 64px;
        width: 100%;
        height: 64px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .message-new {
        width: 50%;
        height: 64px;
        background: var(--surface-1);
        border: 0;
        border-radius: var(--14px-radius);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 4px 8px;
        color: var(--text);
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: 0.2s ease;
    }
    .new-svg {
        fill: var(--text);
        stroke: var(--text);
    }
    .message-new:hover {
        filter: brightness(0.98);
        transform: scale(0.99);
    }
    .message-new:active {
        filter: brightness(0.95);
        transform: scale(0.96);
    }
    .new-chat-contact-list{
        min-height:120px;
        max-height:45vh;
        gap:8px;
        background:var(--surface);
        padding:8px;
        border-radius:var(--18px-radius);
        height:auto;
        display:flex;
        flex-direction:column;
        overflow-y: scroll;
    }
    .chat-item {
        width: 100%;
        height: 64px;
        background: var(--surface-1);
        border: 0;
        border-radius: var(--14px-radius);
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        padding: 4px 8px;
        color: var(--text);
        font: inherit;
        text-align: left;
        cursor: pointer;
        transition: 0.2s ease;
    }

    .chat-item:hover {
        filter: brightness(0.98);
        transform: scale(0.99);
    }

    .chat-item:active {
        filter: brightness(0.95);
        transform: scale(0.96);
    }

    .chat-icon {
        width: 48px;
        height: 48px;
        position: relative;
        border-radius: var(--12px-radius);
        overflow: hidden;
        flex-shrink: 0;
        background: var(--surface-2);
    }

    .chat-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .sender-avatar-image {
        position: absolute;
        inset: 0;
    }
    .sender-avatar-fallback {
        display: grid;
        width: 100%;
        height: 100%;
        place-items: center;
    }
    .sender-request-row .chat-icon {
        width: 36px;
        height: 36px;
        border-radius: var(--8px-radius);
    }

    .chat-info {
        display: flex;
        flex-direction: column;
        gap: 1px;
        overflow: hidden;
    }

    .chat-name {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-preview {
        margin: 0;
        font-size: 14px;
        color: var(--text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .chat-header {
        width: 100%;
        height: 64px;
        background: var(--surface-1);
        border-radius: var(--14px-radius);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }
    .sender-load-older {
        flex: 0 0 auto;
        padding: 7px 10px;
        border: 0;
        border-radius: var(--8px-radius);
        background: var(--surface-2);
        color: var(--text);
        font: inherit;
        cursor: pointer;
    }
    .sender-load-older {
        align-self: center;
    }
    .chat-back-button {
        display: none;
    }
    .chat-back-button-svg{
        height:100%;
    }
    .chat-title {
        margin: 0;
        font-size: 24px;
        font-weight: 800;
        color: var(--text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .chat-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex-grow: 1;
        min-width:50%;
        width:100%;
        min-height: 100%;
        overflow-y: auto;
        padding: 8px;
    }
    .chat-area {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        width: 100%;
        min-height: 0;
        padding: 8px;
    }
    .chat-messages {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 8px;
    }
    .chat-compose {
        display: flex;
        align-items: center;
        background: var(--surface-1);
        padding:0;
        gap: 8px;
        border-radius:var(--12px-radius);
        flex: 0 0 auto;
        transition:0.2s;
    }
    .chat-compose:hover{
        scale:0.99;
        filter: brightness(0.98);
    }
    .chat-compose:active{
        scale:0.98;
        filter: brightness(0.96);
    }
    .chat-compose .chat-input {
        flex: 1 1 auto;
        min-width: 0;
    }
    .chat-compose .window-button {
        min-width: 72px;
    }

    .chat-input {
        width: 100%;
        height: 48px;
        border-radius: var(--12px-radius);
        color: var(--text);
        font-size: 16px;
        outline: none;
    }
    .chat-input-send{
        height:28px;
        background: color-mix(#aaa 30%, var(--accent-color)70%);
        width:28px;
        margin-right:6.5px;
        padding:6px;
    }
    .chat-input-send-svg{
        height:100%;
        stroke:var(--text);
    }
    .chat-bubble {
        max-width: 90%;
        padding: 8px 12px;
        border-radius: var(--12px-radius);
        margin: 4px 0;
	max-width:100%;
        font-size: 16px;
        line-height: 1.4;
    }
    .chat-day-separator {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 14px 0 8px;
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
        text-align: center;
    }
    .chat-day-separator::before,
    .chat-day-separator::after {
        flex: 1;
        border-top: 1px solid color-mix(in srgb, var(--text-muted) 35%, transparent);
        content: "";
    }

    .user {
        background: color-mix(var(--accent-color) 60%, var(--text-muted) 20%);
        color: var(--text);
        align-self: flex-end;
    }

    .other {
        background: color-mix(var(--accent-color) 20%, var(--surface) 90%);
        color: var(--text);
        align-self: flex-start;
    }
    .chat-input{
        width:100%;
        height:40px;
        background:none;
    }
    .chat-input:hover{
        filter: brightness(1);
        scale: 1;
    }
    .sender-status {
        margin: 0;
        min-height: 1.2em;
        color: var(--text-muted);
        font-size: 14px;
    }
    .sender-status.error {
        color: #c0392b;
    }
    .sender-list-section {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .sender-section-title {
        margin: 4px 2px 0;
        color: var(--text-muted);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
    .sender-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .sender-empty {
        margin: 8px 4px;
        color: var(--text-muted);
        font-size: 14px;
    }
    .sender-avatar {
        display: grid;
        place-items: center;
        color: var(--text);
        font-weight: 800;
    }
    .sender-request-row {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 42px;
        padding: 4px 6px;
        border-radius: var(--12px-radius);
        background: var(--surface-1);
    }
    .sender-request-row .chat-name {
        flex: 1 1 auto;
    }
    .sender-small-button {
        flex: 0 0 auto;
        padding: 5px 8px;
        border: 0;
        border-radius: var(--8px-radius);
        background: var(--surface-2);
        color: var(--text);
        font: inherit;
        cursor: pointer;
    }
    .sender-select-item {
        cursor: pointer;
    }
    .sender-select-item .chat-item-checkbox {
        flex: 0 0 auto;
    }
    .chat-message-author {
        font-weight: 700;
    }
    :root {
        --accent-color: #F8C534;
    }
    .home-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: var(--surface-1);
        flex: 1 1 auto;
        margin: 32px 0 0 0;
        min-height: 0;
        overflow: visible;
    }

    .type-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-template-rows: none;
        grid-auto-rows: minmax(150px, 200px);
        gap: 12px;
        border-radius: var(--12px-radius);
        padding: 16px;
        width: 100%;
        min-height: 200px;
        overflow: visible;
    }

    .type-item {
        background: var(--surface-3);
        border-radius: var(--12px-radius);
        padding: 6px;
        flex-direction: column;
        display: flex;
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
        transition: 0.2s ease;
        cursor: pointer;
    }

    .type-item.static-type-item {
        cursor: default;
    }

    .type-item:hover {
        filter: brightness(0.98);
        transform: scale(0.99);
    }

    .type-item:active {
        filter: brightness(0.94);
        transform: scale(0.96);
    }

    .type-item.static-type-item:hover,
    .type-item.static-type-item:active {
        filter: none;
        transform: none;
    }

    .type-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text);
        margin: 4px 0 0 6px;
    }
    @media (max-width: 768px) {
        .message-page {
            min-height: calc(100vh - 48px);
            min-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px));
        }
        .chats-pane {
            min-width: 0;
            width: 100%;
            max-width: none;
            flex: 1 1 100%;
        }
        .chat-content {
            display: none;
            min-width: 0;
            width: 100%;
            flex: 1 1 100%;
        }
        .message-page.chat-selected .chats-pane {
            display: none;
        }
        .message-page.chat-selected .chat-content {
            display: flex;
        }
        .chat-back-button {
            display: flex;
            align-items: center;
            flex-shrink: 0;
            border: 0;
            border-radius: var(--12px-radius);
            background: var(--surface-2);
            color: var(--text);
            font: inherit;
            width:40px;
            height:40px;
            padding:8px;
            cursor: pointer;
        }
        .chat-title {
            font-size: 20px;
        }
    }