/* =========================================================
   Postelk — Post sayfası (.ppx*) + Messages gelen kutusu (.ibx*) — 2026-10-20
   Eski Posts pop-up'larının (View / Edit) yerine gerçek sayfalar. Yalnız tasarım
   token'ları (variables.css) kullanılır → açık/koyu tema kendiliğinden.
   Yorum metinleri ve mesajlar DOM'a textContent ile yazılır (post-page.js,
   messages.js); bu dosya yalnız görünüm.
   ========================================================= */

/* ---------- Post sayfası: üst şerit ---------- */
.ppx__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.ppx__back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text-mute); text-decoration: none; padding: 8px 12px 8px 8px; border-radius: 10px; transition: background .12s, color .12s; }
.ppx__back:hover { background: var(--bg-elev); color: var(--text); }
.ppx__back svg { flex: none; }
.ppx__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ppx__actions .pstatus { margin-right: 4px; }
/* (2026-10-27 Emre, 2. tur) Üst şerit: her düğme AYNI yükseklik (34px) ve Back düğmesiyle AYNI yazı (14px / 700); hafif karemsi 10px köşe.
   Delete ve Post to other socials İKON düğme ve SESSİZ: zemin/kenarlık yok, hover'da yalnız hafif zemin (yorumlardaki Reply gibi; Delete'te
   ikon kırmızıya döner), ikon SOLDA sabit, üstüne gelince yazı SAĞA doğru açılır (şerit sağa yaslı → düğme sola büyür). Çöp kutusu = Posts
   sayfasındaki çizgili ikon. Telefonda hover yok → yazı hep açık. POSTED rozeti: nokta yerine onay işareti. */
