* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 320px;
  background: #1a1a2e;
  border-right: 1px solid #2a2a4a;
  padding: 24px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.subtitle {
  color: #888;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

#conversation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation-item {
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #ccc;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.conversation-item:hover {
  background: #2a2a4a;
  border-color: #3a3a5a;
  color: #fff;
}

.conversation-item.active {
  background: #3a3a6a;
  border-color: #5a5a8a;
  color: #fff;
}

.conversation-item .title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}

.conversation-item .date {
  font-size: 0.75rem;
  color: #888;
}

.loading {
  color: #666;
  font-size: 0.875rem;
  padding: 12px;
}

/* Main content */
.content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.conversation {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.no-selection {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-selection.hidden {
  display: none;
}

.placeholder {
  text-align: center;
  color: #666;
}

.placeholder h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #888;
}

.conversation-content {
  max-width: 900px;
  margin: 0 auto;
}

.conversation-content.hidden {
  display: none;
}

.conversation-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a4a;
}

.conversation-header h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.meta {
  color: #888;
  font-size: 0.9rem;
}

/* Messages */
.messages {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.message {
  background: #1a1a2e;
  border-radius: 12px;
  padding: 20px 24px;
  border-left: 4px solid #4a4a8a;
}

.message.claude {
  border-left-color: #d97706;
}

.message.gpt-4, .message.gpt {
  border-left-color: #10b981;
}

.message.gemini {
  border-left-color: #3b82f6;
}

.message.grok {
  border-left-color: #ef4444;
}

.message.consensus {
  background: #1a2e1a;
  border-left-color: #22c55e;
}

.message.error {
  background: #2e1a1a;
  border-left-color: #ef4444;
  opacity: 0.7;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.speaker {
  font-weight: 600;
  font-size: 1rem;
}

.speaker.claude { color: #f59e0b; }
.speaker.gpt-4, .speaker.gpt { color: #34d399; }
.speaker.gemini { color: #60a5fa; }
.speaker.grok { color: #f87171; }
.speaker.consensus { color: #4ade80; }

.round-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #2a2a4a;
  border-radius: 10px;
  color: #888;
}

.message-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d0d0d0;
}

.message-content p {
  margin-bottom: 12px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content strong {
  color: #fff;
}

.message-content ul, .message-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.message-content li {
  margin-bottom: 6px;
}

/* Summary card */
.summary-card {
  margin-top: 40px;
  background: #1a2a3a;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #2a4a6a;
}

.summary-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #fff;
}

#summary-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #b0b0b0;
}

#summary-content strong {
  color: #d0d0d0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: #3a3a5a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a4a6a;
}
