#help.view {
    padding: 0;
}

#connector-help-root {
    min-height: calc(100vh - 48px);
}

.connector-help-shell {
    min-height: calc(100vh - 48px);
    background: #f4f7fb;
    color: #172033;
}

.connector-help-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin: 20px 24px 0;
    padding: 28px 32px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 55%,
            #eef4ff 100%
        );

    color: #0f172a;

    border: 1px solid #dbe4f0;
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    overflow: hidden;
}


/* Delikatna dekoracja po prawej stronie nagłówka */
.connector-help-header::after {
    content: "";
    position: absolute;

    width: 280px;
    height: 280px;

    right: -110px;
    top: -150px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.18),
            rgba(37, 99, 235, 0)
        );

    pointer-events: none;
}


.connector-help-header > div {
    position: relative;
    z-index: 2;
}


.connector-help-header h1 {
    margin: 8px 0 8px;

    font-size: clamp(
        30px,
        4vw,
        46px
    );

    line-height: 1.08;

    color: #0f172a !important;
}


.connector-help-header p {
    margin: 0;

    color: #64748b !important;

    font-size: 16px;
    line-height: 1.6;
}


.connector-help-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #1d4ed8;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.connector-help-kicker i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 10px;

    background: #dbeafe;
    color: #1d4ed8;

    font-size: 14px;
}


.connector-help-close {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    flex-shrink: 0;

    min-height: 42px;

    padding: 10px 15px;

    border: 1px solid #cbd5e1;
    border-radius: 11px;

    background: #ffffff;
    color: #334155;

    font-weight: 700;

    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.06);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.connector-help-close:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;

    transform: translateY(-1px);
}

.connector-help-search-box {
    position: relative;

    display: flex;
    align-items: center;

    max-width: 980px;

    margin: 22px auto 24px;
    padding: 0 18px;

    z-index: 2;
}

.connector-help-search-box > i {
    position: absolute;

    left: 38px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: #64748b;
    font-size: 17px;

    pointer-events: none;

    z-index: 3;
}

.connector-help-search-box input {
    width: 100%;
    box-sizing: border-box;
    min-height: 58px;

    border: 1px solid #d7e0ec;
    border-radius: 15px;

    padding:
        0
        52px
        0
        58px;

    background: #ffffff;
    color: #0f172a;

    font-size: 16px;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.09);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.connector-help-search-box input:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.14),
        0 10px 28px rgba(15, 23, 42, 0.09);
}


.connector-help-search-box input::placeholder {
    color: #94a3b8;
}

#connector-help-search-clear {
    position: absolute;
    right: 35px;
    border: 0;
    background: transparent;
    font-size: 25px;
    color: #64748b;
    cursor: pointer;
}

.connector-help-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px 34px;
}

.connector-help-sidebar {
    align-self: start;
    position: sticky;
    top: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.connector-help-home-button,
.connector-help-category-button {
    width: 100%;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    padding: 12px;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
}

.connector-help-home-button {
    margin-bottom: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.connector-help-category-button:hover,
.connector-help-category-button.is-active {
    background: #eef2ff;
    color: #3730a3;
}

.connector-help-category-button small {
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 999px;
}

.connector-help-main {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.connector-help-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 26px;
    border-bottom: 1px solid #eef2f7;
    color: #64748b;
    font-size: 13px;
}

.connector-help-breadcrumbs i {
    font-size: 9px;
}

.connector-help-article,
.connector-help-results {
    max-height: calc(100vh - 210px);
    overflow: auto;
    padding: 30px clamp(22px, 4vw, 52px) 46px;
}

.connector-help-article-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.connector-help-article-header > span {
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 900;
}

.connector-help-article-header h1 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.1;
}

.connector-help-article-header p {
    margin: 0;
    color: #64748b;
    font-size: 17px;
}

.connector-help-article-body {
    max-width: 900px;
    line-height: 1.72;
}

.connector-help-article-body h2 {
    margin: 34px 0 10px;
    font-size: 23px;
    color: #172554;
}

.connector-help-article-body p,
.connector-help-article-body li {
    color: #334155;
}

.connector-help-lead {
    font-size: 19px;
    color: #1e293b !important;
}

.connector-help-callout {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background: #eff6ff;
}

.connector-help-callout.warning {
    border-color: #d97706;
    background: #fffbeb;
}

.connector-help-process {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 28px 0;
}

.connector-help-process span {
    padding: 9px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 800;
    font-size: 13px;
}

.connector-help-locations {
    margin-top: 38px;
    padding: 24px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #dbeafe;
}

.connector-help-locations-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.connector-help-locations-heading > i {
    font-size: 25px;
    color: #2563eb;
}

.connector-help-locations-heading h2,
.connector-help-locations-heading p {
    margin: 0;
}

.connector-help-locations-heading p {
    margin-top: 4px;
    color: #64748b;
}

.connector-help-location-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.connector-help-location-buttons button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #ffffff;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 750;
}

