.jbj-help-page {
    min-height: calc(100vh - 64px);
    padding: 20px 20px 72px;
    color: var(--jbj-text);
}

.jbj-help-shell {
    position: relative;
    z-index: 1;
    width: min(1280px, 100%);
    margin: 0 auto;
}

.jbj-help-welcome {
    padding: 26px 28px;
}

.jbj-help-welcome-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.jbj-help-welcome-icon,
.jbj-help-aside-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--jbj-blue);
    background: #eaf5ff;
}

.jbj-help-welcome-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 24px;
}

.jbj-help-welcome-heading > div > span {
    color: var(--jbj-blue);
    font-size: 12px;
    font-weight: 600;
}

.jbj-help-welcome h1 {
    margin: 2px 0 0;
    color: #181818;
    font-size: 24px;
    line-height: 1.3;
}

.jbj-help-welcome-heading p {
    margin: 4px 0 0;
    color: var(--jbj-muted);
    font-size: 13px;
}

.jbj-help-shortcuts {
    display: grid;
    margin-top: 23px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.jbj-help-shortcuts a,
.jbj-help-shortcuts button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 14px 16px;
    color: var(--jbj-text);
    background: #f7f9fc;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
    gap: 13px;
}

.jbj-help-shortcuts a:hover,
.jbj-help-shortcuts button:hover {
    color: var(--jbj-text);
    background: #fff;
    border-color: #cfe5f9;
    box-shadow: 0 8px 20px rgba(20, 91, 153, .08);
    transform: translateY(-2px);
}

.jbj-help-shortcuts a > i,
.jbj-help-shortcuts button > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--jbj-blue);
    background: #eaf5ff;
    border-radius: 9px;
    font-size: 17px;
}

.jbj-help-shortcuts > :nth-child(2) > i {
    color: #f08a1b;
    background: #fff3e6;
}

.jbj-help-shortcuts > :nth-child(3) > i {
    color: #18a77d;
    background: #e8f8f3;
}

.jbj-help-shortcuts > :nth-child(4) > i {
    color: #ef5f65;
    background: #fff0f1;
}

.jbj-help-shortcuts span {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.jbj-help-shortcuts strong {
    font-size: 14px;
}

.jbj-help-shortcuts small {
    overflow: hidden;
    color: var(--jbj-muted);
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-help-layout {
    display: grid;
    align-items: start;
    margin-top: 20px;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
}

.jbj-help-faq {
    padding: 24px 28px 8px;
}

.jbj-help-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0 19px;
    gap: 20px;
}

.jbj-help-section-heading h2,
.jbj-help-aside-heading h2 {
    margin: 0;
    color: #181818;
    font-size: 20px;
    line-height: 1.35;
}

.jbj-help-section-heading span,
.jbj-help-aside-heading small {
    display: block;
    margin-top: 4px;
    color: var(--jbj-muted);
    font-size: 12px;
    font-weight: 400;
}

.jbj-help-section-heading > p {
    margin: 0 0 2px;
    color: #a2a9b2;
    font-size: 12px;
}

.jbj-help-faq-item {
    display: grid;
    padding: 22px 0 23px;
    border-top: 1px solid #edf0f4;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
}

.jbj-help-faq-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 30px;
    color: #fff;
    background: linear-gradient(100deg, #5db3ff, var(--jbj-blue));
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
}

.jbj-help-faq-item h3 {
    margin: 1px 0 8px;
    color: #263447;
    font-size: 15px;
    line-height: 1.45;
}

.jbj-help-faq-item p {
    margin: 0;
    color: #687687;
    font-size: 13px;
    line-height: 1.8;
}

.jbj-help-aside {
    position: sticky;
    top: 76px;
    display: grid;
    gap: 20px;
}

.jbj-help-contact,
.jbj-help-after-sale {
    padding: 22px;
    scroll-margin-top: 84px;
}

.jbj-help-aside-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.jbj-help-aside-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
}

.jbj-help-aside-icon.is-warm {
    color: #f08a1b;
    background: #fff3e6;
}

.jbj-help-aside-icon.is-danger {
    color: #ef5f65;
    background: #fff0f1;
}

.jbj-help-contact-intro {
    margin: 17px 0 0;
    color: #687687;
    font-size: 12px;
    line-height: 1.75;
}

