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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 14px;
}

.app {
  padding: 16px;
  max-width: 100%;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.section {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #0071e3;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.row {
  display: flex;
  gap: 10px;
}

.row > * {
  flex: 1;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 10px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #0071e3;
  color: #fff;
}

.btn-secondary {
  background: #e8e8ed;
  color: #1d1d1f;
}

.btn-warning {
  background: #ff9500;
  color: #fff;
}

.message {
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f7;
  margin-bottom: 12px;
  white-space: pre-wrap;
  font-size: 13px;
}

.message.error {
  background: #fff2f2;
  color: #ff3b30;
}

.progress {
  font-size: 12px;
  color: #86868b;
  text-align: center;
  margin-bottom: 12px;
}

.results {
  margin-top: 16px;
}

.results h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.result-item {
  padding: 10px;
  border-radius: 8px;
  background: #f5f5f7;
  margin-bottom: 8px;
  font-size: 13px;
}

.result-item .original {
  color: #ff3b30;
  text-decoration: line-through;
}

.result-item .suggestion {
  color: #34c759;
  margin: 4px 0;
}

.result-item .reason {
  color: #86868b;
  font-size: 12px;
}
