/* "Need help" button in the dashboard side panel, and its message modal. Self-contained so it works on every dashboard. */
.hm-overlay[hidden] { display: none; }
.hm-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .66); display: flex; align-items: center; justify-content: center; padding: 20px; }
.hm-card { background: #fff; color: #0f172a; border-radius: 18px; padding: 28px; width: 100%; max-width: 520px; box-shadow: 0 24px 60px rgba(0,0,0,.35); font-family: "Inter", "Helvetica Neue", Arial, sans-serif; max-height: 92vh; overflow-y: auto; }
.hm-card h2 { margin: 0 0 10px; font-size: 22px; color: #1e3a5f; }
.hm-text { margin: 0 0 14px; color: #475569; line-height: 1.6; font-size: 15px; }
.hm-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.hm-card textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; resize: vertical; min-height: 120px; box-sizing: border-box; color: #0f172a; background: #fff; }
.hm-card textarea:focus { outline: 2px solid rgba(14, 116, 144, .4); border-color: #0e7490; }
.hm-count { margin: 4px 0 0; text-align: right; font-size: 12px; color: #64748b; }
.hm-error { margin: 6px 0 0; min-height: 18px; color: #b91c1c; font-size: 13px; }
.hm-actions { display: flex; gap: 10px; margin-top: 8px; }
.hm-send { flex: 1; border: 0; border-radius: 10px; padding: 12px; font: inherit; font-weight: 700; font-size: 15px; color: #fff; background: #1e3a5f; cursor: pointer; }
.hm-send:hover { background: #17304f; }
.hm-send[disabled] { opacity: .6; cursor: wait; }
.hm-cancel { border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 18px; font: inherit; font-weight: 600; color: #334155; background: #fff; cursor: pointer; }
.hm-cancel:hover { background: #f8fafc; }
body.hm-locked { overflow: hidden; }

/* "Need help?" in the top bar, beside the notification bell */
.top-help-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 999px; background: var(--surface, var(--background, #fff)); color: var(--text, #111827); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.top-help-btn:hover { background: rgba(14, 116, 144, .08); border-color: #0e7490; }
.top-help-btn svg { flex: none; color: #0e7490; }
.top-help-btn:focus-visible { outline: 3px solid rgba(14, 116, 144, .4); outline-offset: 2px; }
@media (max-width: 560px) { .top-help-btn span { display: none; } .top-help-btn { width: 38px; padding: 0; justify-content: center; } }
