:root {
  --bg: #0e0f11;
  --panel: #17191c;
  --line: #262a2f;
  --text: #e8eaed;
  --muted: #8b929b;
  --accent: #53fc18;
  --danger: #ff6b6b;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
button, input { font: inherit; }
input {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 9px 11px; min-width: 0;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  background: var(--accent); color: #0b0c0d; border: 0; border-radius: 6px;
  padding: 9px 14px; font-weight: 600; cursor: pointer;
}
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 400; }

/* giriş sayfası */
.home { max-width: 560px; margin: 0 auto; padding: 48px 16px; }
.home h1 { font-size: 22px; margin: 0 0 4px; }
.home p.lead { color: var(--muted); margin: 0 0 28px; }
.home section { margin-bottom: 28px; }
.home h2 { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0 0 10px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 3px 4px 3px 9px; font-size: 13px; display: flex; align-items: center; gap: 4px;
}
.chips.readonly li { padding-right: 9px; color: var(--muted); }
.chips li button { background: none; color: var(--muted); padding: 0 6px; font-weight: 400; }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* chat sayfası */
.chat { display: flex; flex-direction: column; height: 100vh; }
.bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.bar .kanal { font-weight: 600; }
.bar .durum { color: var(--muted); margin-left: auto; }
.bar .durum[data-d="bagli"] { color: var(--accent); }
.bar .durum[data-d="koptu"] { color: var(--danger); }
#mesajlar { flex: 1; overflow-y: auto; padding: 8px 14px; margin: 0; list-style: none; }
#mesajlar li { padding: 3px 0; overflow-wrap: anywhere; }
#mesajlar .ad { font-weight: 600; margin-right: 6px; }
#mesajlar li.gizli { color: var(--muted); font-style: italic; }
.oda { padding: 14px; border-bottom: 1px solid var(--line); }
.oda p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

/* OBS overlay */
body.overlay { background: transparent; }
body.overlay .bar, body.overlay .oda { display: none; }
body.overlay #mesajlar { overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
body.overlay #mesajlar li { text-shadow: 0 1px 2px #000, 0 0 4px #000; font-size: 18px; }
body.overlay #mesajlar li.gizli { color: #c9ced4; }
