/* 工作信息归集助手 - 保留 Tailwind 无法覆盖的自定义样式 */

/* 对话日期分隔线（兼容旧代码，保留） */
.msg-date-divider {
    text-align: center; margin: 16px 0 12px; position: relative;
}
.msg-date-divider::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    border-top: 1px solid #e5e7eb;
}
.msg-date-divider span {
    background: #f9fafb; padding: 0 12px; position: relative;
    color: #9ca3af; font-size: 12px;
}

/* 对话会话卡片悬停 */
.chat-session-card {
    transition: box-shadow 0.15s;
}
.chat-session-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 代码块 */
.code-block {
    background: #1a1a2e; color: #e0e0e0; padding: 12px; border-radius: 8px;
    font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
    max-height: 300px; overflow-y: auto; line-height: 1.4;
}

/* 通用弹窗：可拖拽可缩放，高度自适应内容 */
dialog.modal-resizable {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    min-width: 400px;
    /* overflow 必须为 auto/hidden，resize 手柄才会显示；visible 会导致手柄消失 */
    overflow: auto;
    resize: both;
    border-radius: 12px;
    padding: 0;
}
dialog.modal-resizable[open] {
    display: block;
}
/* body 区内容超出时出滚动条，不超出时自然收缩 */
dialog.modal-resizable #modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

/* 总结内容（markdown 渲染，弹窗用） */
.summary-content { line-height: 1.8; }
.summary-content h2 { font-size: 15px; font-weight: 600; color: #1a73e8; margin: 14px 0 6px; }
.summary-content h3 { font-size: 14px; font-weight: 600; color: #1a73e8; margin: 12px 0 4px; }
.summary-content ul { margin: 4px 0 4px 16px; }
.summary-content li { margin-bottom: 3px; }
