/* Login assistance and principal-admin inbox; existing notification counts stay independent. */
.login-help-link { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.help-modal { z-index: 1100; }
.help-modal .modal-content { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.help-modal .modal-header { flex-shrink: 0; }
.help-modal .modal-body { overflow-y: auto; }
.help-modal textarea { width: 100%; resize: vertical; min-height: 80px; font: inherit; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); color: var(--text-main); }
.help-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help-intro, .help-request-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.help-actions, .help-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.help-actions { justify-content: flex-end; margin-top: 16px; }
.help-toolbar select { flex: 1; min-width: 120px; border: 1px solid var(--border); border-radius: 6px; padding: 10px; font: inherit; font-size: 13px; background: var(--bg-card); color: var(--text-main); }
.help-feedback { font-size: 13px; margin: 12px 0; white-space: pre-wrap; }
.help-request-card { border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin: 12px 0; overflow-wrap: anywhere; }
.help-request-card p { margin: 8px 0; }
.help-request-message { white-space: pre-wrap; }
.help-notification { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.help-notification button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.help-notification strong { margin-left: auto; color: var(--primary); }
.help-notification small { display: block; color: var(--text-muted); margin-top: 4px; }
.help-bell-badge { position: absolute; bottom: -3px; right: -5px; padding: 2px 5px; border-radius: 9px; background: var(--primary); color: white; font-size: 10px; line-height: 14px; }
.help-bell-badge[hidden], .help-notification[hidden], #btn-help-more[hidden] { display: none; }
@media (max-width: 520px) { .help-form-grid { grid-template-columns: 1fr; gap: 0; } .help-toolbar .btn { flex: 1; } }

.managed-user-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.managed-help-count { min-width: 22px; padding: 2px 6px; border-radius: 6px; background: var(--primary-light, #edf1ff); color: var(--primary); font-size: 12px; text-align: center; }
#admin-help-page[hidden], #managed-user-directory[hidden] { display: none; }
.admin-help-page .help-toolbar select { flex: 0 1 240px; }
.admin-help-page .help-request-card { margin: 0 0 14px; }
@media (max-width: 600px) {
    .managed-user-header-actions { width: 100%; }
    .managed-user-header-actions .btn { flex: 1; white-space: nowrap; }
}
