/* Ekip oyunu ve telsiz. Masa dünyası: telsiz kenara iliştirilmiş not kâğıdı, davet bir tutanak. */

/* ---------- Kip seçimi (dosya sayfası) ---------- */
.kip-sec { display: grid; gap: 10px; }
.kip-sec .kip { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: #15171A; background: var(--sheet); box-shadow: 0 14px 26px -16px rgba(0,0,0,.9); transform: rotate(-.4deg); border-left: 6px solid var(--f-sari); }
.kip-sec .kip.ekip { transform: rotate(.5deg); border-left-color: var(--f-mavi); }
.kip-sec .kip > i { font-size: 1.7rem; }
.kip-sec .kip b { display: block; font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; }
.kip-sec .kip .small { font-family: var(--typed); color: #4A4E55; }
.kip-sec .kip:hover, .kip-sec .kip:focus-visible { transform: rotate(0) translateY(-2px); outline: 2px solid var(--marker); outline-offset: 2px; }

.geri-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }

/* ---------- Ekip kur / davet ---------- */
.ekip-kur, .ekip-davet { display: grid; gap: 22px; max-width: 980px; }
@media (min-width: 900px) { .ekip-kur { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.ekip-davet { max-width: 560px; margin: 10px auto 0; }
.ekip-davet .form-sheet { transform: rotate(-.6deg); }
.ekip-kurallar { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ekip-kurallar li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-family: var(--typed); color: var(--ink-2); font-size: .92rem; }
.ekip-kurallar i { font-size: 1.35rem; color: var(--marker); }
.ekip-dolu { display: flex; align-items: center; gap: 6px; font-family: var(--typed); color: #15171A; }
.ekip-dolu span { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #8A8576; display: grid; place-items: center; color: #8A8576; }
.ekip-dolu span.dolu { border-style: solid; border-color: #15171A; background: #15171A; color: var(--sheet); }
.ekip-dolu b { margin-left: 6px; }

/* ---------- Ekip odası ---------- */
.ekip-oda { display: grid; gap: 22px; margin-top: 14px; }
@media (min-width: 900px) { .ekip-oda { grid-template-columns: 1fr 1fr; align-items: start; } }
.davet-kart { transform: rotate(-.5deg); }
.davet-kod { font-family: var(--typed); font-size: clamp(2.1rem, 11vw, 3.2rem); letter-spacing: .28em; color: #15171A; text-align: center; padding: 8px 0 4px; border: 2px dashed #B9B2A2; background: rgba(255,255,255,.35); overflow-wrap: anywhere; }
.davet-link { display: flex; gap: 8px; min-width: 0; }
.davet-link input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; font-family: var(--typed); font-size: .82rem; border: 1px solid #B9B2A2; background: #FBF8F1; color: #15171A; border-radius: 6px; }
.btn-wa { background: #1F7A4D; color: #fff; border-color: #1F7A4D; }
.btn-wa:hover { background: #18663f; }
.ekip-uyeler h3 { margin-bottom: 10px; }
.ekip-uyeler ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ekip-uyeler li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ekip-uyeler li .kim { display: grid; min-width: 0; }
.ekip-uyeler li .kim b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ekip-uyeler li.bos-yer { border-style: dashed; background: transparent; grid-template-columns: auto 1fr; }
.ekip-av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex: none; }
.ekip-av svg { display: block; border-radius: 50%; }
.ekip-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #5A5E66; border: 2px solid var(--paper); }
.ekip-av.on::after { background: var(--good, #3FD48C); }
.ekip-uyeler li.bos-yer .ekip-av { width: 40px; height: 40px; border: 2px dashed var(--line); color: var(--ink-3); }
.ekip-uyeler li.bos-yer .ekip-av::after { display: none; }

/* ---------- Vaka kapağında ekip şeridi ---------- */
.sicil-satir { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; min-width: 0; }
.sicil-satir .sicil { flex: 1 1 220px; }
.ekip-serit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #15171A; background: rgba(241,236,224,.6); padding: 4px 10px 4px 8px; border-radius: 999px; font-family: var(--typed); font-size: .85rem; max-width: 100%; min-width: 0; }
.ekip-serit .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.ekip-serit .avlar { display: inline-flex; }
.ekip-serit .ekip-av { margin-left: -6px; box-shadow: 0 0 0 2px var(--f-sari); }
.ekip-serit .ekip-av::after { width: 8px; height: 8px; border-width: 1.5px; border-color: var(--f-sari); }
.ekip-av.konusuyor { box-shadow: 0 0 0 3px var(--good, #3FD48C) !important; }

/* ---------- Ekip raporu ---------- */
.opt .opt-m { flex: 1; }
.oy-avlar { display: inline-flex; margin-left: auto; padding-left: 6px; }
.oy-avlar span { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); display: inline-flex; }
.oy-avlar svg { border-radius: 50%; display: block; }
.opt[aria-checked="true"] .oy-avlar span { box-shadow: 0 0 0 2px var(--sheet); }
.hukum-ozet { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid var(--marker); background: rgba(255,255,255,.04); }
.modal .hukum-ozet { background: rgba(0,0,0,.05); }

/* ---------- Ekip sonucu ve sıralama ---------- */
.ekip-puanlar .r, .ekip-lb .r { grid-template-columns: 40px 1fr auto; }
.ekip-lb .r { grid-template-columns: 30px 40px 1fr auto; }
.ekip-ikon { width: 40px; height: 40px; border-radius: 50%; background: #15171A; color: var(--sheet); display: grid; place-items: center; position: relative; }
.ekip-ikon small { position: absolute; right: -4px; bottom: -4px; background: var(--marker); color: #15171A; border-radius: 999px; font-size: .7rem; padding: 0 5px; font-family: var(--typed); }
.ekip-lb-bas { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1E2126; padding-bottom: 6px; margin-bottom: 6px; font-family: var(--typed); color: #1E2126; gap: 10px; }
.ekip-lb-bas b { font-family: var(--font); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.2rem; }
@media (max-width: 460px) { .lb-seg { flex-wrap: wrap; border-radius: 18px; } .lb-seg button { padding: 0 11px; } }

/* ---------- Kimliğim: Ekiplerim ---------- */
.ekiplerim { display: grid; gap: 12px; }
@media (min-width: 720px) { .ekiplerim { grid-template-columns: 1fr 1fr; } }
.ekip-kart { display: grid; gap: 6px; padding: 14px 16px; text-decoration: none; color: #1E2126; background: var(--sheet); box-shadow: 0 14px 26px -16px rgba(0,0,0,.9); border-top: 6px solid var(--f-mavi); min-width: 0; }
.ekip-kart.kapandi { border-top-color: var(--f-yesil); }
.ekip-kart .ust { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #4A4E55; }
.ekip-kart .ust .stamp-r { font-size: .8rem; padding: 1px 8px; border-width: 2px; }
.ekip-kart b { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.25rem; overflow-wrap: anywhere; }
.ekip-kart .small { font-family: var(--typed); color: #4A4E55; }

/* ---------- Telsiz paneli ---------- */
.telsiz {
  --tl-kagit: #EFE6C8;
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: min(82vh, 640px); max-height: calc(100dvh - 40px);
  display: grid; grid-template-rows: auto 1fr auto; background: var(--tl-kagit); color: #1E2126;
  border-radius: 14px 14px 0 0; box-shadow: 0 -18px 40px rgba(0,0,0,.6);
  transform: translateY(105%); transition: transform .25s ease; visibility: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(92,141,189,.18) 27px 28px);
}
.telsiz.acik { transform: translateY(0); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .telsiz { transition: none; } }
.tl-fab {
  position: fixed; z-index: 35; right: 14px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--marker); color: #15171A; font-family: var(--typed); font-size: 1rem; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(0,0,0,.9);
}
.tl-fab i { font-size: 1.3rem; }
.tl-sayac { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--stamp); color: #fff; font-size: .75rem; display: grid; place-items: center; padding: 0 5px; font-family: var(--font); }
.tl-sayac[hidden] { display: none; }
@media (min-width: 960px) { .tl-fab { bottom: 20px; } }
body.telsiz-cekmece { overflow: hidden; }
body.telsiz-cekmece .tl-fab { display: none; }

.tl-bas { padding: 12px 14px 10px; border-bottom: 2px solid #1E2126; display: grid; gap: 10px; background: rgba(241,236,224,.85); border-radius: 14px 14px 0 0; }
.tl-baslik { display: flex; align-items: center; gap: 8px; font-family: var(--typed); }
.tl-baslik b { font-family: var(--font); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 1.25rem; word-spacing: .2em; }
.tl-bag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: #5A5E66; margin-left: auto; white-space: nowrap; }
.tl-bag i { font-size: .6rem; color: #A3291F; }
.tl-bag.bagli i { color: #1F6B48; }
.tl-bag.baglaniyor i, .tl-bag.koptu i { color: #B07A10; }
.tl-kapat { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #1E2126; font-size: 1.2rem; }
.tl-kapat:hover { background: rgba(0,0,0,.08); }
.tl-uyeler { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.tl-uye { display: grid; justify-items: center; gap: 2px; width: 56px; flex: none; font-size: .7rem; font-family: var(--typed); opacity: .55; }
.tl-uye.on { opacity: 1; }
.tl-uye .av { position: relative; border-radius: 50%; display: inline-flex; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.tl-uye .av svg { border-radius: 50%; display: block; }
.tl-uye.seste .av { box-shadow: 0 0 0 2px #5C8DBD; }
.tl-uye.konusuyor .av { box-shadow: 0 0 0 3px #1F9D5B, 0 0 12px 2px rgba(31,157,91,.6); }
.tl-uye .mik { position: absolute; right: -4px; bottom: -3px; font-size: .8rem; background: #1E2126; color: #fff; border-radius: 50%; padding: 2px; }
.tl-uye .ad { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-ses { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tl-ses .btn-ghost { color: #1E2126; border-color: #1E2126; }
.tl-ses .tiny { color: #4A4E55; }

.tl-akis { overflow-y: auto; padding: 10px 12px; display: grid; align-content: start; gap: 8px; overscroll-behavior: contain; min-height: 0; }
.tl-sis { font-family: var(--typed); font-size: .8rem; color: #5A4A2A; text-align: center; padding: 2px 8px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.tl-sis span { background: rgba(194,59,46,.08); padding: 2px 8px; border-radius: 4px; }
.tl-sis time, .tl-msg time { color: #847E72; font-size: .72rem; }
.tl-msg { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; min-width: 0; }
.tl-msg .av svg { border-radius: 50%; display: block; }
.tl-msg .gv { background: #FBF8F1; border-radius: 4px 10px 10px 10px; padding: 6px 10px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.15); min-width: 0; }
.tl-msg.ben .gv { background: #F7D458; }
.tl-msg .ust { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; }
.tl-msg .ust b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tl-msg p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .95rem; line-height: 1.4; }
.tl-bildir { margin-left: auto; border: 0; background: transparent; color: #847E72; cursor: pointer; padding: 2px 4px; border-radius: 4px; font-size: .85rem; }
.tl-bildir:hover, .tl-bildir:focus-visible { color: #A3291F; background: rgba(0,0,0,.06); }
.tl-delil { display: inline-flex; align-items: center; border: 1.5px solid #1E2126; background: var(--sheet); color: #1E2126; font-family: var(--typed); font-size: .8rem; padding: 0 6px; border-radius: 3px; cursor: pointer; line-height: 1.5; vertical-align: baseline; }
.tl-delil::before { content: "#"; opacity: .5; margin-right: 1px; }
.tl-delil:hover, .tl-delil:focus-visible { background: #1E2126; color: var(--sheet); }

.tl-yaz { border-top: 2px solid #1E2126; padding: 8px 12px 10px; display: grid; gap: 6px; background: rgba(241,236,224,.9); }
.tl-yaz-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tl-yaz select { max-width: 70%; height: 30px; border: 1px solid #B9B2A2; background: #FBF8F1; color: #1E2126; border-radius: 6px; font-family: var(--typed); font-size: .8rem; padding: 0 6px; }
.tl-say { color: #847E72; font-family: var(--typed); margin-left: auto; }
.tl-yaz-alt { display: flex; gap: 8px; align-items: flex-end; }
.tl-yaz textarea { flex: 1; min-width: 0; resize: none; min-height: 40px; max-height: 120px; border: 1px solid #B9B2A2; background: #FBF8F1; color: #1E2126; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 16px; line-height: 1.35; }
.tl-yaz textarea:focus { outline: 2px solid var(--f-mavi); outline-offset: 0; }
.tl-yaz .btn { height: 40px; width: 44px; padding: 0; flex: none; }
.tl-not { color: #847E72; font-family: var(--typed); margin: 0; }

/* Geniş masaüstü: sağda sabit panel, içerik sola kayar (dar masaüstünde üst menü sığsın diye 1440px'ten sonra) */
@media (min-width: 1440px) {
  body.telsiz-var .shell { padding-right: 344px; }
  .telsiz { left: auto; top: 0; right: 0; bottom: 0; width: 344px; height: auto; max-height: none; border-radius: 0; transform: none; visibility: visible; box-shadow: -12px 0 30px rgba(0,0,0,.5); }
  .tl-bas { border-radius: 0; }
  .tl-fab, .tl-kapat { display: none; }
  body.telsiz-cekmece { overflow: auto; }
}

/* Gönderilmeyi bekleyen ve gönderilemeyen mesajlar */
.tl-msg.bekliyor .gv { opacity: .7; }
.tl-msg.basarisiz .gv { box-shadow: 0 0 0 2px #A3291F; }
.tl-bekliyor { display: block; margin-top: 2px; font-family: var(--typed); font-size: .72rem; color: #5A5E66; }
.tl-yeniden { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid #A3291F; background: transparent; color: #A3291F; border-radius: 6px; padding: 4px 8px; font-family: var(--typed); font-size: .78rem; cursor: pointer; min-height: 32px; }
.tl-yeniden:hover, .tl-yeniden:focus-visible { background: #A3291F; color: #fff; }
/* Uzun kelimeler ve bağlantılar taşmasın (bağlantılar düz metin kalır) */
.tl-msg p { word-break: break-word; }

/* Tablet ve dar masaüstü (700-1439px): telsiz sayfayı daraltmaz, sağ altta yüzen panel olarak açılır */
@media (min-width: 700px) and (max-width: 1439px) {
  .telsiz { left: auto; right: 16px; bottom: 16px; width: 390px; height: min(78vh, 640px); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.65); transform: translateY(calc(100% + 24px)); }
  .telsiz.acik { transform: translateY(0); }
  .tl-bas { border-radius: 14px 14px 0 0; }
}
/* Telsiz sağda açıkken üst menü kalan genişliğe göre sıkışır (panel 344px yer kaplar; ekip odasında panel yok) */
@media (min-width: 1440px) and (max-width: 2044px) { body.telsiz-var:not(.ekip-oda-acik) .badgechip .who { display: none; } body.telsiz-var:not(.ekip-oda-acik) .badgechip { padding: 3px; } }
@media (min-width: 1440px) and (max-width: 1744px) { body.telsiz-var:not(.ekip-oda-acik) .ftab { font-size: .84rem; padding-left: 9px !important; padding-right: 11px !important; } body.telsiz-var:not(.ekip-oda-acik) .ptag small { display: none; } body.telsiz-var:not(.ekip-oda-acik) .brandmark .wm span { display: none; } }
@media (min-width: 1440px) and (max-width: 1524px) { body.telsiz-var:not(.ekip-oda-acik) .brandmark .wm { display: none; } body.telsiz-var:not(.ekip-oda-acik) .ptag { display: none; } body.telsiz-var:not(.ekip-oda-acik) .ftab { font-size: .8rem; padding-left: 7px !important; padding-right: 9px !important; } }

/* ---------- Kurucu yönetimi: rol, görev notu, devir ---------- */
.ekip-yonet-not { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 12px; }
.ekip-yonet-not i { color: var(--marker); font-size: 1.05rem; margin-top: 1px; }
.uye-gorev { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 4px; min-width: 0; }
.rol-et { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--marker); background: color-mix(in srgb, var(--marker) 14%, transparent); border: 1px solid color-mix(in srgb, var(--marker) 45%, transparent); white-space: nowrap; }
.rol-et i { font-size: .95em; }
.rol-et.kucuk { font-size: .72rem; padding: 1px 7px 1px 6px; color: #15171A; background: rgba(21,23,26,.08); border-color: rgba(21,23,26,.35); }
.gorev-not { font-family: var(--typed); font-size: .85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.gorev-not::before { content: "“"; } .gorev-not::after { content: "”"; }
.btn-gorev { color: var(--marker); background: color-mix(in srgb, var(--marker) 10%, transparent); border: 1px solid color-mix(in srgb, var(--marker) 55%, transparent); }
.btn-gorev:hover { background: color-mix(in srgb, var(--marker) 20%, transparent); color: var(--marker); }
.gorevim { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 7px 12px; border-radius: 10px; background: rgba(241,236,224,.6); color: #15171A; font-family: var(--typed); font-size: .88rem; max-width: 62ch; }
.gorevim i { font-size: 1.05rem; margin-top: 2px; flex: none; }
.rol-sec { display: grid; gap: 8px; margin: 14px 0 6px; }
@media (min-width: 520px) { .rol-sec { grid-template-columns: 1fr 1fr; } }
.rol-kart { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-width: 0; }
.rol-kart > i { font-size: 1.3rem; color: var(--ink-2); margin-top: 1px; }
.rol-kart b { display: block; font-size: .95rem; }
.rol-kart small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.35; }
.rol-kart:hover { border-color: var(--ink-3); }
.rol-kart[aria-checked="true"] { border-color: var(--marker); box-shadow: inset 3px 0 0 var(--marker); background: color-mix(in srgb, var(--marker) 9%, var(--surface)); }
.rol-kart[aria-checked="true"] > i { color: var(--marker); }
.rol-kart:focus-visible { outline: 2px solid var(--marker); outline-offset: 2px; }
.gorev-alan { display: grid; gap: 6px; margin-top: 10px; }
.gorev-alan textarea { width: 100%; resize: vertical; min-height: 58px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.gorev-alan textarea:focus { outline: 2px solid var(--marker); outline-offset: 1px; }
.gorev-alan #gorevSay { justify-self: end; }
.devret-alan { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 8px; justify-items: start; }
.tl-uye .av { position: relative; }
.tl-uye .tl-kurucu, .tl-uye .tl-rol { position: absolute; font-size: 11px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); }
.tl-uye .tl-kurucu { top: -5px; left: -5px; color: var(--marker); }
.tl-uye .tl-rol { bottom: -4px; left: -5px; color: var(--ink); }

/* Boş sandalye: dokununca davet penceresi */
.ekip-uyeler li.bos-yer:has(.bos-sandalye) { padding: 0; }
.bos-sandalye { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; background: transparent; border: 0; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.bos-sandalye:hover, .bos-sandalye:focus-visible { background: color-mix(in srgb, var(--marker) 8%, transparent); color: var(--ink); outline: none; }
.bos-sandalye .ekip-av { width: 40px; height: 40px; border: 2px dashed var(--line); color: var(--ink-3); }
.bos-sandalye .ekip-av::after { display: none; }
.bos-sandalye .bs-cagir { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--marker); }
.ekd-bas { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 1rem; }

/* Telsiz düğmesi sayfanın son düğmelerinin üstüne binmesin: telsizli sayfalarda altta düğme kadar boşluk */
@media (max-width: 959px) {
  body.telsiz-var main.view { padding-bottom: calc(var(--nav-h, 64px) + 96px + env(safe-area-inset-bottom)); }
}

/* Üst sekmedeki Ekip rozeti sekmenin içinde durur (sekmenin kesik köşesi dışarı taşan rozeti kırpıyordu) */
.ftab .sy-sayac[data-ekip-sayac] { position: static; display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; font: 700 .66rem/18px var(--font); box-shadow: none; }
.ftab .sy-sayac[data-ekip-sayac].nokta { min-width: 8px; width: 8px; height: 8px; padding: 0; }

/* ---------- Ekip odası (#/ekip-oda/:id, 19 Kasım 2026): başlık, sekmeler (Telsiz, Üyeler, İlerleme) ---------- */
/* Bu sayfada yüzen telsiz düğmesi ve sağdaki panel gizli: aynı sohbet sayfada */
body.ekip-oda-acik #telsiz-root { display: none; }
@media (min-width: 1440px) { body.ekip-oda-acik.telsiz-var .shell { padding-right: 0; } }
.eo { display: grid; gap: 12px; max-width: 980px; margin: 0 auto; min-width: 0; }
.eo-ust { display: grid; gap: 10px; min-width: 0; }
.eo-geri { margin-bottom: 0; justify-self: start; }
.eo-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; min-width: 0; }
.eo-kim { display: grid; gap: 6px; min-width: 0; }
.eo-dosya { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--dc, var(--f-sari)); color: #15171A; font: 400 .8rem/1 var(--typed); padding: 5px 8px 4px; border-radius: 4px; }
.eo-kim h1 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); overflow-wrap: anywhere; }
.eo-git { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eo-damga { font-size: .9rem; background: rgba(241, 236, 224, .94); mix-blend-mode: normal; opacity: 1; }
.eo-sekmeler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.eo-sekmeler button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 0; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 700 .9rem/1 var(--font); cursor: pointer; }
.eo-sekmeler button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-sekmeler button small { font-weight: 600; color: var(--ink-3); }
.eo-sekmeler button:hover { color: var(--ink); }
.eo-sekmeler button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 -2px 0 #8E9BD8; }
.eo-sekmeler button[aria-selected="true"] small { color: var(--ink-2); }
.eo-sekmeler .sy-sayac.ic { margin-left: 2px; }
.eo-sekmeler button:focus-visible { outline: 3px solid var(--marker); outline-offset: 1px; }
.eo-panel { min-width: 0; }
.eo-panel[hidden] { display: none !important; }

/* Telsiz sekmesi: telsiz defteri (çizgili kâğıt); üstte ses, ortada akış, altta yazı alanı */
.eo-telsiz {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: clamp(440px, calc(100dvh - 330px), 760px);
  background: #EFE6C8; color: #1E2126; border-radius: 12px; overflow: hidden; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .9);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(92, 141, 189, .18) 27px 28px);
}
.eo-ses { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 2px solid #1E2126; background: rgba(241, 236, 224, .94); min-width: 0; }
.eo-ses-ad { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: #3F434A; }
.eo-ses-ad.acik { color: #1F5C3A; }
.eo-ses-ad.acik i { color: #17804A; }
.eo-ses-av { display: inline-flex; }
.eo-ses-av span { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px #F1ECE0; }
.eo-ses-av span + span { margin-left: -6px; }
.eo-ses-av svg { display: block; border-radius: 50%; }
.eo-ses-av span.konusuyor { box-shadow: 0 0 0 2px #F1ECE0, 0 0 0 4px #1F9D5B, 0 0 12px 2px rgba(31, 157, 91, .55); }
.eo-ses-dugme { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.eo-ses .btn-ghost { color: #15171A; border-color: #8C8577; background: #FBF8F1; }
.eo-ses .btn-ghost:hover { background: #E6DCC4; color: #15171A; }
.eo-ses .btn-marker { color: #15171A; border-color: #15171A; }
.eo-ses .btn:focus-visible { outline: 2px solid #1D4E86; outline-offset: 2px; }
.eo-ses .tl-bag { margin-left: 0; }
.eo-akis:focus-visible { outline: 2px solid #1D4E86; outline-offset: -2px; }
/* Geniş ekranda balon satır boyu uzamasın */
.eo-akis .tl-msg .gv { justify-self: start; max-width: min(100%, 680px); }
.eo-yaz .btn-marker { color: #15171A; border-color: #15171A; }

/* İlerleme: sicil, durum, okunan delil, çelişki, ipucu; rapor işaretleri */
.eo-ilerleme { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.eo-kutu { display: grid; gap: 4px; align-content: start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.eo-kutu-ad { font: 400 .82rem/1.2 var(--typed); color: var(--ink-3); }
.eo-kutu b { font-size: 1.5rem; font-weight: 850; line-height: 1.1; overflow-wrap: anywhere; }
.eo-kutu-alt { font-size: .8rem; color: var(--ink-2); }
.eo-bar { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.eo-bar i { display: block; height: 100%; background: var(--marker); border-radius: inherit; }
.eo-not { grid-column: 1 / -1; color: var(--ink-2); }
.eo-oylar { margin-top: 16px; display: grid; gap: 8px; }
.eo-oylar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.eo-oylar li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.eo-oy-av svg { display: block; border-radius: 50%; }
.eo-oy-ad { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-oy-say { font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.eo-oy-say.var { color: var(--good, #3FD48C); font-weight: 700; }
.eo-oylar .btn { justify-self: start; }

/* Telefon ve tablet: Telsiz sekmesi tam ekran sohbet (üst bar kalır, alt menü gizli, yazı alanı klavyenin üstünde) */
@media (max-width: 959px) {
  body.eo-telsiz-acik { overflow: hidden; }
  body.eo-telsiz-acik .bottomnav { display: none; }
  body.eo-telsiz-acik .eo {
    position: fixed; z-index: 29; left: 0; right: 0; top: 68px; bottom: var(--klavye, 0px); max-width: none; margin: 0;
    display: flex; flex-direction: column; gap: 8px; background: var(--paper, #0F1215);
    padding: 8px max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }
  body.eo-telsiz-acik .eo-ust { flex: none; gap: 8px; }
  body.eo-telsiz-acik .eo-kim h1 { font-size: 1.45rem; }
  body.eo-telsiz-acik .eo-git .btn { min-height: 36px; height: 36px; }
  body.eo-telsiz-acik .eo-telsiz { flex: 1 1 auto; height: auto; min-height: 0; margin: 0 calc(-1 * max(12px, env(safe-area-inset-left))); border-radius: 10px 10px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  /* Yazarken başlık kalkar, sohbete yer açılır */
  body.eo-telsiz-acik .eo.yaziyor .eo-bas, body.eo-telsiz-acik .eo.yaziyor .eo-geri { display: none; }
}
/* Yatay telefon (alçak ekran): başlık ve yazım notu kalkar, sekmeler ve sohbet kalır */
@media (max-width: 959px) and (max-height: 560px) {
  body.eo-telsiz-acik .eo-bas, body.eo-telsiz-acik .eo-geri, body.eo-telsiz-acik .eo-yaz .tl-not { display: none; }
  body.eo-telsiz-acik .eo-sekmeler button { min-height: 34px; }
  body.eo-telsiz-acik .eo-ses { padding: 4px 10px; }
  body.eo-telsiz-acik .eo-ses .btn { min-height: 32px; height: 32px; }
}
/* Çok alçak ekranda delil seçicisi de kalkar (metne "E3" yazmak etiket olur) */
@media (max-width: 959px) and (max-height: 420px) { body.eo-telsiz-acik .eo-yaz .tl-yaz-ust { display: none; } }
@media (max-width: 600px) { body.eo-telsiz-acik .eo { top: 54px; } }
