/* TruthPower Help component — v1 (TASK 91). CANONICAL COPY: truthpower-help/widget/help.css.
   Every app carries a byte-identical copy. Never edit a copy. */

.tphelp-btn {
  flex: none; position: relative; font: inherit; font-size: 13px; font-weight: 750; letter-spacing: .05em;
  line-height: 1.1; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--accent, #2b4fd8); background: transparent; color: var(--accent, #2b4fd8);
}
.tphelp-btn:hover { background: var(--tint, #eaf0ff); }
.tphelp-btn:focus-visible { outline: 3px solid var(--accent, #2b4fd8); outline-offset: 2px; }
.tphelp-dot {
  display: none; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%;
  background: #c0262d; border: 2px solid #fff;
}
.tphelp-unread .tphelp-dot { display: block; }
.tphelp-new { display: none; }
.tphelp-unread .tphelp-new { display: inline; }
.tphelp-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tphelp-panel {
  position: fixed; z-index: 2147483000; right: 16px; bottom: 16px;
  width: min(380px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: #16181d; border: 1px solid #d9dde6; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.tphelp-panel[hidden] { display: none; }
@media (max-width: 520px) {
  .tphelp-panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; max-height: none; border-radius: 0; border: 0; }
}
.tphelp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eef0f5; }
.tphelp-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.tphelp-x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: #4a5060; padding: 2px 8px; border-radius: 8px; }
.tphelp-x:focus-visible { outline: 3px solid #2b4fd8; }
.tphelp-context { margin: 0; padding: 8px 14px; font-size: 13px; color: #4a5060; background: #f2f4f8; }
.tphelp-msgs { list-style: none; margin: 0; padding: 12px 14px; overflow-y: auto; flex: 1; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.tphelp-m { max-width: 85%; padding: 8px 11px; border-radius: 12px; background: #eef0f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tphelp-m-you { align-self: flex-end; background: #e3eaff; }
.tphelp-m-help { align-self: flex-start; background: #e4f3ea; }
.tphelp-m-system { align-self: center; background: transparent; color: #1c7a4a; font-size: 13px; font-weight: 650; text-align: center; }
.tphelp-m-intro { align-self: stretch; max-width: none; background: transparent; color: #4a5060; }
.tphelp-who { display: block; font-size: 11px; font-weight: 650; color: #7b8296; margin-bottom: 2px; }
.tphelp-status { margin: 0; padding: 9px 14px; font-size: 14px; font-weight: 600; color: #6b4600; background: #fff5de; border-top: 1px solid #f0e2c0; }
.tphelp-status:empty { display: none; }
.tphelp-form { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid #eef0f5; }
.tphelp-claim-label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4a5060; }
.tphelp-claim-label[hidden] { display: none; }
.tphelp-claim, .tphelp-text {
  font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid #c3c9d6; border-radius: 9px;
  color: #16181d; background: #fff; resize: vertical;
}
.tphelp-claim:focus, .tphelp-text:focus { outline: 2px solid #2b4fd8; outline-offset: 0; border-color: #2b4fd8; }
.tphelp-note { margin: 0; font-size: 12px; color: #7b8296; }
.tphelp-error { margin: 0; font-size: 13px; font-weight: 650; color: #a12b2b; }
.tphelp-error:empty { display: none; }
.tphelp-send {
  align-self: flex-end; font: inherit; font-size: 15px; font-weight: 750; letter-spacing: .05em;
  padding: 10px 22px; border-radius: 999px; border: 0; background: #2b4fd8; color: #fff; cursor: pointer;
}
.tphelp-send:disabled { opacity: .6; cursor: default; }
.tphelp-send:focus-visible { outline: 3px solid #16181d; outline-offset: 2px; }

/* THE CANONICAL CONTROL (mount contract). When the app declares <div data-tphelp-mount> the control
   is placed inside it and inherits that bar's layout. With no mount point declared it falls back to
   a fixed control at the top of the viewport, which adds nothing to the app's own layout tree. */
.tphelp-label { white-space: nowrap; }
.tphelp-float {
  position: fixed; top: 8px; right: 8px; z-index: 2147483000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
@media (max-width: 480px) { .tphelp-float { top: 6px; right: 6px; } }
