.page-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

[hidden] {
    display: none !important;
}

.messages-page {
    flex: 1;
    display: flex;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
}

.messages-shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
}

.messages-sidebar-panel,
.messages-chat-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 20px;
}

body.light-mode .messages-sidebar-panel,
body.light-mode .messages-chat-panel {
    border-color: rgba(0,0,0,0.2);
}

.messages-panel-top,
.chat-thread-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 28px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

body.light-mode .messages-panel-top,
body.light-mode .chat-thread-header {
    border-bottom-color: rgba(0,0,0,0.08);
}

.chat-thread-header {
    align-items: center;
}

.messages-panel-top {
    align-items: center;
    padding-bottom: 10px;
}

.messages-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

body.light-mode .messages-eyebrow {
    color: rgba(0,0,0,0.35);
}

.messages-eyebrow-static {
    margin: 0;
}

.messages-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

body.light-mode .messages-title {
    color: #111;
}

.messages-subtitle,
.search-hint,
.composer-note,
.result-copy p,
.conversation-copy p,
.thread-copy p,
.empty-copy p:last-child,
.message-author,
.message-meta,
.conversation-header,
.conversation-header-note,
.result-tag,
.conversation-time {
    color: rgba(255,255,255,0.38);
}

body.light-mode .messages-subtitle,
body.light-mode .search-hint,
body.light-mode .composer-note,
body.light-mode .result-copy p,
body.light-mode .conversation-copy p,
body.light-mode .thread-copy p,
body.light-mode .empty-copy p:last-child,
body.light-mode .message-author,
body.light-mode .message-meta,
body.light-mode .conversation-header,
body.light-mode .conversation-header-note,
body.light-mode .result-tag,
body.light-mode .conversation-time {
    color: rgba(0,0,0,0.4);
}

.messages-subtitle {
    margin: 6px 0 0;
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.6;
}

.messages-count-badge,
.thread-status,
.conversation-chip,
.message-divider {
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    border-radius: 999px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 11px;
}

body.light-mode .messages-count-badge,
body.light-mode .thread-status,
body.light-mode .conversation-chip,
body.light-mode .message-divider {
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.5);
}

.messages-count-badge {
    font-size: 12px;
}

.message-search-box,
.composer-input-wrap,
.search-result-card,
.conversation-card,
.mobile-back-btn {
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
}

body.light-mode .message-search-box,
body.light-mode .composer-input-wrap,
body.light-mode .search-result-card,
body.light-mode .conversation-card,
body.light-mode .mobile-back-btn {
    border-color: rgba(0,0,0,0.12);
}

.message-search-box,
.composer-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 12px 20px 0;
    padding: 0 14px;
    border-radius: 12px;
}

.composer-input-wrap {
    margin: 0;
    min-height: 68px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 20px;
}

.message-search-box:focus-within,
.composer-input-wrap:focus-within {
    border-color: rgba(127,19,236,0.45);
    background: rgba(127,19,236,0.05);
}

.message-search-box .material-symbols-outlined,
.composer-input-wrap .material-symbols-outlined {
    font-size: 18px;
    color: rgba(255,255,255,0.3);
}

body.light-mode .message-search-box .material-symbols-outlined,
body.light-mode .composer-input-wrap .material-symbols-outlined {
    color: rgba(0,0,0,0.35);
}

.message-search-box input,
.composer-input-wrap textarea {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-family: "Manrope", sans-serif;
}

body.light-mode .message-search-box input,
body.light-mode .composer-input-wrap textarea {
    color: #111;
}

.message-search-box input::placeholder,
.composer-input-wrap textarea::placeholder {
    color: rgba(255,255,255,0.22);
}

body.light-mode .message-search-box input::placeholder,
body.light-mode .composer-input-wrap textarea::placeholder {
    color: rgba(0,0,0,0.22);
}

.messages-search-meta,
.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px 0;
    font-size: 12px;
    font-weight: 700;
}

.search-clear-btn {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
}

body.light-mode .search-clear-btn {
    color: #666;
}

.search-clear-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.search-results,
.conversation-list,
.message-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar,
.conversation-list::-webkit-scrollbar,
.message-list::-webkit-scrollbar {
    width: 4px;
}

.search-results::-webkit-scrollbar-thumb,
.conversation-list::-webkit-scrollbar-thumb,
.message-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
}

body.light-mode .search-results::-webkit-scrollbar-thumb,
body.light-mode .conversation-list::-webkit-scrollbar-thumb,
body.light-mode .message-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
}

.search-results {
    min-height: 0;
    max-height: 180px;
    padding: 12px 20px 0;
}

