@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================= tema değişkenleri ================= */
:root {
  /* çerçeve (üst çubuk, sekme şeridi, kenar çubuğu) — tema menüsünden değişir */
  --chrome-bg: #072a20;
  --chrome-bg-2: #0b3529;
  --chrome-text: #e8f5ef;
  --chrome-text-dim: #a5c4b8;
  --chrome-hover: rgba(255, 255, 255, 0.08);
  --chrome-active: #10b981;
  --chrome-active-text: #03140e;
  --chrome-border: rgba(255, 255, 255, 0.09);

  --accent: #10b981;
  --accent-strong: #059669;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --accent-text: #047857;
  --link: #0e7c86;
  --danger: #dc2626;
  --mention-bg: rgba(245, 158, 11, 0.16);
  --mention-text: #a16207;
  --badge: #e11d48;
  --highlight: rgba(245, 158, 11, 0.12);

  --bg: #ffffff;
  --panel-2: #f6f8f7;
  --panel-3: #eef2f0;
  --border: #e2e8e5;
  --border-strong: #cbd5d0;
  --text: #121a17;
  --text-2: #4a5a54;
  --text-3: #7a8a84;
  --hover: rgba(18, 26, 23, 0.04);
  --selected: rgba(16, 185, 129, 0.12);
  --code-bg: #f3f5f4;
  --code-text: #c2410c;
  --shadow: 0 16px 48px rgba(6, 30, 22, 0.18);
  --shadow-sm: 0 1px 3px rgba(6, 30, 22, 0.12);

  --radius: 10px;
  --rail-w: 72px;
  --sidebar-w: 260px;
  font-family: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--chrome-bg);
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  --bg: #13171a;
  --panel-2: #191e22;
  --panel-3: #20262b;
  --border: #2a3137;
  --border-strong: #3a434a;
  --text: #e3e8eb;
  --text-2: #a6b1b8;
  --text-3: #76828a;
  --hover: rgba(255, 255, 255, 0.04);
  --selected: rgba(16, 185, 129, 0.16);
  --code-bg: #1d2328;
  --code-text: #fb923c;
  --accent-text: #34d399;
  --link: #5cc8d0;
  --mention-text: #fbbf24;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--chrome-bg);
  overflow: hidden;
}
/* Görünür yükseklik: 100vh telefonda adres çubuğu ve klavyeyi hesaba katmaz; dvh katar. Klavye açıkken iOS düzen
   alanını küçültmediği için js/app.js değeri görünür alanla (visualViewport) günceller. */
:root {
  --ekran-h: 100vh;
}
@supports (height: 100dvh) {
  :root {
    --ekran-h: 100dvh;
  }
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
svg.i,
svg.i-sm,
svg.i-lg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.i {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}
svg.i-sm {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
svg.i-lg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}
.i-spacer {
  width: 18px;
  flex: none;
}
.grow {
  flex: 1;
  min-width: 0;
}
.muted {
  color: var(--text-3);
}

/* ================= açılış ve giriş ================= */
#app {
  height: var(--ekran-h);
}
#app.boot {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--chrome-text-dim);
}
.boot-mark {
  text-align: center;
}
.auth {
  height: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 15% 0%, rgba(16, 185, 129, 0.28), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(16, 185, 129, 0.12), transparent 50%), var(--chrome-bg);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--bg);
  border-radius: 16px;
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.auth-brand h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.auth-brand h1 span {
  color: var(--accent);
}
/* Logo yazısı: "Biom" kalın, "business" ince ve ikincil renkte, nokta vurgu renginde. */
.auth-brand h1 .brand-ek {
  margin-left: 0.24em;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.auth-sub {
  color: var(--text-2);
  margin: 0 0 22px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--panel-2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 7px;
  color: var(--text-2);
  font-weight: 600;
}
.tabs button[aria-selected="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.invite-note {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* ================= form öğeleri ================= */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label,
.field .label {
  font-size: 14px;
  font-weight: 700;
}
.field .hint {
  font-size: 13px;
  color: var(--text-3);
}
.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.input {
  resize: vertical;
  min-height: 80px;
}
.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding-left: 12px;
  background: var(--bg);
}
.input-prefix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-prefix .input {
  border: 0;
  box-shadow: none !important;
  padding-left: 6px;
}
.btn {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn:hover {
  background: var(--panel-2);
}
.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}
.btn-primary:hover {
  background: #047857;
  border-color: #047857;
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}
.btn-block {
  width: 100%;
  padding: 11px;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  min-height: 20px;
  margin: 4px 0 10px;
}
.icon-btn {
  border: 0;
  background: none;
  color: var(--text-2);
  border-radius: 6px;
  padding: 5px;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}
.icon-btn.on {
  color: var(--accent-text);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 14px;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.check input,
.radio-list input {
  accent-color: var(--accent-strong);
}
.check input {
  margin-top: 3px;
}
.radio-list {
  display: grid;
  gap: 8px;
  margin: 6px 0 16px;
}
.radio-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

/* ================= çerçeve düzeni ================= */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: 40px minmax(0, 1fr);
  height: var(--ekran-h);
  background: var(--chrome-bg);
  color: var(--chrome-text);
}
.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
  align-items: center;
  padding-right: 12px;
  -webkit-app-region: drag;
}
.topbar .nav {
  grid-column: 2;
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  padding-right: 10px;
  -webkit-app-region: no-drag;
}
.topbar .nav button,
.topbar .right button {
  border: 0;
  background: none;
  color: var(--chrome-text-dim);
  border-radius: 6px;
  padding: 4px;
  display: grid;
  place-items: center;
}
.topbar .nav button:hover:not(:disabled),
.topbar .right button:hover {
  background: var(--chrome-hover);
  color: var(--chrome-text);
}
.topbar .nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
.topbar .search-trigger {
  grid-column: 3;
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  border-radius: 7px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--chrome-text);
  padding: 0 10px;
  text-align: left;
  font-size: 13px;
}
.topbar .search-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
}
.topbar .search-trigger span {
  flex: 1;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .right {
  grid-column: 4;
  display: flex;
  justify-content: flex-end;
  -webkit-app-region: no-drag;
}

/* ---------- sekme şeridi ---------- */
.rail {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 12px;
  min-height: 0;
}
.ws-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  color: var(--chrome-bg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 10px;
  box-shadow: 0 0 0 2px var(--chrome-bg), 0 0 0 4px rgba(255, 255, 255, 0.4);
}
.rail-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--chrome-text);
  font-size: 11px;
  font-weight: 600;
  width: 64px;
  padding: 0;
  position: relative;
}
.rail-tab .rail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background 0.12s;
}
.rail-tab:hover .rail-icon {
  background: var(--chrome-hover);
}
.rail-tab.active .rail-icon {
  background: rgba(255, 255, 255, 0.2);
}
.rail-tab .dot {
  position: absolute;
  top: -2px;
  right: 10px;
  background: var(--badge);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 9px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--chrome-bg);
}
.rail-tab .dot.small {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  top: 2px;
  right: 16px;
  background: var(--chrome-text);
}
.rail-spacer {
  flex: 1;
}
.rail-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--chrome-text);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.rail-add:hover {
  background: rgba(255, 255, 255, 0.24);
}
.rail-me {
  border: 0;
  background: none;
  padding: 0;
  border-radius: 10px;
}

