* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
body { background: #121212; color: #eee; }

header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; border-bottom: 1px solid #2a2a2d;
}
.brand { font-weight: 700; color: #22d3ee; font-size: 18px; }
.hidden { display: none !important; }

main { padding: 24px 16px; max-width: 700px; margin: 0 auto; }

.card {
  background: #1c1c1e; border: 1px solid #2a2a2d; border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
}
.card h2 { font-size: 15px; margin-bottom: 10px; color: #22d3ee; }
button.small { padding: 4px 10px; font-size: 11px; margin-left: 8px; }
.hint { font-size: 13px; color: #999; line-height: 1.5; margin-bottom: 12px; }
.hint-inline { font-size: 11px; color: #777; }

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; padding: 10px; margin-bottom: 12px; background: #262629;
  border: 1px solid #3a3a3d; border-radius: 8px; color: #eee; font-size: 14px; resize: vertical;
}

button {
  background: #22d3ee; color: #06222a; border: none; padding: 10px 18px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px; width: 100%;
}
button.small, button.secondary { width: auto; }
button:hover { background: #4ee0f5; }
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: #333; color: #ddd; }
button.secondary:hover { background: #444; }

.voice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.voice-chip {
  background: #262629; border: 1px solid #3a3a3d; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; color: #ccc;
}

.progress {
  background: #262629; border-radius: 8px; padding: 10px; font-size: 12px;
  color: #22d3ee; margin: 12px 0; max-height: 140px; overflow-y: auto;
}

.file-label { display: block; margin-bottom: 12px; font-size: 12px; color: #999; }
.file-label input { display: block; margin-top: 4px; width: 100%; color: #ccc; font-size: 12px; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 60;
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: #1c1c1e; padding: 28px; border-radius: 12px; width: 340px; max-width: 90vw;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-box h3 { margin-bottom: 18px; font-size: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

.auth-overlay {
  position: fixed; inset: 0; background: #121212; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.auth-box {
  background: #1c1c1e; border: 1px solid #2a2a2d; border-radius: 12px;
  padding: 28px; width: 360px; max-width: 100%;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab { flex: 1; background: #262629; color: #999; border: 1px solid #3a3a3d; }
.auth-tab.active { background: #22d3ee; color: #06222a; }
.divider { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin: 14px 0 8px; }

.header-right { display: flex; align-items: center; gap: 12px; }
.user-info { display: flex; align-items: center; }
.user-email { font-size: 13px; color: #eee; font-weight: 600; }
.logout-btn { background: #333; color: #ddd; padding: 6px 12px; font-size: 12px; width: auto; }
.logout-btn:hover { background: #444; }

.usage-bar-track {
  background: #262629; border-radius: 20px; height: 14px; overflow: hidden;
}
.usage-bar-fill {
  height: 100%; background: #22d3ee; border-radius: 20px; transition: width 0.3s;
}
.usage-bar-fill.warn { background: #fbbf24; }
.usage-bar-fill.danger { background: #ff6b6b; }

.toggle-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ccc;
  margin-bottom: 14px; cursor: pointer;
}
.toggle-row input { width: auto; margin: 0; }

.jobs-list { display: flex; flex-direction: column; gap: 8px; }
.job-row {
  background: #262629; border: 1px solid #3a3a3d; border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
}
.job-info { display: flex; justify-content: space-between; align-items: center; }
.job-status { font-weight: 600; }
.job-status.ok { color: #4ade80; }
.job-status.danger { color: #ff6b6b; }
.job-status.pending { color: #fbbf24; }
.job-chars { color: #888; font-size: 12px; }
.job-download {
  display: inline-block; margin-top: 6px; color: #22d3ee; font-size: 12px; text-decoration: none;
}
.job-download:hover { text-decoration: underline; }
.job-error { color: #ff6b6b; font-size: 12px; margin-top: 4px; }
