/* History */
.history-list { overflow-y: auto; margin-top: 4px; }

#historyTable { width: 100%; border-collapse: collapse; font-size: 0.85rem; table-layout: fixed; }
#historyTable tbody tr { border-bottom: 1px solid #e5e7eb; }
#historyTable tbody tr:last-child { border-bottom: none; }
#historyTable td { padding: 8px 10px; vertical-align: middle; }
#historyTable td.step { width: 5%; color: #6b7280; }
#historyTable td.body { width: 20%; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: clip; }
#historyTable td.origin { width: 20%; text-align: right; }

.history-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 999px; border: 1px solid #e5e7eb; background: #f9fafb; color: #6b7280; }
.history-tag.manual { background: #ecfeff; border-color: #a5f3fc; color: #0369a1; }
.history-tag.mix { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.history-tag.auto-mix { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.history-tag.manual-mix { background: #ecfeff; border-color: #a5f3fc; color: #0369a1; }
.history-tag.auto-step { background: #e0f2fe; border-color: #bfdbfe; color: #1d4ed8; }
.history-tag.auto-solve { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
/* Manual Solve tag style */
.history-tag.manual-solve { background: #e0f2fe; border-color: #93c5fd; color: #1e40af; }

.history-empty { font-size: 0.8rem; color: #9ca3af; margin-top: 4px; }

.status-area { font-size: 0.8rem; color: #6b7280; margin-top: 6px; }
.status-area strong { color: #b91c1c; }
