/* Arkadaşlar, mesajlar, bildirimler ve destek. "Dedektif masası" dili: koyu masa, kâğıt fişler, daktilo yazısı,
   sarı işaret kalemi, kırmızı damga. Sohbet ekranı telsiz defterinin çizgili kâğıdı. Telefon önce. */

/* ---------- Üst bar: zarf ve zil, sayaçlar ---------- */
.sy-ust { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; font-size: 1.15rem; flex: none; }
.sy-ust:hover { background: var(--surface); }
.sy-sayac { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--stamp);
  color: #fff; font: 700 .7rem/20px var(--font); text-align: center; box-shadow: 0 0 0 2px #0F1215; pointer-events: none; }
.sy-sayac[hidden] { display: none !important; }
.sy-sayac.ic { position: static; display: inline-block; margin-left: 6px; box-shadow: none; vertical-align: middle; }
.bottomnav a { position: relative; }
.bottomnav .sy-sayac { top: 2px; right: calc(50% - 26px); }
@media (max-width: 420px) { .desk-top .ptag { display: none; } }
@media (max-width: 380px) { .desk-right { gap: 6px; } .sy-ust, .desk-top .nasil-link, .desk-top .kur-link { width: 36px; height: 36px; } }

/* ---------- Ortak ---------- */
.sy-h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 900; font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 0; line-height: 1; }
.sy-nokta { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #5A5E66; box-shadow: 0 0 0 2.5px #15181C; }
.sy-nokta.on { background: #3FD48C; }
.sy-av { position: relative; display: inline-flex; flex: none; border-radius: 50%; }
.sy-av svg { border-radius: 50%; display: block; }
.sy-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sy-satir { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.sy-kim { display: grid; min-width: 0; flex: 1 1 140px; line-height: 1.25; }
.sy-kim b, .sy-ad { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-ad { text-align: left; color: var(--ink); font-size: 1rem; padding: 0; text-decoration: none; }
.sy-ad:hover { text-decoration: underline; text-decoration-color: var(--marker); }
.sy-eylem { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.sy-eylem .btn { min-height: 40px; }
@media (max-width: 560px) {
  .sy-satir .sy-eylem { width: 100%; margin-left: 0; }
  .sy-satir .sy-eylem .btn { flex: 1 1 auto; justify-content: center; padding: 0 10px; }
  .sy-satir .sy-eylem .btn span { font-size: .82rem; }
}
.sy-ayrac { border: 0; border-top: 1px dashed var(--line); margin: 2px 0; width: 100%; }
.sy-bos { padding: 22px 18px; display: grid; justify-items: center; text-align: center; gap: 8px; }
.sy-bos i { font-size: 2.4rem; color: #4A4E55; }
.sy-bos p { margin: 0; max-width: 40ch; }

/* ---------- Arkadaşlar ---------- */
.sy-ara { padding: 14px 16px 12px; display: grid; gap: 8px; border-top: 6px solid var(--f-mavi); }
.sy-ara label { color: #4A4E55; }
.sy-ara-kutu { display: flex; align-items: center; gap: 8px; background: #FBF8F1; border: 1.5px solid #1E2126; border-radius: 8px; padding: 0 12px; }
.sy-ara-kutu i { color: #4A4E55; }
.sy-ara-kutu input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #1E2126; font: 16px var(--type); outline: none; }
.sy-ara .sy-satir { background: #FBF8F1; border-color: #D6CDB8; color: #1E2126; }
.sy-ara .sy-satir .small.muted, .sy-ara .sy-ad { color: #1E2126; }
.sy-ara .sy-satir .muted { color: #5A5E66 !important; }
.sy-ara .sy-nokta { box-shadow: 0 0 0 2.5px #FBF8F1; }
.sy-oneri { position: relative; margin-top: 16px; padding: 16px; border-top: 6px solid var(--f-pembe); }
.sy-oneri .stamp-r { position: absolute; right: 14px; top: -14px; background: var(--sheet); }
.sy-oneri .sy-satir { background: transparent; border: 0; padding: 0; color: #1E2126; }
.sy-oneri .muted { color: #5A5E66 !important; }
.sy-oneri .sy-ad { color: #1E2126; }

/* ---------- Profil kartı ---------- */
.modal.sy-kart-sheet { max-width: 460px; background: var(--sheet); color: #1E2126; border: 0; }
.modal.sy-kart-sheet .muted { color: #5A5E66 !important; }
.modal.sy-kart-sheet .x { background: rgba(0,0,0,.08); color: #1E2126; }
.modal.sy-kart-sheet .btn-ghost { color: #1E2126; border-color: #1E2126; }
.modal.sy-kart-sheet .chip { background: rgba(0,0,0,.08); color: #1E2126; }
.sy-kart-ust { display: flex; gap: 16px; align-items: center; margin-top: 10px; }
.sy-kart-ust > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sy-kart-ad { font-weight: 900; font-stretch: 75%; font-size: 1.6rem; text-transform: none; overflow-wrap: anywhere; line-height: 1.05; }
.sy-kart-ust .sy-nokta { width: 18px; height: 18px; box-shadow: 0 0 0 3px var(--sheet); }
.sy-kart-say { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; text-align: center; border-top: 2px solid #1E2126; border-bottom: 2px solid #1E2126; padding: 10px 0; }
.sy-kart-say div { display: grid; }
.sy-kart-say b { font-size: 1.2rem; font-weight: 900; }
.sy-kart-say span { font-family: var(--typed); font-size: .72rem; color: #4A4E55; }
.sy-kart-diger { margin-top: 12px; }
.sy-kart-diger summary { cursor: pointer; color: #4A4E55; min-height: 32px; display: flex; align-items: center; }

/* ---------- Mesaj listesi ---------- */
.sy-sohbetler { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--sheet); border-radius: 4px; box-shadow: 0 22px 40px -18px rgba(0,0,0,.9); overflow: hidden; }
.sy-sohbet-satir { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: #1E2126; border-bottom: 1px solid #D9D0BC; min-width: 0; }
.sy-sohbet-satir:hover { background: #E9E2D2; }
.sy-sohbet-satir .sy-nokta { box-shadow: 0 0 0 2.5px var(--sheet); }
.sy-sohbet-satir.yeni { background: #FFF6D2; }
.sy-sohbet-satir.yeni b { color: #000; }
.sy-son { font-family: var(--type); font-size: .88rem; color: #4A4E55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-sohbet-satir.yeni .sy-son { color: #1E2126; font-weight: 700; }
.sy-sag { display: grid; justify-items: end; gap: 4px; flex: none; color: #5A5E66; }

/* ---------- Sohbet ekranı (telsiz defteri) ---------- */
.sy-sohbet {
  --kagit: #EFE6C8;
  display: grid; grid-template-rows: auto 1fr auto; background: var(--kagit); color: #1E2126; border-radius: 6px;
  height: calc(var(--vvh, 100dvh) - 150px); min-height: 420px; max-width: 760px; margin: 0 auto; 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);
}
@media (max-width: 959px) {
  /* Telefonda tam ekran; klavye açılınca yazma alanı klavyenin üstünde kalır */
  .sy-sohbet { position: fixed; z-index: 40; left: 0; right: 0; top: 0; bottom: var(--klavye, 0px); height: auto; min-height: 0; max-width: none; border-radius: 0;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  body.sy-sohbet-acik { overflow: hidden; }
  body.sy-sohbet-acik .bottomnav, body.sy-sohbet-acik .tl-fab { display: none; }
}
.sy-s-bas { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 2px solid #1E2126; background: rgba(241,236,224,.92); }
.sy-geri { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #1E2126; text-decoration: none; font-size: 1.2rem; flex: none; }
.sy-geri:hover { background: rgba(0,0,0,.08); }
.sy-s-kim { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #1E2126; cursor: pointer; padding: 4px 6px; border-radius: 8px; min-width: 0; text-align: left; }
.sy-s-kim:hover { background: rgba(0,0,0,.06); }
.sy-s-kim > span:last-child { display: grid; line-height: 1.2; min-width: 0; }
.sy-s-kim b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-s-kim .tiny { color: #4A4E55; font-family: var(--typed); }
.sy-s-kim .sy-nokta { box-shadow: 0 0 0 2.5px #F1ECE0; }
.sy-bag { margin-left: auto; font-family: var(--typed); font-size: .72rem; color: #5A5E66; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.sy-bag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B07A10; }
.sy-bag.bagli::before { background: #1F9D5B; }
.sy-akis { overflow-y: auto; padding: 12px; display: grid; align-content: start; gap: 10px; overscroll-behavior: contain; min-height: 0; -webkit-overflow-scrolling: touch; }
#syMesajlar { display: grid; gap: 10px; }
.sy-daha { justify-self: center; font-family: var(--typed); color: #2B4A6B; min-height: 36px; }
.sy-ilk { text-align: center; color: #847E72; font-family: var(--typed); margin: 20px 0; }
.sy-msg { display: flex; }
.sy-msg.ben { justify-content: flex-end; }
.sy-msg .gv { max-width: min(82%, 520px); background: #FBF8F1; border-radius: 4px 12px 12px 12px; padding: 7px 11px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.18); min-width: 0; }
.sy-msg.ben .gv { background: #F7D458; border-radius: 12px 4px 12px 12px; }
.sy-msg p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .98rem; line-height: 1.4; }
.sy-msg-alt { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 2px; color: #847E72; font-size: .72rem; }
.sy-msg-alt .ph-checks.okundu { color: #2B68C4; }
.sy-msg.bekliyor .gv { opacity: .7; }
.sy-msg.basarisiz .gv { box-shadow: 0 0 0 2px #A3291F; }
.sy-dosya-kart { display: grid; gap: 2px; text-decoration: none; color: #1E2126; background: var(--sheet); border: 1.5px solid #1E2126; border-top: 5px solid var(--f-mavi); padding: 8px 10px; margin-bottom: 6px; border-radius: 3px; }
.sy-dosya-kart b { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.1rem; line-height: 1.1; }
.sy-dosya-kart .small { color: #4A4E55; }
.sy-dosya-git { font-weight: 700; font-size: .82rem; display: inline-flex; gap: 4px; align-items: center; color: #2B4A6B; }
.sy-dosya-kart:hover .sy-dosya-git { text-decoration: underline; }
.sy-yaz { border-top: 2px solid #1E2126; padding: 8px 10px 8px; display: grid; gap: 6px; background: rgba(241,236,224,.95); }
.sy-yaz-alt { display: flex; gap: 8px; align-items: flex-end; }
.sy-yaz textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 120px; border: 1px solid #B9B2A2; background: #FBF8F1; color: #1E2126; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.35; }
.sy-yaz textarea:focus { outline: 2px solid var(--f-mavi); outline-offset: 0; }
.sy-yaz .btn { height: 44px; width: 46px; padding: 0; flex: none; justify-content: center; }
.sy-yaz .btn-ghost { color: #1E2126; border-color: #B9B2A2; }
.sy-yaz-not { margin: 0; color: #847E72; font-family: var(--typed); }
@media (max-width: 959px) { .sy-yaz-not { display: none; } }
.sy-ek-kart { display: inline-flex; align-items: center; gap: 6px; background: var(--sheet); border: 1.5px solid #1E2126; border-left: 5px solid var(--f-mavi); border-radius: 4px; padding: 4px 4px 4px 8px; font-size: .88rem; }
.sy-ek-kart .linkbtn { width: 32px; height: 32px; display: grid; place-items: center; color: #1E2126; }
.sy-yazamaz { margin: 0; padding: 14px; border-top: 2px solid #1E2126; text-align: center; font-family: var(--typed); color: #4A4E55; background: rgba(241,236,224,.95); }

/* ---------- Bildirim kutusu (zil) ---------- */
.modal.sy-kutu-sheet { max-width: 520px; }
.sy-kutu { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sy-kutu .bos { color: var(--ink-2); padding: 14px 4px; }
.sy-kutu-oge { border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.sy-kutu-oge.yeni { border-color: rgba(245,197,24,.45); background: rgba(245,197,24,.06); }
.sy-kutu-oge > a { display: flex; gap: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.sy-kutu-oge > a > i { font-size: 1.5rem; color: var(--marker); flex: none; margin-top: 2px; }
.sy-kutu-oge > a > span { display: grid; gap: 2px; min-width: 0; }
.sy-kutu-oge .small { color: var(--ink-2); overflow-wrap: anywhere; }
.sy-kutu-oge time { color: var(--ink-3); }
.sy-kutu-oge.yeni b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); margin-left: 6px; vertical-align: middle; }
.sy-k-eylem { display: flex; gap: 6px; padding: 0 12px 10px 50px; flex-wrap: wrap; }

/* ---------- İzin kartı ---------- */
.modal.sy-izin-sheet { max-width: 460px; background: var(--sheet); color: #1E2126; border: 0; }
.modal.sy-izin-sheet .x { background: rgba(0,0,0,.08); color: #1E2126; }
.modal.sy-izin-sheet .muted { color: #5A5E66 !important; }
.sy-izin { display: grid; gap: 10px; }
.sy-izin h3 { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; margin: 0; }
.sy-izin p { margin: 0; }
.sy-izin-zil { width: 64px; height: 64px; border-radius: 50%; background: #1E2126; color: var(--marker); display: grid; place-items: center; font-size: 2rem; transform: rotate(-8deg); }
.sy-izin-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.sy-izin-liste li { display: flex; gap: 8px; align-items: center; }
.sy-izin-liste i { color: #A3291F; }
.sy-kampanya { font-size: .85rem; align-items: flex-start; }
.sy-sonra { justify-self: center; color: #4A4E55; min-height: 40px; }
.sy-adim { padding-left: 20px; display: grid; gap: 4px; margin: 10px 0 14px; }

/* ---------- Ayarlar ---------- */
.sy-cihaz { display: flex; gap: 10px; align-items: flex-start; }
.sy-cihaz i { font-size: 1.3rem; color: var(--marker); flex: none; margin-top: 1px; }

/* ---------- Destek ---------- */
.sy-talep-form { display: grid; gap: 12px; }
.sy-talep-form .field label { display: flex; justify-content: space-between; gap: 8px; }
.sy-talep-form select, .sy-talep-form input:not([type=checkbox]), .sy-talep-form textarea { width: 100%; font-size: 16px; }
.sy-teknik { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; }
.sy-teknik summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.sy-teknik dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 6px 0; font-size: .85rem; }
.sy-teknik dt { color: var(--ink-3); }
.sy-teknik dd { margin: 0; font-family: var(--type); overflow-wrap: anywhere; }
.sy-talep-tamam { display: grid; gap: 8px; }
.sy-talepler { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sy-talep-satir { display: grid; gap: 4px; padding: 12px 14px; text-decoration: none; color: #1E2126; border-left: 6px solid var(--f-sari); }
.sy-talep-satir b { font-size: 1.05rem; }
.sy-talep-satir .tiny { color: #4A4E55; }
.sy-yanit-var { color: #1F6B48 !important; font-weight: 700; }
.sy-durum { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font-family: var(--typed); font-size: .78rem; border: 1.5px solid currentColor; }
.sy-durum.acik { color: #A3291F; }
.sy-durum.inc { color: #B07A10; }
.sy-durum.yan { color: #1F6B48; }
.sy-durum.kap { color: #5A5E66; }
.sy-talep { padding: 16px; display: grid; gap: 8px; max-width: 760px; }
.sy-talep .sy-teknik { background: rgba(0,0,0,.04); border-color: #B9B2A2; }
.sy-talep .sy-teknik dt { color: #5A5E66; }
.sy-talep textarea { width: 100%; font-size: 16px; background: #FBF8F1; color: #1E2126; border: 1px solid #B9B2A2; border-radius: 8px; padding: 10px; }
.sy-yazisma { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.sy-yazisma li { padding: 10px 12px; border-radius: 4px; background: #FBF8F1; border-left: 4px solid #B9B2A2; }
.sy-yazisma li.destek { background: #E5EEF6; border-left-color: var(--f-mavi); }
.sy-yazisma p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Dosya ekranı ⋮ menüsü ---------- */
.cc-menu { position: absolute; right: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.cc-menu:hover { background: var(--surface); color: var(--ink); }
.case-head .cc-paylas { right: 44px; }
@media (pointer: coarse) { .cc-menu { width: 40px; height: 40px; top: -6px; } .case-head .cc-paylas { right: 48px; } }
.yardim-kart button.ykart { border: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; }

/* Ekip odasında üye eylemleri */
.ekip-uyeler .sy-uye-eylem { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.lb .lb-kim .linkbtn, .podium .linkbtn { color: inherit; font: inherit; padding: 0; text-align: inherit; }
.modal.sy-izin-sheet .check, .modal.sy-izin-sheet .check span { color: #1E2126; }
.modal.sy-izin-sheet .check input { accent-color: #1E2126; width: 20px; height: 20px; flex: none; }
.modal.sy-izin-sheet .kur-uyari { color: #1E2126; }
.sy-talep-tamam .stamp-r, .sy-izin .stamp-r { justify-self: start; width: auto; }
