/* ==========================================================================
   Devora — tasarım sistemi
   Sade, tipografi odaklı; tek vurgu rengi, ince çizgiler, bol boşluk.
   ========================================================================== */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f2f5;
  --surface-3: #e8eaef;
  --rail: #eceef2;
  --line: #e4e6eb;
  --line-strong: #d3d7de;
  --text: #0f1216;
  --text-2: #3f4652;
  --muted: #7b8392;
  --accent: #4053d6;
  --accent-hover: #3242b8;
  --accent-soft: rgba(64, 83, 214, 0.09);
  --accent-text: #ffffff;
  --green: #12a150;
  --green-soft: rgba(18, 161, 80, 0.12);
  --red: #d93636;
  --red-soft: rgba(217, 54, 54, 0.1);
  --amber: #c27803;
  --code-bg: #f6f7f9;
  --tk-k: #8b3fd1; --tk-s: #0f7a3d; --tk-n: #b45309; --tk-c: #8a919e; --tk-f: #2d5bd7; --tk-t: #b42f6c;
  --shadow-sm: 0 1px 2px rgba(15, 18, 22, 0.05);
  --shadow: 0 1px 2px rgba(15, 18, 22, 0.04), 0 8px 24px -8px rgba(15, 18, 22, 0.1);
  --shadow-lg: 0 24px 60px -12px rgba(15, 18, 22, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f12; --surface: #15171b; --surface-2: #1b1e23; --surface-3: #23272e; --rail: #0a0b0d;
    --line: #23262d; --line-strong: #2f343c; --text: #eceef1; --text-2: #b9bfc9; --muted: #7c8491;
    --accent: #7d8bff; --accent-hover: #929eff; --accent-soft: rgba(125, 139, 255, 0.13); --accent-text: #0d0f1a;
    --green: #34c472; --green-soft: rgba(52, 196, 114, 0.14); --red: #f05252; --red-soft: rgba(240, 82, 82, 0.13); --amber: #f0a73a;
    --code-bg: #101215;
    --tk-k: #c792ea; --tk-s: #a5d68a; --tk-n: #f2a65a; --tk-c: #6b7380; --tk-f: #82aaff; --tk-t: #f78c9b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f12; --surface: #15171b; --surface-2: #1b1e23; --surface-3: #23272e; --rail: #0a0b0d;
  --line: #23262d; --line-strong: #2f343c; --text: #eceef1; --text-2: #b9bfc9; --muted: #7c8491;
  --accent: #7d8bff; --accent-hover: #929eff; --accent-soft: rgba(125, 139, 255, 0.13); --accent-text: #0d0f1a;
  --green: #34c472; --green-soft: rgba(52, 196, 114, 0.14); --red: #f05252; --red-soft: rgba(240, 82, 82, 0.13); --amber: #f0a73a;
  --code-bg: #101215;
  --tk-k: #c792ea; --tk-s: #a5d68a; --tk-n: #f2a65a; --tk-c: #6b7380; --tk-f: #82aaff; --tk-t: #f78c9b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ic { display: inline-flex; flex: none; }
.ic svg { display: block; }
.boot { height: 100vh; display: grid; place-items: center; }

/* ---------------------------------------------------------------- Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--text); color: var(--surface); }
.btn.primary:hover { background: var(--text-2); }
.btn.ghost { border-color: var(--line-strong); background: var(--surface); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn.block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); flex: none;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.sm { width: 22px; height: 22px; border-radius: 6px; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn.off { color: var(--red); }
.icon-btn.danger-ghost:hover { color: var(--red); background: var(--red-soft); }
.icon-btn.recording { color: var(--red); background: var(--red-soft); animation: pulse 1.4s infinite; }

/* ---------------------------------------------------------------- Form */
.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.mono { font-family: var(--mono); font-size: 12.5px; }
.input::placeholder, textarea::placeholder { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field-hint { font-size: 12px; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-error { color: var(--red); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .input { height: 36px; }

.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; gap: 2px; border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); transition: all .15s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button:hover:not(.on) { color: var(--text); }

.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.switch { flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; margin-top: 1px; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + .switch { background: var(--green); }
.toggle input:checked + .switch::after { transform: translateX(16px); }
.toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Avatar & rozet */
.av {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 650;
  width: 36px; height: 36px; font-size: 13px; letter-spacing: .02em; user-select: none;
}
.av-xs { width: 20px; height: 20px; font-size: 8.5px; }
.av-sm { width: 28px; height: 28px; font-size: 10.5px; }
.av-md { width: 36px; height: 36px; font-size: 13px; }
.av-lg { width: 48px; height: 48px; font-size: 16px; }
.av-xl { width: 72px; height: 72px; font-size: 24px; }
.av-xxl { width: 112px; height: 112px; font-size: 38px; box-shadow: 0 0 0 4px var(--surface); }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.status { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 2.5px var(--surface); }
.status.on { background: var(--green); }
.status.lg { width: 20px; height: 20px; right: 6px; bottom: 6px; box-shadow: 0 0 0 4px var(--surface); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green { background: var(--green-soft); color: var(--green); }
.otw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: 6px; vertical-align: middle; }
.badge .otw { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.live-pill { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 4px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; }

/* ---------------------------------------------------------------- Giriş */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-brand { padding: 64px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 28px; background: var(--surface); border-right: 1px solid var(--line); }
.auth-brand h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 750; }
.accent { color: var(--accent); }
.auth-lead { font-size: 16.5px; color: var(--text-2); max-width: 520px; line-height: 1.6; }
.auth-features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; max-width: 520px; }
.auth-features li { display: flex; gap: 14px; align-items: flex-start; }
.auth-features .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.auth-features div { display: flex; flex-direction: column; gap: 2px; }
.auth-features span { color: var(--muted); font-size: 13.5px; }
.auth-card-wrap { display: grid; place-items: center; padding: 32px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 6px; }
.auth-card h2 { font-size: 26px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.auth-form .seg { align-self: flex-start; }
.auth-extra { display: flex; flex-direction: column; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.logo.lg { font-size: 22px; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; }
.logo.lg .logo-mark { width: 38px; height: 38px; border-radius: 11px; }

/* ---------------------------------------------------------------- İskelet */
.app { display: grid; grid-template-columns: 68px 252px minmax(0, 1fr) 280px; height: 100vh; height: 100dvh; overflow: hidden; }
.app:has(> .aside[hidden]) { grid-template-columns: 68px 252px minmax(0, 1fr); }
.scrim { display: none; }

.rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.rail-item {
  position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--c, var(--surface)); color: #fff; font-weight: 700; font-size: 14px; transition: border-radius .2s, transform .1s;
}
.rail-item.home { background: var(--accent); }
.rail-item.add { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); }
.rail-item.add:hover, .rail-item.add.active { color: var(--accent); border-color: var(--accent); }
.rail-item:hover, .rail-item.active { border-radius: 12px; }
.rail-item::before { content: ""; position: absolute; left: -12px; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--text); transition: height .2s; }
.rail-item:hover::before { height: 16px; }
.rail-item.active::before { height: 32px; }
.rail-item.unread::after { content: ""; position: absolute; right: -2px; top: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2.5px var(--rail); }
.rail-sep { width: 28px; height: 1px; background: var(--line-strong); margin: 2px 0; flex: none; }

.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side-body { flex: 1; overflow-y: auto; padding: 0 10px 12px; min-height: 0; }
.side-head { height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border-bottom: 1px solid var(--line); margin: 0 -10px 10px; padding: 0 12px 0 16px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.side-title { flex: 1; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-desc { font-size: 12.5px; color: var(--muted); padding: 0 6px 6px; }
.side-section { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; }
.nav-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--text); font-weight: 650; }
.nav-link.active .ic { color: var(--accent); }
.mini-badge { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 9.5px; font-weight: 700; flex: none; }

.channels { display: flex; flex-direction: column; gap: 1px; }
.ch { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; border-radius: 7px; color: var(--muted); font-weight: 500; position: relative; }
.ch:hover { background: var(--surface-2); color: var(--text-2); }
.ch.active { background: var(--surface-3); color: var(--text); }
.ch.unread { color: var(--text); font-weight: 650; }
.ch.unread::before { content: ""; position: absolute; left: -10px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--text); }
.ch.connected { color: var(--green); }
.ch-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-count { font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.ch-del { display: none; color: var(--muted); padding: 2px; border-radius: 4px; }
.ch-del:hover { color: var(--red); }
.ch:hover .ch-del { display: inline-grid; }
.vch-users { display: flex; flex-direction: column; padding: 2px 0 6px 30px; gap: 1px; }
.vch-user { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border-radius: 6px; font-size: 13px; color: var(--text-2); }
.vch-user .ic { color: var(--muted); }
.vch-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vch-user .av { transition: box-shadow .15s; }
.vch-user.speaking .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--green); }