/* ---------- çalışma yüzeyi (kenar + içerik kartı) ---------- */
.workspace {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  margin: 0 6px 6px 0;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--chrome-border);
}
.workspace.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}
.sidebar {
  background: var(--chrome-bg-2);
  color: var(--chrome-text-dim);
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.sidebar-resize {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 3;
}
.side-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 8px 12px;
  min-height: 52px;
}
.ws-name {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--chrome-text);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.ws-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-name:hover {
  background: var(--chrome-hover);
}
.side-head .head-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--chrome-text);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
}
.side-head .head-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.side-scroll {
  overflow-y: auto;
  flex: 1;
  padding: 2px 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.side-section {
  margin-top: 12px;
}
.side-title {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  padding: 0 4px 0 2px;
  border-radius: 6px;
}
.side-title:hover {
  background: var(--chrome-hover);
}
.side-title .toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--chrome-text-dim);
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  text-align: left;
  padding: 3px 4px;
}
.side-title .toggle svg {
  transition: transform 0.12s;
}
.side-title.collapsed .toggle svg {
  transform: rotate(-90deg);
}
.side-title .act {
  border: 0;
  background: none;
  color: var(--chrome-text-dim);
  border-radius: 5px;
  padding: 3px;
  display: grid;
  place-items: center;
  opacity: 0;
}
.side-title:hover .act,
.side-title .act:focus-visible {
  opacity: 1;
}
.side-title .act:hover {
  background: var(--chrome-hover);
  color: var(--chrome-text);
}
.side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--chrome-text-dim);
  padding: 0 10px;
  height: 30px;
  border-radius: 6px;
  text-align: left;
  font-size: 15px;
}
.side-item svg.i {
  width: 17px;
  height: 17px;
}
.side-item:hover {
  background: var(--chrome-hover);
}
.side-item.active {
  background: var(--chrome-active);
  color: var(--chrome-active-text);
}
.side-item.unread {
  color: var(--chrome-text);
  font-weight: 700;
}
.side-item.muted-ch {
  opacity: 0.55;
}
.side-item .label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-item .avatar {
  margin-left: -2px;
}
.badge {
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 7px;
  height: 18px;
  min-width: 20px;
  display: grid;
  place-items: center;
}
.side-item.active .badge {
  background: var(--chrome-active-text);
}
.side-add .plus-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
.side-add svg.i {
  width: 14px;
  height: 14px;
}
.huddle-chip {
  font-size: 12px;
  background: var(--accent);
  color: #03140e;
  border-radius: 9px;
  padding: 0 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.huddle-chip svg {
  width: 12px !important;
  height: 12px !important;
}

/* ---------- huddle çubuğu (kenar altı) ---------- */
.huddle-bar {
  margin: 8px;
  border-radius: 10px;
  background: var(--accent);
  color: #03140e;
  padding: 10px 10px 8px;
}
.huddle-bar .top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.huddle-bar .top small {
  font-weight: 500;
  opacity: 0.8;
}
.huddle-bar .people {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.huddle-bar .people .avatar.speaking {
  box-shadow: 0 0 0 2px #fff;
}
.huddle-bar .controls {
  display: flex;
  gap: 6px;
}
.huddle-bar .controls button {
  border: 0;
  border-radius: 8px;
  background: rgba(3, 20, 14, 0.12);
  color: #03140e;
  padding: 6px;
  display: grid;
  place-items: center;
}
.huddle-bar .controls button:hover {
  background: rgba(3, 20, 14, 0.2);
}
.huddle-bar .controls button.off {
  background: #03140e;
  color: #fff;
}
.huddle-bar .controls .leave {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
}

/* ================= avatar ve durum ================= */
.avatar {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  user-select: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.avatar.xs {
  width: 20px;
  height: 20px;
  font-size: 9px;
  border-radius: 5px;
}
.avatar.sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border-radius: 6px;
}
.avatar.md {
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 26px;
  border-radius: 14px;
}
.avatar.xl {
  width: 240px;
  height: 240px;
  font-size: 72px;
  border-radius: 16px;
}
.presence {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--chrome-bg-2);
  background: var(--chrome-bg-2);
  box-shadow: inset 0 0 0 1.6px var(--chrome-text-dim);
}
.presence.active {
  background: #2bd48f;
  box-shadow: none;
}
.presence.away {
  box-shadow: inset 0 0 0 1.6px #2bd48f;
}
.main .presence,
.side-panel .presence,
.modal .presence,
.menu .presence,
.list-view .presence {
  border-color: var(--bg);
  background: var(--bg);
  box-shadow: inset 0 0 0 1.6px var(--text-3);
}
.main .presence.active,
.side-panel .presence.active,
.modal .presence.active,
.menu .presence.active,
.list-view .presence.active {
  background: #2bd48f;
  box-shadow: none;
}
.main .presence.away,
.side-panel .presence.away,
.modal .presence.away,
.menu .presence.away,
.list-view .presence.away {
  box-shadow: inset 0 0 0 1.6px #2bd48f;
}
.rail-me .presence {
  border-color: var(--chrome-bg);
}
.status-emoji {
  font-size: 14px;
}
.status-emoji .emoji-custom {
  width: 16px;
  height: 16px;
}

/* ================= ana içerik ================= */
.content {
  display: flex;
  min-height: 0;
  min-width: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 1;
  background: var(--bg);
  position: relative;
}
.chan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 16px;
  min-height: 50px;
}
.chan-title {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 18px;
  min-width: 0;
}
.chan-title:hover {
  background: var(--hover);
}
.chan-title .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-spacer {
  flex: 1;
}
.member-stack {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  padding: 3px 8px 3px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.member-stack:hover {
  background: var(--panel-2);
}
.member-stack .stack {
  display: flex;
}
.member-stack .stack .avatar {
  box-shadow: 0 0 0 2px var(--bg);
  margin-left: -6px;
}
.member-stack .stack .avatar:first-child {
  margin-left: 0;
}
.huddle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  padding: 4px 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}
.huddle-btn:hover {
  background: var(--panel-2);
}
.huddle-btn.live {
  background: var(--accent);
  border-color: var(--accent);
  color: #03140e;
}
.chan-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.chan-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--text-2);
  padding: 6px 8px 8px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.chan-tab svg.i {
  width: 16px;
  height: 16px;
}
.chan-tab:hover {
  color: var(--text);
}
.chan-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent-strong);
}
.chan-tab.add {
  color: var(--text-3);
  padding-left: 4px;
  padding-right: 4px;
}
.bookmarks {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.bookmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  max-width: 220px;
}
.bookmark span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.bookmark:hover {
  background: var(--hover);
  color: var(--text);
  text-decoration: none;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 12px;
  min-height: 0;
  overflow-anchor: none;
}
.chan-intro {
  padding: 32px 20px 16px;
}
.chan-intro h2 {
  margin: 10px 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.chan-intro p {
  margin: 0 0 12px;
  color: var(--text-2);
  max-width: 640px;
}
.chan-intro .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.load-older {
  display: block;
  margin: 8px auto;
}
.day-divider {
  position: sticky;
  top: 8px;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 18px 0 6px;
  height: 0;
  border-top: 1px solid var(--border);
}
.day-divider button {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 3px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  transform: translateY(-50%);
  height: 26px;
}
.new-divider {
  display: flex;
  margin: 8px 0;
  height: 0;
  border-top: 1px solid var(--badge);
  justify-content: flex-end;
}
.new-divider span {
  background: var(--bg);
  color: var(--badge);
  font-size: 12px;
  font-weight: 800;
  padding: 0 8px;
  margin-right: 16px;
  transform: translateY(-50%);
  height: 16px;
}

/* ---------- mesaj ---------- */
.msg {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 8px;
  padding: 8px 20px;
}
.msg.continued {
  padding-top: 2px;
  padding-bottom: 2px;
}
.msg:hover,
.msg.focus {
  background: var(--hover);
}
.msg.highlight {
  background: var(--highlight);
  transition: background 1.6s;
}
.msg.is-pinned,
.msg.is-saved {
  background: var(--highlight);
}
.msg-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  padding-left: 18px;
  margin-bottom: 2px;
}
.msg-label svg.i {
  width: 13px;
  height: 13px;
}
.msg-label.saved {
  color: var(--accent-text);
}
.msg-gutter {
  padding-top: 2px;
}
.msg-gutter time {
  display: none;
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  padding-top: 3px;
  white-space: nowrap;
}
.msg.continued:hover .msg-gutter time {
  display: block;
}
.msg-gutter .avatar {
  cursor: pointer;
}
.msg-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.msg-author {
  font-weight: 800;
  border: 0;
  background: none;
  padding: 0;
  font-size: 15px;
}
.msg-author:hover {
  text-decoration: underline;
}
.bot-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--panel-3);
  color: var(--text-2);
  border-radius: 3px;
  padding: 1px 4px;
}
.msg-head time {
  font-size: 12px;
  color: var(--text-3);
}
.msg-head time:hover {
  text-decoration: underline;
  cursor: pointer;
}
.msg-body {
  line-height: 1.46;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg-body.jumbo {
  font-size: 32px;
  line-height: 1.25;
}
.msg-body.jumbo .emoji-custom {
  width: 32px;
  height: 32px;
}
.msg-body .edited {
  color: var(--text-3);
  font-size: 12px;
}
.msg-body.deleted,
.msg-body.system {
  color: var(--text-2);
}
.msg-body.deleted {
  font-style: italic;
}
.msg-body code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12.5px;
  color: var(--code-text);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.msg-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 4px 0;
  overflow-x: auto;
  white-space: pre;
  font-size: 12.5px;
}
.msg-body pre code {
  border: 0;
  padding: 0;
  background: none;
  color: var(--text);
}
.msg-body blockquote {
  margin: 2px 0;
  padding-left: 10px;
  border-left: 4px solid var(--border-strong);
}
.msg-body .li {
  display: inline-block;
  padding-left: 8px;
}
.emoji-custom {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  object-fit: contain;
}
.mention {
  background: rgba(29, 155, 209, 0.12);
  color: #1264a3;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
  cursor: pointer;
}
:root[data-theme="dark"] .mention {
  color: #5bb5f0;
}
.mention.me,
.mention.broadcast {
  background: var(--mention-bg);
  color: var(--mention-text);
}
.msg-files {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}
.file-image {
  display: block;
  line-height: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
  cursor: zoom-in;
  padding: 0;
}
.file-image img {
  display: block;
  max-width: min(360px, 100%);
  max-height: 360px;
  object-fit: contain;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 240px;
  max-width: 360px;
  background: var(--bg);
  color: var(--text);
}
.file-card:hover {
  background: var(--panel-2);
  text-decoration: none;
}
.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}
.file-card .meta {
  min-width: 0;
}
.file-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.file-card small {
  color: var(--text-3);
}
.file-media {
  max-width: min(420px, 100%);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.previews {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.preview {
  border-left: 4px solid var(--border-strong);
  padding: 2px 0 2px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 560px;
}
.preview .site {
  font-weight: 700;
  font-size: 13px;
}
.preview .title {
  font-weight: 700;
  display: block;
}
.preview .desc {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 2px;
}
.preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.forwarded {
  border-left: 4px solid var(--border-strong);
  padding: 2px 0 2px 12px;
  margin-top: 4px;
}
.forwarded .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.forwarded .from {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.forwarded .from button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--link);
  font-size: 12px;
}
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  background: var(--panel-3);
  border-radius: 24px;
  padding: 1px 8px 1px 6px;
  font-size: 13px;
  font-weight: 600;
  height: 24px;
  color: var(--text-2);
}
.reaction:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}
.reaction.mine {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.reaction .emoji-custom {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}
.reaction.add {
  color: var(--text-3);
  padding: 1px 6px;
  opacity: 0;
}
.msg:hover .reaction.add {
  opacity: 1;
}
.thread-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  border: 1px solid transparent;
  background: none;
  border-radius: 6px;
  padding: 3px 8px 3px 4px;
  font-size: 13px;
  max-width: 520px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}
.thread-link:hover {
  border-color: var(--border);
  background: var(--bg);
}
.thread-link .count {
  color: var(--link);
  font-weight: 700;
}
.thread-link .view {
  margin-left: auto;
  color: var(--text-3);
  display: none;
}
.thread-link:hover .view {
  display: inline;
}
.thread-link:hover .last {
  display: none;
}
.also-sent {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 2px;
}
.also-sent button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--link);
  font-size: 12px;
}
.huddle-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 4px;
  background: var(--bg);
}
.huddle-card .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}
.huddle-card.live .ico {
  background: var(--accent);
  color: #03140e;
}
.huddle-card .who {
  display: flex;
  gap: 2px;
}
.msg-actions {
  position: absolute;
  top: -16px;
  right: 18px;
  display: none;
  gap: 1px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.msg:hover .msg-actions,
.msg.focus .msg-actions {
  display: flex;
}
.msg-actions button {
  border: 0;
  background: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  color: var(--text-2);
  display: grid;
  place-items: center;
  padding: 0;
}
.msg-actions button:hover {
  background: var(--hover);
  color: var(--text);
}
.msg-actions .quick {
  font-size: 16px;
}
.msg-actions .sep {
  width: 1px;
  background: var(--border);
  margin: 6px 2px;
}
.edit-box {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  margin-top: 2px;
}
.edit-box .rich-editor {
  padding: 10px 12px;
  min-height: 44px;
}
.edit-box .row {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  justify-content: flex-end;
  background: var(--panel-2);
}

/* ---------- yazma kutusu ---------- */
.composer-wrap {
  padding: 0 20px 4px;
  position: relative;
}
.scheduled-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px 6px;
  font-size: 13px;
  color: var(--text-2);
}
.scheduled-bar .link-btn {
  font-size: 13px;
}
.feed-fresh {
  margin: 8px 0;
}
/* Hikâyeye yanıtın önizlemesi */
.story-reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.story-reply-thumb {
  width: 44px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}
.story-reply-thumb.text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 9px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* Yayıncı modu: e-posta ve davet bağlantıları bulanık (odaklanınca görünür). */
.streamer .sensitive:not(:focus) {
  filter: blur(6px);
}
.composer {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  position: relative;
}
.composer:focus-within {
  border-color: var(--text-3);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.composer .fmt-bar {
  display: flex;
  gap: 2px;
  padding: 4px 6px 0;
  flex-wrap: wrap;
}
.composer .fmt-bar button,
.composer .tool-bar button {
  border: 0;
  background: none;
  color: var(--text-3);
  border-radius: 5px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
}
.composer .fmt-bar button:hover,
.composer .tool-bar button:hover {
  background: var(--hover);
  color: var(--text);
}
.composer .tool-bar button.on {
  color: var(--text);
  background: var(--panel-3);
}
.composer .sep {
  width: 1px;
  background: var(--border);
  margin: 6px 4px;
}
/* ---------- zengin metin editörü (yazma ve düzenleme kutusu) ---------- */
.rich-editor {
  position: relative;
  outline: none;
  padding: 8px 12px 4px;
  /* bir satır (1.46em) + üst/alt iç boşluk; aksi halde boşken yer tutucu taşar */
  min-height: calc(1.46em + 12px);
  max-height: 40vh;
  overflow-y: auto;
  line-height: 1.46;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
}
.rich-editor.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--text-3);
  pointer-events: none;
}
.rich-editor code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 12.5px;
  color: var(--code-text);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.rich-editor pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 4px 0;
  font-size: 12.5px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap;
}
.rich-editor pre code {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
}
.rich-editor blockquote {
  margin: 2px 0;
  padding-left: 10px;
  border-left: 4px solid var(--border-strong);
}
.rich-editor ul,
.rich-editor ol {
  margin: 2px 0;
  padding-left: 26px;
}
.rich-editor a {
  color: var(--link);
}
.rich-editor .chip {
  user-select: all;
  white-space: nowrap;
}
.rich-editor .emoji-custom {
  width: 20px;
  height: 20px;
}
.composer .tool-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px 6px;
}
.composer .tool-bar .plus {
  background: var(--panel-3);
  border-radius: 50%;
}
.send-group {
  margin-left: auto;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
}
.composer .tool-bar .send-group button {
  border-radius: 0;
  background: var(--accent-strong);
  color: #fff;
  width: auto;
  padding: 0 8px;
}
.composer .tool-bar .send-group button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0 4px;
}
.composer .tool-bar .send-group.disabled button {
  background: none;
  color: var(--text-3);
  cursor: default;
}
.composer .tool-bar .send-group.disabled button + button {
  border-left-color: var(--border);
}
.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px 0;
}
.attachment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px 6px 6px;
  font-size: 13px;
  max-width: 240px;
  background: var(--panel-2);
}
.attachment img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.attachment .meta {
  min-width: 0;
}
.attachment .meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment .remove {
  position: absolute;
  top: -8px;
  right: -8px;
  border: 0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  padding: 0;
}
.attachment.uploading {
  opacity: 0.6;
}
.composer-foot {
  display: flex;
  justify-content: space-between;
  min-height: 20px;
  font-size: 12px;
  color: var(--text-2);
  padding: 2px 4px 0;
}
.composer-foot .hint {
  color: var(--text-3);
}
.also-send {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  padding: 0 12px 6px;
}
.also-send input {
  accent-color: var(--accent-strong);
}
.drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.12);
  border: 3px dashed var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-text);
  z-index: 20;
  pointer-events: none;
}
.join-bar {
  margin: 0 20px 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  text-align: center;
}
.join-bar p {
  margin: 0 0 10px;
  color: var(--text-2);
}
.join-bar .actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.autocomplete {
  position: absolute;
  left: 20px;
  bottom: calc(100% - 2px);
  width: min(380px, calc(100% - 40px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 5;
}
.autocomplete .head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  padding: 4px 8px;
}
.autocomplete button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: left;
}
.autocomplete button.sel {
  background: var(--accent-strong);
  color: #fff;
}
.autocomplete button.sel small {
  color: rgba(255, 255, 255, 0.85);
}
.autocomplete small {
  color: var(--text-3);
}

