.help-fab {
    position: fixed;
    right: 16px;
    bottom: 56px;
    z-index: 12000;
    border: none;
    border-radius: 999px;
    background: #1f6feb;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 11px 16px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(31, 111, 235, 0.32);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.help-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(31, 111, 235, 0.4);
    background: #1459bf;
}

.help-fab:active {
    transform: translateY(0);
}

.help-modal {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.52);
    padding: 18px;
}

.help-modal.is-open {
    display: flex;
}

.help-panel {
    width: min(920px, 100%);
    height: min(78vh, 760px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f4f7fb;
    border-bottom: 1px solid #e6ebf2;
}

.help-title {
    margin: 0;
    font-size: 17px;
    color: #243043;
}

.help-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #5a6a80;
    padding: 2px 6px;
}

.help-viewer {
    padding: 16px 18px;
    overflow: auto;
    min-width: 0;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.help-loading,
.help-empty {
    padding: 12px 10px;
    color: #58657a;
    font-size: 15px;
}

.help-content {
    color: #243043;
    font-size: 16px;
    line-height: 1.6;
    max-width: 86ch;
    margin: 0 auto;
}

.help-content h1,
.help-content h2,
.help-content h3,
.help-content h4,
.help-content h5,
.help-content h6 {
    margin: 0.2em 0 0.45em;
    line-height: 1.35;
    color: #14253c;
}

.help-content p {
    margin: 0 0 0.6em;
}

.help-content .help-bullet {
    padding-left: 0.1em;
}

.help-content .help-pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    background: #f7f9fc;
    border: 1px solid #dde5ef;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.help-content .help-note {
    margin-top: 0.75em;
    color: #5f6e83;
    font-size: 13px;
}

@media (min-width: 951px) {
    body.layout-horizontal .help-fab {
        right: auto;
        left: 15px;
        bottom: 48px;
    }
}

@media (max-width: 900px) {
    .help-fab {
        right: 12px;
        bottom: 52px;
        padding: 10px 14px;
    }

    .help-modal {
        padding: 10px;
    }

    .help-panel {
        width: 100%;
        max-height: 80vh;
    }

    .help-viewer {
        padding: 12px 12px;
    }
}
