/* Platform KB chat widget + help panel (standalone for dashboard + marketing) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.mn-kb-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    font-family: "Raleway", system-ui, sans-serif;
}
.mn-kb-fab__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    background: #023f3e;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 12px 32px rgba(1, 36, 34, 0.28);
}
.mn-kb-fab__btn:hover { background: #035a59; }
.mn-kb-fab__icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fd6e5d;
    font-weight: 800;
}
.mn-kb-fab__panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(380px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid rgba(2, 63, 62, 0.12);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(1, 36, 34, 0.18);
    overflow: hidden;
}
.mn-kb-fab__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #023f3e;
    color: #fff;
}
.mn-kb-fab__mode {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}
.mn-kb-fab__close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}
.mn-kb-fab .mn-kb-chat { padding: 12px; }

.mn-kb-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow: auto;
    margin-bottom: 10px;
}
.mn-kb-chat__msg {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}
.mn-kb-chat__msg p { margin: 0; }
.mn-kb-chat__msg--user {
    align-self: flex-end;
    background: rgba(2, 63, 62, 0.08);
    color: #0c1a1a;
    max-width: 90%;
}
.mn-kb-chat__msg--assistant {
    align-self: flex-start;
    background: #f4f7f6;
    color: #0c1a1a;
    max-width: 95%;
}
.mn-kb-chat__sources {
    margin: 8px 0 0;
    padding-left: 1.1em;
    font-size: 12.5px;
}
.mn-kb-chat__related-label {
    margin: 10px 0 4px !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7c7b;
}
.mn-kb-chat__sources a { color: #023f3e; font-weight: 600; }
.mn-kb-chat__form {
    display: grid;
    gap: 8px;
}
.mn-kb-input, .mn-kb-chat .mn-textarea {
    width: 100%;
    border: 1px solid rgba(2, 63, 62, 0.16);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
    min-height: 64px;
    box-sizing: border-box;
}
.mn-kb-btn, .mn-kb-chat .mn-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fd6e5d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.mn-kb-btn:hover, .mn-kb-chat .mn-btn:hover { filter: brightness(1.05); }
.mn-kb-btn:disabled, .mn-kb-chat .mn-btn:disabled { opacity: 0.6; cursor: wait; }
.mn-kb-chat__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7c7b;
}
.mn-kb-chat__hint a { color: #023f3e; font-weight: 600; }

/* Help page layout */
.mn-help-hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(253, 110, 93, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(2, 63, 62, 0.04), transparent 70%);
    border-bottom: 1px solid rgba(2, 63, 62, 0.08);
}
.mn-help-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.mn-help-hero .mn-lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 38em;
}
.mn-help-search {
    margin: 28px auto 0;
    max-width: 560px;
    text-align: left;
}
.mn-help-search__row {
    display: flex;
    gap: 10px;
}
.mn-help-search__input {
    flex: 1;
    min-height: 48px;
    border-radius: 14px;
    font-size: 1rem;
}

.mn-help-section-head {
    margin-bottom: 22px;
}
.mn-help-section-head .mn-h2 { margin: 0 0 6px; }
.mn-help-section-head .mn-muted { margin: 0; }

.mn-help-featured { padding-top: 40px; }
.mn-help-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.mn-help-feature {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 22px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(2, 63, 62, 0.1);
    box-shadow: 0 1px 0 rgba(2, 63, 62, 0.04);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    min-height: 100%;
}
.mn-help-feature:hover {
    border-color: rgba(2, 63, 62, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(1, 36, 34, 0.08);
}
.mn-help-feature__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #c44738;
}
.mn-help-feature__title {
    margin: 0;
    font-family: var(--mn-display, Georgia, serif);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #012422;
    line-height: 1.25;
}
.mn-help-feature__sum {
    margin: 0;
    flex: 1;
    color: #3d4f4e;
    font-size: 0.95rem;
    line-height: 1.5;
}
.mn-help-feature__more {
    font-size: 0.88rem;
    font-weight: 700;
    color: #023f3e;
}

.mn-help-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}
.mn-help-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(2, 63, 62, 0.14);
    background: #fff;
    color: #023f3e;
    font-size: 13px;
    font-weight: 600;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.mn-help-cat span {
    font-size: 11px;
    font-weight: 700;
    color: #6b7c7b;
}
.mn-help-cat:hover {
    border-color: rgba(2, 63, 62, 0.35);
}
.mn-help-cat.is-active {
    background: #023f3e;
    border-color: #023f3e;
    color: #fff;
}
.mn-help-cat.is-active span { color: rgba(255,255,255,0.72); }

.mn-help-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.mn-help-group { margin-bottom: 28px; }
.mn-help-group:last-child { margin-bottom: 0; }
.mn-help-group__title {
    margin: 0 0 12px;
    font-family: var(--mn-display, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #012422;
}
.mn-help-index {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(2, 63, 62, 0.1);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
.mn-help-index li + li {
    border-top: 1px solid rgba(2, 63, 62, 0.08);
}
.mn-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    transition: background 140ms ease;
}
.mn-help-row:hover { background: rgba(2, 63, 62, 0.035); }
.mn-help-row__main {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.mn-help-row__cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c44738;
}
.mn-help-row__title {
    font-family: var(--mn-display, Georgia, serif);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #012422;
}
.mn-help-row__sum {
    color: #3d4f4e;
    font-size: 0.94rem;
    line-height: 1.45;
}
.mn-help-row__meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #6b7c7b;
}
.mn-help-row__arrow {
    color: #023f3e;
    font-size: 1rem;
    transition: transform 140ms ease;
}
.mn-help-row:hover .mn-help-row__arrow { transform: translateX(3px); }

