/* Shared with the independent Integration panel; no framework or remote assets. */
.context-help-trigger {
  position: relative; display: inline-grid; place-items: center; vertical-align: middle;
  width: 28px; height: 28px; min-width: 28px; padding: 0; margin-inline-start: 4px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted, #52656b);
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
  flex: 0 0 auto; touch-action: manipulation;
}
.context-help-trigger::after { content: '؟'; }
.context-help-trigger::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 1px solid currentColor; border-radius: 50%; opacity: .65; pointer-events: none;
}
.context-help-trigger:hover, .context-help-trigger[aria-expanded="true"] {
  color: var(--brand, #14675e); background: var(--brand-soft, #e3f0ed);
}
.context-help-trigger:focus-visible, .context-help-guide > summary:focus-visible {
  outline: 2px solid var(--brand, #14675e); outline-offset: 2px;
}
.context-help-label { display: inline !important; }
.context-help-check-host { position: relative; }
.context-help-check-label { padding-inline-end: 36px !important; }
.context-help-check-trigger { position: absolute; inset-inline-end: 4px; top: 6px; }
.context-help-popup {
  position: fixed; z-index: 2200; box-sizing: border-box;
  width: max-content; max-width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 14px 16px; overflow: auto; border-radius: 12px;
  border: 1px solid var(--border, var(--line, #cad7d9));
  background: var(--surface, #fff); color: var(--ink, #142c35);
  box-shadow: 0 8px 28px #0003; direction: rtl; text-align: start;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.9;
  overflow-wrap: anywhere;
}
.context-help-popup[hidden] { display: none !important; }
.context-help-popup-title { display: block; font-weight: 700; margin-bottom: 4px; }
.context-help-popup p { margin: 0; }
.context-help-popup p + p { margin-top: 8px; }
.context-help-guide {
  display: block; margin-block: 0 18px; padding: 0;
  font-size: .88rem; color: var(--muted, #52656b);
}
.context-help-guide > summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
  cursor: pointer; list-style: none; border-radius: 6px; font-weight: 500;
}
.context-help-guide > summary::-webkit-details-marker { display: none; }
.context-help-mark {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border: 1px solid currentColor; border-radius: 50%; line-height: 1; font-weight: 700;
}
.context-help-guide[open] > summary { color: var(--ink, #142c35); }
.context-help-definitions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px 24px; margin: 10px 0 0; padding: 16px;
  border: 1px solid var(--border, var(--line, #cad7d9)); border-radius: 12px;
  background: var(--surface, #fff); color: var(--ink, #142c35);
}
.context-help-definitions dt { font-weight: 700; margin-bottom: 4px; }
.context-help-definitions dd, .context-help-definitions p { margin: 0; font-weight: 400; line-height: 1.9; }
.context-help-definitions p + p { margin-top: 6px; }
@media (pointer: coarse) {
  .context-help-trigger { width: 32px; height: 32px; min-width: 32px; }
}
@media print {
  .context-help-trigger, .context-help-guide, .context-help-popup { display: none !important; }
  [data-help-fallback][hidden] { display: block !important; }
}