/* ================= sağ panel ================= */
.side-panel {
  width: var(--panel-w, 400px);
  border-left: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: none;
  position: relative;
}
.panel-resize {
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 3;
}
.side-panel > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 16px;
  min-height: 50px;
  border-bottom: 1px solid var(--border);
}
.side-panel > header strong {
  font-size: 17px;
  font-weight: 800;
}
.side-panel > header small {
  color: var(--text-2);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-panel .messages {
  padding-top: 10px;
}
.thread-count {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 16px;
  color: var(--text-2);
  font-size: 13px;
}
.thread-count::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.side-panel .msg {
  padding-left: 16px;
  padding-right: 16px;
}
.side-panel .composer-wrap {
  padding: 0 16px 4px;
}
.profile-panel {
  overflow-y: auto;
  padding: 20px;
}
.profile-panel .photo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.profile-panel .avatar.xl {
  width: min(240px, 100%);
  height: auto;
  aspect-ratio: 1;
}
.profile-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-panel .role {
  color: var(--text-2);
  margin: 4px 0 8px;
}
.profile-panel .status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  color: var(--text-2);
}
.profile-panel .actions {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.profile-panel .info {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: grid;
  gap: 12px;
  margin: 0;
}
.profile-panel .info dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.profile-panel .info dd {
  margin: 2px 0 0;
}
.search-result {
  margin: 0 12px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}
.search-result:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.search-result .where {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  padding: 8px 14px 0;
}
.search-result .msg:hover {
  background: none;
}
.empty {
  color: var(--text-2);
  text-align: center;
  padding: 40px 20px;
}
.empty .big {
  font-size: 40px;
  margin-bottom: 8px;
}
.empty h3 {
  color: var(--text);
  margin: 0 0 6px;
}

/* ================= liste görünümleri ================= */
.list-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  min-width: 0;
}
.list-view > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 0;
  min-height: 50px;
}
.list-view > header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  flex: 1;
}
.pill-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pill-tabs button {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.pill-tabs button.active {
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--accent-text);
}
.list-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.feed-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.feed-item:hover {
  background: var(--hover);
}
.feed-item .kind {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}
.feed-item .line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.feed-item .text {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}
.feed-item time {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.feed-item .row-actions {
  display: flex;
  gap: 2px;
  align-items: flex-start;
  opacity: 0;
}
.feed-item:hover .row-actions {
  opacity: 1;
}
.dm-search {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px;
}
.person-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  text-align: left;
  padding: 0;
}
.person-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.person-card .avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
  font-size: 48px;
}
.person-card .body {
  padding: 10px 12px;
}
.person-card strong {
  display: block;
}
.person-card small {
  color: var(--text-3);
}
.file-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.file-row:hover {
  background: var(--hover);
  text-decoration: none;
}
.file-row .thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}
.file-row .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-row small {
  color: var(--text-3);
}
.thread-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 12px 16px;
  overflow: hidden;
}
.thread-card > header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
}
.thread-card .more-replies {
  border: 0;
  background: none;
  color: var(--link);
  font-size: 13px;
  padding: 4px 16px 8px 64px;
}

/* ================= açılır pencere, menü, ipucu ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 12, 9, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
  animation: fade 0.12s ease-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.modal {
  width: min(540px, 100%);
  max-height: calc(var(--ekran-h) - 32px);
  overflow: auto;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 26px;
  color: var(--text);
}
.modal.wide {
  width: min(780px, 100%);
}
.modal.flush {
  padding: 0;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.modal .sub {
  color: var(--text-2);
  margin: 4px 0 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.modal-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  margin: 0 -26px 16px;
  padding: 0 26px;
}
.modal-tabs button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.modal-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--accent-strong);
}
.detail-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
  border-bottom: 0;
}
.detail-row .grow strong {
  display: block;
  font-size: 14px;
}
.detail-row .grow span {
  color: var(--text-2);
  font-size: 14px;
  white-space: pre-wrap;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--link);
  font-weight: 600;
  padding: 0;
  font-size: 14px;
}
.link-btn.danger {
  color: var(--danger);
}
.list {
  display: grid;
  gap: 1px;
  max-height: 380px;
  overflow: auto;
  margin: 10px 0;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}
.list-item:hover {
  background: var(--hover);
}
.list-item.selected {
  background: var(--selected);
}
.list-item .grow strong {
  display: flex;
  align-items: center;
  gap: 6px;
}
.list-item small {
  display: block;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill {
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 6px;
  padding: 2px 4px 2px 6px;
  font-size: 13px;
  font-weight: 600;
}
.chip button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  display: grid;
}
.switcher .input {
  font-size: 17px;
  padding: 12px 14px;
}
.switcher .list {
  max-height: 420px;
}
.switcher .list-item.sel {
  background: var(--accent-strong);
  color: #fff;
}
.switcher .list-item.sel small {
  color: rgba(255, 255, 255, 0.85);
}
.menu {
  position: fixed;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  z-index: 60;
  min-width: 240px;
  max-width: 340px;
  max-height: calc(var(--ekran-h) - 16px);
  overflow-y: auto;
}
.menu > button {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  border: 0;
  background: none;
  padding: 6px 16px;
  text-align: left;
  font-size: 14px;
  min-height: 32px;
}
.menu > button:hover:not(:disabled),
.menu > button:focus-visible {
  background: var(--accent-strong);
  color: #fff;
  outline: none;
}
.menu > button:hover .menu-hint,
.menu > button:focus-visible .menu-hint {
  color: rgba(255, 255, 255, 0.8);
}
.menu > button.danger {
  color: var(--danger);
}
.menu > button.danger:hover {
  background: var(--danger);
  color: #fff;
}
.menu > button:disabled {
  opacity: 0.5;
}
.menu-hint {
  color: var(--text-3);
  font-size: 12px;
}
.menu hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}
.menu-heading {
  padding: 6px 16px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.menu-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 16px 10px;
}
.menu-profile strong {
  display: block;
}
.menu-profile small {
  color: var(--text-3);
}
.menu-status {
  margin: 0 12px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-2);
  font-size: 14px;
  width: calc(100% - 24px);
  background: var(--bg);
  text-align: left;
}
.menu-status:hover {
  border-color: var(--accent);
}
.emoji-picker {
  width: 360px;
  max-width: calc(100vw - 16px);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}
.emoji-picker .ep-search {
  padding: 10px 10px 6px;
}
.emoji-picker .ep-search .input {
  padding: 7px 10px;
}
.emoji-picker .ep-cats {
  display: flex;
  gap: 2px;
  padding: 0 8px 6px;
  border-bottom: 1px solid var(--border);
}
.emoji-picker .ep-cats button {
  border: 0;
  background: none;
  border-radius: 6px;
  font-size: 17px;
  padding: 3px 6px;
  opacity: 0.6;
}
.emoji-picker .ep-cats button:hover,
.emoji-picker .ep-cats button.active {
  opacity: 1;
  background: var(--hover);
}
.emoji-picker .ep-body {
  overflow-y: auto;
  padding: 4px 8px 8px;
  flex: 1;
}
.emoji-picker h4 {
  margin: 8px 4px 4px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 700;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1px;
}
.emoji-grid button {
  border: 0;
  background: none;
  font-size: 22px;
  border-radius: 6px;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
}
.emoji-grid button:hover {
  background: var(--selected);
}
.emoji-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.emoji-picker .ep-foot {
  border-top: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-2);
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip {
  position: fixed;
  z-index: 80;
  background: #0d1512;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 8px;
  pointer-events: none;
  max-width: 260px;
  white-space: pre-line;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #0d1512;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 70;
  font-size: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.toast-action {
  border: 0;
  background: none;
  color: #6ee7b7;
  font-weight: 700;
  padding: 0;
}
.conn-banner {
  position: fixed;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  background: #7c2d12;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  z-index: 40;
  box-shadow: var(--shadow);
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.lightbox header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 10px 16px;
}
.lightbox header .grow {
  font-weight: 700;
}
.lightbox header a,
.lightbox header button {
  color: #fff;
}
.lightbox .stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 24px 24px;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}
.theme-swatch {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  text-align: left;
}
.theme-swatch.active {
  border-color: var(--accent-strong);
}
.theme-swatch .preview-bar {
  display: flex;
  height: 48px;
}
.theme-swatch .preview-bar span {
  flex: 1;
}
.theme-swatch strong {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
}
.prefs-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 460px;
}
.prefs-nav {
  border-right: 1px solid var(--border);
  padding: 20px 10px;
  background: var(--panel-2);
}
.prefs-nav h3 {
  font-size: 20px;
  margin: 0 8px 14px;
}
.prefs-nav button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 6px;
  padding: 7px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-2);
}
.prefs-nav button.active {
  background: var(--accent-strong);
  color: #fff;
}
.prefs-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: 72vh;
}
.prefs-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.prefs-body section {
  margin-bottom: 22px;
}

/* ================= huddle penceresi ================= */
.huddle-window {
  position: fixed;
  inset: 40px 20px 20px calc(var(--rail-w) + 20px);
  background: #0b1310;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 45;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #fff;
  overflow: hidden;
}
.huddle-window header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.huddle-window header .grow {
  font-weight: 800;
}
.huddle-window header button {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 8px;
  padding: 6px;
  display: grid;
}
.huddle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 0 16px;
  align-content: center;
  min-height: 0;
  overflow: auto;
}
.huddle-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #16211c;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.huddle-tile.speaking {
  box-shadow: 0 0 0 3px var(--accent);
}
.huddle-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.huddle-tile video.screen {
  object-fit: contain;
}
.huddle-tile .name {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
}
.huddle-tile .avatar.lg {
  width: 96px;
  height: 96px;
  font-size: 34px;
  border-radius: 50%;
}
.huddle-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}
.huddle-controls button {
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
}
.huddle-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.huddle-controls button.off {
  background: #fff;
  color: #0b1310;
}
.huddle-controls button.leave {
  background: var(--danger);
  width: 64px;
  border-radius: 24px;
}

/* ================= dar ekran ================= */
.only-narrow {
  display: none !important;
}
@media (max-width: 1100px) {
  .side-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    box-shadow: var(--shadow);
  }
}
@media (max-width: 820px) {
  :root {
    --rail-w: 0px;
  }
  .rail {
    display: none;
  }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 8px;
    gap: 8px;
  }
  .topbar .nav {
    display: none;
  }
  .topbar .search-trigger {
    grid-column: 2;
  }
  .topbar .right {
    grid-column: 3;
  }
  .only-narrow {
    display: grid !important;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border-radius: 0;
  }
  .workspace .sidebar {
    display: none;
  }
  .app.nav-open .workspace .sidebar {
    display: flex;
    position: fixed;
    top: 40px;
    bottom: 0;
    left: 0;
    width: min(300px, 86vw);
    z-index: 40;
    box-shadow: var(--shadow);
  }
  .side-panel {
    position: fixed;
    inset: 40px 0 0 0;
    width: auto;
  }
  .huddle-window {
    inset: 40px 0 0 0;
    border-radius: 0;
  }
  .prefs-layout {
    grid-template-columns: 1fr;
  }
  .prefs-nav {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px;
  }
  .prefs-nav h3 {
    display: none;
  }
  .msg-actions {
    right: 8px;
  }
}