.voice-panel { border-top: 1px solid var(--line); padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.vp-top { display: flex; align-items: center; gap: 6px; }
.vp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vp-status { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 13px; }
.vp-ch { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-info:hover .vp-ch { text-decoration: underline; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.vp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vp-btn { height: 32px; border-radius: 8px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.vp-btn:hover { background: var(--surface-3); color: var(--text); }
.vp-btn.on { background: var(--green-soft); color: var(--green); }

.user-panel { border-top: 1px solid var(--line); padding: 8px 8px 8px 10px; display: flex; align-items: center; gap: 2px; background: var(--surface-2); }
.up-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 4px; border-radius: 8px; }
.up-me:hover { background: var(--surface-3); }
.up-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.up-names strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-names span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.mobile-bar { display: none; }
.view { flex: 1; overflow-y: auto; min-height: 0; }
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }

.aside { background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: 14px 12px; }
.aside-title { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px 6px; }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.member:hover { background: var(--surface-2); }
.member.offline { opacity: .5; }
.member-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.member-name { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.member-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.suggest { display: flex; flex-direction: column; gap: 4px; }
.person-card { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; }
.person-card:hover { background: var(--surface-2); }
.person-card-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.person-card-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.person-card-text strong { font-size: 13.5px; }
.person-card-text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aside-foot { padding: 12px 8px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------- Sayfalar */
.page { max-width: 1040px; margin: 0 auto; padding: 28px 28px 80px; }
.page.narrow { max-width: 680px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 750; }
.section-title { font-size: 16px; margin: 32px 0 4px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 14px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 16px; margin-bottom: 12px; }
.card.form h2 { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.prose { color: var(--text-2); line-height: 1.65; white-space: pre-line; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.empty strong { color: var(--text); font-size: 15px; }
.empty p { max-width: 380px; }
.loading { display: grid; place-items: center; padding: 32px; }
.spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); animation: spin .7s linear infinite; vertical-align: middle; }
.spin.sm { width: 12px; height: 12px; border-width: 2px; }
.more { min-height: 1px; }
.save-bar { display: flex; justify-content: flex-end; margin-top: 14px; }
.hint-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-style: dashed; }

/* ---------------------------------------------------------------- Akış (Threads tarzı) */
.composer-card { display: flex; gap: 12px; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.composer-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.composer-name { font-weight: 650; font-size: 14px; }
.composer-ta { width: 100%; border: 0; outline: none; background: none; resize: none; padding: 2px 0; line-height: 1.55; font-size: 15px; min-height: 48px; }
.composer-tools { display: flex; align-items: center; gap: 2px; margin-top: 6px; }
.composer-hint { margin-left: auto; margin-right: 10px; font-size: 12px; color: var(--muted); }
.attachments { display: flex; gap: 8px; flex-wrap: wrap; }
.attachments:empty { display: none; }
.att { position: relative; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.att.video { width: 200px; height: 120px; }
.att img, .att video { width: 100%; height: 100%; object-fit: cover; }
.att .progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; }
.att .bar { display: block; height: 100%; width: 0; background: #fff; transition: width .2s; }
.att.done .progress { display: none; }
.att-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; }
.att-x:hover { background: rgba(0,0,0,.8); color: #fff; }
.att-x svg { width: 14px; height: 14px; }
.rec-status { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--red); padding: 6px 0; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }

.posts { display: flex; flex-direction: column; margin-top: 8px; }
.post { display: flex; gap: 12px; padding: 18px 4px 14px; border-bottom: 1px solid var(--line); }
.post-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.post-line { flex: 1; width: 2px; background: var(--line); border-radius: 2px; display: none; }
.post.threaded .post-line { display: block; }
.post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.post-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.post-author { font-weight: 650; }
.post-author:hover { text-decoration: underline; }
.post-handle { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.post-time::before { content: "·"; margin-right: 6px; }
a.post-time:hover { text-decoration: underline; }
.post-menu { margin-left: auto; width: 28px; height: 28px; opacity: 0; }
.post:hover .post-menu, .post-menu:focus-visible { opacity: 1; }
.post-headline { font-size: 12.5px; color: var(--muted); margin-top: -3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-body { font-size: 15px; line-height: 1.6; margin-top: 2px; }
.post-media { margin-top: 8px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.post-media.video video { width: 100%; max-height: 520px; background: #000; }
.post-media.grid { display: grid; gap: 2px; }
.post-media.g2, .post-media.g4 { grid-template-columns: 1fr 1fr; }
.post-media.g3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media.g3 a:first-child { grid-row: span 2; }
.post-media img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.post-media.g2 img, .post-media.g3 img, .post-media.g4 img { aspect-ratio: 4 / 3; }
.post-actions { display: flex; gap: 6px; margin-top: 8px; margin-left: -8px; }
.act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act.like.on { color: var(--red); }
.act.like.on svg { fill: currentColor; }
.thread { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.reply { display: flex; gap: 10px; align-items: flex-start; padding-top: 8px; }
.reply-input { flex: 1; border: 1px solid var(--line-strong); border-radius: 18px; padding: 7px 14px; background: var(--surface); outline: none; resize: none; line-height: 1.45; min-height: 36px; }
.reply-input:focus { border-color: var(--accent); }

/* ---------------------------------------------------------------- Markdown & kod */
.md { overflow-wrap: anywhere; }
.md a { color: var(--accent); }
.md a:hover { text-decoration: underline; }
.md code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.md blockquote { margin: 2px 0; padding-left: 12px; border-left: 3px solid var(--line-strong); color: var(--text-2); }
.md .li { display: block; padding-left: 16px; position: relative; }
.md .li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.md .mention { font-weight: 600; background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.md .tag { color: var(--accent); font-weight: 500; }
.code { margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--code-bg); }
.code-h { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.code-copy { font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 3px 8px; border-radius: 6px; }
.code-copy:hover { background: var(--surface-3); color: var(--text); }
.code pre { margin: 0; padding: 12px 14px; overflow-x: auto; font-size: 12.8px; line-height: 1.6; tab-size: 2; }
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.tk-k { color: var(--tk-k); } .tk-s { color: var(--tk-s); } .tk-n { color: var(--tk-n); }
.tk-c { color: var(--tk-c); font-style: italic; } .tk-f { color: var(--tk-f); } .tk-t { color: var(--tk-t); }

/* ---------------------------------------------------------------- Keşfet */
.block { margin-top: 8px; margin-bottom: 36px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { font-size: 17px; }
.search { height: 44px; border-radius: 999px; padding: 0 18px; margin-bottom: 16px; background: var(--surface); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dev-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, box-shadow .15s; }
.dev-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.dev-card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dev-card-top > div { min-width: 0; display: flex; flex-direction: column; }
.dev-card-top .small { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dev-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.community-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.community-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.community-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.community-text p { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- Profil */
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cover { height: 132px; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 35%, #0b0d12)); }
.profile-body { padding: 0 24px 22px; }
.profile-top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -56px; }
.profile-actions { display: flex; gap: 8px; padding-bottom: 6px; }
.profile-name { font-size: 26px; font-weight: 750; margin-top: 12px; }
.profile-handle { color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-headline { font-size: 16px; color: var(--text); margin-top: 10px; line-height: 1.45; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.profile-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta a:hover { color: var(--accent); }
.profile-stats { display: flex; gap: 20px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.profile-stats strong { color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.timeline li { display: flex; gap: 14px; }
.tl-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: none; }
.timeline .prose { margin-top: 6px; }

/* ---------------------------------------------------------------- Ayarlar */
.exp-list { display: flex; flex-direction: column; gap: 14px; }
.exp-list:empty::before { content: "Henüz deneyim eklemedin."; color: var(--muted); font-size: 13.5px; }
.exp-row { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.exp-row .btn { align-self: flex-start; }

/* ---------------------------------------------------------------- Modal */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); }
.modal::backdrop { background: rgba(10, 12, 16, 0.5); backdrop-filter: blur(2px); }
.modal-inner { width: 460px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; box-shadow: var(--shadow-lg); }
.modal.wide .modal-inner { width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 18px; }
.modal-text { color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* ---------------------------------------------------------------- Metin kanalı */
.chat { height: 100%; display: flex; flex-direction: column; }
.chat-head { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.chat-head strong { color: var(--text); font-size: 15px; }
.chat-topic { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line-strong); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 0 8px; overscroll-behavior: contain; }
.chat-start { padding: 24px 20px 16px; }
.chat-start strong { font-size: 20px; }
.msg { position: relative; display: flex; gap: 14px; padding: 6px 56px 2px 20px; margin-top: 10px; }
.msg.compact { margin-top: 0; padding-top: 1px; }
.msg:hover { background: var(--surface-2); }
.msg-gutter { width: 36px; flex: none; font-size: 10.5px; color: transparent; text-align: right; padding-top: 3px; }
.msg.compact:hover .msg-gutter { color: var(--muted); }
.msg-main { flex: 1; min-width: 0; line-height: 1.55; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-author { font-weight: 650; }
.msg-author:hover { text-decoration: underline; }
.msg-headline { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.msg-time { font-size: 11.5px; color: var(--muted); }
.msg-del { position: absolute; right: 16px; top: 4px; opacity: 0; width: 28px; height: 28px; background: var(--surface); border: 1px solid var(--line); }
.msg:hover .msg-del { opacity: 1; }
.msg-del:hover { color: var(--red); }
.chat-compose { padding: 0 20px 14px; flex: none; }
.chat-box { display: flex; align-items: flex-end; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 6px 6px 14px; transition: border-color .15s, box-shadow .15s; }
.chat-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-input { flex: 1; border: 0; outline: none; resize: none; background: none; padding: 6px 0; line-height: 1.5; max-height: 300px; }
.chat-foot { display: flex; justify-content: space-between; gap: 12px; height: 22px; align-items: center; padding: 0 4px; }
.typing { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

/* ---------------------------------------------------------------- Ses sahnesi */
.stage-join { margin: auto; max-width: 440px; padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage-join-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stage-join h2 { font-size: 22px; }
.stage-join-people { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.stage-join-people .av { box-shadow: 0 0 0 2px var(--bg); margin-left: -8px; }
.stage-join-people .muted { margin-left: 8px; }
.stage-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
.stage-head { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.stage-stats { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.stage-body { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.stage-screens { flex: 1; min-height: 240px; display: grid; gap: 12px; }
.stage-screens.n2 { grid-template-columns: 1fr 1fr; }
.stage-screens.n3, .stage-screens.n4 { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
.tile { position: relative; border-radius: 14px; overflow: hidden; background: #0b0c0f; min-height: 200px; }
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tile:fullscreen { border-radius: 0; }
.screen-tile.idle, .screen-tile.own { background: var(--surface); border: 1px dashed var(--line-strong); display: grid; place-items: center; }
.idle-body { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; color: var(--text-2); }
.idle-body > .ic { color: var(--muted); }
.tile-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-bar, .tile:focus-within .tile-bar { opacity: 1; }
.tile-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.tile-actions { display: flex; gap: 4px; }
.tile-actions .icon-btn { color: #fff; background: rgba(255,255,255,.12); }
.tile-actions .icon-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

.stage-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-content: start; }
.stage-people.strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 180px; overflow-x: auto; flex: none; padding-bottom: 4px; }
.person {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; transition: box-shadow .15s, border-color .15s;
}
.person.speaking { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.person video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person video.mirror { transform: scaleX(-1); }
.person-name { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 7px; background: rgba(15, 18, 22, 0.62); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.person-name .ic { color: #ff8a8a; }
.cam-btn { position: absolute; top: 8px; right: 8px; }
.cam-hide { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.5); color: #fff; opacity: 0; }
.person:hover .cam-hide { opacity: 1; }
.vol { position: absolute; right: 10px; bottom: 12px; width: 70px; opacity: 0; transition: opacity .15s; accent-color: var(--green); }
.person:hover .vol { opacity: 1; }

.stage-controls { flex: none; display: flex; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); }
.ctrl { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); transition: background .15s, transform .05s; }
.ctrl:hover { background: var(--surface-3); }
.ctrl:active { transform: scale(.96); }
.ctrl.off { background: var(--red-soft); color: var(--red); border-color: transparent; }
.ctrl.on { background: var(--green-soft); color: var(--green); border-color: transparent; }
.ctrl.leave { background: var(--red); color: #fff; border-color: transparent; width: 64px; border-radius: 999px; }
.ctrl.leave:hover { filter: brightness(1.08); }

/* ---------------------------------------------------------------- Bildirimler */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; transition: opacity .3s, transform .3s; }
.toast.err { background: var(--red); color: #fff; }
.toast.ok { background: var(--green); color: #fff; }
.toast.warn { background: var(--amber); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- Duyarlı */
@media (max-width: 1200px) {
  .app, .app:has(> .aside[hidden]) { grid-template-columns: 68px 240px minmax(0, 1fr); }
  .aside { display: none; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 40px 24px 8px; border: 0; background: transparent; gap: 18px; }
  .auth-brand h1 { font-size: 34px; }
  .auth-features { display: none; }
  .auth-card-wrap { padding: 24px; place-items: start center; }
}
@media (max-width: 760px) {
  .app, .app:has(> .aside[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .rail, .side { position: fixed; top: 0; bottom: 0; z-index: 30; transition: transform .22s ease; }
  .rail { left: 0; width: 68px; transform: translateX(-100%); }
  .side { left: 68px; width: min(280px, calc(100vw - 88px)); transform: translateX(calc(-100% - 68px)); }
  .app.nav-open .rail, .app.nav-open .side { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20; }
  .mobile-bar { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
  .page { padding: 18px 16px 64px; }
  .grid2 { grid-template-columns: 1fr; }
  .composer-hint { display: none; }
  .composer-tools .btn { margin-left: auto; }
  .msg { padding-right: 16px; padding-left: 12px; }
  .chat-head, .stage-head { padding: 0 14px; }
  .chat-compose { padding: 0 12px 12px; }
  .stage-stats { display: none; }
  .stage-screens.n2, .stage-screens.n3, .stage-screens.n4 { grid-template-columns: 1fr; }
  .stage-people { grid-template-columns: repeat(2, 1fr); }
  .profile-body { padding: 0 16px 18px; }
  .av-xxl { width: 88px; height: 88px; font-size: 30px; }
  .profile-top { margin-top: -44px; }
  .inline-form { flex-wrap: wrap; }
  .block-head .inline-form .input { flex: 1 1 100%; }
  .tile-bar, .post-menu, .msg-del, .vol { opacity: 1; }
}

/* ==========================================================================
   v2 — özel mesajlar, bildirimler, sohbet geliştirmeleri, projeler, ses düzeltmeleri
   ========================================================================== */
.spacer { flex: 1; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.link-btn { color: var(--accent); font-weight: 600; font-size: 12px; }
.link-btn:hover { text-decoration: underline; }
.count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-link .count { flex: none; }
.nav-link.unread { color: var(--text); font-weight: 650; }
.dm-link { height: 36px; }
.status.sm { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--surface); }
.live-pill.green { background: var(--green); margin-left: auto; }
.chip.sm { height: 22px; font-size: 11.5px; padding: 0 8px; }
.toast.clickable { cursor: pointer; text-align: left; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: auto; }
.toast.clickable:hover { filter: brightness(1.1); }
.warn-text { color: var(--amber); font-size: 13px; max-width: 360px; }
.tech-detail { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); line-height: 1.5; }
.steps li::marker { color: var(--accent); font-weight: 700; }

/* ---- Sohbet geliştirmeleri */
.msg { flex-direction: column; gap: 0; padding: 4px 120px 2px 20px; }
.msg-row { display: flex; gap: 14px; }
.msg.compact { margin-top: 0; }
.msg.mentioned { background: color-mix(in srgb, var(--amber) 9%, transparent); box-shadow: inset 2px 0 0 var(--amber); }
.msg-body { min-width: 0; }
.edited { display: inline-block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.msg-reply { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px 18px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-reply strong { color: var(--text-2); font-weight: 600; }
.reply-curve { width: 26px; height: 10px; border-left: 2px solid var(--line-strong); border-top: 2px solid var(--line-strong); border-top-left-radius: 6px; margin-top: 8px; flex: none; }
.msg-tools { position: absolute; right: 16px; top: -14px; display: none; gap: 2px; padding: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 2; }
.msg-tools .icon-btn { width: 30px; height: 30px; }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { display: flex; }
.emoji-pop { position: absolute; right: 16px; top: 22px; display: grid; grid-template-columns: repeat(5, 36px); gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 5; }
.emoji-pop button { height: 36px; border-radius: 8px; font-size: 18px; }
.emoji-pop button:hover { background: var(--surface-2); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.reaction span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.reaction:hover { border-color: var(--line-strong); }
.reaction.me { background: var(--accent-soft); border-color: var(--accent); }
.reaction.me span { color: var(--accent); }
.msg-media { max-width: 420px; margin-top: 6px; }
.msg-media.video video { max-height: 320px; }
.edit-box { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.edit-input { width: 100%; border: 1px solid var(--accent); border-radius: 8px; padding: 8px 10px; background: var(--surface); outline: none; resize: none; line-height: 1.5; box-shadow: 0 0 0 3px var(--accent-soft); }
.edit-hint { font-size: 11.5px; color: var(--muted); }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 18px 20px 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat-start { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.reply-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: -4px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.reply-bar strong { color: var(--text); }
.reply-snippet { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-att { padding: 8px 0; }
.chat-box > .icon-btn:first-child { margin-left: -8px; }
.chat-head .btn { flex: none; }
.btn.call-on { background: var(--green); color: #fff; }
.call-banner { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 13.5px; }
.call-banner .btn { margin-left: auto; }

/* ---- Özel mesaj listesi */
.card.flush { padding: 0; overflow: hidden; }
.dm-search { display: flex; flex-direction: column; gap: 2px; margin: -6px 0 16px; }
.dm-search:empty { display: none; }
.dm-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; width: 100%; border-bottom: 1px solid var(--line); }
.dm-row:last-child { border-bottom: 0; }
.dm-row:hover { background: var(--surface-2); }
.dm-search .dm-row { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.dm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-text > span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-top { display: flex; justify-content: space-between; gap: 8px; }
.dm-row.unread .dm-text > span { color: var(--text); font-weight: 600; }
.dm-profile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-bottom: 12px; margin: -14px -12px 0; }
.dm-profile .dm-cover { align-self: stretch; height: 72px; background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 35%, #0b0d12)); margin-bottom: -36px; }
.dm-profile .av { box-shadow: 0 0 0 4px var(--surface); }
.dm-profile p { color: var(--text-2); padding: 0 12px; }

/* ---- Gelen arama */
.call-toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .2s ease-out; }
.call-toast .av { animation: ring 1.5s infinite; }
.call-text { display: flex; flex-direction: column; min-width: 140px; }
.call-text span { color: var(--muted); font-size: 13px; }
.ctrl.accept { background: var(--green); color: #fff; border-color: transparent; }
.call-toast .ctrl.leave { width: 48px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 var(--green-soft); } 50% { box-shadow: 0 0 0 8px var(--green-soft); } }

/* ---- Bildirimler */
.notif { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--accent-soft); }
.notif-icon { position: absolute; left: 40px; top: 38px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); z-index: 1; }
.notif-icon svg { width: 12px; height: 12px; }
.notif-icon.like { background: var(--red); }
.notif-icon.follow { background: var(--green); }
.notif-icon.mention, .notif-icon.reply { background: var(--amber); }
.notif-text { flex: 1; min-width: 0; line-height: 1.45; }
.notif-snippet { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Projeler */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.project { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); transition: border-color .15s; }
.project:hover { border-color: var(--line-strong); }
.project-head { display: flex; align-items: center; gap: 8px; }
.project-icon { color: var(--muted); display: inline-flex; }
.project-name { font-weight: 650; color: var(--accent); }
a.project-name:hover { text-decoration: underline; }
.project-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.project-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; font-size: 12.5px; color: var(--muted); }
.project-foot > * { display: inline-flex; align-items: center; gap: 5px; }
.project-foot a:hover { color: var(--accent); }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---- Mikrofon testi */
.mic-test { display: flex; flex-direction: column; gap: 6px; }
.mic-test-row { display: flex; align-items: center; gap: 12px; }
.meter { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #a3e635 70%, var(--amber)); transition: width 60ms linear; }

/* ---- Ses sahnesi eklemeleri */
.stage-alone { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--text-2); font-size: 13px; }
.tile-bar.show { opacity: 1; }
.own-live video { opacity: .92; }
.conn-pill { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; background: rgba(15, 18, 22, .62); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(4px); }
.conn-pill.warn { background: color-mix(in srgb, var(--amber) 85%, #000); }
.conn-pill.clickable { cursor: pointer; }
.conn-pill.clickable:hover { filter: brightness(1.1); }

@media (max-width: 760px) {
  .msg { padding-right: 12px; }
  .msg-tools { display: flex; position: static; box-shadow: none; border: 0; background: none; justify-content: flex-end; margin-top: 2px; }
  .hide-sm { display: none; }
  .call-toast { left: 12px; right: 12px; bottom: 12px; }
}