.connector-help-location-buttons button:hover {
    background: #dbeafe;
}

.connector-help-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connector-help-results-header span {
    background: #e2e8f0;
    border-radius: 999px;
    padding: 3px 9px;
}

.connector-help-result-card {
    width: 100%;
    display: block;
    margin-top: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}

.connector-help-result-card strong,
.connector-help-result-card span {
    display: block;
}

.connector-help-result-card span {
    margin-top: 6px;
    color: #64748b;
}

.connector-help-empty,
.connector-help-load-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.connector-help-spotlight {
    position: fixed;
    inset: 0;

    /*
        Bardzo wysoki poziom, aby podświetlenie
        znajdowało się ponad modalami aplikacji.
    */
    z-index: 2147483000;

    pointer-events: none;
}

.connector-help-spotlight-shade {
    position: fixed;
    inset: 0;

    /*
        Przyciemnienie będzie teraz tworzone
        przez cień żółtej ramki.
    */
    background: transparent;

    pointer-events: none;

    z-index: 1;
}

.connector-help-spotlight-ring {
    position: fixed;

    border: 4px solid #facc15;
    border-radius: 13px;

    /*
        Ogromny cień przyciemnia cały ekran
        poza wskazywanym elementem.
        Środek ramki pozostaje przezroczysty,
        więc modal i wskazywane pole są widoczne.
    */
    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, 0.58),
        0 0 0 7px rgba(250, 204, 21, 0.27),
        0 0 32px rgba(250, 204, 21, 0.95);

    animation:
        connector-help-pulse
        1.2s
        ease-in-out
        infinite
        alternate;

    pointer-events: none;

    z-index: 2147483100;
}

.connector-help-spotlight-card {
    position: fixed;

    padding: 20px;

    border: 1px solid #dbe4f0;
    border-radius: 15px;

    background: #ffffff;
    color: #172033;

    box-shadow:
        0 24px 65px rgba(15, 23, 42, 0.42);

    pointer-events: auto;

    z-index: 2147483200;
}

.connector-help-spotlight-card > strong {
    display: block;
    margin: 9px 24px 7px 0;
    font-size: 17px;
}

.connector-help-spotlight-card p {
    margin: 7px 0;
    color: #64748b;
}

.connector-help-spotlight-label {
    color: #1d4ed8;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.connector-help-spotlight-close {
    position: absolute;
    top: 9px;
    right: 11px;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.connector-help-spotlight-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.connector-help-spotlight-actions button {
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
}

.connector-help-spotlight-actions [data-help-return] {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

@keyframes connector-help-pulse {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.025);
    }
}

/*
    Pole ma własny przycisk czyszczenia.
    Ukrywamy automatyczny X dodawany przez przeglądarkę.
*/
#connector-help-search::-webkit-search-cancel-button,
#connector-help-search::-webkit-search-decoration,
#connector-help-search::-webkit-search-results-button,
#connector-help-search::-webkit-search-results-decoration {
    display: none;
    appearance: none;
    -webkit-appearance: none;
}

@media (prefers-reduced-motion: reduce) {

    .connector-help-spotlight-ring {
        animation: none;
    }

    * {
        scroll-behavior: auto !important;
    }
}

@media (max-width: 900px) {

    .connector-help-header {
        align-items: flex-start;

        margin:
            12px
            12px
            0;

        padding:
            22px
            18px;

        border-radius: 15px;
    }

    .connector-help-search-box {
    margin:
        14px
        auto
        18px;

    padding:
        0
        12px;
    }


    .connector-help-search-box > i {
        left: 30px;
    }


    #connector-help-search-clear {
        right: 28px;
    }

    .connector-help-layout {
        grid-template-columns: 1fr;
        padding: 0 12px 24px;
    }

    .connector-help-sidebar {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .connector-help-home-button,
    .connector-help-category-button {
        width: auto;
        min-width: max-content;
        grid-template-columns: 20px auto auto;
    }

    .connector-help-article,
    .connector-help-results {
        max-height: none;
        padding: 22px 18px 38px;
    }

    .connector-help-breadcrumbs {
        padding: 13px 18px;
    }

    .connector-help-close {
        padding: 10px;
        font-size: 0;
    }

    .connector-help-close i {
        font-size: 18px;
    }
}