/* === 动态数据点 + 组件样式（v7 增补） === */

/* Empty state */
.empty {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 20px;
    color: var(--text-3);
    text-align: center;
}
.empty-icon { font-size: 48px; opacity: 0.4; margin-bottom: 12px; }
.empty-icon svg { width: 48px; height: 48px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.empty-sub { font-size: 12px; max-width: 280px; line-height: 1.5; }

/* List item (col-2) — 我们用设计稿的 .list-item，但 .list-item-sub/.list-item-meta 没有 v7 默认样式 */
.list-item-sub { color: var(--text-3); font-size: 11.5px; margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.chip { font-size: 10.5px; padding: 1.5px 7px; border-radius: 100px;
    background: var(--bg-2); color: var(--text-2); border: 1px solid var(--line);
    font-weight: 500; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot.pending { background: #f59e0b; }
.status-dot.done { background: var(--green); }
.time { color: var(--text-3); font-size: 10.5px; margin-left: auto;
    font-variant-numeric: tabular-nums; }

/* Search bar in col-2 */
.search-bar { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.search-wrap { display: flex; align-items: center; gap: 6px;
    background: var(--bg-2); border-radius: 6px; padding: 5px 8px; }
.search-wrap svg { width: 12px; height: 12px; color: var(--text-3); }
.search-input { flex: 1; border: none; background: transparent;
    font-family: inherit; font-size: 12.5px; color: var(--text); outline: none; }
.search-input::placeholder { color: var(--text-3); }

/* Note head/body in col-3 */
.col-3 { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.note-head { padding: 32px 40px 0; border-bottom: 1px solid var(--line);
    padding-bottom: 20px; flex-shrink: 0; }
.note-title-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; min-width: 0; }
.note-title { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
    flex: 1; min-width: 0; outline: none; padding: 4px 0; min-height: 36px;
    overflow-wrap: break-word; word-break: break-word; }
.note-title:focus { color: var(--primary); }
.icon-btn { background: transparent; border: 1px solid var(--line); width: 30px; height: 30px;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    color: var(--text-2); cursor: pointer; transition: all 0.12s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 14px; height: 14px; }
.note-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; align-items: center; }
.note-summary { font-size: 13px; color: var(--text-2); line-height: 1.6;
    padding: 10px 14px; background: var(--bg-2); border-radius: 8px;
    border-left: 3px solid var(--primary); margin-bottom: 14px; }
.note-meta { display: flex; gap: 18px; }
.note-body { flex: 1; overflow-y: auto; padding: 24px 40px; }
.note-content { width: 100%; min-height: 300px; border: none; outline: none;
    font-family: inherit; font-size: 14px; line-height: 1.7; color: var(--text);
    background: transparent; resize: vertical; }
.note-foot { padding: 12px 40px; border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.note-foot .hint { font-size: 11px; color: var(--text-3); }
.note-foot #save-status { font-size: 11px; color: var(--green); font-weight: 500; }

/* Side (col-4) */
.side { padding: 14px; overflow-y: auto; }
.side-section { margin-bottom: 16px; padding: 14px; background: var(--bg-pure);
    border: 1px solid var(--line); border-radius: 10px; }
.side-section.featured { background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 100%);
    border-color: #fed7aa; }
.side-head { display: flex; align-items: center; justify-content: space-between;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-3); font-weight: 700; margin-bottom: 12px; }
.side-head button { background: none; border: none; color: var(--primary);
    cursor: pointer; font-family: inherit; font-size: 10.5px; font-weight: 600; }

/* Topic card */
.topic-card { padding: 12px; background: var(--bg-pure);
    border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
    transition: all 0.15s; cursor: pointer; }
.topic-card:hover { border-color: var(--primary); transform: translateY(-1px);
    box-shadow: var(--shadow); }
.topic-title { font-size: 14px; font-weight: 600; color: var(--text);
    margin-bottom: 4px; }
.topic-meta { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }

/* Topic grid (overview) */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px; }

/* Rel item */
.rel-item { display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--line); cursor: pointer; }
.rel-item:last-child { border-bottom: none; }
.rel-item:hover .rel-title { color: var(--primary); }
.rel-strength { width: 38px; height: 38px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rel-body { flex: 1; min-width: 0; }
.rel-title { font-size: 12.5px; font-weight: 600; color: var(--text);
    margin-bottom: 4px; }
.rel-point { font-size: 11.5px; color: var(--text-2); line-height: 1.5;
    padding-left: 8px; border-left: 2px solid var(--primary); }
.rel-point .lab { color: var(--primary-2); font-size: 9.5px;
    text-transform: uppercase; margin-right: 4px; font-weight: 700; letter-spacing: 0.05em; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center;
    padding-top: 100px; z-index: 200; }
.modal { background: var(--bg-pure); border-radius: 12px;
    box-shadow: var(--shadow-lg); width: 90%; max-width: 680px;
    overflow: hidden; }
.modal-search { display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-search svg { width: 18px; height: 18px; color: var(--text-3); }
.modal-input { flex: 1; border: none; outline: none; font-family: inherit;
    font-size: 16px; color: var(--text); background: transparent; }
.modal-input::placeholder { color: var(--text-3); }
.modal-results { max-height: 480px; overflow-y: auto; padding: 8px 0; }
.search-result { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid var(--line); }
.search-result:hover { background: var(--bg); }
.modal-head { display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-3); line-height: 1; }
.throw-textarea { width: 100%; border: none; outline: none; resize: vertical;
    padding: 16px 20px; font-family: inherit; font-size: 14px; line-height: 1.6; min-height: 120px; }
.throw-title { width: calc(100% - 40px); margin: 16px 20px 8px 20px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 14px;
    background: var(--bg); }
.throw-title:focus { outline: none; border-color: #f97316; background: white; }
.modal-foot { display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; border-top: 1px solid var(--line); }
.modal-foot .hint { flex: 1; font-size: 11px; color: var(--text-3); }

/* Toast */
#toast-container { position: fixed; top: 70px; right: 20px;
    display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { padding: 10px 16px; background: var(--text); color: white;
    border-radius: 8px; font-size: 12.5px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateX(20px); transition: all 0.25s; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: var(--green); }
.toast-error { background: #ef4444; }
.toast-warn { background: #f59e0b; }

/* View padding (tabs) */
.view-pad { padding: 32px 40px; overflow-y: auto; flex: 1; min-height: 0; }

/* Review card */
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 20px; background: var(--bg-pure);
    border: 1px solid var(--line); border-radius: 10px; transition: opacity 0.3s; }
.review-q { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.review-a { font-size: 13px; color: var(--text-2); line-height: 1.7;
    padding: 12px 14px; background: var(--bg-2); border-radius: 8px;
    margin-bottom: 12px; white-space: pre-wrap; }
.review-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Topic card */
.topic-card { padding: 10px; border-radius: 10px; background: var(--bg-2);
    margin-bottom: 6px; cursor: pointer; transition: background 120ms; }
.topic-card:hover { background: var(--line); }
.topic-title { font-size: 13px; font-weight: 500; color: var(--text); }
.topic-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* Media item */
.media-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-radius: 8px; background: var(--bg-2); margin-bottom: 4px;
    text-decoration: none; color: var(--text); transition: background 120ms; }
.media-item:hover { background: var(--line); }
.media-icon { font-size: 18px; flex-shrink: 0; }
.media-body { flex: 1; min-width: 0; }
.media-name { font-size: 12px; font-weight: 500; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.media-size { font-size: 10px; color: var(--text-3); }
.media-del { color: var(--text-3); cursor: pointer; padding: 0 4px;
    font-size: 16px; line-height: 1; user-select: none; }
.media-del:hover { color: #ef4444; }

/* Drag-over state */
.col-3.drag-over { background: linear-gradient(135deg, rgba(249,115,22,.04), rgba(236,72,153,.04));
    outline: 2px dashed #f97316; outline-offset: -8px; border-radius: 8px; }

/* Link-style button */
.btn-link { background: none; border: none; color: #f97316;
    font-size: 12px; cursor: pointer; padding: 4px 0; }
.btn-link:hover { text-decoration: underline; }

/* Side head button (refresh) */
.side-head button { background: none; border: none; color: var(--orange);
    font-size: 11px; cursor: pointer; padding: 0; }
.side-head button:hover { text-decoration: underline; }


/* === 预计/实际时间 chip (v11 增量) === */
.todo-mini-chip.est-chip {
    background: #f1f5f9;
    color: #64748b;
}
.todo-mini-chip.est-chip-empty {
    background: transparent;
    color: #cbd5e1;
    border: 1px dashed #e2e8f0;
}
.todo-mini-chip.act-chip {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}
.todo-mini-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #d6d3d1;
    margin: 0 4px;
    vertical-align: middle;
}
