/* Diamond Caelum AI — v1.8.6-rc2: dosya seçenekleri görünüm iyileştirmesi.
   Şeffaf, geçişli ve uygulamanın cam panel diliyle uyumlu bağlam menüsü. */
#dc-context-popover.dc-context-popover {
  box-sizing: border-box !important;
  width: min(320px, calc(100dvw - 24px)) !important;
  max-width: calc(100dvw - 24px) !important;
  max-height: min(74dvh, 568px, calc(100dvh - 24px)) !important;
  padding: 8px 8px max(9px, env(safe-area-inset-bottom, 0px)) !important;
  gap: 2px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(126, 181, 255, 0.26), rgba(196, 151, 247, 0.22) 54%, rgba(255, 170, 208, 0.24)) !important;
  color: #f8fbff !important;
  border: 1px solid rgba(243, 245, 255, 0.45) !important;
  box-shadow: 0 18px 46px rgba(73, 88, 156, 0.16), 0 4px 18px rgba(104, 73, 144, 0.1) !important;
  backdrop-filter: blur(22px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(135%) !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-padding-bottom: 15px;
  color-scheme: light;
}
#dc-context-popover .dc-ctx-head {
  position: sticky !important;
  top: -8px !important;
  z-index: 2 !important;
  background: linear-gradient(135deg, rgba(144, 201, 255, 0.23), rgba(194, 164, 247, 0.19) 52%, rgba(255, 176, 211, 0.22)) !important;
  border-bottom: 1px solid rgba(243, 245, 255, 0.32) !important;
  margin: -2px 0 5px !important;
  padding: 8px 8px 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
#dc-context-popover .dc-ctx-head-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#dc-context-popover .dc-ctx-eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: .12em;
  font-weight: 700;
  color: rgba(243, 247, 255, 0.88);
}
#dc-context-popover .dc-ctx-head strong {
  display: block;
  min-width: 0;
  max-width: none !important;
  font: 650 13px/1.35 system-ui, -apple-system, sans-serif !important;
  color: #fbfdff !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#dc-context-popover #dc-ctx-close {
  appearance: none !important;
  flex: 0 0 33px !important;
  width: 33px !important;
  height: 33px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  border: 1px solid rgba(245, 246, 255, 0.42) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fbfdff !important;
  font: 600 16px/1 system-ui, sans-serif !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
#dc-context-popover .dc-ctx-item {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 7px 10px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fbfdff !important;
  text-align: left !important;
  font: 530 12.5px/1.35 system-ui, -apple-system, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  cursor: pointer;
  touch-action: manipulation !important;
}
#dc-context-popover .dc-ctx-item .dc-ctx-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #f9fcff;
  background: linear-gradient(145deg, rgba(255,255,255,0.17), rgba(184, 221, 255, 0.12));
  font-size: 15px;
  line-height: 1;
}
#dc-context-popover .dc-ctx-item .dc-ctx-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#dc-context-popover .dc-ctx-item .dc-ctx-chevron {
  flex: 0 0 auto;
  font-size: 14px;
  color: rgba(249, 251, 255, 0.85);
  transition: transform .15s ease;
}
#dc-context-popover #dc-ctx-status-toggle[aria-expanded="true"] .dc-ctx-chevron { transform: rotate(90deg); }
#dc-context-popover .dc-ctx-item:is(:hover,:active) {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(245, 247, 255, 0.3) !important;
}
#dc-context-popover .dc-ctx-item:focus-visible,
#dc-context-popover #dc-ctx-close:focus-visible {
  outline: 2px solid #8eeaf1 !important;
  outline-offset: -2px !important;
}
#dc-context-popover .dc-ctx-divider {
  flex: 0 0 1px;
  height: 1px;
  margin: 4px 9px;
  background: rgba(243, 245, 255, 0.22) !important;
}
#dc-context-popover .dc-ctx-submenu {
  margin: 4px 0 6px 30px !important;
  padding: 4px 5px !important;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(183, 216, 255, 0.07)) !important;
  border: 1px solid rgba(243, 245, 255, 0.2);
}
#dc-context-popover .dc-ctx-submenu .dc-ctx-item {
  min-height: 36px !important;
  padding: 6px 8px !important;
  background: rgba(255,255,255,0.04) !important;
}
#dc-context-popover [data-st-chk] { flex: 0 0 auto; margin-left: auto; color: #dffcff; }
#dc-context-popover .dc-ctx-item.danger {
  color: #fff5f8 !important;
  font-weight: 650 !important;
}
#dc-context-popover .dc-ctx-item.danger .dc-ctx-icon {
  color: #fff5f8;
  background: linear-gradient(145deg, rgba(255, 194, 214, 0.24), rgba(255,255,255,0.12));
}
#dc-context-popover .dc-ctx-item.danger:is(:hover,:active) {
  background: rgba(255, 173, 198, 0.18) !important;
}
#dc-context-popover::-webkit-scrollbar { width: 6px; }
#dc-context-popover::-webkit-scrollbar-thumb { background: rgba(243, 245, 255, 0.33); border-radius: 9px; }
@media (max-width: 560px) {
  #dc-context-popover.dc-context-popover { width: min(300px, calc(100dvw - 20px)) !important; }
  #dc-context-popover .dc-ctx-item { min-height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #dc-context-popover .dc-ctx-chevron { transition: none !important; }
}
