:root {
  --bg: #0f1720;
  --card-bg: #1b2836;
  --text: #eef2f6;
  --hint: #9aa9b8;
  --accent: #2fa36b;
  --accent-hover: #278a5a;
  --error: #d9534f;
  --border: #2c3b4c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.card.error { border-color: var(--error); }

h1 { font-size: 1.4rem; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }

.hint { color: var(--hint); font-size: 0.9rem; }

.status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status { margin: 0; }

button {
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button.primary {
  background: var(--accent);
  color: white;
  width: 100%;
  margin: 8px 0;
}
button.primary:hover { background: var(--accent-hover); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.primary.recording { background: var(--error); }

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.choice-row { display: flex; gap: 8px; }
.choice-row button { flex: 1; }

.hidden, .hidden-input { display: none !important; }

.preview img, .preview audio { width: 100%; margin: 12px 0; border-radius: 8px; }

.success { color: var(--accent); font-weight: 600; }
.error-text { color: var(--error); }

.task-body { margin-top: 8px; }
