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

html {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  background: #f5f5f5;
}

body {
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.subtitle {
  font-size: 15px;
  color: #666666;
}

.card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 24px;
}

.card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.text-muted {
  color: #666666;
  font-size: 14px;
  margin-bottom: 20px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

/* Actor Selection */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.actor-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.actor-card:hover {
  border-color: #2563eb;
  background: #f8faff;
}

.actor-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.actor-desc {
  font-size: 13px;
  color: #666666;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2563eb;
  width: 0%;
  transition: width 0.3s ease;
}

/* Interview */
.interview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
}

.btn-text {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
}

.btn-text:hover {
  text-decoration: underline;
}

.conversation-area {
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 4px;
}

.message.ai {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
}

.message.user {
  background: #e8f1ff;
  border: 1px solid #c5deff;
  margin-left: 40px;
}

.message-label {
  font-size: 12px;
  font-weight: 600;
  color: #666666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message-text {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
}

.input-area {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  resize: vertical;
  margin-bottom: 12px;
}

textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #2563eb20;
}

.input-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid #e0e0e0;
  background: #ffffff;
}

.btn:hover {
  background: #f5f5f5;
}

.btn-primary {
  background: #2563eb;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* Summary */
.summary-content {
  margin-bottom: 24px;
}

.summary-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.summary-section p {
  font-size: 14px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.summary-list {
  list-style: none;
  padding-left: 0;
}

.summary-list li {
  font-size: 14px;
  color: #333333;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 16px 12px;
  }
  
  .actor-grid {
    grid-template-columns: 1fr;
  }
  
  .message.user {
    margin-left: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}