* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  background: #0f1115; color: #e8eaed; margin: 0; line-height: 1.5;
}
body.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; background: #1a1d24; border-bottom: 1px solid #2a2e38;
}
header h1 { font-size: 1.1rem; margin: 0; }
main { max-width: 760px; margin: 0 auto; padding: 1.5rem; display: grid; gap: 1rem; }
.card {
  background: #1a1d24; border: 1px solid #2a2e38; border-radius: 12px;
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.card h1, .card h2 { margin: 0 0 0.5rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: #b8bcc4; }
input, select, textarea {
  background: #0f1115; color: #e8eaed; border: 1px solid #2a2e38; border-radius: 8px;
  padding: 0.6rem 0.75rem; font-size: 0.95rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #4a8eff; }
button, .btn {
  background: #4a8eff; color: white; border: 0; border-radius: 8px;
  padding: 0.65rem 1rem; font-size: 0.95rem; cursor: pointer;
  text-decoration: none; display: inline-block; text-align: center;
}
button:hover, .btn:hover { background: #3a7eef; }
button.link { background: transparent; color: #b8bcc4; padding: 0.3rem 0.6rem; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.danger { background: #c74040; }
button.secondary { background: #2a2e38; }
.account-row {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0;
  border-bottom: 1px solid #2a2e38;
}
.account-row img { width: 28px; height: 28px; border-radius: 50%; }
.account-row .email { flex: 1; font-size: 0.9rem; }
.candidate {
  border: 1px solid #2a2e38; border-radius: 8px; padding: 1rem; margin: 0.5rem 0;
  list-style: none;
}
.candidate .text { white-space: pre-wrap; margin-bottom: 0.5rem; }
.candidate .style { font-size: 0.8rem; color: #888; margin-bottom: 0.6rem; }
.candidate-actions { display: flex; gap: 0.5rem; }
#video-info {
  font-size: 0.85rem; color: #b8bcc4; padding: 0.6rem; background: #0f1115;
  border-radius: 6px; margin-bottom: 0.75rem;
}
#status { font-size: 0.85rem; color: #b8bcc4; min-height: 1.2em; }
#status.error { color: #ff6b6b; }
#status.success { color: #51cf66; }
ol { padding: 0; margin: 0; }

.prompt-item {
  border: 1px solid #2a2e38; border-radius: 8px; padding: 0.75rem;
  margin-bottom: 0.5rem; background: #0f1115;
}
.prompt-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.4rem; gap: 0.4rem;
}
.prompt-head button { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.prompt-body {
  font-size: 0.85rem; color: #b8bcc4; white-space: pre-wrap;
  background: #1a1d24; padding: 0.5rem; border-radius: 6px;
}
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
