:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #1b1f27;
  --muted: #5d6675;
  --border: #dde1e8;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --danger: #d1343b;
  --ok: #1f8a4c;
  --warn: #b26a00;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #20242d;
    --text: #e8eaef;
    --muted: #9aa3b2;
    --border: #2b303b;
    --accent: #7c74ff;
    --danger: #ff6b70;
    --ok: #4ccb84;
    --warn: #f0b04a;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.top {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--surface);
}
header.top .logo { font-weight: 700; font-size: 18px; letter-spacing: .5px; }
header.top nav { display: flex; gap: 16px; }
header.top nav a { color: var(--muted); text-decoration: none; }
header.top nav a.active, header.top nav a:hover { color: var(--text); }
header.top .user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
button.link { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }

main { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 8px; }
p.lead { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.card .hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.step-no {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-size: 13px; font-weight: 600; margin-right: 8px;
}
blockquote.script {
  margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 6px; font-size: 16px;
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

button, .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer;
}
button:hover:not(:disabled) { filter: brightness(.97); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--danger); }
button.rec { min-width: 140px; justify-content: center; }
button.rec.recording { background: var(--danger); border-color: var(--danger); color: #fff; }
.file-btn input { display: none; }

.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; width: 120px; }
.meter > div { height: 100%; width: 0; background: var(--ok); transition: width .08s; }
.timer { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; }

audio { width: 100%; margin-top: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.err { color: var(--danger); }

.status { font-size: 14px; margin-top: 10px; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.status.busy { color: var(--muted); }

.steps { display: grid; gap: 12px; }
.steps a.card { display: block; color: inherit; text-decoration: none; margin: 0; }
.steps a.card:hover { border-color: var(--accent); }
.steps .card.soon { opacity: .55; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

@media (max-width: 560px) {
  header.top { padding: 12px 16px; gap: 14px; }
  .meter { width: 70px; }
}

/* Duygu kartlarındaki toplantı cümleleri */
.samples { margin-top: 12px; display: grid; gap: 6px; }
.samples-title { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.sample {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
}
.sample .play {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-size: 11px;
}
.sample .txt { flex: 1; font-size: 14px; line-height: 1.45; padding-top: 3px; }
.sample.playing { border-color: var(--accent); }
.sample.loading .play { opacity: .5; }
.sample .meta { font-size: 12px; color: var(--muted); }

/* Giriş ekranı */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin: 8px 0 18px; }
.tab { flex: 1; justify-content: center; border: none; background: none; color: var(--muted); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
button.wide { width: 100%; justify-content: center; }
.user-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.user-item { width: 100%; justify-content: flex-start; text-align: left; gap: 10px; padding: 8px 10px; background: var(--surface); }
.user-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.user-item small { display: block; color: var(--muted); font-size: 12px; }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.divider { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin: 14px 0 10px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Kişilik ve dokümanlar */
.field { margin-bottom: 16px; }
.field textarea { min-height: 110px; }
.doc { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.doc:first-child { border-top: none; }
.doc .name { font-weight: 500; word-break: break-all; }
.doc .meta { font-size: 12px; color: var(--muted); }
.doc.disabled .name { opacity: .5; text-decoration: line-through; }
.usage { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 6px 0 2px; }
.usage > div { height: 100%; background: var(--accent); }
.dropzone { border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; }
.dropzone.over { border-color: var(--accent); color: var(--text); }

/* Toplantı */
.meeting { display: grid; grid-template-rows: 1fr auto; height: calc(100vh - 180px); min-height: 420px; padding: 0; overflow: hidden; }
.transcript { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; background: var(--surface-2); }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; display: flex; gap: 8px; align-items: center; }
.msg.twin { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.msg.silent { align-self: flex-end; background: none; border: 1px dashed var(--border); color: var(--muted); font-size: 13px; font-style: italic; }
.msg.thinking { align-self: flex-end; color: var(--muted); background: none; }
.msg .say { margin-left: auto; }
.composer { border-top: 1px solid var(--border); padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.composer textarea { min-height: 44px; height: 44px; }
.speaker-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
