/* =====================================================================
   VisionSchools dashboard shell — same structure/UX as FutureCRM/HR
   (top navbar + narrow icon sidebar with collapsible category groups +
   scrolling main), themed with the VisionSchools maroon brand.
   Page-level components (cards/tables/buttons) live in ui.css.
   ===================================================================== */

:root {
    --ds-brand: var(--vs-primary, #5b57a6);
    --ds-brand-dark: var(--vs-primary-700, #3a3873);
    --ds-brand-light: #9b98d0;
    --ds-accent: var(--vs-accent, #f5a524);
    --ds-bg: #f6f7fb;
    --ds-surface: #ffffff;
    --ds-border: #ecebf4;
    --ds-text: #334155;
    --ds-muted: #94a3b8;
    --ds-active-bg: #eeedf8;      /* light indigo tint */
    --ds-transition: all .22s ease-in-out;
}

html, body { height: 100%; }
/* overflow-x:hidden on html stops the off-canvas drawer (fixed, positioned
   off-screen) from widening the page and shifting RTL content sideways. */
html { overflow-x: hidden; }
body { background: var(--ds-bg); color: var(--ds-text); overflow: hidden; }

/* ---- Layout grid: header row + [icon sidebar | main] ---------------- */
.dashboard-layout {
    display: grid;
    grid-template-rows: 68px 1fr;
    grid-template-columns: 104px 1fr;
    grid-template-areas: "header header" "sidebar main";
    height: 100vh;
    width: 100vw;
}

/* ---- Top navbar ---------------------------------------------------- */
.top-navbar {
    grid-area: header;
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 100;
}
.navbar-right, .navbar-left { display: flex; align-items: center; gap: 14px; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.sidebar-brand-logo { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-size: 18px; font-weight: 800; color: var(--ds-brand); letter-spacing: .3px; }
.brand-sub { font-size: 10px; font-weight: 700; color: var(--ds-muted); }
.navbar-center { flex: 1; text-align: center; }
.navbar-org-name { font-size: 16px; font-weight: 700; color: var(--ds-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mobile-toggle-btn { display: none; background: none; border: none; color: var(--ds-text); cursor: pointer; }

.nav-icon-btn, .lang-toggle-btn {
    background: none; border: 1px solid transparent; color: var(--ds-text); cursor: pointer;
    height: 40px; border-radius: 30px; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 0 12px; transition: var(--ds-transition); font-weight: 600; font-size: 13px;
}
.nav-icon-btn { width: 40px; padding: 0; border-radius: 50%; }
.nav-icon-btn:hover, .lang-toggle-btn:hover { background: var(--ds-active-bg); color: var(--ds-brand); }
.lang-toggle-btn { border-color: var(--ds-border); }

.user-profile-menu { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; padding: 5px 8px; border-radius: 30px; transition: var(--ds-transition); }
.user-profile-menu:hover { background: var(--ds-active-bg); }
.user-profile-menu .username { font-size: 14px; font-weight: 600; color: var(--ds-text); }
.avatar-initials { width: 38px; height: 38px; border-radius: 50%; background: var(--ds-brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.dropdown-card { position: absolute; top: 50px; inset-inline-start: 0; width: 200px; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,.08); padding: 8px 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--ds-transition); z-index: 500; }
.dropdown-card.show-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; color: #475569; text-decoration: none; background: none; border: none; cursor: pointer; }
.dropdown-item:hover { background: #f8fafc; }
.dropdown-item svg { width: 18px; height: 18px; }

/* ---- Chat (three-panel) ------------------------------------------ */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 170px); min-height: 420px; }
.chat-list { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 14px; overflow-y: auto; padding: 8px; }
.chat-list h3 { font-size: 14px; font-weight: 800; color: var(--ds-brand); padding: 8px 10px; margin: 0; }
.chat-conv { width: 100%; text-align: start; background: none; border: none; border-radius: 10px; padding: 11px 12px; cursor: pointer; display: block; transition: var(--ds-transition); }
.chat-conv:hover { background: #f8fafc; }
.chat-conv.active { background: var(--ds-active-bg); }
.chat-conv-title { font-size: 13.5px; font-weight: 700; color: var(--ds-text); }
.chat-conv-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.chat-main { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--ds-border); font-weight: 700; color: var(--ds-text); }
.chat-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: linear-gradient(135deg,#ffffff,#f6f5fb); }
.chat-bubble { max-width: 72%; padding: 9px 13px; border-radius: 14px; font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.chat-bubble .chat-time { font-size: 10px; opacity: .7; margin-top: 3px; display: block; text-align: end; }
.chat-bubble.mine { align-self: flex-end; background: var(--ds-brand); color: #fff; border-bottom-inline-end-radius: 4px; }
.chat-bubble.theirs { align-self: flex-start; background: #EEEDF8; color: #20204A; border-bottom-inline-start-radius: 4px; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.chat-composer { border-top: 1px solid var(--ds-border); }
.chat-compose { display: flex; gap: 8px; padding: 12px; align-items: center; }
.chat-compose input[type=text], .chat-compose input:not([type]) { flex: 1; }
.chat-attach { cursor: pointer; font-size: 20px; line-height: 1; padding: 6px 8px; border-radius: 10px; user-select: none; }
.chat-attach:hover { background: #EEEDF8; }
.chat-pending { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 8px 10px; background: #EEEDF8; border-radius: 10px; font-size: 13px; color: #20204A; }
.chat-pending img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.chat-pending .rm { margin-inline-start: auto; cursor: pointer; border: none; background: transparent; font-size: 15px; color: #64748b; }
/* WhatsApp-style attachment bubbles */
.chat-bubble .chat-img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-bottom: 4px; }
.chat-bubble .chat-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.18); text-decoration: none; margin-bottom: 4px; font-weight: 500; }
.chat-bubble.theirs .chat-file { background: rgba(0,0,0,.05); color: #20204A; }
.chat-bubble .chat-file .fi { font-size: 20px; }
.chat-bubble .chat-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.chat-bubble.mine .chat-file, .chat-bubble.mine .chat-file:link { color: #fff; }
.chat-bubble .chat-text { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 800px) { .chat-shell { grid-template-columns: 1fr; height: auto; } .chat-thread { height: 340px; } }

/* ---- Structure tree ---------------------------------------------- */
.vs-tree, .vs-tree ul { list-style: none; margin: 0; }
.vs-tree { padding: 0; }
.vs-tree ul { padding-inline-start: 20px; border-inline-start: 1px dashed var(--ds-border); margin-inline-start: 6px; }
.vs-tree li { margin: 2px 0; }
.vs-tree-row { display: inline-flex; align-items: center; gap: 8px; padding: 3px 0; }
.vs-tree-row .vs-btn-sm { opacity: 0; transition: var(--ds-transition); }
.vs-tree-row:hover .vs-btn-sm { opacity: 1; }

/* ---- Notifications bell ------------------------------------------- */
.notif-menu { position: relative; display: inline-flex; }
.notif-btn { position: relative; background: none; border: 1px solid var(--ds-border); color: var(--ds-text); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: var(--ds-transition); }
.notif-btn:hover { background: var(--ds-active-bg); color: var(--ds-brand); }
.notif-badge { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ds-danger, #B00020); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--ds-surface); }
.notif-dropdown { width: 340px; max-height: 460px; overflow-y: auto; inset-inline-end: 0; inset-inline-start: auto; padding: 0; }
.notif-head { font-size: 14px; font-weight: 800; color: var(--ds-brand); padding: 14px 16px 10px; border-bottom: 1px solid var(--ds-border); position: sticky; top: 0; background: var(--ds-surface); }
.notif-empty { padding: 28px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.notif-item { display: block; width: 100%; text-align: start; background: none; border: none; border-bottom: 1px solid var(--ds-border); padding: 11px 16px; cursor: pointer; transition: var(--ds-transition); }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: var(--ds-active-bg); }
.notif-item.unread .notif-item-title::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ds-brand); margin-inline-end: 7px; vertical-align: middle; }
.notif-item-title { font-size: 13.5px; font-weight: 700; color: var(--ds-text); }
.notif-item-body { font-size: 12.5px; color: #64748b; margin-top: 2px; line-height: 1.4; }
.notif-item-time { font-size: 10.5px; color: #a3adba; margin-top: 4px; }
.dropdown-item.logout-item span { color: #e11d48; }

/* ---- Sidebar (icon rail with category accordions) ------------------ */
.sidebar-aside {
    grid-area: sidebar; background: var(--ds-surface);
    border-inline-end: 1px solid var(--ds-border); overflow-y: auto; padding: 14px 0;
}
.sidebar-aside::-webkit-scrollbar { width: 4px; }
.sidebar-aside::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.sidebar-org-name { display: none; }

.sidebar-nav-list { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.sidebar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 88px; text-decoration: none; gap: 6px; transition: var(--ds-transition); background: none; border: none; cursor: pointer;
}
.item-icon-box {
    width: 48px; height: 48px; background: var(--ds-surface); border: 1px solid #e6eaf0;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: var(--ds-transition);
}
.item-icon-box svg { width: 20px; height: 20px; color: #64748b; transition: var(--ds-transition); }
.item-label { font-size: 10px; font-weight: 600; color: var(--ds-text); text-align: center; line-height: 1.3; }

.sidebar-item:hover .item-icon-box { background: var(--ds-active-bg); border-color: var(--ds-brand-light); }
.sidebar-item:hover .item-icon-box svg { color: var(--ds-brand); }
.sidebar-item.active .item-icon-box, .sidebar-item .active .item-icon-box { background: var(--ds-active-bg); border-color: transparent; }
.sidebar-item.active .item-icon-box svg { color: var(--ds-brand); }
/* NavLink adds .active on the <a>; style its inner icon/label */
a.sidebar-item.active .item-icon-box { background: var(--ds-active-bg); border-color: transparent; box-shadow: inset 0 0 0 2px var(--ds-brand-light); }
a.sidebar-item.active .item-icon-box svg { color: var(--ds-brand); }
a.sidebar-item.active .item-label { color: var(--ds-brand); font-weight: 700; }

/* Category group (accordion) */
.sidebar-group { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sidebar-group-toggle { position: relative; }
.sidebar-group-toggle.active .item-icon-box { background: var(--ds-active-bg); border-color: var(--ds-brand-light); }
.sidebar-group-toggle.active .item-icon-box svg { color: var(--ds-brand); }
.group-chevron { width: 12px; height: 12px; color: #94a3b8; margin-top: -2px; transition: transform .2s ease; }
.group-chevron.expanded { transform: rotate(180deg); }
/* Submenu sits on a soft tinted panel so it reads as a distinct, nested area. */
.sidebar-submenu {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    width: calc(100% - 12px); margin: 8px 6px 0; padding: 12px 0;
    background: var(--ds-active-bg); border-radius: 12px;
}
.sidebar-subitem .item-icon-box { width: 40px; height: 40px; }
.sidebar-subitem .item-icon-box svg { width: 17px; height: 17px; }
.sidebar-subitem .item-label { font-size: 9px; }

/* ---- Main content -------------------------------------------------- */
/* Soft lavender gradient + decorative indigo/amber circles (matches the
   mobile + login backdrop). Circles are drawn as fixed background layers so
   they stay anchored while the content scrolls, with no extra markup. */
.main-page-content {
    grid-area: main; padding: 26px 22px; overflow-y: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(91,87,166,0.10) 0 230px, transparent 231px),
        radial-gradient(circle at 0% 100%, rgba(91,87,166,0.08) 0 180px, transparent 181px),
        radial-gradient(circle at 100% 100%, rgba(245,165,36,0.09) 0 120px, transparent 121px),
        linear-gradient(135deg, #ffffff 0%, #f3f1fb 55%, #eae8f8 100%);
    /* default (scroll) attachment anchors the circles to the content area's own
       corners and keeps them put as the page scrolls. */
}

/* Page sub-header (title + actions) */
.content-sub-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.page-module-title { font-size: 24px; font-weight: 800; color: var(--ds-brand); letter-spacing: -0.01em; }
.sub-header-actions { display: flex; gap: 10px; }

/* ---- Responsive: sidebar becomes a slide-in drawer ---------------- */
.sidebar-overlay { display: none; }
@media (max-width: 991px) {
    .dashboard-layout { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
    .top-navbar { min-width: 0; }
    .navbar-center { display: none; }
    .brand-sub { display: none; }
    .mobile-toggle-btn { display: block; }
    .sidebar-aside { position: fixed; top: 68px; height: calc(100vh - 68px); width: 232px; z-index: 99; transition: var(--ds-transition); }
    .sidebar-nav-list { align-items: stretch; padding: 0 8px; }
    .sidebar-item { flex-direction: row; width: 100%; justify-content: flex-start; gap: 12px; padding: 6px 10px; border-radius: 10px; }
    .sidebar-item .item-label { font-size: 13px; text-align: start; }
    .sidebar-subitem .item-label { font-size: 12px; }
    .sidebar-group { align-items: stretch; }
    .sidebar-submenu { align-items: stretch; width: auto; margin: 8px 6px 0; padding: 8px 8px 8px 14px; }
    .sidebar-org-name { display: block; padding: 6px 14px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--ds-border); font-size: 14px; font-weight: 700; color: var(--ds-brand); text-align: center; }
    .dashboard-layout[dir="rtl"] .sidebar-aside { right: -260px; box-shadow: -5px 0 15px rgba(0,0,0,.06); }
    .dashboard-layout[dir="rtl"] .sidebar-aside.open { right: 0; }
    .dashboard-layout[dir="ltr"] .sidebar-aside { left: -260px; box-shadow: 5px 0 15px rgba(0,0,0,.06); }
    .dashboard-layout[dir="ltr"] .sidebar-aside.open { left: 0; }
    .sidebar-overlay { position: fixed; inset: 68px 0 0 0; background: rgba(0,0,0,.15); z-index: 98; }
    .sidebar-overlay.active { display: block; }
}
@media (max-width: 550px) {
    .brand-title { font-size: 15px; }
    .user-profile-menu .username { display: none; }
    .main-page-content { padding: 16px 12px; }
}

/* ---- Login (split-pane, HR-style) --------------------------------- */
.login-page { min-height: 100vh; width: 100%; display: flex; background: var(--ds-surface); overflow: hidden; }

.login-visual-pane {
    flex: 1 1 45%; max-width: 560px; color: #fff; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 48px 40px; gap: 30px;
    background: radial-gradient(circle at 20% 20%, var(--ds-brand-light) 0%, transparent 45%),
                linear-gradient(150deg, var(--ds-brand-dark) 0%, var(--ds-brand) 60%, var(--ds-brand-light) 130%);
}
.login-logo-badge { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); padding: 12px; }
.login-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.login-brand-title { font-size: 28px; font-weight: 800; letter-spacing: .3px; }
.login-brand-tagline { font-size: 14px; color: rgba(255,255,255,.85); max-width: 360px; line-height: 1.7; }
.login-module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; max-width: 420px; }
.login-module-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; backdrop-filter: blur(2px); transition: var(--ds-transition); }
.login-module-card:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.login-module-card svg { width: 22px; height: 22px; }
.login-module-card span { font-size: 11px; font-weight: 600; line-height: 1.3; }

.login-form-pane { flex: 1 1 55%; display: flex; align-items: center; justify-content: center; padding: 32px; position: relative; }
.login-lang-switch { position: absolute; top: 26px; inset-inline-end: 32px; }
.login-form-card { width: 100%; max-width: 400px; }
.login-form-header { margin-bottom: 30px; }
.login-form-header h1 { font-size: 26px; font-weight: 800; color: var(--ds-text); margin-bottom: 8px; }
.login-form-header p { font-size: 14px; color: var(--ds-muted); }

.login-input-group { margin-bottom: 18px; }
.login-input-group label { display: block; font-size: 13px; font-weight: 700; color: var(--ds-text); margin-bottom: 8px; }
.login-input-wrapper { position: relative; display: flex; align-items: center; }
.login-input-wrapper > svg { position: absolute; inset-inline-start: 16px; width: 18px; height: 18px; color: var(--ds-muted); pointer-events: none; }
.login-input-wrapper input { width: 100%; padding: 13px 16px 13px 44px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fafafa; font-size: 14px; font-family: inherit; outline: none; transition: var(--ds-transition); }
[dir="rtl"] .login-input-wrapper > svg { inset-inline-start: auto; inset-inline-end: 16px; }
[dir="rtl"] .login-input-wrapper input { padding: 13px 44px 13px 16px; }
.login-input-wrapper input:focus { border-color: var(--ds-brand); background: #fff; box-shadow: 0 0 0 3px rgba(91,87,166,.14); }
.login-input-wrapper .toggle-visibility-btn { position: absolute; inset-inline-end: 14px; background: none; border: none; color: var(--ds-muted); cursor: pointer; display: flex; }
[dir="rtl"] .login-input-wrapper .toggle-visibility-btn { inset-inline-end: auto; inset-inline-start: 14px; }

.login-submit-btn { width: 100%; padding: 14px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--ds-brand), var(--ds-brand-dark)); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: var(--ds-transition); box-shadow: 0 8px 20px rgba(91,87,166,.28); }
.login-submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91,87,166,.35); }
.login-submit-btn:disabled { opacity: .7; cursor: not-allowed; }
.login-alt-link { margin-top: 18px; text-align: center; font-size: 13px; }
.login-alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 18px; background: #fef2f2; color: #dc2626; }
.login-footer-note { margin-top: 26px; text-align: center; font-size: 12px; color: var(--ds-muted); }

/* ---- Modal dialog (HR-style) -------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,17,26,.45); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: modalIn .18s ease; }
.modal-box-lg { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ds-border); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-header h3 { font-size: 16px; font-weight: 800; color: var(--ds-brand); margin: 0; }
.modal-close-btn { background: none; border: none; font-size: 20px; line-height: 1; color: var(--ds-muted); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.modal-close-btn:hover { background: var(--ds-active-bg); color: #e11d48; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--ds-border); position: sticky; bottom: 0; background: #fff; }
@media (max-width: 550px) { .modal-footer { flex-direction: column-reverse; } .modal-footer > * { width: 100%; } }

/* Compact logo shown above the form only when the visual pane is hidden (mobile). */
.login-form-logo { display: none; }

@media (max-width: 860px) {
    .login-visual-pane { display: none; }
    .login-form-pane { flex: 1 1 100%; }
    .login-form-logo { display: block; height: 60px; margin: 0 auto 18px; }
}

/* ---- Help: floating per-page button + header help button ---- */
.page-help-fab {
    position: fixed;
    inset-inline-end: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #5B57A6, #7b76c7);
    color: #fff;
    box-shadow: 0 8px 22px rgba(91,87,166,.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: transform .12s, box-shadow .12s;
}
.page-help-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 28px rgba(91,87,166,.5); }
.help-nav-btn svg { color: #5B57A6; }

@media (max-width: 640px) {
    .page-help-fab { width: 44px; height: 44px; inset-inline-end: 14px; bottom: 14px; }
    .help-nav-btn span { display: none; }
}
