:root {
  --bg: #16161a; --panel: #1f1f25; --line: #2e2e36; --text: #ececf1; --muted: #9a9aa8;
  --accent: #d97757; --ok: #4fb37a; --warn: #e0a640; --err: #e05a5a; --code: #111114;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f5f2; --panel: #fff; --line: #e3e1db; --text: #1d1d1f; --muted: #6d6d75; --code: #f0eee9; color-scheme: light; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden;
  overscroll-behavior: none; -webkit-text-size-adjust: 100%;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }
/* Ekran her zaman görünür alana (visualViewport) oturur: klavye açılınca composer klavyenin hemen üstünde kalır.
   --app-top / --app-h app.js'te güncellenir; JS yoksa 100dvh'ye düşer. */
.screen { display: flex; flex-direction: column; position: fixed; left: 0; right: 0;
  top: var(--app-top, 0px); height: var(--app-h, 100dvh); width: 100%; overflow: hidden; }
body.kb .composer { padding-bottom: 8px; } /* klavye açıkken alttaki güvenli alan boşluğu gereksiz */
header { display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--panel); }
header h1 { font-size: 18px; margin: 0; flex: 1; }
main { flex: 1; overflow-y: auto; padding: 10px 12px; -webkit-overflow-scrolling: touch; }
.muted { color: var(--muted); } .small { font-size: 12px; } .err { color: var(--err); min-height: 1em; }
button, select, textarea, input { font: inherit; color: inherit; }
/* iOS Safari 16px'ten küçük alanlara odaklanınca sayfayı zoomluyor */
select, textarea, input { font-size: 16px; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
button:disabled { opacity: .45; }
button.icon { background: none; color: var(--text); font-size: 28px; padding: 0 6px; line-height: 1; }
button.danger { background: var(--err); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
select, textarea, input { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 30vh; }
.composer:not(#commitForm) button[type=submit] { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.composer:not(#commitForm) button[type=submit] svg.i { stroke-width: 2; }
.composer #stopBtn { flex: 0 0 auto; }
main, .composer, header { max-width: 100vw; }
main { overflow-x: hidden; overscroll-behavior: contain; }
.composer { border-top: 1px solid var(--line); background: var(--panel); padding: 8px 10px;
  padding-bottom: max(8px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.composer .row { display: flex; gap: 6px; align-items: flex-end; }
.composer select { flex: 1; min-width: 0; }
.composer select.modelSel { flex: 1.2; }

#login { justify-content: center; align-items: center; padding: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; gap: 10px; }
.card h1 { margin: 0; font-size: 20px; }

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--err); }
.dot.on { background: var(--ok); }

.sess { display: block; width: 100%; text-align: left; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sess .more { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1;
  padding: 6px 10px; margin: -8px -10px -8px -4px; border-radius: 8px; cursor: pointer; }
.sess .more:active { background: var(--line); }
.sess .top { display: flex; gap: 8px; align-items: center; }
.sess .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); margin-top: 30vh; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--muted); white-space: nowrap; }
.badge.running { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent); }
.badge.waiting { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn); }
.badge.error { background: color-mix(in srgb, var(--err) 25%, transparent); color: var(--err); }
.badge.idle { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.badge.running::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  margin-right: 5px; vertical-align: middle; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 1 } to { opacity: .2 } }

.titlebox { flex: 1; min-width: 0; }
.title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ev { margin: 8px 0; word-wrap: break-word; overflow-wrap: anywhere; }
.ev.user { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-radius: 12px; padding: 8px 12px;
  margin-left: 15%; white-space: pre-wrap; }
