body {
    background-color: #f8f9fa;
}
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.integration-check:checked + label {
    font-weight: bold;
    color: #0d6efd;
}

.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-row {
    display: flex;
}

.ticket-row.is-user {
    justify-content: flex-end;
}

.ticket-row.is-admin {
    justify-content: flex-start;
}

.ticket-row.is-system {
    justify-content: center;
}

.ticket-bubble {
    max-width: 720px;
    width: fit-content;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.ticket-row.is-user .ticket-bubble {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.18);
}

.ticket-row.is-admin .ticket-bubble {
    background: rgba(25, 135, 84, 0.08);
    border-color: rgba(25, 135, 84, 0.18);
}

.ticket-system-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    text-align: center;
}

.help-hero {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(13, 110, 253, 0.05));
}

.help-search-wrap {
    width: min(520px, 100%);
    position: relative;
}

.help-search-wrap .help-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: 360px;
    overflow: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.help-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.help-tool-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.help-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10) !important;
}

.help-difficulty-badge {
    font-weight: 700;
    font-size: 0.75rem;
}

.help-autolink {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.help-autolink:hover {
    text-decoration: underline;
}

.help-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1202;
}

.help-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1200;
}

.help-drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.help-drawer {
    position: fixed;
    top: 0;
    right: -560px;
    width: min(520px, 96vw);
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    z-index: 1201;
    transition: right 0.25s ease;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.help-drawer.show {
    right: 0;
}

.help-drawer-header {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
    border-top-left-radius: 18px;
}

.help-drawer-body {
    padding: 16px;
    overflow: auto;
}

.help-drawer .help-suggestions {
    position: static;
    max-height: 280px;
    overflow: auto;
    border-radius: 12px;
    margin-top: 8px;
}

.help-steps li {
    padding: 2px 0;
}

@media (max-width: 992px) {
    .help-fab {
        right: 14px;
        bottom: 14px;
    }

    .help-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: min(78vh, 640px);
        border-left: 0;
        border-top: 1px solid rgba(0,0,0,0.08);
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transform: translateY(100%);
        transition: transform 0.25s ease;
    }

    .help-drawer.show {
        right: 0;
        transform: translateY(0);
    }

    .help-drawer-header {
        border-top-right-radius: 18px;
    }
}