.mn-help-ask {
    position: static;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(2, 63, 62, 0.12);
    box-shadow: 0 16px 40px rgba(1, 36, 34, 0.06);
    overflow: hidden;
}
.mn-help-ask__inner {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.4fr);
    gap: 0;
}
.mn-help-ask__copy {
    padding: 28px 28px 24px;
    background: linear-gradient(160deg, rgba(2, 63, 62, 0.06), rgba(253, 110, 93, 0.05));
    border-right: 1px solid rgba(2, 63, 62, 0.08);
}
.mn-help-ask__copy .mn-h3 { margin: 0 0 8px; }
.mn-help-ask__copy .mn-muted { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.mn-help-ask .mn-kb-chat--panel {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 20px 22px 16px;
}
.mn-help-ask .mn-kb-chat__messages { max-height: 220px; }
.mn-help-empty {
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed rgba(2, 63, 62, 0.2);
    border-radius: 18px;
    background: rgba(2, 63, 62, 0.02);
}

/* Article — single column */
.mn-help-doc__hero {
    padding: 52px 0 0;
    background: linear-gradient(180deg, rgba(2, 63, 62, 0.04), transparent 85%);
}
.mn-help-doc__hero-inner {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(2, 63, 62, 0.1);
}
.mn-help-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7c7b;
}
.mn-help-doc__title {
    margin: 0 0 12px;
    font-family: var(--mn-display, Georgia, serif);
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #012422;
}
.mn-help-doc__deck {
    margin: 0 0 20px;
    max-width: 38em;
    font-size: 1.12rem;
    line-height: 1.55;
    color: #3d4f4e;
}
.mn-help-toc-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.mn-help-toc-bar a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(2, 63, 62, 0.12);
    background: #fff;
    color: #023f3e;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.mn-help-toc-bar a:hover {
    border-color: rgba(2, 63, 62, 0.3);
    background: rgba(2, 63, 62, 0.04);
}

.mn-help-doc__shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 0 96px;
}
.mn-help-doc__body {
    font-size: 1.06rem;
    line-height: 1.72;
    color: #1c2b2a;
}
.mn-help-doc__body h2 {
    margin: 2.1em 0 0.55em;
    padding-top: 0.55em;
    font-family: var(--mn-display, Georgia, serif);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #012422;
    scroll-margin-top: 96px;
    border-top: 1px solid rgba(2, 63, 62, 0.08);
}
.mn-help-doc__body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.mn-help-doc__body h3 {
    margin: 1.5em 0 0.45em;
    font-size: 1.12rem;
    font-weight: 700;
    color: #023f3e;
}
.mn-help-doc__body p { margin: 0 0 1.1em; }
.mn-help-doc__body ul,
.mn-help-doc__body ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.mn-help-doc__body li { margin-bottom: 0.55em; }
.mn-help-doc__body a {
    color: #023f3e;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(2, 63, 62, 0.28);
    text-underline-offset: 3px;
}
.mn-help-doc__body a:hover {
    color: #c44738;
    text-decoration-color: rgba(196, 71, 56, 0.45);
}
.mn-help-doc__body strong { color: #012422; }
.mn-help-doc__body code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(2, 63, 62, 0.07);
    font-size: 0.9em;
}
.mn-help-doc__body blockquote {
    margin: 1.3em 0;
    padding: 14px 18px;
    border-left: 3px solid #fd6e5d;
    background: rgba(253, 110, 93, 0.06);
    border-radius: 0 12px 12px 0;
    color: #3d4f4e;
}
.mn-md-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.35em;
    border: 1px solid rgba(2, 63, 62, 0.12);
    border-radius: 14px;
}
.mn-help-doc__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.mn-help-doc__body th,
.mn-help-doc__body td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(2, 63, 62, 0.08);
    vertical-align: top;
}
.mn-help-doc__body th {
    background: rgba(2, 63, 62, 0.05);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #023f3e;
}
.mn-help-doc__body tr:last-child td { border-bottom: 0; }

.mn-help-doc__related {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid rgba(2, 63, 62, 0.1);
}
.mn-help-doc__related-title {
    margin: 0 0 14px;
    font-family: var(--mn-display, Georgia, serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #012422;
}
.mn-help-doc__related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mn-help-doc__related-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(2, 63, 62, 0.1);
    background: #fff;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.mn-help-doc__related-card:hover {
    border-color: rgba(2, 63, 62, 0.28);
    box-shadow: 0 10px 24px rgba(1, 36, 34, 0.06);
}
.mn-help-doc__related-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c44738;
}
.mn-help-doc__related-name {
    font-weight: 700;
    color: #012422;
    line-height: 1.3;
}
.mn-help-doc__related-sum {
    font-size: 0.9rem;
    color: #3d4f4e;
    line-height: 1.4;
}

.mn-help-doc__footer {
    margin-top: 40px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(2, 63, 62, 0.1);
    background: rgba(2, 63, 62, 0.03);
}
.mn-help-doc__footer-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7c7b;
}
.mn-help-doc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 980px) {
    .mn-help-featured__grid { grid-template-columns: 1fr 1fr; }
    .mn-help-ask__inner { grid-template-columns: 1fr; }
    .mn-help-ask__copy {
        border-right: 0;
        border-bottom: 1px solid rgba(2, 63, 62, 0.08);
    }
    .mn-help-doc__related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .mn-help-hero { padding: 48px 0 28px; }
    .mn-help-featured__grid { grid-template-columns: 1fr; }
    .mn-help-search__row { flex-direction: column; }
    .mn-help-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .mn-help-doc__actions { flex-direction: column; }
    .mn-help-doc__actions .mn-btn { width: 100%; justify-content: center; }
}
