/* HumiDesk — Task Card Modal
 * 独立文件，通过 wp_enqueue_style 注册
 * 禁止将此 CSS 合并回 shortcodes.php 内联块
 */

.hd-task-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.hd-task-modal-overlay.is-open {
    display: flex;
}
.hd-task-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: hidden;
}
.hd-task-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.hd-task-modal__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hd-task-modal__title::before {
    content: '📋';
    font-size: 16px;
}
.hd-task-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #94a3b8;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .12s, color .12s;
}
.hd-task-modal__close:hover {
    background: #f1f5f9;
    color: #334155;
}
.hd-task-modal__body {
    overflow-y: auto;
    padding: 20px 24px;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}
.hd-task-modal__body h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #0f172a; }
.hd-task-modal__body h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; color: #0f172a; }
.hd-task-modal__body p  { margin: 0 0 10px; }
.hd-task-modal__body ul,
.hd-task-modal__body ol { padding-left: 20px; margin: 0 0 12px; }
.hd-task-modal__body li { margin-bottom: 5px; }
.hd-task-modal__body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 14px; }
.hd-task-modal__body th,
.hd-task-modal__body td { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
.hd-task-modal__body th { background: #f8fafc; font-weight: 600; }
.hd-task-modal__body blockquote { border-left: 3px solid #fcd34d; margin: 0 0 12px; padding: 8px 14px; background: #fffbeb; border-radius: 0 6px 6px 0; }
.hd-task-modal__body hr { border: none; border-top: 1px solid #e2e8f0; margin: 18px 0; }
.hd-task-modal__loading {
    text-align: center;
    padding: 40px 0;
    color: #94a3b8;
    font-size: 13px;
}