/* ================= v3: bölümler, anketler, hatırlatıcılar, okunmamışlar ================= */
.side-section.drop-target {
  background: var(--chrome-hover);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--chrome-active);
}
.side-title[draggable="true"] {
  cursor: grab;
}
.side-empty {
  font-size: 12px;
  color: var(--chrome-text-dim);
  opacity: 0.7;
  padding: 4px 12px 6px 30px;
}
.poll {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
  max-width: 520px;
  background: var(--bg);
}
.poll-q {
  font-weight: 800;
  margin-bottom: 10px;
}
.poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  overflow: hidden;
  text-align: left;
}
.poll-opt:hover:not(:disabled) {
  border-color: var(--accent);
}
.poll-opt.mine {
  border-color: var(--accent-strong);
}
.poll-opt:disabled {
  cursor: default;
}
.poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent-soft);
  transition: width 0.3s ease;
  pointer-events: none;
}
.poll-opt.mine .poll-bar {
  background: rgba(16, 185, 129, 0.24);
}
.poll-label {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.poll-count {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.poll-voters {
  display: flex;
}
.poll-voters .avatar {
  margin-left: -4px;
  box-shadow: 0 0 0 2px var(--bg);
}
.poll-foot {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.poll-foot .link-btn {
  font-size: 12px;
  margin-left: auto;
}
.poll.closed .poll-q::after {
  content: " · kapandı";
  font-weight: 500;
  color: var(--text-3);
}
.reminder-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.thread-card.has-unread {
  border-color: var(--accent-strong);
}
.thread-card > header .badge {
  margin-left: auto;
}
.media-collapsed .msg-files img,
.media-collapsed .msg-files video,
.media-collapsed .previews img {
  display: none;
}
.media-collapsed .file-image::after {
  content: "🖼 Görsel daraltıldı";
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.autocomplete button .grow {
  flex: 1;
}

/* emoji seçicide ten rengi */
.emoji-picker .ep-search {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ep-tone {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 8px;
  font-size: 18px;
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.ep-tones {
  display: flex;
  gap: 2px;
  padding: 0 10px 6px;
  justify-content: flex-end;
}
.ep-tones:empty {
  display: none;
}
.ep-tones button {
  border: 0;
  background: none;
  font-size: 20px;
  border-radius: 6px;
  padding: 2px 4px;
}
.ep-tones button:hover {
  background: var(--selected);
}
.dnd-z {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.75;
}

/* ================= klipler ================= */
.modal-body {
  display: grid;
  gap: 12px;
}
.clip-modal {
  width: min(600px, 100%);
}
.clip-stage {
  border-radius: 10px;
  overflow: hidden;
  background: #0b1310;
  color: #e5efe9;
  display: grid;
  place-items: center;
  min-height: 140px;
}
.clip-stage.video {
  aspect-ratio: 16 / 9;
}
.clip-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.clip-stage video.mirror {
  transform: scaleX(-1);
}
.clip-stage.audio {
  padding: 18px;
  gap: 10px;
}
.clip-stage.audio .clip-player {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  --clip-rest: rgba(229, 239, 233, 0.4);
}
.clip-mic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.clip-meter {
  width: 100%;
  max-width: 320px;
  height: 64px;
}
.clip-wait {
  padding: 24px;
  text-align: center;
  color: rgba(229, 239, 233, 0.8);
}
.clip-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.clip-timer {
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  font-weight: 600;
}
.clip-timer.live {
  color: var(--danger);
}
.clip-timer.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  margin-right: 6px;
  animation: rec-blink 1s steps(2) infinite;
}
@keyframes rec-blink {
  50% {
    opacity: 0.2;
  }
}
.clip-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 6px;
}
.btn-primary .rec-dot {
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff;
}
.clip-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
}
.device-select {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  flex: 1 1 180px;
}
.device-select .input {
  font-size: 14px;
  font-weight: 400;
  padding: 6px 8px;
}
.huddle-settings .device-select {
  flex: none;
}

.file-clip {
  display: grid;
  gap: 4px;
  max-width: 420px;
}
.clip-name {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clip-name:hover {
  text-decoration: underline;
}
.clip-player {
  --clip-played: var(--accent);
  --clip-rest: var(--text-3);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.clip-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #03140e;
  display: grid;
  place-items: center;
  flex: none;
  padding: 0;
}
.clip-play svg {
  width: 16px;
  height: 16px;
}
.clip-play svg path {
  fill: currentColor;
}
.clip-wave {
  flex: 1;
  min-width: 0;
  height: 32px;
  cursor: pointer;
  border-radius: 4px;
}
.clip-wave:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.clip-time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--text-2);
  min-width: 34px;
  text-align: right;
}
.clip-speed {
  border: 1px solid var(--border);
  background: none;
  color: var(--text-2);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  min-width: 36px;
}
.clip-speed:hover {
  background: var(--hover);
}

/* ================= huddle ekleri ================= */
.huddle-bar .controls {
  gap: 4px;
}
.huddle-bar .controls button {
  padding: 5px;
}
.huddle-bar .controls button.on,
.huddle-controls button.on {
  background: #fff;
  color: var(--accent-strong);
}
.huddle-bar .people .avatar {
  overflow: visible;
}
.huddle-window header small {
  font-weight: 500;
  opacity: 0.7;
}
.huddle-react-menu {
  padding: 6px;
}
.huddle-react-row {
  display: flex;
  gap: 2px;
}
.huddle-react-row button {
  border: 0;
  background: none;
  font-size: 22px;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.huddle-react-row button:hover {
  background: var(--hover);
}
.huddle-float {
  position: absolute;
  bottom: 30%;
  font-size: 34px;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  transform: translateX(-50%);
  animation: huddle-float 2.6s ease-out forwards;
}
.huddle-bar .huddle-float {
  font-size: 22px;
  bottom: 100%;
}
.huddle-float img {
  width: 34px;
  height: 34px;
}
@keyframes huddle-float {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.6);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120px) scale(1);
  }
}
.huddle-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.huddle-draw.active {
  pointer-events: auto;
  cursor: crosshair;
}
.huddle-window.drawing .screen-tile {
  box-shadow: 0 0 0 3px #f59e0b;
}
.huddle-ring {
  position: fixed;
  top: 54px;
  right: 18px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  animation: ring-in 0.25s ease-out;
}
.huddle-ring .avatar {
  animation: ring-pulse 1.4s ease-in-out infinite;
}
.huddle-ring .actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@keyframes ring-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes ring-pulse {
  50% {
    box-shadow: 0 0 0 6px var(--accent-soft);
  }
}
.pick-list {
  max-height: 340px;
  overflow: auto;
  display: grid;
  gap: 2px;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.pick-row:hover {
  background: var(--hover);
}
.pick-row .grow {
  flex: 1;
  font-weight: 600;
}

/* ================= canvas ve listeler ================= */
.doc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  max-width: 420px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
}
.doc-card:hover {
  background: var(--hover);
  border-color: var(--border-strong);
}
.doc-card .meta {
  flex: 1;
  min-width: 0;
  display: grid;
}
.doc-card .meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-card .meta small {
  color: var(--text-3);
}
.doc-card.no-access {
  opacity: 0.7;
}
.doc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}
.doc-icon.list,
.doc-card.list .doc-icon {
  background: rgba(139, 92, 246, 0.14);
  color: #7c3aed;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.template {
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  align-content: start;
}
.template:hover {
  border-color: var(--accent);
  background: var(--selected);
}
.template .ti {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 4px;
}
.template small {
  color: var(--text-3);
}

.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.field-row label {
  font-weight: 600;
  font-size: 13px;
}
.field-row .input {
  max-width: 240px;
}
.share-current h4 {
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--text-3);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.share-row .grow {
  flex: 1;
}