.jbj-help-contact-channels,
.jbj-help-contact-actions {
    display: grid;
    margin-top: 16px;
    gap: 9px;
}

.jbj-help-contact-channels article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 10px 10px 13px;
    background: #f7f9fc;
    border-radius: 8px;
    gap: 10px;
}

.jbj-help-contact-channels article > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.jbj-help-contact-channels article > div > i {
    color: var(--jbj-blue);
    font-size: 17px;
}

.jbj-help-contact-channels article span {
    display: grid;
    color: #25344a;
    font-size: 13px;
    font-weight: 600;
    gap: 2px;
}

.jbj-help-contact-channels article small {
    max-width: 125px;
    overflow: hidden;
    color: var(--jbj-muted);
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jbj-help-contact-channels button {
    min-height: 30px;
    padding: 0 10px;
    color: var(--jbj-blue);
    background: #fff;
    border: 1px solid #dce9f5;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
}

.jbj-help-contact-channels button:hover {
    background: #edf7ff;
    border-color: #bedcf5;
}

.jbj-help-contact-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 9px 12px;
    color: #25344a;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    gap: 10px;
}

.jbj-help-contact-actions a:hover {
    color: var(--jbj-blue);
    border-color: #cfe5f9;
}

.jbj-help-contact-actions a span {
    display: grid;
    font-size: 13px;
    font-weight: 600;
    gap: 2px;
}

.jbj-help-contact-actions a small {
    color: var(--jbj-muted);
    font-size: 11px;
    font-weight: 400;
}

.jbj-help-contact-actions a > i {
    color: var(--jbj-blue);
    font-size: 11px;
}

.jbj-help-contact-empty,
.jbj-help-copy-status {
    padding: 10px 12px;
    margin: 12px 0 0;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.6;
}

.jbj-help-contact-empty {
    color: #687687;
    background: #f7f9fc;
}

.jbj-help-copy-status {
    color: #18835f;
    background: #ebf8f4;
}

.jbj-help-copy-status:empty {
    display: none;
}

.jbj-help-flow,
.jbj-help-after-sale ol {
    display: grid;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
    gap: 14px;
}

.jbj-help-flow li,
.jbj-help-after-sale li {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 9px;
}

.jbj-help-flow li > span,
.jbj-help-after-sale li > span {
    color: var(--jbj-orange);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
}

.jbj-help-flow strong {
    display: block;
    color: #334154;
    font-size: 12px;
}

.jbj-help-flow p,
.jbj-help-after-sale li p {
    margin: 3px 0 0;
    color: #758292;
    font-size: 12px;
    line-height: 1.65;
}

.jbj-help-after-sale li p {
    margin-top: 0;
}

.jbj-help-guide-dialog-panel {
    width: min(560px, calc(100% - 32px));
}

.jbj-help-dialog-heading {
    display: flex;
    align-items: center;
    padding-right: 38px;
    gap: 12px;
}

.jbj-help-dialog-heading h2 {
    padding: 0;
    margin: 0;
}

.jbj-help-dialog-heading p {
    margin: 4px 0 0;
    color: var(--jbj-muted);
    font-size: 12px;
}

.jbj-help-guide-dialog .jbj-help-flow {
    margin-top: 23px;
    border-top: 1px solid #edf0f4;
    gap: 0;
}

.jbj-help-guide-dialog .jbj-help-flow li {
    align-items: start;
    padding: 18px 2px;
    border-bottom: 1px solid #edf0f4;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
}

.jbj-help-guide-dialog .jbj-help-flow li:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.jbj-help-guide-dialog .jbj-help-flow li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 28px;
    color: #fff;
    background: linear-gradient(100deg, #ffa13c, var(--jbj-orange));
    border-radius: 7px;
    line-height: 1;
}

.jbj-help-guide-dialog .jbj-help-flow strong {
    font-size: 14px;
}

.jbj-help-guide-dialog .jbj-help-flow p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.75;
}

.jbj-help-guide-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    margin-top: 17px;
    border-top: 1px solid #edf0f4;
    gap: 16px;
}

.jbj-help-guide-skip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #647185;
    cursor: pointer;
    font-size: 13px;
    gap: 8px;
}

.jbj-help-guide-skip input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--jbj-blue);
}

