/* Mobil öncelikli, kişi seçimine odaklı gönderi paylaşım penceresi. */
body #sharePostModal.chat-dialog-overlay {
  z-index: 1006000 !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 !important;
  background: rgba(0,0,0,.58) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body #sharePostModal .share-sheet.chat-dialog-surface {
  display: flex !important;
  flex-direction: column !important;
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  height: min(88dvh, calc(var(--chat-dialog-height,100dvh) - 12px)) !important;
  max-height: min(88dvh, calc(var(--chat-dialog-height,100dvh) - 12px)) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--t-border-subtle,rgba(255,255,255,.1)) !important;
  border-bottom: 0 !important;
  border-radius: 24px 24px 0 0 !important;
  background: var(--t-bg-modal,#101114) !important;
  color: var(--t-text-primary,#f7f7f8) !important;
  box-shadow: 0 -12px 60px rgba(0,0,0,.38) !important;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1) !important;
  animation: none !important;
}
body #sharePostModal.open .share-sheet.chat-dialog-surface { transform: translateY(0) !important; }
body #sharePostModal .share-sheet .modal-drag-handle { flex: 0 0 auto; width: 38px; height: 4px; margin: 10px auto 4px; background: var(--t-text-muted,#777); opacity: .5; }
body #sharePostModal .share-header { flex: 0 0 auto; min-height: 52px; padding: 8px 18px 12px !important; border: 0 !important; }
body #sharePostModal .share-title { margin:0; font-size: 17px; font-weight: 720; letter-spacing: -.025em; text-transform: none; }
body #sharePostModal .share-header .modal-close { box-sizing:border-box; display:grid!important; place-items:center; flex:0 0 44px!important; width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important; padding:0!important; line-height:0; border:0!important; border-radius:8px!important; background:transparent!important; color:var(--t-text-secondary,var(--t-text-primary))!important; cursor:pointer; }
body #sharePostModal .share-header .modal-close:hover { background:var(--t-bg-hover,rgba(255,255,255,.07))!important; color:var(--t-text-primary)!important; }
body #sharePostModal .share-header .modal-close svg { display:block; width:20px; height:20px; margin:0; }
body #sharePostModal .share-modal-body { flex: 1 1 auto; min-height: 0; gap: 10px; padding: 4px 18px 12px; overflow: hidden; }
body #sharePostModal.chat-dialog-overlay .share-sheet.chat-dialog-surface { border-color:transparent!important; outline:0!important; box-shadow:0 22px 80px rgba(0,0,0,.32)!important; }
body #sharePostModal .share-quick-actions { flex:0 0 auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:4px; padding:2px 0 0; overflow:visible; }
body #sharePostModal .share-quick-btn { min-width:0; min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:4px 2px; border:0!important; border-radius:0!important; background:transparent!important; color:var(--t-text-primary,#f7f7f8); box-shadow:none!important; font-size:11px; }
body #sharePostModal .share-quick-btn:hover,body #sharePostModal .share-quick-btn:active { transform:none; background:transparent!important; }
body #sharePostModal.chat-dialog-overlay .share-quick-icon { display:grid; place-items:center; width:25px; height:25px; border:0!important; border-radius:0!important; background:transparent!important; color:var(--t-text-primary,#f7f7f8)!important; box-shadow:none!important; }
body #sharePostModal .share-quick-icon svg { width:22px; height:22px; }
body #sharePostModal .share-quick-label { max-width:none; color:var(--t-text-secondary,var(--t-text-muted,#a4a4a8)); font-size:11px; font-weight:550; line-height:1.2; letter-spacing:0; white-space:nowrap; }
body #sharePostModal .share-search-box { position:relative;z-index:4;flex:0 0 auto;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;pointer-events:auto; }
body #sharePostModal :is(.share-search-box input,.share-bottom-bar input) {
  position:relative;z-index:1;display:block;box-sizing:border-box;width:100%;height:46px;min-height:46px;
  padding:0 14px;border:0!important;border-radius:12px!important;
  outline:0!important;background:var(--t-bg-tab-active,rgba(255,255,255,.07))!important;
  box-shadow:none!important;color:var(--t-text-primary,#f7f7f8);
  font:inherit;font-size:14px;line-height:normal;
  appearance:none;-webkit-appearance:none;pointer-events:auto;user-select:text;touch-action:manipulation;
}
body #sharePostModal .share-search-box input { padding-left:40px; }
body #sharePostModal .share-search-icon { z-index:2;pointer-events:none; }
body #sharePostModal :is(.share-search-box input,.share-bottom-bar input)::placeholder { color:var(--t-text-muted,#999)!important;opacity:1!important; }
body #sharePostModal :is(.share-search-box input,.share-bottom-bar input):is(:focus,:focus-visible) {
  border:0!important;outline:0!important;background:var(--t-bg-tab-active,rgba(255,255,255,.07))!important;box-shadow:none!important;
}
body #sharePostModal .share-grid { flex: 1 1 auto; min-height: 0; max-height: none; grid-template-columns: repeat(4,minmax(0,1fr)); align-content: start; gap: 10px 6px; padding: 2px 0 10px; overflow-y: auto; overscroll-behavior:contain; scrollbar-width:none; -ms-overflow-style:none; }
body #sharePostModal .share-grid::-webkit-scrollbar { display:none; }
body #sharePostModal .share-item { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; padding: 5px 2px 4px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
body #sharePostModal .share-item:hover { background: transparent; }
body #sharePostModal .share-item.selected { background:transparent!important; }
body #sharePostModal .share-item:active { transform: scale(.97); }
body #sharePostModal .share-item:focus-visible { outline: 2px solid rgba(255,255,255,.8); outline-offset: 2px; }
body #sharePostModal .share-avatar-wrapper { position:relative;isolation:isolate;flex:0 0 auto;width:54px;height:54px;margin:0 0 7px; }
body #sharePostModal .share-avatar-wrapper .avatar { border:0!important; outline:0!important; box-shadow:none!important; background:var(--t-bg-tab-active,#191a1f)!important; }
body #sharePostModal .share-avatar-wrapper .status-online-dot { top:-2px!important;right:-2px!important;bottom:auto!important;left:auto!important;z-index:1!important;pointer-events:none!important; }
body #sharePostModal .share-avatar-circle { display:grid!important; place-items:center!important; background:var(--t-bg-tab-active,#191a1f)!important; color:var(--t-text-secondary,#c5c6c7)!important; font-size:15px!important; font-weight:600!important; }
body #sharePostModal .share-name-label { display: block; width: min(100%,78px); color: var(--t-text-secondary,var(--t-text-muted,#a4a4a8)); font-size: 11px; text-align: center; }
body #sharePostModal .share-select-badge { position:absolute;right:-2px;bottom:-2px;z-index:2;display:grid;place-items:center;box-sizing:border-box;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#f4f4f4;color:#101114;font-size:11px;font-weight:800;line-height:1;box-shadow:none;opacity:0;visibility:hidden;transform:scale(.78);transition:opacity .14s ease,transform .14s ease,visibility .14s ease; }
body #sharePostModal .share-item.selected .share-avatar-wrapper { transform: none; }
body #sharePostModal .share-item.selected .share-avatar-img,
body #sharePostModal .share-item.selected .share-avatar-wrapper .avatar,
body #sharePostModal .share-item.selected .share-avatar-circle { border: 0 !important; }
body #sharePostModal .share-item.selected .share-select-badge { background:#f4f4f4; color:#101114; opacity:1; visibility:visible; transform:none; }
body #sharePostModal .share-empty-state { grid-column: 1/-1; min-height:120px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:26px 12px; color:var(--t-text-muted,#929299); text-align:center; font-size:13px; }
body #sharePostModal .share-retry-btn { min-height:44px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--t-text-primary,#f7f7f8);font:inherit;font-size:12px;font-weight:600;cursor:pointer; }
body #sharePostModal .share-retry-btn:hover { background:var(--t-bg-subtle,rgba(255,255,255,.06)); }
body #sharePostModal .share-bottom-bar { position:relative;z-index:4;flex:0 0 auto;display:flex;align-items:flex-end;gap:10px;padding:10px 0 max(8px,env(safe-area-inset-bottom));border-top:0;background:var(--t-bg-modal,#101114);pointer-events:auto; }
body #sharePostModal .share-compose-field { position:relative;z-index:1;flex:1;min-width:0;display:grid;gap:4px; }
/* Paylaşım alanında “Kişi seç” yardımcı satırı kullanılmaz; eski istemciden
   kalan sayaç düğümleri de mesaj kutusunun üstünde boşluk oluşturmamalı. */