.conversation-list {
    flex: 1;
    min-height: 0;
    padding: 12px 20px 20px;
}

.message-list {
    flex: 1;
    min-height: 0;
    padding: 20px 24px;
    gap: 12px;
}

.search-result-card,
.conversation-card {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 11px;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s;
    box-shadow: none;
}

.search-result-card:hover,
.conversation-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.16);
    transform: translateX(2px);
}

body.light-mode .search-result-card:hover,
body.light-mode .conversation-card:hover {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
    box-shadow: none;
}

.conversation-card.active {
    background: rgba(127,19,236,0.16);
    border-color: rgba(127,19,236,0.4);
    box-shadow: none;
}

body.light-mode .conversation-card.active {
    background: rgba(127,19,236,0.1);
    border-color: rgba(127,19,236,0.25);
    box-shadow: none;
}

.person-avatar,
.thread-avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(127,19,236,0.35);
    color: #e2c4ff;
    font-size: 16px;
    font-weight: 800;
    border: 2px solid rgba(127,19,236,0.50);
    flex-shrink: 0;
}

.result-copy,
.conversation-copy,
.thread-copy {
    min-width: 0;
}

.result-copy h3,
.conversation-copy h3,
.thread-copy h2,
.empty-copy h2 {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-copy h2 {
    font-size: 28px;
    line-height: 1.1;
    white-space: normal;
}

body.light-mode .result-copy h3,
body.light-mode .conversation-copy h3,
body.light-mode .thread-copy h2,
body.light-mode .empty-copy h2 {
    color: rgba(0,0,0,0.82);
}

.panel-placeholder,
.thread-placeholder {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.12);
    text-align: center;
    color: rgba(255,255,255,0.28);
    font-size: 13px;
    line-height: 1.6;
}

body.light-mode .panel-placeholder,
body.light-mode .thread-placeholder {
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.32);
}

.conversation-list .panel-placeholder {
    min-height: 80px;
}

.chat-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 36px;
}

.empty-art {
    position: relative;
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    opacity: 0.7;
}

.empty-orb,
.empty-grid {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.12);
}

body.light-mode .empty-orb,
body.light-mode .empty-grid {
    border-color: rgba(0,0,0,0.12);
}

.empty-orb {
    border-radius: 999px;
}

.orb-one { top: 12px; left: 8px; width: 82px; height: 82px; }
.orb-two { right: 6px; bottom: 16px; width: 126px; height: 126px; }
.orb-three {
    top: 72px;
    left: 78px;
    width: 46px;
    height: 46px;
    background: rgba(127,19,236,0.12);
    border-color: rgba(127,19,236,0.2);
}

.empty-grid {
    top: 18px;
    right: 18px;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    border-style: dashed;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-thread-meta,
.conversation-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.conversation-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.mobile-back-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
}

body.light-mode .mobile-back-btn {
    color: #666;
}

.message-bubble {
    max-width: min(74%, 560px);
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    box-shadow: none;
}

body.light-mode .message-bubble {
    border-color: rgba(0,0,0,0.08);
}

.message-bubble.theirs {
    align-self: flex-start;
    border-bottom-left-radius: 8px;
}

.message-bubble.mine {
    align-self: flex-end;
    border-bottom-right-radius: 8px;
    background: rgba(127,19,236,0.18);
    border-color: rgba(127,19,236,0.28);
}

body.light-mode .message-bubble.mine {
    background: rgba(127,19,236,0.1);
    border-color: rgba(127,19,236,0.2);
}

.message-author {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.message-text {
    margin: 0;
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

body.light-mode .message-text {
    color: rgba(0,0,0,0.82);
}

.message-meta {
    justify-content: flex-end;
    font-size: 11px;
    font-weight: 700;
}

.message-composer {
    display: block;
    padding: 16px 24px 12px;
    border-top: none;
    background: transparent;
}

body.light-mode .message-composer {
    border-top: none;
    background: transparent;
}

.composer-input-wrap textarea {
    min-height: 24px;
    max-height: 160px;
    resize: none;
    line-height: 1.6;
    font-size: 14px;
    padding: 8px 0;
}

.composer-shell {
    gap: 10px;
}

.composer-context-chip {
    min-width: 64px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

body.light-mode .composer-context-chip {
    background: rgba(0,0,0,0.08);
    color: rgba(0,0,0,0.82);
}

.composer-tool-btn,
.composer-send-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.45);
    border-radius: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.light-mode .composer-tool-btn,
body.light-mode .composer-send-btn {
    color: rgba(0,0,0,0.45);
}

.composer-tool-btn:hover,
.composer-send-btn:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

body.light-mode .composer-tool-btn:hover,
body.light-mode .composer-send-btn:hover {
    background: rgba(0,0,0,0.06);
    color: #111;
}

.composer-send-btn {
    border: 1px solid rgba(127,19,236,0.32);
    background: rgba(127,19,236,0.18);
    color: #c084fc;
}

body.light-mode .composer-send-btn {
    background: rgba(127,19,236,0.1);
    color: #7f13ec;
}

.composer-send-btn:disabled,
.composer-input-wrap textarea:disabled,
.composer-tool-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.composer-note {
    display: none;
}

.chat-thread-header {
    background: rgba(30,18,50,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(127,19,236,0.18);
}

body.light-mode .chat-thread-header {
    background: rgba(248,245,255,0.97);
    border-bottom-color: rgba(127,19,236,0.12);
}

.thread-copy h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff !important;
}

.thread-copy p {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255,255,255,0.55) !important;
}

.thread-action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.65);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.thread-action-btn:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