.main.doc-main {
  overflow: hidden;
}
.doc-host {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.doc-empty {
  max-width: 460px;
  margin: 40px auto;
  text-align: center;
}
.doc-empty p {
  color: var(--text-2);
}
.doc-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
}
.doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--border);
}
.doc-page.embedded .doc-head {
  padding-top: 10px;
}
.doc-head-main {
  flex: 1;
  min-width: 0;
}
.doc-title {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  padding: 2px 4px;
  margin-left: -4px;
  border-radius: 6px;
}
.doc-title:hover:not([readonly]),
.doc-title:focus {
  background: var(--hover);
  outline: none;
}
.doc-sub {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-viewers {
  display: flex;
  align-items: center;
}
.doc-viewers .avatar {
  margin-left: -4px;
  box-shadow: 0 0 0 2px var(--bg);
}
.doc-viewers .more {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 4px;
}
.doc-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--panel-2);
}
.doc-toolbar .sep {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 6px;
}
.doc-toolbar .fmt {
  border: 0;
  background: none;
  color: var(--text-2);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
}
.doc-toolbar .fmt:hover {
  background: var(--hover);
}
.doc-toolbar .fmt.on {
  background: var(--selected);
  color: var(--accent-text);
}
.block-select {
  width: auto;
  padding: 4px 8px;
  font-size: 13px;
}
.doc-split {
  display: flex;
  flex: 1;
  min-height: 0;
}
.doc-scroll {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}
.doc-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 32px 120px;
}
.doc-editor {
  max-height: none;
  overflow: visible;
  min-height: 60vh;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
}
.doc-editor h1,
.doc-editor h2,
.doc-editor h3 {
  line-height: 1.25;
  margin: 18px 0 6px;
}
.doc-editor h1 {
  font-size: 28px;
  font-weight: 800;
}
.doc-editor h2 {
  font-size: 21px;
  font-weight: 800;
}
.doc-editor h3 {
  font-size: 17px;
  font-weight: 700;
}
.doc-editor > :first-child {
  margin-top: 0;
}
.doc-editor hr {
  border: 0;
  border-top: 1px solid var(--border-strong);
  margin: 16px 0;
}
.doc-editor ul.checklist {
  list-style: none;
  padding-left: 0;
}
.doc-editor ul.checklist > li {
  position: relative;
  padding-left: 28px;
  margin: 2px 0;
}
.doc-editor ul.checklist > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
}
.doc-editor ul.checklist > li[data-checked="true"] {
  color: var(--text-3);
  text-decoration: line-through;
}
.doc-editor ul.checklist > li[data-checked="true"]::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%223.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 12.5 4.5 4.5L19 7.5%22/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--accent);
}
.doc-img {
  margin: 10px 0;
  user-select: none;
}
.doc-img img {
  max-width: 100%;
  max-height: 520px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.doc-comments {
  display: none;
  width: 320px;
  flex: none;
  border-left: 1px solid var(--border);
  background: var(--panel-2);
  flex-direction: column;
  min-height: 0;
}
.canvas-page.with-comments .doc-comments {
  display: flex;
}
.doc-comments > header,
.list-detail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.doc-comment-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.doc-comment-list h5,
.list-detail h5 {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.doc-comment {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.doc-comment.resolved {
  opacity: 0.6;
}
.doc-comment .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.doc-comment p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.doc-comment blockquote,
.doc-comment-new blockquote {
  margin: 6px 0 0;
  padding: 2px 8px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-size: 13px;
  justify-self: stretch;
}
.doc-comment .acts {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.doc-comment-new {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: grid;
  gap: 6px;
  justify-items: end;
}
.doc-comment-new .input {
  width: 100%;
  resize: vertical;
}

.history-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 12px;
  height: min(60vh, 560px);
}
.history-list {
  overflow-y: auto;
  display: grid;
  gap: 2px;
  align-content: start;
  border-right: 1px solid var(--border);
  padding-right: 8px;
}
.history-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 0;
  background: none;
  color: var(--text);
  border-radius: 8px;
  padding: 6px 8px;
}
.history-list button span {
  display: grid;
}
.history-list button small {
  color: var(--text-3);
}
.history-list button:hover {
  background: var(--hover);
}
.history-list button.active {
  background: var(--selected);
}
.history-preview {
  overflow-y: auto;
  max-height: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  min-height: 0;
}

/* listeler */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.view-toggle button {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--text-2);
  padding: 5px 10px;
  font-weight: 600;
  font-size: 13px;
}
.view-toggle button.on {
  background: var(--selected);
  color: var(--accent-text);
}
.list-search {
  max-width: 220px;
  padding: 5px 10px;
}
.list-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.list-table-wrap {
  overflow: auto;
  flex: 1;
}
.list-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 14px;
}
.list-table th,
.list-table td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0;
  height: 38px;
  min-width: 130px;
  max-width: 320px;
  text-align: left;
  vertical-align: middle;
  background: var(--bg);
}
.list-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-2);
}
.list-table th button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  background: none;
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 10px;
  white-space: nowrap;
}
.list-table th button:hover {
  background: var(--hover);
}
.list-table th.primary,
.list-table td.primary {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 240px;
}
.list-table th.primary {
  z-index: 2;
}
.list-table th.add-col,
.list-table td.row-acts {
  min-width: 44px;
  width: 44px;
  border-right: 0;
}
.list-table th.add-col button {
  justify-content: center;
}
.list-table td.row-acts .icon-btn {
  opacity: 0;
}
.list-table tr:hover td.row-acts .icon-btn {
  opacity: 1;
}
.list-table tr.open td {
  background: var(--selected);
}
.cell-input {
  width: 100%;
  height: 100%;
  min-height: 37px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0 10px;
}
.cell-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--bg);
}
.cell-link {
  display: flex;
  align-items: center;
  min-height: 37px;
}
.cell-link a {
  padding-left: 10px;
  white-space: nowrap;
}
.cell-link a + .cell-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  pointer-events: none;
}
.cell-link:focus-within a {
  display: none;
}
.cell-link:focus-within .cell-input {
  position: static;
  opacity: 1;
  width: 100%;
  pointer-events: auto;
}
.list-table td.t-link .cell-link a {
  flex: 1;
}
.list-table td.t-checkbox {
  text-align: center;
}
.cell-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 37px;
  border: 0;
  background: none;
  color: var(--text);
  padding: 0 10px;
  text-align: left;
}
.cell-btn:hover:not([disabled]) {
  background: var(--hover);
}
.cell-btn.people {
  flex-wrap: wrap;
}
.cell-btn .person {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.primary-cell {
  display: flex;
  align-items: center;
}
.primary-cell .cell-input {
  font-weight: 600;
}
.open-item {
  border: 0;
  background: none;
  color: var(--text-3);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  opacity: 0;
}
.list-table tr:hover .open-item,
.open-item:has(.cnt) {
  opacity: 1;
}
.open-item .cnt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.new-row .cell-input {
  color: var(--text-2);
}
.opt-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(122, 138, 132, 0.18);
  color: var(--text-2);
}
.opt-pill.green {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}
.opt-pill.blue {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}
.opt-pill.yellow {
  background: rgba(234, 179, 8, 0.2);
  color: #a16207;
}
.opt-pill.orange {
  background: rgba(249, 115, 22, 0.18);
  color: #c2410c;
}
.opt-pill.red {
  background: rgba(239, 68, 68, 0.16);
  color: #b91c1c;
}
.opt-pill.purple {
  background: rgba(139, 92, 246, 0.16);
  color: #6d28d9;
}
.opt-pill.pink {
  background: rgba(236, 72, 153, 0.16);
  color: #be185d;
}
.opt-editor {
  display: grid;
  gap: 6px;
}
.opt-editor > label {
  font-weight: 600;
  font-size: 13px;
}
.opt-row {
  display: grid;
  grid-template-columns: 1fr 110px auto auto;
  gap: 6px;
  align-items: center;
}
.board {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  flex: 1;
  align-items: flex-start;
}
.lane {
  width: 270px;
  flex: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  max-height: 100%;
  overflow-y: auto;
}
.lane.drop {
  border-color: var(--accent);
  background: var(--selected);
}
.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lane .card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.lane .card:hover {
  border-color: var(--border-strong);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.card-meta small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.lane-add {
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  min-height: 32px;
}
.list-detail {
  display: none;
  width: 340px;
  flex: none;
  border-left: 1px solid var(--border);
  background: var(--panel-2);
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.list-page.with-detail .list-detail {
  display: flex;
}
.list-detail > h5 {
  padding: 0 14px;
}
.list-detail > .link-btn {
  margin: 10px 14px 16px;
  align-self: flex-start;
}
.detail-fields {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.detail-field {
  display: grid;
  gap: 4px;
}
.detail-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.detail-field .cell-input,
.detail-field .cell-btn,
.detail-field .cell-link {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.detail-field .cell-link .cell-input {
  border: 0;
}
.detail-field.t-checkbox input {
  justify-self: start;
}
.list-detail .doc-comment-list {
  flex: none;
}
.person-menu {
  display: grid;
  gap: 8px;
  padding: 6px;
  width: 260px;
}
.pick-list.small {
  max-height: 240px;
}
.wide-menu {
  padding: 4px;
}

.docs-view .docs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px 10px;
}
.docs-head h2 {
  margin: 0;
}
.docs-filter {
  padding: 0 20px 10px;
}
.docs-filter .input {
  max-width: 320px;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  padding: 4px 20px 24px;
  overflow-y: auto;
  align-content: start;
  flex: 1;
}
.doc-grid > .empty {
  grid-column: 1 / -1;
}
.doc-tile {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
  padding: 14px;
  align-content: start;
  min-height: 150px;
}
.doc-tile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.doc-tile p {
  margin: 0;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chan-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.chan-tab {
  white-space: nowrap;
  max-width: 200px;
}
@media (max-width: 760px) {
  .doc-comments,
  .list-detail {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(100%, 360px);
    z-index: 5;
    box-shadow: var(--shadow);
  }
  .doc-body {
    padding: 16px 16px 100px;
  }
  .doc-head {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .history-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}
.chan-tab {
  flex: none;
}
.chan-tab .tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ================= uygulamalar ve iş akışları ================= */
.apps-body {
  display: grid;
  gap: 8px;
}
.apps-actions {
  display: flex;
  justify-content: flex-end;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}
.app-row:hover {
  background: var(--hover);
}
.app-row .grow {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cmd-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.cmd-chips code,
.app-item code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 12px;
}
.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}
.app-head h3 {
  margin: 0;
  font-size: 18px;
}
.app-sec {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.app-sec h4 {
  margin: 0;
}
.app-sec p {
  margin: 0;
}
.app-sec .field,
.app-sec .input {
  width: 100%;
}
.app-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.app-item .grow {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6px;
  width: 100%;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form .input {
  max-width: 240px;
}
.secret-box {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}
.secret-box label {
  font-weight: 700;
  font-size: 13px;
}
.secret-row {
  display: flex;
  gap: 6px;
}
.input.mono,
.code-sample {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
}
.code-sample {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}

.wf-list {
  display: grid;
  gap: 8px;
  padding: 4px 20px 24px;
  overflow-y: auto;
  align-content: start;
  flex: 1;
}
.wf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
}
.wf-row.off {
  opacity: 0.6;
}
.wf-row .grow {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.wf-emoji {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}
.wf-last {
  font-size: 12px;
}
.wf-last.done {
  color: var(--accent-text);
}
.wf-last.failed {
  color: var(--danger);
}
.wf-last.waiting {
  color: #b45309;
}
.switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.15s;
  pointer-events: none;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.switch input:checked + span {
  background: var(--accent);
}
.switch input:checked + span::after {
  transform: translateX(16px);
}
.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.run-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.run-row .grow {
  flex: 1;
}
.run-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}
.run-row.done .run-dot {
  background: var(--accent);
}
.run-row.failed .run-dot {
  background: var(--danger);
}
.run-row.waiting .run-dot {
  background: #f59e0b;
}
.run-error {
  width: 100%;
  color: var(--danger);
  padding-left: 16px;
}

.wf-editor {
  display: grid;
  gap: 10px;
}
.wf-title {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wf-emoji-btn {
  width: 44px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 22px;
  flex: none;
}
.wf-name {
  font-size: 16px;
  font-weight: 700;
}
.wf-sec {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: var(--panel-2);
}
.wf-sec > h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wf-sec .field {
  margin: 0;
}
.wf-step {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--bg);
  display: grid;
  gap: 8px;
}
.wf-step-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wf-step-head .grow {
  flex: 1;
}
.wf-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #03140e;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.i-sm.up,
svg.up {
  transform: rotate(180deg);
}
.var-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.var-chip {
  border: 1px dashed var(--border-strong);
  background: var(--bg);
  color: var(--accent-text);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.var-chip:hover {
  border-color: var(--accent);
  background: var(--selected);
}
.form-field-row {
  display: grid;
  grid-template-columns: 1fr 130px auto auto;
  gap: 6px;
  align-items: center;
}
.form-field-row .opts {
  grid-column: 1 / -1;
}
.req {
  color: var(--danger);
}
.avatar.wf-avatar {
  background: var(--accent-soft);
  font-size: 20px;
}
.msg-label.ephemeral {
  color: var(--text-2);
  gap: 6px;
}
.msg-label.ephemeral .link-btn {
  margin-left: 4px;
}
@media (max-width: 760px) {
  .app-grid,
  .form-field-row {
    grid-template-columns: 1fr;
  }
}

/* ================= yönetim, roller, SSO, yapay zekâ ================= */
.admin-body {
  padding: 0 24px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  max-height: calc(var(--ekran-h) - 120px);
  overflow-y: auto;
}
.admin-body h2 {
  margin: 0;
  font-size: 20px;
}
.admin-body h4 {
  margin: 8px 0 0;
}
.admin-body p {
  margin: 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 2px;
  background: var(--panel-2);
}
.stat strong {
  font-size: 22px;
}
.stat span {
  color: var(--text-2);
  font-size: 13px;
}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  border-bottom: 1px solid var(--border);
  padding-top: 6px;
}
.bar-chart .bar {
  flex: 1;
  min-height: 2px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.bar-chart .bar:hover {
  opacity: 1;
}
.admin-list {
  display: grid;
  gap: 4px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.admin-row .grow {
  flex: 1;
  min-width: 0;
  display: grid;
}
.admin-row .grow small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row.off {
  opacity: 0.55;
}
.admin-row select.input {
  width: auto;
  max-width: 140px;
}
.admin-form {
  display: grid;
  gap: 10px;
  max-width: 560px;
}
.admin-form .field {
  margin: 0;
}
.export-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.export-cards .stat strong {
  font-size: 16px;
}
.export-cards .btn {
  margin-top: 8px;
  justify-self: start;
}
.role-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
  background: var(--panel-3);
  color: var(--text-2);
}
.role-badge.owner {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}
.role-badge.admin {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.role-badge.guest {
  background: rgba(139, 92, 246, 0.16);
  color: #6d28d9;
}
.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.sso-btn:hover {
  background: var(--hover);
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 12px;
  margin: 12px 0;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.ai-summary {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  animation: rec-blink 1.4s ease-in-out infinite;
}
.ai-text {
  white-space: pre-wrap;
  line-height: 1.55;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
@media (max-width: 760px) {
  .admin-body {
    padding: 0 14px 18px;
  }
  .admin-row {
    flex-wrap: wrap;
  }
}
.push-row {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.push-row p {
  margin: 0;
}

/* ================= tercihler: uygulanan görünüm ayarları ================= */
html.font-system {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html.font-system button,
html.font-system input,
html.font-system textarea,
html.font-system select {
  font-family: inherit;
}
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
html.underline-links .msg-body a,
html.underline-links .doc-editor a {
  text-decoration: underline;
}
html.no-rail-labels .rail-tab {
  font-size: 0;
  gap: 0;
}
html.no-rail-labels .rail-tab .dot {
  font-size: 10px;
}
html.density-compact .msg {
  padding-top: 3px;
  padding-bottom: 3px;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
}
html.density-compact .msg.continued {
  padding-top: 0;
  padding-bottom: 0;
}
html.density-compact .msg-gutter .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border-radius: 6px;
}
html.density-compact .msg-body {
  line-height: 1.38;
}
html.density-compact .msg-head {
  line-height: 1.2;
}
.presence-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  margin: 0 7px 0 7px;
  box-shadow: inset 0 0 0 1.6px var(--chrome-text-dim);
}
.presence-dot.active {
  background: #2bd48f;
  box-shadow: none;
}
.presence-dot.away {
  box-shadow: inset 0 0 0 1.6px #f59e0b;
}
.swatch {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 3px;
  margin-right: 3px;
  vertical-align: -0.05em;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* ================= tercihler penceresi ================= */
.prefs-nav h3 + button {
  margin-top: 0;
}
.prefs-nav h3:not(:first-child) {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin: 18px 8px 6px;
}
.prefs-nav {
  overflow-y: auto;
  max-height: 80vh;
}
.prefs-close {
  display: flex;
  justify-content: flex-end;
  padding: 10px 10px 0;
}
.prefs-body h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.prefs-body section {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.prefs-body section > .input,
.prefs-body section > .field,
.prefs-body section > .people-pref {
  width: 100%;
  max-width: 460px;
}
.prefs-body .check span small,
.radio-list label span small {
  display: block;
  font-weight: 400;
}
.radio-list label span {
  display: grid;
}
.inline-form.wrap {
  flex-wrap: wrap;
}
.input.time {
  max-width: 110px;
}
.tone-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 20px;
  display: grid;
  place-items: center;
  padding: 0;
}
.tone-btn.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
}
.mic-level {
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: var(--panel-3);
  overflow: hidden;
}
.mic-level span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.08s;
}
.people-pref {
  display: grid;
  gap: 4px;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.account-head > div {
  flex: 1;
  display: grid;
}
.recovery {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.recovery pre {
  columns: 2;
}
.steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
@media (max-width: 760px) {
  .prefs-layout {
    grid-template-columns: 1fr;
  }
  .prefs-nav {
    max-height: none;
  }
}
.mfa-code {
  font-size: 22px;
  letter-spacing: 0.3em;
  text-align: center;
}

/* ================= topluluklar: şerit ================= */
.c-tiles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  flex: 0 1 auto;
  width: 100%;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.c-tiles::-webkit-scrollbar {
  display: none;
}
.rail-sep {
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: var(--chrome-border);
  margin: 2px 0;
  flex: none;
}
.c-tile {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--chrome-text);
}
.c-tile .c-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: border-radius 0.15s;
  object-fit: cover;
}
.c-tile:hover .c-icon,
.c-tile.active .c-icon {
  border-radius: 14px;
}
.c-icon.c-initials {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.c-icon.md {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 18px;
}
.c-icon.lg {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  font-size: 26px;
}
.c-pill {
  position: absolute;
  left: -14px;
  width: 4px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--chrome-text);
  transition: height 0.15s;
}
.c-tile.unread .c-pill {
  height: 8px;
}
.c-tile:hover .c-pill {
  height: 20px;
}
.c-tile.active .c-pill {
  height: 36px;
}
.c-badge {
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--badge);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--chrome-bg);
}
.c-voice {
  position: absolute;
  right: -4px;
  top: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--chrome-bg);
}
.c-voice svg {
  width: 11px;
  height: 11px;
}
.c-tile.c-action {
  border-radius: 50%;
  background: var(--chrome-hover);
  color: var(--accent);
  transition: border-radius 0.15s, background 0.15s, color 0.15s;
}
.c-tile.c-action:hover,
.c-tile.c-action.active {
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
}

/* ================= topluluk kenar çubuğu ================= */
.community-side .c-head {
  position: relative;
}
.community-side .c-head.has-banner {
  height: 120px;
  align-items: flex-start;
  padding-top: 10px;
}
.c-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.c-head.has-banner .ws-name,
.c-head.has-banner .head-btn {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.c-uncat {
  margin: 4px 0 2px;
}
.side-title.c-cat .toggle {
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.c-chan {
  position: relative;
}
.c-chan .c-chan-gear {
  display: none;
  margin-left: auto;
  opacity: 0.75;
}
.c-chan:hover .c-chan-gear,
.c-chan.active .c-chan-gear {
  display: inline-grid;
}
.c-chan.connected {
  color: var(--chrome-text);
}
.c-chan.drop-before {
  box-shadow: inset 0 2px 0 var(--accent);
}
.voice-users {
  display: grid;
  gap: 1px;
  padding: 0 0 4px 30px;
}
.voice-user {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--chrome-text-dim);
  font-size: 13.5px;
  padding: 3px 8px;
  border-radius: 6px;
  text-align: left;
  min-width: 0;
}
.voice-user:hover {
  background: var(--chrome-hover);
  color: var(--chrome-text);
}
.voice-user .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-user .avatar {
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.15s;
}
.voice-user.speaking .avatar {
  box-shadow: 0 0 0 2px var(--accent);
}
.voice-user svg.i-sm {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.live-tag {
  background: #e11d48;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
  letter-spacing: 0.03em;
  flex: none;
}
.limit-tag {
  font-size: 11px;
  color: var(--chrome-text-dim);
  background: var(--chrome-hover);
  border-radius: 4px;
  padding: 0 4px;
}
.c-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: inherit;
  padding: 8px 10px;
  margin: 4px 0 8px;
  font-size: 13.5px;
  text-align: left;
}
.c-notice.warn {
  background: rgba(245, 158, 11, 0.16);
}
.community-side .c-notice {
  color: var(--chrome-text);
}

/* ================= üye listesi ve profil kartı ================= */
.member-panel {
  width: var(--members-w, 260px);
  background: var(--panel-2);
}
.member-list {
  overflow-y: auto;
  padding: 8px 8px 24px;
  display: grid;
  gap: 1px;
  align-content: start;
}
.member-list h4 {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin: 14px 8px 4px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 5px 8px;
  border-radius: 8px;
  text-align: left;
  color: var(--text);
  min-width: 0;
}
.member-row:hover {
  background: var(--hover);
}
.member-row.offline {
  opacity: 0.5;
}
.member-row:hover.offline {
  opacity: 1;
}
.member-row .who {
  display: grid;
  min-width: 0;
}
.member-row .name {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-row .owner {
  color: #f59e0b;
  display: inline-grid;
}
.member-row small {
  color: var(--text-3);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-row small.warn,
.pill.warn {
  color: #b45309;
}
.menu.card-menu {
  padding-top: 0;
  min-width: 300px;
  max-width: 320px;
}
.profile-card {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 0 14px 12px;
}
.profile-card .pc-banner {
  height: 60px;
  margin: 0 -14px;
  width: calc(100% + 28px);
  border-radius: 10px 10px 0 0;
  opacity: 0.9;
}
.profile-card .avatar {
  margin-top: -34px;
  box-shadow: 0 0 0 5px var(--bg);
}
.profile-card h3 {
  margin: 6px 0 0;
  font-size: 19px;
}
.profile-card .pc-section {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 6px;
}
.profile-card h5,
.sticker-picker h5,
.stage-window h5 {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 0 0 6px;
}
.profile-card .input {
  margin-top: 8px;
  width: 100%;
}
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  background: var(--panel-2);
}
.role-chip i,
.role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

/* ================= oluşturma, davet, keşif ================= */
.template-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.template {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  color: var(--text);
}
.template:hover {
  background: var(--hover);
  border-color: var(--border-strong);
}
.template .emoji {
  font-size: 26px;
}
.template > span:nth-child(2) {
  flex: 1;
  display: grid;
}
.template small {
  color: var(--text-3);
}
.template-join {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.template-join h4 {
  margin: 0 0 8px;
}
.icon-pick {
  display: block;
  margin: 10px auto 14px;
  border: 0;
  background: none;
  padding: 0;
}
.icon-drop {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px dashed var(--border-strong);
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--text-3);
  overflow: hidden;
}
.icon-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.icon-drop small {
  font-size: 10px;
  font-weight: 800;
}
.muted.small,
p.small {
  font-size: 12.5px;
}
.invite-landing {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 4px 0;
}
.invite-landing h2 {
  margin: 0;
}
.invite-banner {
  width: calc(100% + 48px);
  margin: -24px -24px 6px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.invite-stats {
  display: flex;
  gap: 16px;
  color: var(--text-2);
  font-size: 13.5px;
}
.invite-stats .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  margin-right: 5px;
}
.invite-stats .dot.on {
  background: #2bd48f;
}
.invite-friends {
  max-height: 240px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  margin: 8px 0 14px;
}
.invite-friend,
.person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: 8px;
}
.invite-friend:hover,
.person-row:hover {
  background: var(--hover);
}
.discover {
  overflow-y: auto;
}
.discover-hero {
  margin: 18px 22px 10px;
  border-radius: 16px;
  padding: 36px 32px;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.35), transparent 55%), linear-gradient(135deg, #0b3b2c, #10b981);
  color: #fff;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}
.discover-hero h1 {
  margin: 0;
  font-size: 30px;
}
.discover-hero p {
  margin: 0;
  opacity: 0.9;
}
.discover-search {
  max-width: 520px;
  width: 100%;
  margin-top: 8px;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.discover-cats,
.forum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 22px 8px;
}
button.chip {
  border: 1px solid transparent;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-2);
}
button.chip:hover {
  background: var(--panel-3);
}
button.chip.on {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: var(--accent);
}
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 8px 22px 32px;
}
.discover-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  transition: transform 0.12s, box-shadow 0.12s;
}
.discover-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.discover-card .cover {
  height: 96px;
}
.discover-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discover-card .c-icon {
  margin: -28px 0 0 14px;
  box-shadow: 0 0 0 4px var(--bg);
}
.discover-card h3 {
  margin: 8px 14px 2px;
  font-size: 16px;
}
.discover-card p {
  margin: 0 14px;
  color: var(--text-2);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discover-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--text-3);
}

/* ================= kanal oluşturma, etkinlikler ================= */
.type-list {
  display: grid;
  gap: 6px;
}
.type-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  cursor: pointer;
  border: 1px solid transparent;
}
.type-option.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.type-option input {
  order: 3;
  margin-left: auto;
}
.type-option > span {
  display: grid;
}
.type-option small {
  color: var(--text-3);
}
.prefixed {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding-left: 10px;
  background: var(--bg);
}
.prefixed .input {
  border: 0;
  box-shadow: none;
  flex: 1;
}
.name-prefix {
  color: var(--text-3);
  display: grid;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 12px;
}
.event-list {
  display: grid;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
}
.event-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.event-card.live {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.event-card .when {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-text);
}
.event-card.live .when {
  color: #e11d48;
}
.event-card h3 {
  margin: 0;
  font-size: 17px;
}
.event-card .where {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13.5px;
}
.event-card .foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.event-card .foot .grow,
.grow {
  flex: 1;
}
.btn.on {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}

/* ================= forum ================= */
.forum-view {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 24px;
}
.forum-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 6px;
}
.forum-list {
  display: grid;
  gap: 10px;
  padding: 6px 22px;
}
.forum-post {
  display: flex;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
}
.forum-post:hover {
  border-color: var(--border-strong);
  background: var(--panel-3);
}
.fp-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.fp-main h3 {
  margin: 0;
  font-size: 16.5px;
}
.fp-main p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.fp-tags .tag {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px;
}
.fp-meta {
  display: flex;
  gap: 14px;
  color: var(--text-3);
  font-size: 12.5px;
  align-items: center;
}
.fp-thumb {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.input-sm {
  width: auto;
  padding: 5px 8px;
  font-size: 13px;
}
.post-title {
  margin: 0 0 4px;
  font-size: 18px;
}

/* ================= karşılama ================= */
.onb-prompt h4 {
  margin: 8px 0;
}
.onb-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.onb-option {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.onb-option.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
}
.rules {
  background: var(--panel-2);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
  max-height: 40vh;
  overflow-y: auto;
}
.rules h4 {
  margin: 0 0 6px;
}

/* ================= topluluk ayarları ================= */
.prefs-nav button.danger {
  color: var(--danger);
}
.roles-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.role-list {
  display: grid;
  gap: 2px;
  position: sticky;
  top: 0;
}
.role-list > small {
  margin: 4px 0;
}
.role-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 8px;
  text-align: left;
}
.role-item:hover {
  background: var(--hover);
}
.role-item.active {
  background: var(--selected);
  font-weight: 700;
}
.role-editor h2 {
  font-size: 18px;
}
.seg {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 6px 0 14px;
}
.seg button {
  border: 0;
  background: none;
  padding: 8px 10px;
  color: var(--text-2);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.seg button.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.swatch-btn.on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}
