.scout-mobile-help-toolbar,
.scout-mobile-help-trigger { display: none !important; }
.scout-mobile-help-trigger[hidden] { display: none !important; }
.scout-mobile-help-dialog:not([open]) { display: none; }
.scout-mobile-help-dialog {
    box-sizing: border-box;
    width: min(560px, calc(100% - 24px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid #d7dde6;
    border-radius: 18px;
    background: #fff;
    color: #142033;
    font: 15px/1.5 system-ui, sans-serif;
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: 0 20px 60px #0003;
}
.scout-mobile-help-dialog::backdrop { background: #0b142466; }
.scout-mobile-help-dialog__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: inherit;
    border-bottom: 1px solid #d7dde6;
}
.scout-mobile-help-dialog__header h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.scout-mobile-help-close {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #d7dde6;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 26px;
    cursor: pointer;
}
.scout-mobile-help-dialog__body { padding: 16px; }
.scout-mobile-help-dialog h3 { margin: 0 0 8px; font-size: 17px; }
.scout-mobile-help-dialog p { margin: 8px 0 14px; color: inherit; font-size: 15px; line-height: 1.5; }
.scout-mobile-help-search { display: grid; gap: 6px; margin: 16px 0; font-weight: 600; }
.scout-mobile-help-search input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9c2ce;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 400;
}
.scout-mobile-help-topic { border-top: 1px solid #d7dde6; }
.scout-mobile-help-topic summary { min-height: 44px; box-sizing: border-box; padding: 12px 0; font-weight: 600; cursor: pointer; }
.scout-mobile-help-topic[hidden],
.scout-mobile-help-dialog [hidden] { display: none !important; }
.scout-mobile-help-dialog :focus-visible,
.scout-mobile-help-trigger:focus-visible { outline: 3px solid #c30b12; outline-offset: 2px; }
html[data-scout-theme="dark"] .scout-mobile-help-dialog { background: #17202e; color: #edf2f8; border-color: #465168; }
html[data-scout-theme="dark"] .scout-mobile-help-dialog__header,
html[data-scout-theme="dark"] .scout-mobile-help-topic,
html[data-scout-theme="dark"] .scout-mobile-help-close { border-color: #465168; }
@media (max-width: 768px) {
    html.scout-mobile-help-ready [data-mobile-help]:not([data-mobile-help-keep]) { display: none !important; }
    .scout-mobile-help-toolbar { display: flex !important; justify-content: flex-end; padding: 0 0 4px; }
    .training-entry-header > .scout-mobile-help-toolbar { flex: 0 0 auto; padding: 0; }
    .scout-mobile-help-trigger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-sizing: border-box;
        min-height: 44px;
        min-width: 44px;
        max-width: 100%;
        margin: 0;
        padding: 6px 10px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #59677a;
        font: 600 13px/1.3 system-ui, sans-serif;
        cursor: pointer;
    }
    .scout-mobile-help-trigger__icon { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; }
    html[data-scout-theme="dark"] .scout-mobile-help-trigger { color: #b6c6db; }
}
@media print {
    .scout-mobile-help-dialog,
    .scout-mobile-help-toolbar,
    .scout-mobile-help-trigger { display: none !important; }
    html.scout-mobile-help-ready [data-mobile-help] { display: revert !important; }
}
