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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 32px;
  width: 100%;
  max-width: 480px;
}

h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #4a90d9;
}

.field textarea {
  resize: vertical;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

#mic-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

#mic-btn:hover {
  border-color: #4a90d9;
}

#mic-btn.active {
  border-color: #e53935;
  background: #ffebee;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
}

#send-btn {
  flex: 1;
  padding: 12px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#send-btn:hover {
  background: #3a7bc8;
}

#send-btn:disabled {
  background: #b0c4de;
  cursor: not-allowed;
}

.status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.status.ok {
  color: #2e7d32;
}

.status.error {
  color: #c62828;
}

.status.info {
  color: #666;
}
