/* Clinical help. The question lives in the input until Suggest this topic.
   The ? button and the dock live in OpComm.Help.UI/wwwroot/help-chrome.css.
   The drawer itself is OpComm.Help.UI/wwwroot/help-drawer.css. */

.oc-help-nudge[hidden],
.oc-help-phi[hidden],
.oc-help-card[hidden] {
  display: none;
}

.oc-help-nudge button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--oc-card-border, #c9d4e6);
  background: var(--oc-surface, #fff);
  color: var(--oc-text, #111);
}

.oc-help-phi {
  color: #9a6700;
}

html[data-theme="dark"] .oc-help-phi {
  color: #f5c16c;
}

.oc-help-nudge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--oc-card-border, #eceef2);
  background: var(--oc-surface, #fff);
  color: var(--oc-text, #111);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.oc-help-nudge p {
  margin: 0;
  flex: 1 1 160px;
}

.oc-help-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme="dark"] .driver-popover {
  background: var(--oc-surface, #1e2937);
  color: var(--oc-text, #e5e7eb);
}

html[data-theme="dark"] .driver-popover-title,
html[data-theme="dark"] .driver-popover-description,
html[data-theme="dark"] .driver-popover-progress-text {
  color: var(--oc-text, #e5e7eb);
}

@media (prefers-reduced-motion: reduce) {
  .oc-help-nudge,
  .driver-popover,
  .driver-overlay {
    transition: none;
    animation: none;
  }
}