.ppx__actions .btn { height: 34px; padding: 0 10px; font-size: 14px; font-weight: 700; border-radius: 10px; gap: 7px; line-height: 1.15; }
.ppx__actions .btn svg { width: 16px; height: 16px; display: block; flex: none; }
.ppx__actions .ppx__ib { gap: 0; padding: 0 9px; min-width: 34px; justify-content: center; overflow: hidden; background: transparent; border: 1px solid transparent; color: var(--text-mute); box-shadow: none; }
.ppx__actions .ppx__ib span { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; line-height: 1.15; transition: max-width .18s ease, opacity .14s ease, margin-left .18s ease; }
.ppx__actions .ppx__ib:hover:not(:disabled) span, .ppx__actions .ppx__ib:focus-visible span { max-width: 170px; opacity: 1; margin-left: 7px; }
.ppx__actions .ppx__ib:hover:not(:disabled):not([disabled]), .ppx__actions .ppx__ib:focus-visible { background: var(--bg-elev); border-color: transparent; color: var(--text); box-shadow: none; }
.ppx__actions .ppx__ib--danger:hover:not(:disabled):not([disabled]), .ppx__actions .ppx__ib--danger:focus-visible { color: var(--red, #E7766A); }
.ppx__actions .pstatus.is-posted::before { width: 11px; height: 11px; border-radius: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/></svg>") center / contain no-repeat; }
@media (max-width: 760px) { .ppx__actions .ppx__ib span { max-width: none; opacity: 1; margin-left: 7px; } }
.ppx__gate { padding: 48px 20px; text-align: center; color: var(--text-mute); font-size: 14.5px; line-height: 1.6; }
.ppx__gate b { color: var(--text); font-size: 17px; display: block; margin-bottom: 6px; }
.ppx__gate .btn { margin-top: 16px; }

/* ---------- iki sütun ---------- */
.ppx__grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.ppx__left { min-width: 0; }
.ppx__right { min-width: 0; }
.ppx__phone { display: flex; justify-content: center; }
.ppx__phone .pvpanel { width: 100%; height: auto; }
.ppx__phone .pvpanel__body { max-height: 780px; padding: 0; }
.ppx__phone .pvpanel__foot { display: none; }   /* (2026-10-20 Emre) önizleme altındaki ipucu metni kaldırıldı */
.ppx__links { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
/* (2026-10-20 Emre) Masaüstünde sayfa aşağı-yukarı KAYMAZ; yalnız yorum akışı (ve düzenleme formu) kendi içinde kayar.
   Telefon sol sütuna yükseklikten sığar (post-page.js fitPhone → .pvpanel__body max-height → post-preview.js refit). */
@media (min-width: 861px) {
  .ppx { box-sizing: border-box; height: calc(100dvh - 64px); min-height: 480px; display: flex; flex-direction: column; padding-bottom: 16px; }
  .ppx__top { flex: none; }
  .ppx__gate { flex: 1; }
  .ppx__grid { flex: 1; min-height: 0; align-items: stretch; grid-template-columns: clamp(320px, calc((100dvh - 150px) * 0.475), 600px) minmax(0, 1fr); }   /* (Emre 27") sol sütun ekran YÜKSEKLİĞİNE göre: telefon 9:16 oranında büyür (13" ~346px, 16" ~440px, 27" ~600px) */
  .ppx__grid[hidden] { display: none; }
  .ppx__left { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .ppx__phone { flex: 0 1 auto; min-height: 0; }
  .ppx__links { flex: none; }
  .ppx__right { display: flex; flex-direction: column; min-height: 0; }
  #ppView { display: flex; flex-direction: column; min-height: 0; flex: 1; }
  #ppView[hidden] { display: none; }
  .ppx__stats, .ppx__tabs, .ppx__fail { flex: none; }
  .ppx__cmts { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; }
  .ppx__editwrap { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; }
}
/* (2026-10-20 gece, Emre 27") 901px ve üstünde üst çubuk (appbar) GİZLİ (app.css) → 64px düşülmez; telefon tam yüksekliği kullanır, altta boşluk kalmaz */
@media (min-width: 901px) {
  .ppx { height: 100dvh; }
}
.ppx__link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); min-width: 0; }
.ppx__link__ic { flex: none; min-width: 29px; height: 26px; display: grid; place-items: center; line-height: 0; }   /* (2026-11-19) gri kutu yok: logo kendi renginde (ugcPlatformBare); yuva 29 px = YouTube simgesinin eni → adresler alt alta hizalı */
.ppx__link__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-mute); text-decoration: none; }
.ppx__link__url:hover { color: var(--text); }
.ppx__ibtn { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--text-mute); cursor: pointer; transition: background .12s, color .12s; }
.ppx__ibtn:hover { background: var(--bg-elev); color: var(--text); }
.ppx__ibtn.is-done { color: var(--badge-leaf-fg); }
.ppx__whenx { font-size: 12.5px; font-weight: 600; color: var(--text-mute); margin-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
@media (max-width: 520px) { .ppx__whenx { white-space: normal; max-width: 100%; flex-basis: 100%; margin: 0 0 2px; } }   /* telefonda tarih kesilmesin */
.ppx__lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }

/* ---------- metrik kutuları (Dashboard dili) ----------
   (2026-10-20 gece, Emre: "13 inçte kutular sıkışık, renk geçişinin olayı kalmıyor") Kutular Dashboard'daki kadar GENİŞ kalır:
   her genişlikte 2 + 3 (üst sıra Views + Engagement, alt sıra Likes · Comments · Shares; 6 sütunlu ızgara); telefonda
   2 + 2 + 1 (Shares tam genişlik). Fontlar Dashboard ile BİREBİR (sayı 26, etiket 10.5, alt satır 11.5) — küçültme yok. */