.swatch-btn.none {
  background: repeating-linear-gradient(45deg, var(--panel-3), var(--panel-3) 4px, var(--bg) 4px, var(--bg) 8px);
}
.color-input {
  width: 40px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
}
.perm-groups {
  display: grid;
  gap: 14px;
}
.perm-group h5 {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin: 8px 0 2px;
}
.perm-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.perm-row > span {
  flex: 1;
  display: grid;
}
input.switch {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background 0.15s;
  margin: 0;
}
input.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
input.switch:checked {
  background: var(--accent);
}
input.switch:checked::after {
  transform: translateX(18px);
}
input.switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.tri {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}
.tri button {
  width: 32px;
  height: 28px;
  border: 0;
  background: var(--bg);
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.tri button + button {
  border-left: 1px solid var(--border);
}
.tri .deny.on {
  background: #dc2626;
  color: #fff;
}
.tri .inherit.on {
  background: var(--panel-3);
  color: var(--text);
}
.tri .allow.on {
  background: #16a34a;
  color: #fff;
}
.member-table {
  display: grid;
  margin: 10px 0;
}
.mt-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.mt-row.mt-head {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.mt-row .who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mt-row .who > span {
  display: grid;
  min-width: 0;
}
.mt-row.dim {
  opacity: 0.55;
}
.row-end {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.automod-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
}
.automod-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.automod-card header > span {
  display: grid;
}
.automod-actions {
  display: grid;
  gap: 4px;
}
.automod-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-select .chip {
  cursor: pointer;
  padding: 3px 8px;
}
.onb-edit {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0;
  display: grid;
  gap: 6px;
}
.emoji-in {
  width: 54px;
  text-align: center;
}
.audit-list {
  display: grid;
  margin-top: 10px;
}
.audit-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.audit-row .grow {
  display: grid;
  gap: 2px;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.sticker-grid.small {
  grid-template-columns: repeat(4, 64px);
  margin-top: 0;
  gap: 6px;
}
.sticker-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  justify-items: center;
  gap: 4px;
  position: relative;
}
.sticker-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.sticker-item .icon-btn {
  position: absolute;
  top: 4px;
  right: 4px;
}
.sound-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.sound-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.image-box {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  min-height: 110px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  overflow: hidden;
}
.image-box img {
  max-width: 100%;
  max-height: 110px;
  border-radius: 10px;
  object-fit: cover;
}
.image-box.icon img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}
.image-actions {
  display: flex;
  gap: 6px;
}
.community-settings .prefs-body {
  max-width: 820px;
}

/* ================= arkadaşlar ================= */
.friends-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.friends-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.friends-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--border);
}
.friends-tabs button {
  border: 0;
  background: none;
  color: var(--text-2);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.friends-tabs button:hover {
  background: var(--hover);
  color: var(--text);
}
.friends-tabs button.on {
  background: var(--selected);
  color: var(--text);
}
.friends-tabs button.add {
  background: var(--accent);
  color: #fff;
}
.friends-tabs button.add.on {
  background: none;
  color: var(--accent-text);
}
.friends-main {
  display: flex;
  flex: 1;
  min-height: 0;
}
.friends-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px 24px;
}
.friends-count {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin: 12px 0 6px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.friend-row:hover {
  background: var(--hover);
}
.friend-row .grow {
  display: grid;
  min-width: 0;
}
.friend-row .handle {
  font-weight: 400;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.12s;
}
.friend-row:hover .handle {
  opacity: 1;
}
.friend-actions {
  display: flex;
  gap: 8px;
}
.round-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--panel-3);
  color: var(--text-2);
  display: grid;
  place-items: center;
}
.round-btn:hover {
  color: var(--text);
}
.round-btn.ok:hover {
  color: #16a34a;
}
.round-btn.no:hover {
  color: var(--danger);
}
.add-friend {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.add-friend h3 {
  margin: 4px 0;
  font-size: 15px;
}
.add-friend-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 6px 6px 6px 12px;
  background: var(--panel-2);
  margin-top: 10px;
}
.add-friend-box:focus-within {
  border-color: var(--accent);
}
.add-friend-box .input {
  border: 0;
  background: none;
  box-shadow: none;
  flex: 1;
}
.form-note {
  font-size: 13.5px;
  margin: 8px 0 0;
}
.form-note.ok {
  color: #16a34a;
}
.form-note.err {
  color: var(--danger);
}
.active-now {
  width: 320px;
  border-left: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  align-content: start;
}
.active-now h3 {
  margin: 0 0 4px;
}
.active-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel-2);
  text-align: left;
  color: var(--text);
}
.active-card > span {
  display: grid;
  min-width: 0;
}
.active-now .quiet {
  text-align: center;
  padding: 12px;
}
@media (max-width: 1000px) {
  .active-now {
    display: none;
  }
}

