.ym-help { display: inline-flex; flex-shrink: 0; }
button.ym-help-trigger {
    --ym-help-accent: #fb6f1d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--ym-help-accent);
    border-radius: 6px;
    background: #fff;
    color: var(--ym-help-accent);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    cursor: pointer;
}
.ym-help-trigger svg { display: block; flex-shrink: 0; width: 18px; height: 18px; }
button.ym-help-trigger:hover { background: var(--ym-help-accent); color: #fff; }
.ym-help-trigger:hover svg path { fill: var(--ym-help-accent); }
.ym-help-trigger:focus-visible,
.ym-help-dialog__close:focus-visible { outline: 3px solid #254786; outline-offset: 3px; }
.ym-help-dialog {
    box-sizing: border-box;
    width: min(900px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid #dce6f4;
    border-radius: 16px;
    background: #fff;
    color: #102e55;
    box-shadow: 0 24px 80px #10274c40;
    overflow: auto;
    overscroll-behavior: contain;
}
.ym-help-dialog:not([open]) { display: none; }
.ym-help-dialog::backdrop { background: #10274ca6; }
.ym-help-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}
.ym-help-dialog__header h2 {
    margin: 0;
    color: #102e55;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: none;
    overflow-wrap: anywhere;
}
button.ym-help-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef4ff;
    color: #254786;
    cursor: pointer;
}
.ym-help-dialog__close:hover { background: #dfebff; }
.ym-help-dialog__player { aspect-ratio: 16 / 9; min-height: 200px; background: #10274c; }
.ym-help-dialog__player iframe { display: block; width: 100%; height: 100%; min-height: 200px; aspect-ratio: 16 / 9; border: 0; }
html.ym-help-open, body.ym-help-open { overflow: hidden; }
@media (max-width: 575px) {
    .ym-help-dialog { width: calc(100vw - 24px); border-radius: 12px; }
    .ym-help-dialog__header { gap: 12px; padding: 12px; }
    .ym-help-dialog__header h2 { font-size: 18px; }
}