body #sharePostModal .share-selection-count { display:none!important; }
body #sharePostModal .share-send-btn { position:relative; isolation:isolate; flex:0 0 44px; display:grid; place-items:center; width:44px!important; min-width:44px; height:44px; min-height:44px; padding:0!important; border:0!important; border-radius:0!important; background:transparent!important; color:var(--t-text-primary,#f7f7f8)!important; box-shadow:none!important; font-size:0; transition:color .16s ease,opacity .16s ease,transform .16s ease; }
body #sharePostModal .share-send-btn:hover:not(:disabled) { color:var(--t-text-secondary,#c7c7c7)!important; }
body #sharePostModal .share-send-btn:active:not(:disabled) { transform:scale(.94); }
body #sharePostModal .share-send-btn:disabled { color:var(--t-text-muted,#777)!important; opacity:.45; cursor:not-allowed; }
body #sharePostModal .share-send-btn > svg { display:block; width:20px; height:20px; margin:0; }
body #sharePostModal .share-send-btn .share-btn-text { display:none!important; }
html[data-theme] body #sharePostModal .share-send-btn { background:transparent!important; color:var(--t-text-primary)!important; border-color:transparent!important; box-shadow:none!important; }
@media(min-width:600px) {
  body #sharePostModal.chat-dialog-overlay { align-items: center !important; padding: 20px !important; }
  body #sharePostModal .share-sheet.chat-dialog-surface { width:min(100%,520px) !important; height:min(78dvh,calc(var(--chat-dialog-height,100dvh) - 40px)) !important; max-height:min(78dvh,calc(var(--chat-dialog-height,100dvh) - 40px)) !important; border:0 !important; border-radius:24px !important; }
  body #sharePostModal .share-modal-body { gap:10px; padding:4px 18px 8px; }
  body #sharePostModal .share-quick-actions { gap:8px; }
  body #sharePostModal .share-quick-btn { min-height:58px; }
  body #sharePostModal .share-grid { row-gap:4px; }
}
@media(max-height:650px) {
  body #sharePostModal .share-sheet.chat-dialog-surface { height:min(94dvh,calc(var(--chat-dialog-height,100dvh) - 12px)) !important; max-height:min(94dvh,calc(var(--chat-dialog-height,100dvh) - 12px)) !important; }
  body #sharePostModal .share-quick-btn { min-height: 58px; }
}
body #sharePostModal.keyboard-open .share-modal-body { gap:8px; padding-top:0; }
body #sharePostModal.keyboard-open .share-quick-actions { display:none !important; }
body #sharePostModal.keyboard-open .share-grid { min-height:0; }
@media(min-width:600px) {
  body #sharePostModal .share-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { body #sharePostModal .share-sheet.chat-dialog-surface { transition:none !important; } }