/* ================= mesaj ekleri: yanıt, çıkartma, AutoMod ================= */
.blocked-run {
  margin: 4px 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text-3);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.reply-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 13px;
  padding: 0 0 2px 22px;
  min-width: 0;
  text-align: left;
  position: relative;
}
.reply-strip .spine {
  width: 26px;
  height: 10px;
  border: 2px solid var(--border-strong);
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 6px;
  margin-top: 8px;
  flex: none;
}
.reply-strip strong {
  color: var(--text-2);
  flex: none;
}
.reply-strip .snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.reply-strip:hover .snippet {
  color: var(--text);
}
img.sticker {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin-top: 4px;
}
.automod-alert {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  display: grid;
  gap: 4px;
}
.automod-alert .head,
.automod-alert .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.automod-alert blockquote {
  margin: 0;
  padding: 4px 10px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-2);
}
.replying {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 10px 10px 0 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.menu.sticker-menu {
  max-width: 320px;
}
.sticker-picker {
  padding: 6px 8px;
  max-height: 320px;
  overflow-y: auto;
}
.sticker-pick {
  width: 64px;
  height: 64px;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 4px;
}
.sticker-pick:hover {
  background: var(--hover);
}
.sticker-pick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chan-topic {
  color: var(--text-3);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 40%;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.intro-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--panel-3);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
svg.i-xl {
  width: 36px;
  height: 36px;
}
.icon-btn.on {
  color: var(--text);
  background: var(--selected);
}

/* ================= sesli kanal: ses panosu ve sahne ================= */
.soundboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 8px 8px;
  max-width: 320px;
}
.sound-btn {
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 12.5px;
  display: grid;
  justify-items: center;
  gap: 2px;
}
.sound-btn span {
  font-size: 20px;
}
.sound-btn:hover {
  border-color: var(--accent);
}
.stage-window {
  overflow-y: auto;
}
.stage-window h5 {
  color: rgba(255, 255, 255, 0.6);
  margin: 12px 16px 6px;
}
.stage-topic {
  margin: 0 16px;
  opacity: 0.8;
}
.stage-speakers,
.stage-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 4px 16px;
}
.stage-person {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  max-width: 96px;
  text-align: center;
}
.stage-person .avatar {
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow 0.15s;
}
.stage-person.speaking .avatar {
  box-shadow: 0 0 0 3px var(--accent);
}
@media (max-width: 760px) {
  .roles-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .mt-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .mt-row > :nth-child(2),
  .mt-row > :nth-child(3) {
    display: none;
  }
  .member-panel {
    display: none;
  }
}

/* ================= Genişletilmiş biçimler ================= */
.spoiler {
  background: var(--text);
  color: transparent;
  border-radius: 4px;
  padding: 0 2px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.spoiler.revealed {
  background: var(--panel-3);
  color: inherit;
  cursor: text;
}
.spoiler:not(.revealed) * {
  visibility: hidden;
}
.md-h1,
.md-h2,
.md-h3 {
  display: block;
  font-weight: 800;
  line-height: 1.3;
  margin: 6px 0 2px;
}
.md-h1 {
  font-size: 1.5em;
}
.md-h2 {
  font-size: 1.25em;
}
.md-h3 {
  font-size: 1.08em;
}
.subtext {
  display: block;
  font-size: 0.8em;
  color: var(--text-3);
}
time.stamp {
  background: var(--panel-3);
  border-radius: 4px;
  padding: 0 3px;
}
.friends-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  text-align: left;
}
.friends-entry:hover,
.friends-entry.active {
  background: var(--selected);
}
.discover-hero .btn:not(.btn-primary) {
  color: var(--text);
  background: var(--bg);
}