body.light-mode .thread-action-btn {
    color: rgba(0,0,0,0.55);
}

body.light-mode .thread-action-btn:hover {
    background: rgba(0,0,0,0.06);
    color: #111;
}

.message-list {
    gap: 12px;
    padding: 18px 18px 22px;
    background:
        radial-gradient(circle at 20% 12%, rgba(127,19,236,0.08), transparent 0 120px),
        radial-gradient(circle at 84% 24%, rgba(34,197,94,0.05), transparent 0 140px),
        radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(7,12,17,0.98), rgba(7,12,17,0.94));
    background-size: auto, auto, 18px 18px, auto;
}

body.light-mode .message-list {
    background:
        radial-gradient(circle at 20% 12%, rgba(127,19,236,0.05), transparent 0 120px),
        radial-gradient(circle at 84% 24%, rgba(34,197,94,0.04), transparent 0 140px),
        radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(248,249,250,0.98), rgba(244,246,248,0.96));
    background-size: auto, auto, 18px 18px, auto;
}

.thread-intro-banner {
    align-self: center;
    max-width: min(88%, 520px);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(16,28,34,0.92);
    color: #8be0c9;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

body.light-mode .thread-intro-banner {
    background: rgba(235,243,246,0.96);
    color: #166b58;
}

.thread-hero-card {
    align-self: center;
    width: min(100%, 520px);
    padding: 28px 22px 20px;
    border-radius: 28px;
    background: rgba(34,42,46,0.94);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

body.light-mode .thread-hero-card {
    background: rgba(255,255,255,0.96);
    border-color: rgba(0,0,0,0.06);
}

.thread-hero-avatar {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255,196,149,0.26), rgba(84,48,29,0.96));
    color: #ffd6b6;
    font-size: 36px;
    font-weight: 800;
}

.thread-hero-name {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.02em;
}

body.light-mode .thread-hero-name {
    color: rgba(0,0,0,0.86);
}

.thread-hero-meta {
    margin: -2px 0 0;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.5;
}

body.light-mode .thread-hero-meta {
    color: rgba(0,0,0,0.46);
}

.thread-hero-button {
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

body.light-mode .thread-hero-button {
    border-color: rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.05);
    color: rgba(0,0,0,0.82);
}

.message-divider {
    align-self: center;
    margin-top: 4px;
    margin-bottom: 2px;
    background: rgba(23,27,33,0.92);
    color: rgba(255,255,255,0.78);
    padding: 7px 14px;
}

body.light-mode .message-divider {
    background: rgba(255,255,255,0.92);
    color: rgba(0,0,0,0.62);
}

.message-bubble {
    max-width: min(84%, 560px);
    padding: 14px 16px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(33,39,43,0.98);
}

body.light-mode .message-bubble {
    background: rgba(255,255,255,0.98);
}

.message-bubble.theirs {
    border-top-left-radius: 8px;
}

.message-bubble.mine {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 20px;
    background: rgba(127,19,236,0.3);
}

.message-meta {
    color: rgba(255,255,255,0.48);
}

body.light-mode .message-meta {
    color: rgba(0,0,0,0.42);
}

.message-composer {
    padding: 12px 16px 14px;
    background: rgba(8,13,18,0.96);
}

body.light-mode .message-composer {
    background: rgba(250,250,250,0.98);
}

.composer-shell {
    gap: 10px;
    border-radius: 22px;
}

.composer-context-chip {
    min-width: 68px;
    height: 44px;
}

.composer-tool-btn,
.composer-send-btn {
    width: 44px;
    height: 44px;
}

.composer-send-btn {
    border: none;
    background: #1fd161;
    color: #04160a;
}

body.light-mode .composer-send-btn {
    background: #1fd161;
    color: #04160a;
}