.ppx__stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ppx__stats .dashx__stat { grid-column: span 2; padding: 14px 18px 15px; cursor: default; }
.ppx__stats .dashx__stat:nth-child(1), .ppx__stats .dashx__stat:nth-child(2) { grid-column: span 3; }   /* (Emre) üst sıra Views + Engagement ikili, alt sıra üçlü */
/* (Emre, 27") genis ekranda bes kutu TEK SIRA (sag sutun >= ~880px); ekran kuculunce 2 ust + 3 alt */
@media (min-width: 1600px) {
  .ppx__stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ppx__stats .dashx__stat, .ppx__stats .dashx__stat:nth-child(1), .ppx__stats .dashx__stat:nth-child(2) { grid-column: auto; }
}
.ppx__stats .dashx__stat b { min-height: 29px; white-space: nowrap; }
.ppx__stats .dashx__stat-l { padding-right: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppx__stats .dashx__stat-d { white-space: nowrap; }
.ppx__stats .dashx__stat-d.is-wrap { white-space: normal; }   /* (2026-11-19) uzun alt satır kutudan taşmasın: alt satıra kırılır (post-page.js) */
.ppx__stats .dashx__stat:hover { border-color: var(--border); background: var(--bg-card); }
/* (2026-10-22 Emre: "3 kutu var, tek sıraya sığarlar") Story postu: üç kutu (Views · Replies · Shares) HER genişlikte TEK SIRA, eşit;
   yalnız telefonda 2 + 1. Eski sürümde ≥1600px'de nth-child kuralı (özgüllük 0,4,0) 'auto'yu (0,3,0) eziyor, Views 2/3 genişlikte
   kalıp Replies alt satıra sarıyordu — bu yüzden ızgara ve kutu kuralı burada aynı özgüllükle, medya sorgusundan bağımsız yazıldı. */
.ppx__stats.is-story { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ppx__stats.is-story .dashx__stat, .ppx__stats.is-story .dashx__stat:nth-child(1), .ppx__stats.is-story .dashx__stat:nth-child(2) { grid-column: auto; }
@media (max-width: 520px) { .ppx__stats.is-story { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ppx__stats.is-story .dashx__stat:nth-child(3) { grid-column: span 2; } }
.ppx__tabs { margin: -4px 0 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ppx__tabs button { gap: 6px; font-size: 12.5px; padding: 7px 11px 10px; }
.ppx__fail { border: 1px solid rgba(212,66,50,.35); background: rgba(212,66,50,.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.ppx__fail .ppx__lbl { color: var(--red); margin-bottom: 4px; }
.ppx__failrow { margin: 4px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ppx__failact { display: block; color: var(--text-mute); font-size: 12.5px; }
.ppx__note { font-size: 12.5px; color: var(--text-dim); }

/* ---------- yorumlar ---------- */
.ppx__cmts { border-top: 1px solid var(--border); padding-top: 14px; }
.ppx__chead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 32px; }
.ppx__chead h2 { font-size: 15px; font-weight: 800; margin: 0; }
.ppx__ccount { font-size: 12.5px; color: var(--text-mute); font-weight: 700; }
.ppx__chead .ppx__ibtn { margin-left: auto; }
.ppx__chead .ppx__ibtn.is-busy svg { animation: ppxspin .8s linear infinite; }
@keyframes ppxspin { to { transform: rotate(360deg); } }
.ppx__cnote { color: var(--text-mute); font-size: 13.5px; line-height: 1.6; padding: 22px 18px; border: 1px dashed var(--border-lt); border-radius: 14px; text-align: center; }
.ppx__cnote b { color: var(--text); }
.ppx__cnote .btn { margin-top: 12px; }
.ppx__err { color: var(--red); font-size: 13px; font-weight: 600; padding: 8px 0; overflow-wrap: anywhere; }
.ppx__skel { height: 56px; border-radius: 12px; background: linear-gradient(90deg, var(--bg-elev) 25%, var(--bg-card) 50%, var(--bg-elev) 75%); background-size: 200% 100%; animation: ppxshim 1.1s linear infinite; margin: 8px 0; }
@keyframes ppxshim { to { background-position: -200% 0; } }
.ppx__more { margin-top: 10px; }

.cmt { display: flex; gap: 12px; padding: 13px 0; }
.cmt + .cmt { border-top: 1px solid var(--border); }
.cmt--reply { padding: 8px 0; }
.cmt--reply + .cmt--reply { border-top: 0; }
.cmt__av { width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden; background: var(--grad-violet); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cmt__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmt--reply .cmt__av { width: 28px; height: 28px; font-size: 11px; }
.cmt__body { min-width: 0; flex: 1; }
.cmt__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cmt__user { font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.cmt__you { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--badge-leaf-fg); background: var(--badge-leaf-bg); padding: 2px 7px; border-radius: 999px; }
.cmt__time { font-size: 12px; color: var(--text-dim); }
.cmt__flag { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--orange); }
.cmt__text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 3px 0 5px; }
.cmt.is-hidden > .cmt__body > .cmt__text { opacity: .5; }
.cmt__media { display: block; max-width: 220px; border-radius: 10px; margin: 4px 0 6px; }
.cmt__acts { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-left: -8px; }
.cmt__act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-mute); font: 600 12.5px/1 var(--font); padding: 7px 8px; border-radius: 8px; cursor: pointer; transition: background .12s, color .12s; }
.cmt__act:hover { background: var(--bg-elev); color: var(--text); }
.cmt__act.is-on { color: var(--red); }
.cmt__act.is-on svg { fill: currentColor; }
.cmt__act.is-sent { color: var(--badge-leaf-fg); cursor: default; }
.cmt__act.is-sent:hover { background: none; }
.cmt__act[disabled] { opacity: .45; cursor: default; }
.cmt__act[disabled]:hover { background: none; color: var(--text-mute); }
.cmt__act.is-busy { opacity: .6; pointer-events: none; }
.cmt__replies { margin-top: 4px; padding-left: 14px; border-left: 2px solid var(--border); }
.cmt__toggle { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--font); color: var(--text-mute); background: none; border: 0; cursor: pointer; padding: 6px 0 2px; }
.cmt__toggle:hover { color: var(--text); }
.cmt__box { margin: 8px 0 6px; border: 1px solid var(--border-lt); border-radius: 14px; padding: 10px 12px; background: var(--bg-card); }
.cmt__box--dm { border-color: rgba(54,128,103,.45); }
.cmt__boxhead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cmt__boxhead svg { color: var(--violet-light); }
.cmt__box textarea { width: 100%; min-height: 62px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: 13.5px/1.5 var(--font); padding: 9px 11px; resize: vertical; }
.cmt__box textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(54,128,103,.16); }
.cmt__boxfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cmt__boxnote { font-size: 11.5px; color: var(--text-dim); line-height: 1.45; flex: 1 1 200px; }
.cmt__boxnote.is-err { color: var(--red); font-weight: 600; }
.cmt__boxbtns { display: flex; gap: 6px; }
.cmt__more { position: relative; }
/* (2026-11-07 Emre, Threads canlı testi) ⋯ düğmesi satırın SOLUNDA durur; menü sağa doğru açılır (eski right:0 menüyü sola, yorum listesinin
   overflow kenarının dışına taşırıyordu → "de comment" diye kesiliyordu). Listenin altına sığmıyorsa JS `cmt__menu--up` ile yukarı açar. */
.cmt__menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 20; background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 160px; display: flex; flex-direction: column; }
.cmt__menu--up { top: auto; bottom: calc(100% + 4px); }
.cmt__menu button { text-align: left; background: none; border: 0; color: var(--text); font: 600 13px var(--font); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cmt__menu button:hover { background: var(--bg-elev); }
.cmt__menu button.is-danger { color: var(--red); }

/* ---------- düzenleme modu (Edit) ----------
   (2026-10-20 gece, Emre) En dış kutu YOK: form pop-up kutusu gibi durmasın; içerik aynen, kenarlık/arka plan şeffaf. */
.ppx__editwrap { border: 0; border-radius: 0; background: transparent; }
.ppx__editwrap .pedit { padding: 12px 0 18px; }
.ppx__edithead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0 0; }
.ppx__edithead h2 { font-size: 15px; font-weight: 800; margin: 0; }
.ppx__edithead .ppx__note { font-size: 12.5px; }