.ev.text p { margin: .4em 0; }
.ev.sub { opacity: .7; border-left: 2px solid var(--line); padding-left: 8px; }
.ev.info { color: var(--muted); font-size: 12px; text-align: center; }
.ev.error { color: var(--err); white-space: pre-wrap; }
.ev.result { font-size: 12px; text-align: center; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.ev.result.bad { color: var(--err); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { background: var(--code); border-radius: 8px; padding: 8px; overflow-x: auto; white-space: pre; margin: 6px 0; }
:not(pre) > code { background: var(--code); padding: 1px 5px; border-radius: 4px; }
details.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
details.tool summary { cursor: pointer; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.tool summary b { color: var(--accent); }
details.tool .res.err { color: var(--err); }
.perm { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border: 1px solid var(--warn); border-radius: 12px; padding: 10px; }
.perm .btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.perm .btns button { flex: 1; }
.perm.done { border-color: var(--line); background: var(--panel); opacity: .7; }

.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); background: var(--err); color: #fff;
  padding: 8px 14px; border-radius: 10px; max-width: 90vw; z-index: 9; }

/* Kalan limit */
.limits { display: block; width: 100%; text-align: left; background: var(--panel); color: var(--text); border: 0;
  border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 14px; font-size: 12px; }
.limits .lim { display: grid; grid-template-columns: 6.5em 1fr auto; align-items: center; gap: 2px 8px; margin: 2px 0; }
.limits .lim .rst { grid-column: 2 / 4; font-size: 11px; }
.limits .bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.limits .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.limits .lim.warn .bar i { background: var(--warn); } .limits .lim.warn .val { color: var(--warn); }
.limits .lim.crit .bar i { background: var(--err); } .limits .lim.crit .val { color: var(--err); }
.limits .val { font-weight: 600; white-space: nowrap; }
.limits .foot { font-size: 11px; margin-top: 2px; }
.limits.compact { display: flex; gap: 12px; padding: 4px 14px; overflow-x: auto; white-space: nowrap; }
.limits.compact .lim { display: inline; margin: 0; color: var(--ok); }
.limits.compact .lim.warn { color: var(--warn); } .limits.compact .lim.crit { color: var(--err); }

/* Diff */
.diff { margin: 6px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--code); }
.diff .dfile { font: 12px ui-monospace, Menlo, monospace; padding: 4px 8px; border-bottom: 1px solid var(--line); color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diff pre { margin: 0; border-radius: 0; padding: 4px 0; max-height: 50vh; overflow: auto; }
.diff pre span { display: block; padding: 0 8px; min-width: max-content; }
.diff .add { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.diff .del { background: color-mix(in srgb, var(--err) 18%, transparent); color: var(--err); }
.diff .skip { color: var(--muted); font-style: italic; }
.diff .dsep { border-top: 1px dashed var(--line); }
.diff .dstat .add, .diff .dstat .del { background: none; }
.perm .plan { background: var(--panel); border-radius: 8px; padding: 4px 10px; margin: 6px 0; max-height: 50vh; overflow: auto; }

/* AskUserQuestion */
.ask .q { margin: 6px 0 12px; }
.chip { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: #fff; }
.ask .opts { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.ask .opt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--panel);
  color: var(--text); border: 1px solid var(--line); }
.ask .opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.ask .opt .ol { font-weight: 600; }
.ask .other { width: 100%; }
.ask .preview { max-height: 40vh; overflow: auto; }
button.icon.small-icon { font-size: 18px; color: var(--muted); padding: 0 7px; }
button.icon.small-icon:active { color: var(--text); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
#pushBtn.off svg { opacity: .5; }
#pushBtn:not(.off) { color: var(--accent); }

/* Hızlı prompt çipleri */
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick::-webkit-scrollbar { display: none; }
.qchip { flex: 0 0 auto; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.qchip.slash { font-family: ui-monospace, Menlo, monospace; color: var(--accent); }
.qchip.edit { color: var(--muted); }
body.kb .quick { display: none; } /* klavye açıkken yer kaplamasın */

/* Claude'un sonraki mesaj önerisi */
.suggest { display: flex; align-items: stretch; gap: 4px; border: 1px dashed var(--accent); border-radius: 12px; padding: 2px; }
.suggest .sugText { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); font-size: 14px;
  padding: 6px 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest .sugText::before { content: '✨ '; }
.suggest .sugBtn { flex: 0 0 auto; background: none; border: 0; color: var(--accent); padding: 0 8px; font-size: 18px; }
.suggest .sugBtn.muted { color: var(--muted); }

/* Slash komut listesi */
.slashpop { position: fixed; left: 8px; right: 8px; max-height: 40vh; overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; z-index: 8; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.slashpop button { display: block; width: 100%; text-align: left; background: none; color: var(--text); border-radius: 0;
  border-bottom: 1px solid var(--line); padding: 8px 12px; }
.slashpop .cn { font-family: ui-monospace, Menlo, monospace; color: var(--accent); }
.slashpop .cd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slashpop .pad { padding: 10px 12px; }

/* Diyalog */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(92vw, 480px); }
dialog::backdrop { background: rgba(0,0,0,.5); }
.dlg { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.dlg p { margin: 0; }
.dlg textarea { max-height: 50vh; }
.dlg .btns { display: flex; gap: 6px; }
.dlg .btns button { flex: 1; }

/* Proje araçları */
.toast.ok { background: var(--ok); }
button.tiny { padding: 3px 10px; font-size: 12px; border-radius: 8px; }
details.tool > button.tiny { margin: 6px 0 0; }
.tabs { display: flex; background: var(--panel); border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; color: var(--muted); border-radius: 0; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.pad { padding: 10px 4px; }
.gitbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.gitbar .branch { font: 13px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.gitbar .btns, .fhead2 .btns { display: flex; gap: 6px; flex-wrap: wrap; }
.gitbar .btns button { flex: 1; }
.gfile { border-bottom: 1px solid var(--line); }
.frow, .fent { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: none; color: var(--text);
  border-radius: 0; padding: 8px 4px; }
.frow .fp, .fent .fn { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 13px ui-monospace, Menlo, monospace; }
.xy { font: 600 12px ui-monospace, Menlo, monospace; min-width: 2.2em; color: var(--warn); }
.xy.xA, .xy.xn { color: var(--ok); } .xy.xD { color: var(--err); }
.fent { border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.fhead2 { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; overflow-wrap: anywhere; }
pre.code { white-space: pre; tab-size: 2; }
.diff .hunk { color: var(--accent); }
.diff .meta { color: var(--muted); }
.diff .fhead { color: var(--text); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.glog { margin-top: 10px; }

/* Arama / sabitleme */
.searchbar { padding: 8px 12px 0; }
.searchbar input { width: 100%; }
.sess.pinned { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.sess .snip { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: italic; }
.title { cursor: pointer; }
.dlg.sheet button { width: 100%; text-align: left; }

/* Maliyet */
.stats .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stats .tile { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.stats .tile b { font-size: 16px; color: var(--text); }
.stats .lbl { margin: 10px 0 4px; }
.stats .bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.stats .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.stats .col i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.stats .col span { font-size: 9px; color: var(--muted); }
.stats .prow { display: grid; grid-template-columns: 7em 1fr auto; gap: 8px; align-items: center; margin: 3px 0; }
.stats .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.stats .bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.stats .bar i { display: block; height: 100%; background: var(--accent); }
.stats .pv { color: var(--text); font-weight: 600; }

/* Zamanlama */
.srow { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.srow.off { opacity: .55; }
.srow .tx { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.srow .sb { display: flex; gap: 6px; flex-wrap: wrap; }
.sform { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sform .row2 { display: flex; gap: 6px; }
.sform .row2 > * { flex: 1; min-width: 0; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.qchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
#schedFormBox summary { cursor: pointer; color: var(--accent); padding: 6px 0; }
#schedDlg { max-height: 90dvh; }

/* Güvenlik */
#tokenBox { display: flex; flex-direction: column; gap: 10px; }
.dlg .lbl { margin-top: 6px; }
.arow { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; }
.arow > div { min-width: 0; overflow-wrap: anywhere; }
.chk { display: flex; gap: 8px; align-items: center; }
.chk input { width: 20px; height: 20px; }
#setDlg { max-height: 90dvh; }

/* Ekler */
.composer .field { position: relative; flex: 1; min-width: 0; display: flex; }
.composer .field textarea { padding-right: 42px; }
.composer button.attach { position: absolute; right: 4px; bottom: 4px; width: 34px; height: 34px; padding: 0; border-radius: 8px;
  display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); }
.composer button.attach:active { color: var(--text); }
.composer button.attach svg.i { width: 18px; height: 18px; }
.composer.drop { outline: 2px dashed var(--accent); outline-offset: -4px; }
.atts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.atts::-webkit-scrollbar { display: none; }
.att { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; max-width: 220px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 4px; font-size: 12px; }
.att.err { border-color: var(--err); }
.att.up .th { opacity: .5; }
.att .th { flex: 0 0 36px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; border-radius: 6px; overflow: hidden; background: var(--panel); }
.att .th img { width: 100%; height: 100%; object-fit: cover; }
.att .an { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.att .as { white-space: nowrap; }
.att .ax { background: none; color: var(--muted); padding: 4px 6px; font-size: 14px; }
.efiles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; white-space: normal; }
.efiles img { max-width: 160px; max-height: 160px; border-radius: 8px; object-fit: cover; cursor: zoom-in; background: var(--code); }
.efiles .fchip { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.imgview { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.9); display: flex; align-items: center;
  justify-content: center; padding: env(safe-area-inset-top) 8px env(safe-area-inset-bottom); cursor: zoom-out; }
.imgview img { max-width: 100%; max-height: 100%; object-fit: contain; }

.name.pinned::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.fi svg.i, .att .th svg.i { color: var(--muted); }
.fi svg.i { width: 18px; height: 18px; }

/* Commit çubuğu */
#commitForm .row { gap: 8px; align-items: stretch; }
#commitForm button { height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 500; font-size: 14px; white-space: nowrap; }
#commitForm #askCommit { flex: 1 1 0; color: var(--muted); }
#commitForm button[data-push="0"] { flex: 1 1 0; background: transparent; border: 1px solid var(--accent); color: var(--accent); }
#commitForm button[data-push="1"] { flex: 1.3 1 0; background: var(--accent); color: #fff; }
#commitForm button:active { opacity: .8; }
.gitbar .btns button { border-radius: 12px; }
.fent.pv { text-decoration: none; color: inherit; align-items: center; }
.pvport { font: 600 15px ui-monospace, Menlo, monospace; min-width: 52px; color: var(--accent); }
.fent.pv .fn { display: flex; flex-direction: column; min-width: 0; }
.pvcmd, .pvcwd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvcmd { font: 13px ui-monospace, Menlo, monospace; }

/* ---------- Özel açılır menüler (composer seçicileri) ---------- */
select.dd-src { display: none; }
/* Kalan yerel select'ler (zamanlama dialogu vb.) için de klasik görünüm yerine sade ok */
select { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
button.dd { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 11px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; font-size: 14px;
  text-align: left; transition: border-color .15s, background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
button.dd.modelSel { flex: 1.2; }
button.dd:active { background: var(--panel); }
button.dd.open { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
button.dd .ddVal { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.dd.dflt .ddVal { color: var(--muted); }
button.dd svg.i { flex: 0 0 auto; }
button.dd .ddIc { width: 16px; height: 16px; color: var(--accent); }
button.dd .ddChev { width: 14px; height: 14px; color: var(--muted); transform: rotate(180deg); transition: transform .18s; }
button.dd.open .ddChev { transform: none; }
button.dd.danger { border-color: color-mix(in srgb, var(--err) 55%, var(--line)); }
button.dd.danger .ddIc, button.dd.danger .ddVal { color: var(--err); }

.ddMenu { position: fixed; z-index: 1000; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 5px;
  box-shadow: 0 12px 36px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(6px) scale(.98); transform-origin: bottom left; transition: opacity .14s, transform .14s; }
.ddMenu:not(.up) { transform: translateY(-6px) scale(.98); transform-origin: top left; }
.ddMenu.show { opacity: 1; transform: none; }
.ddItem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px;
  background: none; color: var(--text); text-align: left; font-size: 15px; -webkit-tap-highlight-color: transparent; }
.ddItem:active, .ddItem:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.ddItem.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ddItem .ddTxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ddItem .ddLbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ddItem.on .ddLbl { font-weight: 600; }
.ddItem .ddDesc { font-size: 12px; color: var(--muted); line-height: 1.3; }
.ddItem .ddCheck { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); stroke-width: 2.2; visibility: hidden; }
.ddItem.on .ddCheck { visibility: visible; }
.ddItem.danger .ddLbl { color: var(--err); }
.ddItem.action { color: var(--accent); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 3px; }
@media (prefers-color-scheme: light) { .ddMenu { box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06); } }
/* Hesap / kullanıcılar */
button.icon.small-icon.warn { color: var(--warn); }
.arow .btns { display: flex; gap: 6px; flex-shrink: 0; }
#inviteOut { font-size: 12px; }
#usersBox { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
#usersBox.hidden { display: none; }
