/* DualGuard Sync help assistant (fixed answers). Brand colours and fonts of the resource pages. */
.dg-help-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: 0; border-radius: 999px;
  background: #030b09; color: #f4f0e8; cursor: pointer;
  font: 700 16px/1.2 "Manrope", sans-serif;
  box-shadow: 0 10px 30px rgba(3, 11, 9, .28);
}
.dg-help-launcher::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #53ef82; box-shadow: 0 0 0 4px rgba(83, 239, 130, .2); }
.dg-help-launcher:hover { background: #10261b; }
.dg-help-launcher:focus-visible, .dg-help-panel button:focus-visible, .dg-help-panel a:focus-visible, .dg-help-panel input:focus-visible { outline: 3px solid #208b51; outline-offset: 3px; }
.dg-help-launcher[aria-expanded="true"] { display: none; }

.dg-help-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fffdf8; color: #152a20; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(3, 11, 9, .3);
  font: 400 15px/1.6 "Manrope", sans-serif;
}
.dg-help-panel[hidden] { display: none; }
.dg-help-panel * { box-sizing: border-box; }
.dg-help-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #030b09; color: #f4f0e8; }
.dg-help-head strong { font: 700 17px/1.3 "Space Grotesk", sans-serif; }
.dg-help-close { border: 0; background: none; color: #f4f0e8; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.dg-help-note { margin: 0; padding: 10px 18px; background: #eef7f0; color: #24463a; font-size: 13px; line-height: 1.5; }
.dg-help-search { padding: 12px 18px 4px; }
.dg-help-search input { width: 100%; padding: 10px 12px; border: 1px solid #c9c2b1; border-radius: 10px; background: #fff; color: #152a20; font: inherit; }
.dg-help-body { flex: 1; overflow-y: auto; padding: 8px 18px 14px; }
.dg-help-label { margin: 8px 0; font: 700 12px/1.5 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #5b6b62; }
.dg-help-topics { display: grid; gap: 8px; }
.dg-help-topic, .dg-help-question {
  width: 100%; text-align: left; cursor: pointer;
  padding: 11px 14px; border: 1px solid #ddd6c6; border-radius: 12px;
  background: #fff; color: #152a20; font: 600 15px/1.45 "Manrope", sans-serif;
}
.dg-help-topic:hover, .dg-help-question:hover { border-color: #17613f; background: #f4fbf6; }
.dg-help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dg-help-back { border: 0; background: none; padding: 4px 0; color: #17613f; font: 600 14px/1.5 "Manrope", sans-serif; cursor: pointer; }
.dg-help-answer-title { margin: 6px 0; font: 700 17px/1.4 "Space Grotesk", sans-serif; }
.dg-help-answer-title:focus { outline: none; }
.dg-help-answer { margin: 0 0 10px; }
.dg-help-more { display: inline-block; margin-bottom: 10px; color: #17613f; font-weight: 600; }
.dg-help-draft { display: block; width: fit-content; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: #fff1c2; color: #6b4e00; font-size: 12px; font-weight: 700; }
.dg-help-empty { margin: 4px 0 10px; }
.dg-help-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #ebe5d8; }
.dg-help-feedback > span { width: 100%; font-weight: 600; }
.dg-help-feedback button { padding: 7px 14px; border: 1px solid #17613f; border-radius: 999px; background: #fff; color: #17613f; font: 600 14px/1.3 "Manrope", sans-serif; cursor: pointer; }
.dg-help-feedback small, .dg-help-foot small { width: 100%; color: #5b6b62; font-size: 12px; line-height: 1.5; }
.dg-help-write {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: #53ef82; color: #030b09 !important; text-decoration: none !important;
  font: 700 14px/1.3 "Manrope", sans-serif;
}
.dg-help-write:hover { background: #3fd66d; }
.dg-help-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 14px; border-top: 1px solid #ebe5d8; background: #faf7f0; }

@media (max-width: 520px) {
  .dg-help-launcher { right: 16px; bottom: 16px; }
  .dg-help-panel { right: 0; bottom: 0; width: 100vw; max-height: 88vh; border-radius: 18px 18px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .dg-help-panel:not([hidden]) { animation: dg-help-in .18s ease-out; }
  @keyframes dg-help-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
