:root {
  --bg: #0b1220;
  --card: #14171f;
  --line: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #16a34a;
  --green-dark: #15803d;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --cyan: #38bdf8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.shell {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.logout {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.logout:hover {
  color: var(--text);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-form button:hover {
  background: #e5e5e5;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
}

.eyebrow {
  margin: 0;
  color: #a1a1aa;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 2px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.card, .transcript {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.lede {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field-span {
  grid-column: 1 / -1;
}

input, select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  color: var(--text);
  font-size: 14px;
}

select {
  width: 100%;
}

input:focus, select:focus {
  outline: 2px solid #0369a1;
  outline-offset: 1px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 16px;
}

.orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #64748b;
  flex: 0 0 16px;
}

.orb.listening { background: var(--cyan); box-shadow: 0 0 12px #38bdf8; }
.orb.speaking { background: var(--green); box-shadow: 0 0 12px #16a34a; }
.orb.busy { background: #f59e0b; }
.orb.preparing { background: #a855f7; box-shadow: 0 0 12px #a855f7; }

.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.provider-pills button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.provider-pills button.on {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

#status {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

#toggle {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#toggle:hover { background: var(--green-dark); }
#toggle.active { background: var(--red); }
#toggle.active:hover { background: var(--red-dark); }
#toggle:disabled { opacity: 0.55; cursor: wait; }

.error {
  margin: 12px 0 0;
  color: #fca5a5;
  font-size: 13px;
}

.transcript {
  margin-top: 14px;
}

.transcript h2 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

#lines:empty::after {
  content: "Henüz satır yok.";
  color: #64748b;
  font-size: 14px;
}

#lines li {
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 14px;
}

#lines .you { background: #0f172a; color: #e2e8f0; }
#lines .agent { background: #13251b; color: #bbf7d0; }

@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .shell { padding-top: 22px; }
}