@media (max-width: 980px) {
    .messages-page {
        padding: 12px;
    }

    .messages-shell {
        grid-template-columns: 1fr;
    }

    .messages-page.show-chat .messages-sidebar-panel {
        display: none;
    }

    .messages-page:not(.show-chat) .messages-chat-panel {
        display: none;
    }

    .mobile-back-btn {
        display: inline-flex;
    }

    .chat-thread-header {
        padding-top: 16px;
        padding-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .messages-sidebar-panel,
    .messages-chat-panel {
        border-radius: 18px;
    }

    .messages-panel-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px 12px;
    }

    .messages-title {
        font-size: 22px;
    }

    .chat-thread-header,
    .message-list,
    .message-composer,
    .composer-note {
        padding-left: 16px;
        padding-right: 16px;
    }

    .search-results,
    .conversation-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .message-search-box,
    .messages-search-meta,
    .conversation-header {
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .message-bubble {
        max-width: 88%;
    }

    .composer-input-wrap {
        min-height: 62px;
        padding: 8px 10px;
        gap: 8px;
    }

    .composer-context-chip {
        min-width: 56px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .composer-tool-btn,
    .composer-send-btn {
        width: 38px;
        height: 38px;
    }

    .chat-empty-state {
        flex-direction: column;
        text-align: center;
    }

    .empty-copy h2 {
        font-size: 22px;
    }
}

@media (max-width: 980px) {
    .composer-note {
        display: none;
    }
}

@media (max-width: 640px) {
    .thread-copy h2 {
        font-size: 17px;
    }

    .thread-copy p {
        font-size: 11px;
    }

    .message-list {
        padding: 14px 12px 18px;
    }

    .thread-intro-banner {
        max-width: 100%;
        font-size: 12px;
        padding: 10px 12px;
    }

    .thread-hero-card {
        border-radius: 24px;
        padding: 24px 18px 18px;
    }

    .thread-hero-avatar {
        width: 94px;
        height: 94px;
        font-size: 32px;
    }

    .thread-hero-button {
        min-height: 50px;
        font-size: 14px;
    }

    .composer-input-wrap {
        min-height: 60px;
        padding: 8px 10px;
        gap: 8px;
    }

    .composer-context-chip {
        min-width: 54px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .composer-tool-btn,
    .composer-send-btn {
        width: 38px;
        height: 38px;
    }
}

/* Final thread layout: keep original IndSeo theme, use only the cleaner structure */
.thread-intro-banner,
.thread-hero-card {
    display: none !important;
}

.chat-thread-header {
    background: #1a0a2e !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(127,19,236,0.30) !important;
    padding: 14px 20px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

body.light-mode .chat-thread-header {
    background: #f3eeff !important;
    border-bottom: 1px solid rgba(127,19,236,0.18) !important;
}

.thread-copy h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.thread-copy p {
    margin-top: 4px;
    font-size: 12px;
}

.message-list {
    padding: 20px 24px;
    gap: 12px;
    background: transparent;
}

body.light-mode .message-list {
    background: transparent;
}

.message-bubble {
    max-width: min(74%, 560px);
    padding: 12px 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
}

body.light-mode .message-bubble {
    background: transparent;
    border-color: rgba(0,0,0,0.08);
}

.message-bubble.theirs {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 8px;
}

.message-bubble.mine {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 8px;
    background: rgba(127,19,236,0.18);
    border-color: rgba(127,19,236,0.28);
}

body.light-mode .message-bubble.mine {
    background: rgba(127,19,236,0.1);
    border-color: rgba(127,19,236,0.2);
}

.message-divider {
    background: transparent;
    color: rgba(255,255,255,0.5);
}

body.light-mode .message-divider {
    background: transparent;
    color: rgba(0,0,0,0.5);
}

.message-composer {
    padding: 16px 24px 12px;
    background: rgba(255,255,255,0.02);
}

body.light-mode .message-composer {
    background: rgba(0,0,0,0.02);
}

.composer-context-chip {
    display: none !important;
}

.composer-shell {
    gap: 10px;
    border-radius: 20px;
}

.composer-tool-btn,
.composer-send-btn {
    width: 42px;
    height: 42px;
}

.composer-send-btn {
    border: 1px solid rgba(127,19,236,0.32);
    background: rgba(127,19,236,0.18);
    color: #c084fc;
}

body.light-mode .composer-send-btn {
    background: rgba(127,19,236,0.1);
    color: #7f13ec;
}

@media (max-width: 640px) {
    .message-list {
        padding: 16px 16px 18px;
    }

    .composer-tool-btn,
    .composer-send-btn {
        width: 38px;
        height: 38px;
    }
}
