/* rm1x-helppanel-1117: "Need help now?" crisis panel (Warden's copy). Calm: no animation, no flashing, strong contrast, 44px targets. */
.help-now {
  position: fixed; z-index: 47; /* above #gate (40) and the sign-in sub-gates (44-46) */
  left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px;
  background: #101014; color: #ffffff; border: 2px solid #8fd3ff;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; text-transform: none;
  display: inline-flex; align-items: center; cursor: pointer; touch-action: manipulation;
  transition: none; animation: none; box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.help-now:hover { background: #1b1b22; }
.help-now:focus-visible, .help-now-inline:focus-visible, .help-dlg a:focus-visible, .help-dlg button:focus-visible { outline: 3px solid #ffe600; outline-offset: 2px; }
.help-now-inline {
  min-height: 44px; min-width: 44px; padding: 0 14px; margin: 6px 0 2px; border-radius: 10px;
  background: #101014; color: #ffffff; border: 2px solid #8fd3ff; font-weight: 600; font-size: 15px; cursor: pointer;
}
.help-dlg {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box;
  margin: auto; padding: 22px 22px 18px; border-radius: 14px;
  background: #0f0f13; color: #f3f3f3; border: 2px solid #8fd3ff;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left;
  animation: none; transition: none;
}
.help-dlg::backdrop { background: rgba(4, 4, 6, .88); }
.help-dlg h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #ffffff; }
.help-dlg p { margin: 0 0 12px; }
.help-dlg strong { color: #ffffff; }
.help-dlg ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.help-dlg li { padding: 10px 12px; border: 1px solid #3a3a46; border-radius: 10px; background: #16161c; }
.help-dlg a { color: #8fd3ff; text-decoration: underline; text-underline-offset: 2px; }
.help-dlg a.help-call { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; margin: -6px 0; color: #ffffff; text-decoration-color: #8fd3ff; text-decoration-thickness: 2px; }
.help-dlg .help-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.help-dlg .help-acts button { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.help-dlg .help-report { background: #8fd3ff; color: #061018; border: 0; }
.help-dlg .help-close { background: transparent; color: #ffffff; border: 1px solid #6a6a78; }
@media (prefers-reduced-motion: reduce) { .help-now, .help-dlg, .help-dlg * { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .help-now, .help-now-inline, .help-dlg { border: 2px solid CanvasText; } }
.rep-lines { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.rep-lines[hidden] { display: none; }
.rep-lines a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px;
  background: #101014; color: #ffffff; border: 2px solid #8fd3ff; font-weight: 600; font-size: 15px; text-decoration: none; animation: none; transition: none; }
.rep-lines a:focus-visible { outline: 3px solid #ffe600; outline-offset: 2px; }
/* rm1x-teambox-1117: Message the rm1x team */
.team-dlg { margin: auto; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; border: 1px solid #3a3a46; border-radius: 14px; background: #101015; color: #e8e8ee; font-size: 16px; line-height: 1.5; }
.team-dlg::backdrop { background: rgba(4, 4, 6, .88); }
.team-dlg h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; }
.team-dlg h3 { margin: 16px 0 8px; font-size: 16px; color: #fff; text-transform: none; letter-spacing: 0; }
.team-dlg p { margin: 0 0 10px; }
.team-dlg strong { color: #fff; }
.team-dlg a { color: #8fd3ff; }
.tb-crisis { padding: 12px; border: 1px solid #3a3a46; border-radius: 10px; background: #16161c; margin: 0 0 14px; }
.tb-crisis p { margin: 0 0 8px; }
.team-dlg label { display: block; margin: 10px 0 4px; font-weight: 600; color: #fff; }
.team-dlg select, .team-dlg textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid #6a6a78; background: #0b0b0f; color: #fff; font: inherit; }
.team-dlg textarea { min-height: 120px; resize: vertical; }
.tb-count { font-size: 13px; color: #a8a8b4; text-align: right; margin-top: 2px; }
.tb-hint { font-size: 14px; color: #c8c8d2; margin: 6px 0 0; }
.tb-hint[hidden], .tb-note[hidden], .team-dlg [hidden] { display: none !important; }
.tb-note { padding: 12px; border-radius: 10px; border: 1px solid #6a6a78; background: #17171e; margin: 0 0 12px; }
.tb-note p:last-child { margin-bottom: 0; }
.tb-done { padding: 12px; border-radius: 10px; border: 1px solid #3a3a46; background: #16161c; margin: 12px 0 0; }
.tb-done p:focus { outline: none; }
.tb-err { color: #ffb4b4; min-height: 1em; margin-top: 6px; }
.tb-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tb-acts button { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.tb-send { background: #8fd3ff; color: #061018; border: 0; }
.tb-send:disabled { opacity: .6; }
.tb-close { background: transparent; color: #fff; border: 1px solid #6a6a78; }
.tb-mine { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tb-msg, .tb-adm { padding: 10px 12px; border: 1px solid #3a3a46; border-radius: 10px; background: #14141a; }
.tb-meta { font-size: 13px; color: #a8a8b4; }
.tb-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
.tb-reply { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; padding-left: 10px; border-left: 3px solid #8fd3ff; }
.tb-ai { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid #8fd3ff; color: #8fd3ff; margin-left: 4px; }
.tb-who { list-style: none; padding: 0; margin: 4px 0 0; font-size: 14px; color: #c8c8d2; }
.tb-urgent { border-color: #ff6b6b; }
.tb-adm .ar-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tb-replyta { width: 100%; min-height: 80px; margin-top: 8px; box-sizing: border-box; }
.team-dlg button:focus-visible, .team-dlg a:focus-visible, .team-dlg select:focus-visible, .team-dlg textarea:focus-visible { outline: 3px solid #ffe600; outline-offset: 2px; }
@media (forced-colors: active) { .team-dlg { border: 2px solid CanvasText; } }
/* rm1x-alertcap-1117 */
.cap-msg[hidden] { display: none !important; }
.cap-msg p { margin: 0 0 8px; }
.cap-msg ul { margin: 0 0 8px; padding-left: 1.3em; list-style: disc; display: block; }
.cap-msg li { margin: 0 0 4px; padding: 0; border: 0; background: none; }
.cap-msg a { color: #8fd3ff; text-decoration: underline; }
.cap-msg:focus { outline: none; }
.rep-reader { margin: 4px 0 10px; color: var(--muted, #c8c8d2); }
.cap-msg a[href^="tel:"] { white-space: nowrap; }