.jbj-help-guide-confirm {
    min-width: 104px;
    min-height: 40px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(100deg, #50adff, var(--jbj-blue));
    border: 0;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 113, 227, .18);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}

.jbj-help-shortcuts a:focus-visible,
.jbj-help-shortcuts button:focus-visible,
.jbj-help-contact button:focus-visible,
.jbj-help-contact-actions a:focus-visible,
.jbj-help-guide-skip:focus-within,
.jbj-help-guide-confirm:focus-visible {
    outline: none;
    outline-offset: 0;
}

@media (max-width: 960px) {
    .jbj-help-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .jbj-help-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .jbj-help-page {
        min-height: calc(100dvh - 58px);
        padding: 10px 10px 96px;
    }

    .jbj-help-welcome {
        padding: 16px 14px 12px;
    }

    .jbj-help-welcome-heading {
        gap: 11px;
    }

    .jbj-help-welcome-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }

    .jbj-help-welcome h1 {
        font-size: 19px;
    }

    .jbj-help-welcome-heading p {
        margin-top: 2px;
        font-size: 12px;
    }

    .jbj-help-shortcuts {
        margin-top: 14px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .jbj-help-shortcuts a,
    .jbj-help-shortcuts button {
        justify-content: center;
        min-height: 72px;
        padding: 7px 2px;
        background: transparent;
        border-color: transparent;
        flex-direction: column;
        gap: 6px;
    }

    .jbj-help-shortcuts a > i,
    .jbj-help-shortcuts button > i {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .jbj-help-shortcuts span {
        display: block;
        width: 100%;
        text-align: center;
    }

    .jbj-help-shortcuts strong {
        font-size: 12px;
        white-space: nowrap;
    }

    .jbj-help-shortcuts small {
        display: none;
    }

    .jbj-help-layout {
        margin-top: 12px;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .jbj-help-faq {
        padding: 18px 14px 3px;
    }

    .jbj-help-section-heading {
        padding-bottom: 13px;
    }

    .jbj-help-section-heading h2,
    .jbj-help-aside-heading h2 {
        font-size: 18px;
    }

    .jbj-help-section-heading > p {
        display: none;
    }

    .jbj-help-faq-item {
        padding: 16px 0 17px;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }

    .jbj-help-faq-number {
        width: 29px;
        height: 25px;
        border-radius: 6px;
        font-size: 10px;
    }

    .jbj-help-faq-item h3 {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .jbj-help-faq-item p {
        font-size: 13px;
        line-height: 1.7;
    }

    .jbj-help-aside {
        position: static;
        gap: 12px;
    }

    .jbj-help-contact,
    .jbj-help-after-sale {
        padding: 18px 14px;
    }

    .jbj-help-contact-channels button {
        min-height: 44px;
    }

    .jbj-help-contact-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jbj-help-contact-actions a {
        min-height: 56px;
    }

    .jbj-help-guide-dialog {
        display: flex;
        align-items: flex-end;
        padding-top: 56px;
    }

    .jbj-help-guide-dialog-panel {
        width: 100%;
        max-height: calc(100dvh - 48px);
        padding: 22px 18px max(18px, env(safe-area-inset-bottom));
        margin: 0;
        border-radius: 18px 18px 0 0;
        animation: jbj-help-sheet-in .22s ease-out;
        overscroll-behavior: contain;
    }

    .jbj-help-guide-dialog .jbj-notice-dialog-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    .jbj-help-dialog-heading {
        min-height: 44px;
        padding-right: 48px;
    }

    .jbj-help-guide-dialog .jbj-help-flow {
        margin-top: 18px;
    }

    .jbj-help-guide-dialog .jbj-help-flow li {
        padding: 15px 0;
    }

    .jbj-help-guide-dialog-actions {
        position: sticky;
        bottom: 0;
        padding-top: 14px;
        margin-top: 12px;
        background: #fff;
    }

    .jbj-help-guide-skip,
    .jbj-help-guide-confirm {
        min-height: 44px;
    }
}

@keyframes jbj-help-sheet-in {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .jbj-help-shortcuts a,
    .jbj-help-shortcuts button {
        transition: none;
    }

    .jbj-help-guide-dialog-panel {
        animation: none;
    }
}
