/* 任务发布方 — 消息（与 dashboard-home 浅色控制台一致） */

body.adv-messages-page.dashboard-home .dashboard-content {
    padding: 76px 24px 20px;
    max-width: 1180px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 0px);
    max-height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}

body.adv-messages-page .page-header h1 {
    color: #1e293b;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

body.adv-messages-page .page-header p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 720px;
}

body.adv-messages-page .page-header {
    flex-shrink: 0;
    margin-bottom: 12px;
}

.adv-messages-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-top: 4px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.adv-messages-page .adv-messages-card .messages-layout {
    flex: 1;
    min-height: 0;
    height: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

body.adv-messages-page .conversations-panel,
body.adv-messages-page .chat-panel {
    border-color: #e2e8f0;
    min-height: 0;
    background: #fff;
}

body.adv-messages-page .conversations-header {
    border-bottom-color: #e2e8f0;
    background: #fff;
}

body.adv-messages-page .conversations-header h2 {
    color: #1e293b;
}

body.adv-messages-page .conversation-item {
    border-bottom-color: #f1f5f9;
}

body.adv-messages-page .conversation-item:hover,
body.adv-messages-page .conversation-item.active {
    background: #f1f5f9;
}

body.adv-messages-page .conversation-item.active {
    box-shadow: inset 3px 0 0 #2563eb;
}

body.adv-messages-page .conversation-item.unread {
    background: #eff6ff;
}

body.adv-messages-page .conversation-avatar {
    background: linear-gradient(145deg, #60a5fa 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
}

body.adv-messages-page .conversation-meta-top strong {
    color: #1e293b;
}

body.adv-messages-page .conversation-meta-top time,
body.adv-messages-page .conversation-role,
body.adv-messages-page .conversation-preview {
    color: #64748b;
}

body.adv-messages-page .conversation-task-tag {
    display: inline-block;
    margin-top: 2px;
    margin-right: 6px;
    font-size: 0.7rem;
    color: #0369a1;
    font-weight: 600;
}

body.adv-messages-page .conversation-tag-social {
    color: #7c3aed;
}

body.adv-messages-page .conversations-search .form-control {
    background: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 9px 12px;
}

body.adv-messages-page .chat-empty {
    color: #64748b;
}

body.adv-messages-page .chat-empty h3 {
    color: #334155;
}

@media (max-width: 992px) {
    body.adv-messages-page.dashboard-home .dashboard-content {
        height: auto;
        max-height: none;
        overflow: visible;
        padding-bottom: 24px;
    }

    body.adv-messages-page .adv-messages-card {
        flex: none;
        min-height: calc(100vh - 180px);
    }
}