/* ================= NatureCo: akış ================= */
.ws-name.static {
  cursor: default;
}
.feed-view {
  display: grid;
  grid-template-columns: minmax(0, 640px) 300px;
  gap: 24px;
  justify-content: center;
  overflow-y: auto;
  height: 100%;
  padding: 16px 20px 40px;
  align-items: start;
}
.feed-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.feed-side {
  position: sticky;
  top: 0;
  display: grid;
  gap: 16px;
}
.trend-tags,
.suggest {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg);
}
.trend-tags:empty {
  display: none;
}
.trend-tags > strong,
.suggest > strong {
  width: 100%;
  margin-bottom: 4px;
}
.suggest {
  display: grid;
}
.suggest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.feed-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.feed-tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.feed-tabs button.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.post-list {
  display: grid;
  gap: 14px;
}
.post-composer,
.post-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 16px;
}
.pc-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.composer-ta {
  flex: 1;
  border: 0;
  resize: none;
  font: inherit;
  font-size: 16px;
  background: none;
  color: var(--text);
  outline: none;
  padding: 8px 0;
  min-height: 44px;
}
.pc-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.post-tool {
  border: 0;
  background: none;
  color: var(--accent-text);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-tool:hover,
.post-tool.on {
  background: var(--accent-soft);
}
.post-tool.vis {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.post-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.post-thumb img,
.post-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.post-thumb .uploading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}
.post-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-who {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  text-align: left;
  min-width: 0;
}
.post-who > span {
  display: grid;
  min-width: 0;
}
.post-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}
.post-meta time {
  cursor: pointer;
}
.post-text {
  margin: 10px 0 4px;
  font-size: 15.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.post-text .hashtag,
.post-text .mention {
  border: 0;
  background: none;
  padding: 0;
  color: var(--link);
  font-weight: 600;
  cursor: pointer;
}
.post-media {
  position: relative;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  max-height: 560px;
  display: grid;
  place-items: center;
}
.post-media img,
.post-media video {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
}
.post-media .car {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  display: grid;
  place-items: center;
}
.post-media .car:disabled {
  display: none;
}
.post-media .prev {
  left: 10px;
}
.post-media .next {
  right: 10px;
}
.car-dots {
  position: absolute;
  bottom: 10px;
  display: flex;
  gap: 5px;
}
.car-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.car-dots i.on {
  background: #fff;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.post-act {
  border: 0;
  background: none;
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.post-act:hover {
  background: var(--hover);
}
.post-act.on {
  color: #e11d48;
}
.post-act.on-green {
  color: var(--accent-text);
}
.post-act .emo {
  font-size: 17px;
}
.react-top {
  font-size: 14px;
  letter-spacing: -2px;
}
.react-picker {
  display: flex;
  gap: 2px;
  padding: 4px;
}
.react-picker button {
  border: 0;
  background: none;
  font-size: 24px;
  border-radius: 10px;
  padding: 4px 6px;
  transition: transform 0.1s;
}
.react-picker button:hover {
  transform: scale(1.25);
}
.react-picker button.on {
  background: var(--accent-soft);
}
.repost-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.post-card .post-card {
  border-radius: 12px;
}
.quote {
  margin-top: 10px;
}
.quote .post-card {
  background: var(--panel-2);
}
.post-card.unavailable {
  color: var(--text-3);
  font-style: italic;
}
.post-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  margin: auto;
}
.post-detail {
  display: grid;
  gap: 12px;
}
.comments {
  display: grid;
  gap: 12px;
  max-height: 46vh;
  overflow-y: auto;
}
.comment {
  display: flex;
  gap: 10px;
}
.comment.pinned > .grow {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 6px 8px;
}
.comment .post-text {
  margin: 2px 0;
  font-size: 14.5px;
}
.c-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-actions {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
}
.c-actions .link-btn.danger {
  color: var(--danger);
}
.comment.reply {
  margin-top: 8px;
}
.comment-form .inline-form {
  align-items: center;
}
.center {
  text-align: center;
  justify-content: center;
}

/* ================= hikâyeler ================= */
.story-bar {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
}
.story-ring {
  border: 0;
  background: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 12px;
  flex: none;
  width: 72px;
}
.story-ring small {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-ring .ring {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid;
}
.story-ring .ring.has {
  border-color: var(--text-3);
}
.story-ring .ring.unseen,
.profile-avatar.ring.unseen {
  border: 0;
  padding: 5px;
  background: conic-gradient(#10b981, #22d3ee, #8b5cf6, #ec4899, #f59e0b, #10b981);
}
.story-ring .ring.unseen .avatar,
.profile-avatar.ring.unseen .avatar {
  box-shadow: 0 0 0 3px var(--bg);
}
.story-ring .plus {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.hl-cover {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.hl-cover.text {
  display: grid;
  place-items: center;
  background: var(--panel-3);
  font-size: 22px;
}
.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 10, 8, 0.92);
  display: grid;
  place-items: center;
}
.story-box {
  width: min(420px, 100vw);
  height: min(760px, var(--ekran-h));
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
}
.story-bars {
  display: flex;
  gap: 4px;
  padding: 10px 10px 6px;
}
.story-bars i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.story-bars b {
  display: block;
  height: 100%;
  background: #fff;
}
.story-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 8px;
}
.story-head .icon-btn {
  color: #fff;
}
.story-stage {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 0;
}
.story-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.story-caption {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  padding: 24px;
  overflow-wrap: anywhere;
}
.story-caption.over {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  font-size: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.story-post {
  position: absolute;
  bottom: 20px;
}
.story-stage .tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  border: 0;
  background: none;
}
.story-stage .tap.left {
  left: 0;
}
.story-stage .tap.right {
  right: 0;
}
.story-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px;
}
.story-foot .input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.story-react {
  border: 0;
  background: none;
  font-size: 20px;
  padding: 2px;
}
.story-react.on {
  transform: scale(1.2);
}
.fly-emoji {
  position: absolute;
  bottom: 80px;
  left: 50%;
  font-size: 40px;
  animation: fly-up 1.4s ease-out forwards;
  pointer-events: none;
}
.fly-emoji.live {
  bottom: 20px;
  font-size: 30px;
  animation-duration: 2.2s;
}
@keyframes fly-up {
  to {
    transform: translateY(-260px) scale(1.4);
    opacity: 0;
  }
}
.story-compose {
  position: relative;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 10px 0;
}
.story-compose .story-media {
  position: absolute;
  inset: 0;
}
.story-caption-in {
  position: relative;
  z-index: 1;
  width: 85%;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  resize: none;
  outline: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.story-caption-in::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.story-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bg-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong);
}

/* ================= profil ================= */
.profile-view {
  overflow-y: auto;
  height: 100%;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 40px;
}
.profile-cover {
  height: 200px;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: -56px;
}
.profile-avatar {
  border: 0;
  background: var(--bg);
  padding: 4px;
  border-radius: 50%;
}
.profile-avatar .avatar {
  width: 112px;
  height: 112px;
  font-size: 40px;
  border-radius: 50%;
}
.profile-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.profile-info {
  padding: 8px 20px 4px;
  display: grid;
  gap: 6px;
}
.profile-info h1 {
  margin: 0;
  font-size: 26px;
}
.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-2);
  font-size: 14px;
}
.profile-stats {
  display: flex;
  gap: 18px;
}
.profile-stats .stat {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
}
.profile-stats .stat small {
  color: var(--text-3);
}
.highlights {
  display: flex;
  gap: 14px;
  padding: 12px 20px;
  overflow-x: auto;
}
.profile-view .feed-tabs,
.profile-view .post-list {
  margin: 0 20px;
}
.profile-view .post-list {
  margin-top: 14px;
}
.about-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}

/* ================= Tohum ================= */
.tohum {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #faf8f5;
  color: #27251e;
}
:root[data-theme="dark"] .tohum {
  background: #1c1a15;
  color: #f1ece2;
}
.tohum-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.tohum.kurudu .tohum-img {
  filter: grayscale(1) sepia(0.4) brightness(0.7);
}
.tohum-info {
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
}
.tohum-stage {
  font-weight: 800;
}
.tohum-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  overflow: hidden;
}
.tohum-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #84cc16, #10b981);
  transition: width 0.4s;
}
.tohum-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gardeners {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
}
.tohum-pick {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 0;
  margin: 10px 0;
}
.tohum-drop {
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--text-3);
  overflow: hidden;
}
.tohum-drop img {
  max-height: 240px;
  max-width: 100%;
  border-radius: 10px;
  filter: blur(14px);
}

/* ================= bildirimler ================= */
.view-head {
  padding: 16px 20px 6px;
}
.view-head h2 {
  margin: 0;
}
.notif-list {
  display: grid;
  padding: 6px 12px 30px;
  overflow-y: auto;
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  color: var(--text);
  padding: 10px 10px;
  border-radius: 12px;
}
.notif:hover {
  background: var(--hover);
}
.notif.unread {
  background: var(--accent-soft);
}

/* ================= oyunlar ================= */
.games-view,
.live-view,
.forum-hub {
  overflow-y: auto;
}
.games-hero {
  margin: 18px 22px 10px;
  border-radius: 16px;
  padding: 28px 30px;
  background: radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.45), transparent 50%), linear-gradient(135deg, #0a0f14, #0b3b2c);
  color: #fff;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.games-hero h1 {
  margin: 0;
}
.games-hero p {
  margin: 0;
  opacity: 0.85;
}
.games-hero .input {
  max-width: 480px;
}
.live-hero {
  background: radial-gradient(circle at 85% 15%, rgba(244, 63, 94, 0.45), transparent 50%), linear-gradient(135deg, #0a0f14, #3b0b1a);
}
.forum-hero {
  background: radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.4), transparent 50%), linear-gradient(135deg, #0a0f14, #0b2a3b);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 8px 22px 32px;
}
.game-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--bg);
}
.game-art {
  height: 120px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 56px;
  background: linear-gradient(135deg, #14532d, #84cc16);
}
.game-card.uzay .game-art {
  background: radial-gradient(circle at 30% 30%, #1e3a8a, #050b14);
}
.game-card.kristal .game-art {
  background: linear-gradient(135deg, #4c1d95, #22d3ee);
}
.game-card h3,
.game-card p {
  margin: 0;
}
.leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
}
.leaderboard li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 8px;
}
.leaderboard li.me {
  background: var(--accent-soft);
}
.leaderboard .rank {
  width: 22px;
}
.game-dialog {
  width: min(880px, 96vw);
  max-width: none;
}
.game-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.game-wrap {
  position: relative;
}
.game-stage {
  display: grid;
  gap: 8px;
}
.game-hud {
  display: flex;
  gap: 18px;
  font-size: 15px;
}
.game-canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #050b14;
  touch-action: none;
  outline: none;
}
.seed-field {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 120%, #4d3a1f, #2b1d0e 60%), #2b1d0e;
  overflow: hidden;
  user-select: none;
}
.seed {
  position: absolute;
  border: 0;
  background: none;
  font-size: 36px;
  transform: translate(-50%, -50%);
  animation: seed-in 0.18s ease-out;
  cursor: pointer;
}
.seed.gold {
  font-size: 40px;
  filter: drop-shadow(0 0 10px #fbbf24);
}
.seed.hit {
  animation: seed-hit 0.2s ease-out forwards;
}
@keyframes seed-in {
  from {
    transform: translate(-50%, -50%) scale(0);
  }
}
@keyframes seed-hit {
  to {
    transform: translate(-50%, -90%) scale(1.6);
    opacity: 0;
  }
}
.game-result {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: rgba(5, 11, 20, 0.86);
  color: #fff;
  border-radius: 12px;
  text-align: center;
}
.game-result h2 {
  margin: 0;
}
.big-score {
  font-size: 54px;
  font-weight: 900;
}
.modal-actions.center {
  justify-content: center;
}

/* ================= canlı yayın ================= */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 8px 22px 32px;
}
.live-card {
  border: 0;
  background: none;
  text-align: left;
  color: var(--text);
  padding: 0;
  display: grid;
  gap: 8px;
}
.live-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.live-thumb .live-tag {
  position: absolute;
  top: 10px;
  left: 10px;
}
.live-thumb .viewers {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.live-meta {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.live-meta > span {
  display: grid;
}
.watch-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  height: 100%;
  min-height: 0;
}
.watch-main {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.watch-video {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.live-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.live-pip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 24%;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.live-tag.big {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  padding: 3px 8px;
}
.live-count {
  position: absolute;
  top: 12px;
  left: 70px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.fly-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.watch-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.watch-info h2 {
  margin: 0;
  font-size: 19px;
}
.react-row {
  display: flex;
  gap: 2px;
}
.react-btn {
  border: 0;
  background: var(--panel-2);
  border-radius: 999px;
  font-size: 18px;
  width: 36px;
  height: 36px;
}
.live-chat {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel-2);
}
.live-chat header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.live-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: grid;
  gap: 6px;
  align-content: start;
  font-size: 14px;
}
.live-msg .link-btn {
  font-weight: 700;
}
.live-msg.host .link-btn {
  color: #e11d48;
}
.live-chat form {
  padding: 10px;
  border-top: 1px solid var(--border);
}

/* ================= forum oyları ================= */
.forum-post.with-votes {
  align-items: flex-start;
}
.vote-box {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 36px;
  flex: none;
}
.vote-box button {
  border: 0;
  background: none;
  color: var(--text-3);
  border-radius: 6px;
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
}
.vote-box button:hover {
  background: var(--hover);
}
.vote-box .up.on {
  color: #ea580c;
}
.vote-box .down.on {
  color: #6366f1;
}
.forum-hub .feed-tabs {
  margin: 0 22px;
}
.forum-hub .forum-list {
  padding-top: 12px;
}
@media (max-width: 980px) {
  .feed-view {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-side {
    display: none;
  }
  .watch-view {
    grid-template-columns: 1fr;
  }
  .live-chat {
    min-height: 320px;
  }
}
.story-ring .ring .avatar,
.story-ring .ring .hl-cover {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
}
.profile-avatar .avatar img,
.story-ring .ring .avatar img {
  border-radius: 50%;
}

/* ================= çalışma alanı giriş sayfası (/baslat) ================= */
.alan-list {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.alan-list .label {
  font-size: 14px;
  font-weight: 700;
}
.alan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.alan-item:hover {
  background: var(--hover);
  border-color: var(--border-strong);
}
.alan-item .ws-tile {
  background: var(--accent);
  color: #03140e;
  font-weight: 800;
  flex: none;
}
.alan-item small {
  display: block;
}
.alan-bolum {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin: 6px 0 12px;
}
.input-prefix > span {
  white-space: nowrap;
  font-size: 13px;
}
.field .hint.hint-ok {
  color: var(--accent-text);
}
.field .hint.hint-bad {
  color: var(--danger);
}
.auth-alanlar {
  margin: 16px 0 0;
}