/* ---------- duyarlı ---------- */
@media (max-width: 1180px) {
  .ppx__grid { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 980px) {
  /* post-preview.css compose için paneli telefonda gizler (yüzen pil açar); post sayfasında telefon HER ZAMAN görünür */
  .ppx__phone .pvpanel { display: flex; width: 100%; max-width: 420px; height: auto; }
}
@media (max-width: 860px) {
  .ppx__grid { grid-template-columns: 1fr; gap: 18px; }
  .ppx__phone .pvpanel__body { max-height: 560px; }
  .ppx__top { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  /* telefon: 2 + 2 + 1 (sonuncu tam genişlik); Dashboard'ın telefon ölçeği, sıkışık değil */
  .ppx__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ppx__stats .dashx__stat, .ppx__stats .dashx__stat:nth-child(1), .ppx__stats .dashx__stat:nth-child(2) { grid-column: span 1; }
  .ppx__stats .dashx__stat:nth-child(5) { grid-column: span 2; }   /* Views+Engagement · Likes+Comments · Shares tam genişlik */
  .ppx__stats .dashx__stat { padding: 13px 15px 14px; }
  .ppx__actions { width: 100%; }
  .ppx__actions .btn { flex: 1 1 auto; justify-content: center; }
  .ppx__phone .pvpanel__body { max-height: 520px; }
  .ppx__tabs button { font-size: 13px; padding: 8px 10px 10px; }
  .ppx__chead h2 { font-size: 16px; }
  .cmt { gap: 10px; }
  .cmt__text { font-size: 15px; line-height: 1.5; }
  .cmt__time { font-size: 12.5px; }
  .cmt__act { font-size: 13px; padding: 8px 9px; }
  .ppx__edithead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ppx__edithead h2 { font-size: 16px; }
  .ppx__editwrap .ptabs { flex-wrap: wrap; }
  .ppx__failrow { font-size: 13.5px; }
  .cmt__act { padding: 7px 6px; }
  .cmt__act span { display: none; }
  .cmt__act .cmt__n { display: inline; }
}

/* =========================================================
   Messages (gelen kutusu)
   ========================================================= */
.ibx { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--bg-card); height: calc(100vh - 170px); height: calc(100dvh - 170px); min-height: 480px; }
.ibx__side { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ibx__accts { padding: 12px 12px 10px; border-bottom: 1px solid var(--border); }
/* (2026-10-20 gece, Emre) Hesap seçici: Posts'taki kanal dropdown'ı ile aynı parçalar; "All channels" + hesaplar; 100 hesap olsa da panel kayar */
.ibx__chan { margin-bottom: 0; }
.ibx__chan .pchan__btn { width: 100%; justify-content: flex-start; gap: 9px; }   /* (2026-10-27 Emre) avatar + rozet = Posts kanal listesiyle AYNI parça (app.css .pchan__avw / .pchan__allic); kendine özgü çip/harf parçaları kaldırıldı */
.ibx__chan .ibx__chanlbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.ibx__chan .ibx__chanchev { display: inline-flex; color: var(--text-mute); }
.ibx__chan .ibx__chanic { display: inline-flex; color: var(--text-mute); }
.ibx__chanpanel { left: 0; right: auto; width: 100%; max-height: 360px; }
.ibx__chanpanel .ibx__chanlbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx__tacct { font-size: 11px; font-weight: 600; color: var(--text-dim); margin-left: 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx__acct { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); font: 600 12.5px var(--font); cursor: pointer; transition: border-color .12s, background .12s; max-width: 100%; }
.ibx__acct:hover { border-color: var(--border-lt); }
.ibx__acct.is-on { border-color: var(--violet); background: rgba(54,128,103,.12); }
.ibx__acct img:where(:not(.netmark, .ytmark)), .ibx__acct .ibx__fall { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--grad-violet); color: #fff; font-size: 10px; font-weight: 800; }
.ibx__acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx__acct .ibx__pbadge { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; line-height: 0; }
/* (2026-11-12 Emre) sağ üst: Help + Refresh yan yana (aynı sessiz düğme malzemesi) */
.postsx__acts { display: flex; align-items: center; gap: 8px; flex: none; }
/* Help pop-up'ı: sitenin ugcmodal parçası; maddeler alt alta, başlık kalın (ileride başka madde eklenir) */
.ibx__help .ugcmodal__body + .ugcmodal__body { margin-top: -6px; }
.ibx__help .ugcmodal__body b { color: var(--text); display: block; margin-bottom: 3px; }
.ibx__tools { display: flex; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); align-items: center; }
.ibx__tools .apinput { flex: 1; }
/* (2026-11-12) Liste süzgeci All · Unread · Needs reply: Posts'taki .ptabs parçası, post sayfası sekmeleriyle aynı küçük ölçü (.ppx__tabs);
   sayı rozeti yalnız 0'dan büyükken görünür. Satırdaki "Needs reply" = satırın kendi sessiz etiket dili (.ibx__tacct / .ibx__ttime ölçüsü), kutu yok. */
.ibx__tabs { flex: none; margin: 0; padding: 0 3px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }   /* 3 + 9 = 12 px: ilk sekmenin yazısı arama kutusunun sol kenarıyla aynı hizada */
.ibx__tabs::-webkit-scrollbar { display: none; }
.ibx__tabs[hidden] { display: none; }
.ibx__tabs button { font-size: 12.5px; padding: 8px 9px 10px; white-space: nowrap; }
.ibx__tabs .ptabs__n { margin-left: 6px; }
.ibx__trow .ibx__tlast { flex: 1; min-width: 0; }
.ibx__tneed { flex: none; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--violet-light); white-space: nowrap; }
.ibx__list { flex: 1; overflow-y: auto; min-height: 0; }
.ibx__thread { display: flex; gap: 10px; padding: 11px 12px; cursor: pointer; border: 0; border-bottom: 1px solid var(--border); background: none; width: 100%; text-align: left; color: var(--text); font-family: inherit; transition: background .12s; }
.ibx__thread:hover { background: var(--bg-elev); }
.ibx__thread.is-on { background: rgba(54,128,103,.10); }
.ibx__tav { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; background: var(--grad-violet); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; position: relative; }
.ibx__tav img:where(:not(.netmark, .ytmark)) { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Rozet: Posts kartındaki avatar rozetiyle BİREBİR (18px daire, 10px ikon, 2px kart kenarlığı) — (2026-10-20 gece, Emre: "köşelerdeki ikonlar düzgün değil") */
.ibx__tav { overflow: visible; }
.ibx__tav img:where(:not(.netmark, .ytmark)) { border-radius: 50%; }
.ibx__tav .ibx__pbadge { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid var(--bg-card); line-height: 0; box-sizing: border-box; }
.ibx__tav .ibx__pbadge svg { width: 10px; height: 10px; display: block; }
.ibx__tbody { min-width: 0; flex: 1; }
.ibx__trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ibx__tname { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx__ttime { font-size: 11px; color: var(--text-dim); flex: none; }
.ibx__tlast { font-size: 12.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ibx__thread.is-unread .ibx__tlast { color: var(--text); font-weight: 600; }
.ibx__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-light); flex: none; margin-left: 6px; }
.ibx__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ibx__head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); min-height: 58px; }
.ibx__head .ibx__tav { width: 34px; height: 34px; font-size: 12px; }
.ibx__hname { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibx__hsub { font-size: 11.5px; color: var(--text-dim); }
.ibx__back { display: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); place-items: center; cursor: pointer; flex: none; }
.ibx__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--in { align-self: flex-start; background: var(--bg-elev); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--brand); color: var(--brand-fg); border-bottom-right-radius: 6px; }
.msg__time { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.msg__tag { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.msg__att a { color: inherit; text-decoration: underline; font-size: 12.5px; word-break: break-all; }
.msg__att img { max-width: 240px; max-height: 240px; border-radius: 10px; display: block; margin-top: 4px; }
.msg--sys { align-self: center; max-width: 90%; font-size: 11.5px; color: var(--text-dim); text-align: center; padding: 4px 0; }
.ibx__compose { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 8px; align-items: flex-end; }
.ibx__compose textarea { flex: 1; min-height: 44px; max-height: 160px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font: 14px/1.5 var(--font); padding: 10px 12px; resize: none; }
.ibx__compose textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(54,128,103,.16); }
.ibx__send { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.ibx__emo { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-mute); display: grid; place-items: center; cursor: pointer; transition: color .12s, border-color .12s; }
.ibx__emo:hover { color: var(--text); border-color: var(--border-lt); }
.ibx__emopanel { z-index: 420; }
.ibx__send:hover { background: var(--brand2); }
.ibx__send[disabled] { background: var(--bg-elev); color: var(--text-dim); cursor: not-allowed; }
.ibx__closed { font-size: 12.5px; color: var(--text-mute); padding: 12px 16px; border-top: 1px solid var(--border); line-height: 1.5; }
.ibx__closed b { color: var(--text); }
/* (2026-11-10) Messages iyimser gönderme: yazılan mesaj ANINDA balonda (soluk, "Sending…"); gönderilemezse balon kalır ("Not sent"), solunda kırmızı "!".
   Ünlemin ya da balonun üstüne gelince Connections'taki gibi ikon düğmeler çıkar: dönen ok (yeniden dene) + çöp kutusu (sil); hover = sitenin sessiz düğme hover'ı
   (gri kutu --bg-elev; çöp kutusunda ikon kırmızı). Açılır kutu YOK (Emre 2. tur). Satır tam genişlik → balon ölçüsü normal balonla aynı (%72). */
.msgrow { align-self: stretch; display: flex; justify-content: flex-end; align-items: center; }
.msgrow .msg { flex: 0 1 auto; min-width: 0; }
.msgrow.is-sending .msg { opacity: .62; }
.msgrow.is-failed .msg { opacity: .55; }
.msgrow.is-failed .msg__time { opacity: 1; font-weight: 700; }
/* balonla arada boşluk YOK (8 px iç dolgu): fare balondan ikonlara geçerken hover kopmaz */
.msgfail { flex: none; display: flex; align-items: center; gap: 2px; padding-right: 8px; }
.msgfail__mark { width: 22px; height: 22px; margin-left: 4px; padding: 0; border: 0; border-radius: 50%; background: var(--red-btn, #AF2B1D); color: var(--red-fg, #fff); font: 800 13px/22px var(--font); text-align: center; cursor: default; }
.msgfail__mark:focus-visible { outline: 2px solid var(--red-btn, #AF2B1D); outline-offset: 2px; }
.msgfail__ib { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-dim); cursor: pointer; opacity: 0; transition: opacity .12s, color .12s, background .12s; }
/* (Emre 3. tur) ikonlar ünlemin de gönderilemeyen BALONUN da üstüne gelince çıkar */
.msgfail:hover .msgfail__ib, .msgfail:focus-within .msgfail__ib, .msgrow.is-failed:has(> .msg:hover) .msgfail__ib { opacity: 1; }
.msgfail__ib:hover, .msgfail__ib:focus-visible { background: var(--bg-elev); color: var(--text); }
.msgfail__ib--del:hover, .msgfail__ib--del:focus-visible { color: var(--red, #E7766A); }
@media (hover: none) {
  /* dokunmatikte üstüne gelme yok: ikonlar hep görünür; yapışkan :hover boyamasın, geri bildirim basarken */
  .msgfail__ib { opacity: 1; width: 32px; height: 32px; }
  .msgfail__ib:hover { background: none; color: var(--text-dim); }
  .msgfail__ib:active { background: var(--bg-elev); color: var(--text); }
  .msgfail__ib--del:active { color: var(--red, #E7766A); }
}
.ibx__empty { margin: auto; padding: 40px 24px; text-align: center; color: var(--text-mute); font-size: 14px; line-height: 1.6; max-width: 440px; }
.ibx__empty b { color: var(--text); display: block; font-size: 16px; margin-bottom: 6px; }
.ibx__empty__act { margin-top: 16px; }
.ibx__err { color: var(--red); font-size: 13px; font-weight: 600; padding: 10px 14px; }
.ibx__pbadge svg { width: 8px; height: 8px; display: block; }
@media (max-width: 860px) {
  .ibx { grid-template-columns: 1fr; height: calc(100dvh - 140px); min-height: 420px; border-radius: 14px; }
  .ibx__side { border-right: 0; }
  .ibx.is-chat .ibx__side { display: none; }
  .ibx:not(.is-chat) .ibx__main { display: none; }
  .ibx__back { display: grid; }
  .msg { max-width: 86%; }
  .ibx__msgs { padding: 12px; }
  .ibx__compose { padding: 10px 12px; }
}

/* (2026-11-19) ağ logoları dosyadan çağrılan <img class="netmark">: rozetteki logo blok + beyaz ton (css/variables.css --nm-tone) */
.ibx__pbadge img.netmark { display: block; }
.ibx__pbadge { --nm-tone: var(--nmf-white); }
