/* ===== Notes Layout ===== */
.notes-layout { display: flex; height: calc(100vh - 64px); overflow: hidden; }
.notes-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ===== Edit Toolbar ===== */
.edit-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; gap: 12px; flex-wrap: wrap; }
.edit-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tool-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-primary); font-size: 0.875rem; cursor: pointer; transition: var(--transition); }
.tool-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.tool-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.tool-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

/* ===== Note Editor ===== */
.note-editor-wrap { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.note-meta { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; gap: 12px; flex-wrap: wrap; }
.note-title-input { font-size: 1.15rem; font-weight: 700; border: none; outline: none; background: transparent; color: var(--text-primary); flex: 1; min-width: 200px; }
.note-title-input:focus { color: var(--primary); }
.note-editor { flex: 1; overflow-y: auto; padding: 28px 32px; font-size: 0.95rem; line-height: 1.8; color: var(--text-primary); outline: none; }
.note-editor:empty::before { content: '笔记内容将在同传结束后自动生成，也可以手动输入内容…'; color: var(--text-muted); pointer-events: none; }
.note-editor h2 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 8px; color: var(--text-primary); border-left: 3px solid var(--primary); padding-left: 12px; }
.note-editor h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 6px; color: var(--text-primary); }
.note-editor p { margin-bottom: 10px; }
.note-editor .keyword { background: #FEF9C3; border-radius: 3px; padding: 1px 6px; font-weight: 600; color: #92400E; }
.note-editor .formula { background: #DCFCE7; border-radius: 3px; padding: 1px 6px; font-family: monospace; font-weight: 600; color: #166534; }
.note-editor .important { background: #FEE2E2; border-radius: 3px; padding: 1px 6px; font-weight: 700; color: #991B1B; }

/* ===== Note List (sidebar) ===== */
.note-list { display: flex; flex-direction: column; gap: 4px; }
.note-list-item { padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.note-list-item:hover { background: var(--bg); }
.note-list-item.active { background: var(--primary-light); border-color: var(--primary); }
.note-list-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-list-meta { font-size: 0.72rem; color: var(--text-muted); }

/* ===== Audio Bar ===== */
.audio-bar { background: var(--bg-card); border-top: 1px solid var(--border); padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 16px; flex-wrap: wrap; }
.audio-info { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); min-width: 160px; }
.audio-controls { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 600px; }
.audio-progress-wrap { flex: 1; display: flex; align-items: center; }

/* ===== Annotation Panel ===== */
.annotation-panel { width: 220px; background: var(--bg-card); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; }
.annotation-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.annotation-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.annotation-item { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; transition: var(--transition); }
.annotation-item:hover { box-shadow: var(--shadow-sm); }
.annotation-time { font-size: 0.72rem; color: var(--warning); font-family: monospace; font-weight: 600; margin-bottom: 4px; }
.annotation-text { font-size: 0.8rem; color: var(--text-primary); line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 1100px) { .annotation-panel { display: none; } }
@media (max-width: 768px) { .edit-toolbar { flex-direction: column; align-items: flex-start; } }