/* ============================================================
   Help Centre (/help) and the help panel — docs/help-centre.md
   Built from the app's own pieces — the page header, the Administration cards and section
   labels, the white bordered panels — so help reads as part of WorxOrder rather than a
   separate documentation site. Tokens come from preview.css.
   ============================================================ */

.mwm-help-page { max-width: none; }
.mwm-help-block { margin-bottom: 26px; }
.mwm-help-page .mwm-admin-section-label { display: block; text-decoration: none; }
a.mwm-admin-section-label:hover { color: var(--accent, #1F4E79); }

/* ---------- Search ---------- */
.mwm-help-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: 12px;
    padding: 4px 4px 4px 12px; color: #94A3B8;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.04));
    transition: border-color .15s, box-shadow .15s;
}
.mwm-help-search:focus-within {
    border-color: var(--accent, #1F4E79);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #1F4E79) 16%, transparent);
}
.mwm-help-search input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font: inherit; font-size: 14px; color: #0F172A; padding: 6px 0;
}
.mwm-help-search input::placeholder { color: #94A3B8; }
.mwm-help-search input::-webkit-search-cancel-button { display: none; }
/* The box shows focus; the app's own input ring would draw a second one inside it. */
.mwm-preview .mwm-help-search input:focus,
.mwm-preview .mwm-help-search input:focus-visible { outline: none; box-shadow: none; border: none; }
.mwm-help-search.large { padding: 6px 6px 6px 16px; border-radius: 14px; }
.mwm-help-search.large input { font-size: 15.5px; padding: 8px 0; }
.mwm-help-search-clear {
    border: none; background: transparent; color: #94A3B8; font-size: 20px; line-height: 1;
    cursor: pointer; padding: 0 4px;
}
.mwm-help-search-clear:hover { color: #475569; }
.mwm-help-search-page-box { max-width: 760px; margin-bottom: 22px; }
.mwm-help-inline-search { margin-bottom: 16px; max-width: 560px; }

/* ---------- Home: quiet and search first ---------- */
/* Full width like every other screen: the topics and search on the left, a panel of what's
   read most and what's changed on the right, level with the search box. */
.mwm-help-page.mwm-help-home { max-width: none; }
.mwm-help-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.mwm-help-home-main { min-width: 0; }
.mwm-help-home-gap { margin-top: 28px; }

/* The everyday tasks: a row of links under the search box, not a wall of tiles */
.mwm-help-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mwm-help-quick-link {
    font-size: 13px; font-weight: 600; text-decoration: none;
    color: var(--accent, #1F4E79); background: var(--accent-soft, #EFF6FF);
    padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.mwm-help-quick-link:hover { background: var(--accent, #1F4E79); color: #fff; }
.mwm-help-quick-link:focus-visible { outline: 2px solid var(--accent, #1F4E79); outline-offset: 2px; }

/* Topics: one panel, two columns of rows divided by hairlines */
.mwm-help-topics {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px;
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-lg, 14px);
    padding: 4px 20px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.04));
}
.mwm-help-topic-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 4px;
    border-bottom: 1px solid #F1F5F9; text-decoration: none; color: inherit;
}
/* The last row of each column has no line under it */
.mwm-help-topic-row:nth-last-child(1), .mwm-help-topic-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.mwm-help-topic-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft, #EFF6FF); color: var(--accent, #1F4E79); }
.mwm-help-topic-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mwm-help-topic-name { font-size: 14px; font-weight: 700; color: #0F172A; }
.mwm-help-topic-sub { font-size: 12.5px; color: #64748B; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mwm-help-topic-go { color: #CBD5E1; flex: none; transition: color .15s, transform .15s; }
.mwm-help-topic-row:hover .mwm-help-topic-name { color: var(--accent, #1F4E79); }
.mwm-help-topic-row:hover .mwm-help-topic-go { color: var(--accent, #1F4E79); transform: translateX(2px); }
.mwm-help-topic-row:focus-visible { outline: 2px solid var(--accent, #1F4E79); outline-offset: -2px; border-radius: 10px; }

/* The right-hand panel: same white panel and hairline rows as the topics */
.mwm-help-home-aside {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-lg, 14px);
    padding: 6px 18px 10px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.04));
}
.mwm-help-home-aside section + section { margin-top: 6px; border-top: 1px solid var(--border, #E2E8F0); }
.mwm-help-aside-head {
    display: flex; align-items: center; gap: 8px; padding: 14px 0 6px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748B;
}
.mwm-help-aside-head svg { color: var(--accent, #1F4E79); }
.mwm-help-aside-list { list-style: none; margin: 0; padding: 0; }
.mwm-help-aside-list li + li { border-top: 1px solid #F1F5F9; }
.mwm-help-aside-list a {
    display: flex; align-items: center; gap: 10px; padding: 9px 2px; text-decoration: none;
}
.mwm-help-aside-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: #1E293B; line-height: 1.35; }
.mwm-help-aside-date { flex: none; font-size: 12px; color: #94A3B8; }
.mwm-help-aside-list a:hover .mwm-help-aside-title { color: var(--accent, #1F4E79); }
.mwm-help-aside-list a:hover .mwm-help-topic-go { color: var(--accent, #1F4E79); transform: translateX(2px); }
.mwm-help-aside-list a:focus-visible { outline: 2px solid var(--accent, #1F4E79); outline-offset: -2px; border-radius: 8px; }

.mwm-help-home-foot {
    margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--border, #E2E8F0);
    font-size: 13px; color: #64748B; line-height: 1.8;
}
.mwm-help-home-foot .mwm-btn-text { padding: 2px 4px; font-weight: 600; vertical-align: baseline; }
.mwm-help-home-foot a { color: var(--accent, #1F4E79); font-weight: 600; text-decoration: none; }
.mwm-help-home-foot svg { vertical-align: -2px; }

/* ---------- Topic and article pages: sidebar + content ---------- */
.mwm-help-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.mwm-help-shell-main { min-width: 0; max-width: 900px; }

/* Wide screens: topics on the left, the page in the middle at a comfortable reading width, and a
   right rail — spread across the whole width so nothing is left hanging to one side. */
.mwm-help-shell.with-rail { grid-template-columns: 220px minmax(0, 900px) 270px; justify-content: space-between; }
.mwm-help-shell.with-rail .mwm-help-shell-main { max-width: none; }
.mwm-help-shell .mwm-help-inline-search { max-width: none; }
.mwm-help-shell.with-rail .mwm-help-inline-only { display: none; }
.mwm-help-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mwm-help-rail-card {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-lg, 14px);
    padding: 2px 16px 10px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.04));
}
.mwm-help-rail-card.soft { background: var(--accent-soft, #EFF6FF); border-color: transparent; box-shadow: none; padding-bottom: 14px; }
.mwm-help-rail-card p { margin: 0 0 10px; font-size: 13px; color: #475569; line-height: 1.5; }
.mwm-help-rail-toc { list-style: none; margin: 0; padding: 0 0 4px; }
.mwm-help-rail-toc a {
    display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: #475569; text-decoration: none; line-height: 1.4;
}
.mwm-help-rail-toc a:hover { background: var(--accent-soft, #EFF6FF); color: var(--accent, #1F4E79); }
.mwm-help-title-row { display: flex; gap: 14px; align-items: flex-start; }
.mwm-help-title-row .mwm-admin-ico { margin-top: 2px; }

.mwm-help-nav { position: sticky; top: 76px; font-size: 13px; max-height: calc(100vh - 96px); overflow-y: auto; padding-bottom: 12px; }
.mwm-help-nav ul { list-style: none; margin: 0; padding: 0; }
.mwm-help-nav-home {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 8px;
    font-weight: 600; color: #64748B; text-decoration: none; border-radius: 7px;
}
.mwm-help-nav-home:hover { background: #F1F5F9; color: var(--accent, #1F4E79); }
.mwm-help-nav-topic {
    display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px;
    color: #334155; font-weight: 600; text-decoration: none;
}
.mwm-help-nav-topic svg { color: #94A3B8; flex: none; }
.mwm-help-nav-topic:hover { background: #F1F5F9; color: #0F172A; }
.mwm-help-nav li.open > .mwm-help-nav-topic { color: #0F172A; }
.mwm-help-nav li.open > .mwm-help-nav-topic svg { color: var(--accent, #1F4E79); }
.mwm-help-nav-topic.current { background: var(--accent-soft, #EFF6FF); color: var(--accent, #1F4E79) !important; }
.mwm-help-nav-sub { margin: 2px 0 8px 17px !important; padding-left: 10px !important; border-left: 1px solid #E2E8F0; }
.mwm-help-nav-subtopic { display: block; padding: 5px 8px; margin-top: 4px; font-weight: 600; color: #475569; text-decoration: none; border-radius: 7px; }
.mwm-help-nav-subtopic:hover { background: #F1F5F9; color: #0F172A; }
.mwm-help-nav-subtopic.current { color: var(--accent, #1F4E79); background: var(--accent-soft, #EFF6FF); }
.mwm-help-nav-articles { margin-left: 8px !important; }
.mwm-help-nav-article { display: block; padding: 4px 8px; color: #64748B; text-decoration: none; border-radius: 7px; line-height: 1.4; }
a.mwm-help-nav-article:hover { background: #F1F5F9; color: #0F172A; }
.mwm-help-nav-article.current { color: var(--accent, #1F4E79); font-weight: 600; background: var(--accent-soft, #EFF6FF); }

.mwm-help-group { margin-bottom: 18px; }
.mwm-help-group-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mwm-help-group-head .mwm-admin-section-label { margin: 0; }
.mwm-help-group-desc { font-size: 12.5px; color: #94A3B8; }

/* ---------- Panels and article lists ---------- */
.mwm-help-panel-card {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-lg, 14px);
    padding: 6px 10px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.04));
}
.mwm-help-section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #0F172A; margin: 8px 6px 12px; }
.mwm-help-more {
    display: inline-flex; align-items: center; gap: 4px; margin: 6px 12px 8px 8px;
    font-size: 13px; font-weight: 600; color: var(--accent, #1F4E79); text-decoration: none;
}
.mwm-help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mwm-help-list li + li { border-top: 1px solid #F1F5F9; }
.mwm-help-list-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 8px; border: none; background: transparent; border-radius: 10px;
    text-align: left; text-decoration: none; color: inherit; font: inherit; cursor: pointer;
}
.mwm-help-list-item:hover { background: var(--accent-soft, #EFF6FF); }
.mwm-help-list-item:hover .mwm-help-list-title { color: var(--accent, #1F4E79); }
.mwm-help-list-item:focus-visible { outline: 2px solid var(--accent, #1F4E79); outline-offset: -2px; }
.mwm-help-list.compact .mwm-help-list-item { padding: 8px 6px; }
.mwm-help-list-ico {
    width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
    background: #F1F5F9; color: #64748B;
}
.mwm-help-list-item:hover .mwm-help-list-ico { background: #fff; color: var(--accent, #1F4E79); }
.mwm-help-list-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mwm-help-list-title { font-size: 14px; font-weight: 600; color: #0F172A; display: flex; align-items: center; gap: 8px; }
.mwm-help-list-sub { font-size: 12.5px; color: #64748B; line-height: 1.45; }
.mwm-help-list-chev { color: #CBD5E1; flex: none; }
.mwm-help-list-empty { padding: 12px 8px; font-size: 13px; color: #94A3B8; line-height: 1.5; }

/* ---------- Article ---------- */
.mwm-help-article-main {
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-lg, 14px);
    padding: 30px 40px 34px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,23,42,.04));
}
.mwm-help-article-head { margin-bottom: 22px; }
.mwm-help-article-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: #0F172A; line-height: 1.2; }
.mwm-help-article-lead { font-size: 16px; color: #475569; line-height: 1.55; margin: 10px 0 0; }
.mwm-help-article-lead.small { font-size: 14px; margin: 4px 0 14px; }
.mwm-help-article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: #94A3B8; }
.mwm-help-article-meta > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.mwm-help-draft {
    display: flex; align-items: center; gap: 8px; margin: 14px 0 0;
    background: #FEF3C7; color: #92400E; border-radius: 10px; padding: 9px 12px; font-size: 13px;
}
.mwm-help-contents {
    margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: var(--bg, #F8FAFC);
    border: 1px solid #F1F5F9;
}
.mwm-help-contents-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; margin-bottom: 6px; }
.mwm-help-contents ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.mwm-help-contents a {
    display: inline-block; font-size: 13px; font-weight: 500; color: #334155; text-decoration: none;
    padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border, #E2E8F0);
}
.mwm-help-contents a:hover { border-color: var(--accent, #1F4E79); color: var(--accent, #1F4E79); }

.mwm-help-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.mwm-help-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; color: #475569; text-decoration: none;
    background: #F1F5F9; border-radius: 999px; padding: 4px 10px;
}
.mwm-help-tag:hover { background: var(--accent-soft, #EFF6FF); color: var(--accent, #1F4E79); }
.mwm-help-topic-chips { list-style: none; margin: 0 6px 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mwm-help-topic-chips.centred { justify-content: center; max-width: 620px; }
.mwm-help-topic-chips .mwm-help-tag { font-size: 13px; padding: 6px 12px; }

.mwm-help-related { margin-top: 30px; padding-top: 22px; border-top: 1px solid #F1F5F9; }
.mwm-help-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mwm-help-related-card {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border, #E2E8F0); text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.mwm-help-related-card:hover { border-color: var(--accent, #1F4E79); box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.mwm-help-related-title { font-size: 13.5px; font-weight: 700; color: #0F172A; }
.mwm-help-related-card:hover .mwm-help-related-title { color: var(--accent, #1F4E79); }
.mwm-help-related-sub { font-size: 12px; color: #64748B; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mwm-help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mwm-help-pager-link {
    display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-radius: 12px; text-decoration: none;
    background: #fff; border: 1px solid var(--border, #E2E8F0); transition: border-color .15s;
}
.mwm-help-pager-link.next { text-align: right; align-items: flex-end; grid-column: 2; }
.mwm-help-pager-link:hover { border-color: var(--accent, #1F4E79); }
.mwm-help-pager-dir { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #94A3B8; font-weight: 600; }
.mwm-help-pager-title { font-size: 14px; font-weight: 700; color: #0F172A; }
.mwm-help-pager-link:hover .mwm-help-pager-title { color: var(--accent, #1F4E79); }
.mwm-help-stuck { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 6px; font-size: 13px; color: #64748B; }

/* Article text */
.mwm-help-prose { font-size: 15px; line-height: 1.7; color: #1E293B; overflow-wrap: anywhere; }
.mwm-help-prose > :first-child { margin-top: 0; }
.mwm-help-prose h2 {
    font-size: 19px; font-weight: 700; margin: 32px 0 12px; color: #0F172A; letter-spacing: -0.01em; scroll-margin-top: 72px;
    padding-top: 22px; border-top: 1px solid #F1F5F9;
}
.mwm-help-prose > h2:first-child { padding-top: 0; border-top: none; }
.mwm-help-prose h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; color: #0F172A; scroll-margin-top: 72px; }
.mwm-help-prose p { margin: 0 0 14px; }
.mwm-help-prose a { color: var(--accent, #1F4E79); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.mwm-help-prose strong { font-weight: 650; color: #0F172A; }
.mwm-help-prose ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.mwm-help-prose ul ul { list-style: circle; }
.mwm-help-prose ul > li::marker { color: #94A3B8; }
.mwm-help-prose li { margin: 4px 0; }
.mwm-help-prose code { font-size: .9em; background: #F1F5F9; padding: 1px 6px; border-radius: 6px; }
.mwm-help-prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border, #E2E8F0); margin: 6px 0 16px; display: block; }
.mwm-help-prose table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 14px; }
.mwm-help-prose th, .mwm-help-prose td { border-bottom: 1px solid var(--border, #E2E8F0); padding: 9px 12px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.mwm-help-prose th { white-space: nowrap; }
.mwm-help-prose td:first-child { min-width: 7em; }
.mwm-help-prose th { background: #F8FAFC; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: #64748B; }
.mwm-help-prose blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #CBD5E1; color: #475569; background: #F8FAFC; border-radius: 0 10px 10px 0; }

/* Numbered lists are steps */
.mwm-help-prose ol { list-style: none; counter-reset: help-step; margin: 0 0 16px; padding: 0; }
.mwm-help-prose ol > li { counter-increment: help-step; position: relative; padding: 2px 0 12px 42px; margin: 0; }
.mwm-help-prose ol > li::before {
    content: counter(help-step);
    position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent, #1F4E79); color: #fff;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 0 0 4px var(--accent-soft, #EFF6FF);
}
.mwm-help-prose ol > li:not(:last-child)::after {
    content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 2px; width: 1px; background: #E2E8F0;
}
.mwm-help-prose ol ol > li::before { background: var(--accent-soft, #EFF6FF); color: var(--accent, #1F4E79); box-shadow: none; width: 24px; height: 24px; font-size: 12px; }
.mwm-help-prose ol ol, .mwm-help-prose ol ul { margin-top: 8px; margin-bottom: 0; }

/* :::tip / :::note / :::warning */
.mwm-help-prose .tip, .mwm-help-prose .note, .mwm-help-prose .warning {
    margin: 0 0 16px; padding: 12px 14px 12px 44px; border-radius: 12px; position: relative; font-size: 14px;
    border: 1px solid transparent;
}
.mwm-help-prose .tip > :last-child, .mwm-help-prose .note > :last-child, .mwm-help-prose .warning > :last-child { margin-bottom: 0; }
.mwm-help-prose .tip::before, .mwm-help-prose .note::before, .mwm-help-prose .warning::before {
    position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
}
.mwm-help-prose .tip { background: #ECFDF5; border-color: #D1FAE5; color: #065F46; }
.mwm-help-prose .tip::before { content: "\2713"; background: #10B981; }
.mwm-help-prose .note { background: var(--accent-soft, #EFF6FF); border-color: color-mix(in srgb, var(--accent, #1F4E79) 12%, transparent); color: #1E3A5F; }
.mwm-help-prose .note::before { content: "i"; background: var(--accent, #1F4E79); font-style: italic; font-family: Georgia, serif; }
.mwm-help-prose .warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.mwm-help-prose .warning::before { content: "!"; background: #F59E0B; }
.mwm-help-prose .tip strong, .mwm-help-prose .note strong, .mwm-help-prose .warning strong,
.mwm-help-prose .tip a, .mwm-help-prose .note a, .mwm-help-prose .warning a { color: inherit; }

/* Video link */
.mwm-help-video {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 14px;
    border: 1px solid var(--border, #E2E8F0); border-radius: 12px; text-decoration: none; color: inherit;
    background: linear-gradient(90deg, var(--accent-soft, #EFF6FF), #fff);
}
.mwm-help-video:hover { border-color: var(--accent, #1F4E79); }
.mwm-help-video-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent, #1F4E79); color: #fff; flex: none; }

/* FAQs */
.mwm-help-faqs { margin-top: 32px; padding-top: 22px; border-top: 1px solid #F1F5F9; }
.mwm-help-faqs h2 { font-size: 19px; font-weight: 700; margin: 0 0 12px; color: #0F172A; scroll-margin-top: 72px; }
.mwm-help-faq { border: 1px solid var(--border, #E2E8F0); border-radius: 12px; margin-bottom: 8px; background: #fff; transition: border-color .15s; }
.mwm-help-faq[open] { border-color: #CBD5E1; }
.mwm-help-faq summary {
    list-style: none; cursor: pointer; padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-weight: 600; font-size: 14.5px; color: #0F172A;
}
.mwm-help-faq summary::-webkit-details-marker { display: none; }
.mwm-help-faq summary:hover { color: var(--accent, #1F4E79); }
.mwm-help-faq summary:focus-visible { outline: 2px solid var(--accent, #1F4E79); outline-offset: -2px; border-radius: 12px; }
.mwm-help-faq-chev { color: #94A3B8; flex: none; transition: transform .15s; }
.mwm-help-faq[open] .mwm-help-faq-chev { transform: rotate(180deg); }
.mwm-help-faq .mwm-help-prose { padding: 0 14px 4px; font-size: 14px; }

/* Compact (the panel) */
.mwm-help-article.compact .mwm-help-prose { font-size: 14px; line-height: 1.65; }
.mwm-help-article.compact .mwm-help-prose h2 { font-size: 16px; margin-top: 22px; padding-top: 16px; }
.mwm-help-article.compact .mwm-help-prose h3 { font-size: 14.5px; }
.mwm-help-article.compact .mwm-help-faqs h2 { font-size: 16px; }
.mwm-help-article.compact .mwm-help-prose ol > li { padding-left: 38px; }
.mwm-help-article.compact .mwm-help-prose ol > li::before { width: 24px; height: 24px; font-size: 12px; }
.mwm-help-article.compact .mwm-help-prose ol > li:not(:last-child)::after { left: 11.5px; top: 30px; }

/* ---------- Search results ---------- */
.mwm-help-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.mwm-help-result {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: var(--radius-lg, 14px);
    transition: border-color .15s, box-shadow .15s;
}
.mwm-help-result:hover { border-color: #CBD5E1; box-shadow: var(--shadow-md, 0 4px 12px rgba(15,23,42,.06)); }
.mwm-help-result:hover .mwm-help-result-title { color: var(--accent, #1F4E79); }
.mwm-help-result-trail { font-size: 12px; color: #94A3B8; font-weight: 500; }
.mwm-help-result-title { font-size: 16px; font-weight: 700; color: #0F172A; display: flex; align-items: center; gap: 8px; }
.mwm-help-result-snippet { font-size: 13.5px; color: #475569; line-height: 1.55; }
.mwm-help-result mark { background: #FEF3C7; color: inherit; padding: 0 1px; border-radius: 3px; }

/* Breadcrumb links (the shared crumb is styled for a button) */
a.mwm-crumb { text-decoration: none; }

/* ---------- The ? beside things on a page ---------- */
.mwm-help-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 26px; height: 26px; padding: 0; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent, #1F4E79) 22%, transparent);
    background: var(--accent-soft, #EFF6FF); color: var(--accent, #1F4E79);
    cursor: pointer; vertical-align: middle; margin-left: 4px;
    font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0;
    transition: background .15s, color .15s, transform .05s;
}
.mwm-help-btn:hover { background: var(--accent, #1F4E79); color: #fff; }
.mwm-help-btn:active { transform: translateY(1px); }
.mwm-help-btn:focus-visible { outline: 2px solid var(--accent, #1F4E79); outline-offset: 2px; }
.mwm-help-btn.labelled { width: auto; height: auto; border-radius: 999px; padding: 4px 10px 4px 8px; }

/* ---------- The help panel ---------- */
.mwm-help-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 75;
    width: min(440px, 100vw);
    background: #fff; border-left: 1px solid var(--border, #E2E8F0);
    box-shadow: -24px 0 48px -24px rgba(15,23,42,.25);
    display: flex; flex-direction: column;
    animation: mwm-help-in .18s ease-out;
    outline: none;
}
@keyframes mwm-help-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mwm-help-drawer { animation: none; } }
.mwm-help-drawer-scrim { display: none; }
.mwm-help-drawer-head {
    display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 10px 0 14px; flex: none;
    border-bottom: 1px solid var(--border-soft, #F1F5F9);
}
.mwm-help-drawer-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; flex: 1; color: #0F172A; }
.mwm-help-drawer-title svg { color: var(--accent, #1F4E79); }
.mwm-help-drawer-head .mwm-btn-text { text-decoration: none; gap: 5px; }
.mwm-help-drawer-search { padding: 12px 14px; flex: none; border-bottom: 1px solid var(--border-soft, #F1F5F9); background: #F8FAFC; }
.mwm-help-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px 24px; overscroll-behavior: contain; }
.mwm-help-drawer-section {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8;
    margin: 18px 0 6px;
}
.mwm-help-drawer-section:first-child { margin-top: 2px; }
.mwm-help-drawer-article-title { font-size: 20px; font-weight: 700; margin: 2px 0 0; color: #0F172A; letter-spacing: -0.01em; line-height: 1.25; }
.mwm-help-drawer-foot {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 14px; border-top: 1px solid var(--border-soft, #F1F5F9); background: #F8FAFC;
}
.mwm-help-drawer-foot > a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent, #1F4E79); text-decoration: none; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1400px) {
    .mwm-help-shell.with-rail { grid-template-columns: 220px minmax(0, 1fr); justify-content: normal; }
    .mwm-help-shell.with-rail .mwm-help-shell-main { max-width: 900px; }
    .mwm-help-rail { display: none; }
    .mwm-help-shell.with-rail .mwm-help-contents, .mwm-help-shell.with-rail .mwm-help-related { display: block; }
    .mwm-help-shell.with-rail .mwm-help-stuck { display: flex; }
}
@media (max-width: 1200px) {
    .mwm-help-home-grid { grid-template-columns: minmax(0, 1fr); }
    .mwm-help-home-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
    .mwm-help-home-aside section + section { margin-top: 0; border-top: none; }
}
@media (max-width: 900px) {
    .mwm-help-shell, .mwm-help-shell.with-rail { grid-template-columns: 1fr; }
    .mwm-help-nav { display: none; }               /* the breadcrumb and the pages themselves lead the way */
}
@media (max-width: 720px) {
    .mwm-help-article-main { padding: 20px 18px 24px; }
    .mwm-help-article-title { font-size: 23px; }
    .mwm-help-search.large .mwm-btn { padding: 9px 12px; }
    .mwm-help-topics { grid-template-columns: 1fr; padding: 2px 14px; }
    .mwm-help-topic-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid #F1F5F9; }
    .mwm-help-topic-sub { -webkit-line-clamp: 3; }
    .mwm-help-home-aside { padding: 2px 14px 8px; grid-template-columns: minmax(0, 1fr); }
    .mwm-help-home-aside section + section { margin-top: 6px; border-top: 1px solid var(--border, #E2E8F0); }
    .mwm-help-pager { grid-template-columns: 1fr; }
    .mwm-help-pager-link.next { grid-column: 1; }
    .mwm-help-drawer-scrim { display: block; position: fixed; inset: 0; z-index: 74; background: rgba(15,23,42,.35); }
}

/* ---------- Administration › Help searches ---------- */
.mwm-help-confirm { font-size: 13px; font-weight: 600; color: #475569; }
.mwm-help-searches-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 2px 0; font-size: 12.5px; color: #64748B; line-height: 1.5; }
.mwm-help-searches-note svg { flex: none; margin-top: 2px; color: #94A3B8; }
