.help-page{
    display:grid;
    gap:18px;
    max-width:1180px;
}

.help-page-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
}

.help-page-header h1{
    margin:0;
    color:#182230;
    font-size:28px;
    line-height:1.15;
}

.help-page-header p,
.help-section-head p{
    margin:8px 0 0;
    color:#667085;
    font-size:14px;
    line-height:1.45;
}

.help-tabs{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid #d9e2f1;
    border-radius:8px;
    background:#f5f8fd;
    flex-shrink:0;
}

.help-tabs button{
    min-height:34px;
    padding:7px 12px;
    border:1px solid transparent;
    border-radius:6px;
    background:transparent;
    color:#344054;
    font-size:14px;
    font-weight:700;
}

.help-tabs button:hover{
    background:#ffffff;
}

.help-tabs button.active{
    background:#ffffff;
    border-color:#d9e2f1;
    color:#1d4ed8;
    box-shadow:0 1px 2px rgba(16,24,40,0.06);
}

.help-section-head{
    margin-bottom:14px;
}

.help-guide-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
}

.help-section-head h2{
    margin:0;
    color:#182230;
    font-size:22px;
    line-height:1.2;
}

.help-search{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:min(440px, 100%);
}

.help-search input{
    min-width:0;
    flex:1;
    height:38px;
}

.help-search button{
    height:38px;
    white-space:nowrap;
}

.help-search button:disabled{
    opacity:0.55;
    cursor:not-allowed;
}

.help-search-summary{
    margin:0 0 12px;
    color:#667085;
    font-size:14px;
}

.help-search-empty{
    max-width:560px;
    padding:18px;
    border:1px solid #d9e2f1;
    border-radius:8px;
    background:#ffffff;
}

.help-search-empty h3{
    margin:0 0 8px;
    color:#182230;
    font-size:16px;
}

.help-search-empty p{
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.45;
}

.help-guide-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.help-guide-card{
    border:1px solid #d9e2f1;
    border-radius:8px;
    background:#ffffff;
    padding:16px;
}

.help-guide-card h3{
    margin:0;
    color:#182230;
    font-size:16px;
    line-height:1.25;
}

.help-guide-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    margin:0 0 12px;
}

.help-guide-card-top span{
    flex-shrink:0;
    padding:3px 7px;
    border-radius:6px;
    background:#eef4ff;
    color:#1d4ed8;
    font-size:12px;
    font-weight:700;
}

.help-guide-card ul{
    margin:0;
    padding-left:18px;
    color:#475467;
    font-size:14px;
    line-height:1.55;
}

.help-guide-card li + li{
    margin-top:8px;
}

.help-chat-shell{
    display:grid;
    grid-template-rows:minmax(300px, 48vh) auto;
    border:1px solid #d9e2f1;
    border-radius:8px;
    background:#ffffff;
    overflow:hidden;
}

.help-chat-messages{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:16px;
    overflow:auto;
    background:#f8fbff;
}

.help-chat-message{
    display:flex;
}

.help-chat-message.user{
    justify-content:flex-end;
}

.help-chat-message.support{
    justify-content:flex-start;
}

.help-chat-bubble{
    max-width:min(620px, 86%);
    padding:10px 12px;
    border:1px solid #d9e2f1;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 1px 2px rgba(16,24,40,0.04);
}

.help-chat-message.user .help-chat-bubble{
    background:#2f6df6;
    border-color:#2f6df6;
    color:#ffffff;
}

.help-chat-meta{
    margin-bottom:4px;
    color:#667085;
    font-size:12px;
    font-weight:700;
}

.help-chat-message.user .help-chat-meta{
    color:rgba(255,255,255,0.78);
}

.help-chat-text{
    font-size:14px;
    line-height:1.45;
    white-space:pre-wrap;
}

.help-chat-form{
    display:grid;
    gap:10px;
    padding:14px;
    border-top:1px solid #d9e2f1;
    background:#ffffff;
}

.help-chat-form textarea{
    width:100%;
    min-height:76px;
    resize:vertical;
}

.help-chat-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}

@media (max-width: 820px){
    .help-page-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .help-tabs{
        width:100%;
    }

    .help-tabs button{
        flex:1;
    }

    .help-guide-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .help-search{
        width:100%;
    }

    .help-guide-grid{
        grid-template-columns:1fr;
    }
}
