.help-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.help-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 3.5rem);
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(135deg, #253243 0%, #145c6d 62%, #0d7a74 100%);
    box-shadow: 0 22px 54px rgba(20, 63, 75, .18);
}

.help-eyebrow {
    display: block;
    margin-bottom: .65rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.help-hero h1,
.help-article-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
}

.help-hero p {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
}

.help-hero-mark {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    font-size: 3rem;
    font-weight: 800;
}

.help-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .65rem;
    margin: 1.4rem 0 1rem;
    padding: .7rem;
    border: 1px solid rgba(35, 33, 31, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 32px rgba(35, 33, 31, .07);
}

.help-search input {
    min-width: 0;
    padding: .85rem 1rem;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1rem;
}

.help-search button,
.help-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
}

.help-search-with-filters {
    grid-template-columns: minmax(15rem, 2fr) minmax(10rem, 1fr) minmax(10rem, 1fr) auto;
    align-items: end;
}

.help-search-with-filters label {
    display: grid;
    gap: .3rem;
    color: #54616f;
    font-size: .78rem;
    font-weight: 700;
}

.help-search-with-filters select {
    min-height: 3rem;
    padding: .65rem .8rem;
    border: 1px solid #c9d6dc;
    border-radius: 12px;
    background: #fff;
}

.help-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.75rem 0 .85rem;
}

.help-section-heading h2 { margin: .15rem 0 0; }
.help-section-heading > span { color: #697684; font-size: .86rem; }

.help-learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.help-learning-card,
.help-recent,
.help-completion {
    padding: 1.15rem;
    border: 1px solid #d8e3e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(26, 48, 61, .05);
}

.help-learning-card h3 { margin: 0 0 .4rem; }
.help-learning-card p { color: #5b6977; }
.help-learning-card ol { display: grid; gap: .55rem; padding: 0; list-style: none; }
.help-learning-card li { display: grid; grid-template-columns: 1.2rem 1fr; align-items: start; gap: .45rem; }
.help-learning-check { width: 1rem; height: 1rem; margin-top: .2rem; border: 2px solid #9eb0b9; border-radius: 50%; }
.help-learning-card li.is-complete .help-learning-check { border-color: #1b7d67; background: #1b7d67; box-shadow: inset 0 0 0 3px #fff; }
.help-learning-card li.is-complete a { color: #4d665f; text-decoration: line-through; }
.help-learning-card small { color: #58706b; font-weight: 700; }

.help-flow {
    display: grid;
    gap: 0;
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    counter-reset: help-flow;
}

.help-flow li { position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: .75rem; padding-bottom: 1rem; counter-increment: help-flow; }
.help-flow li::before { content: counter(help-flow); z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; border-radius: 50%; background: #146b74; font-weight: 800; }
.help-flow li:not(:last-child)::after { content: ""; position: absolute; top: 2rem; bottom: 0; left: .95rem; width: 2px; background: #b9d7da; }
.help-flow span { padding-top: .28rem; font-weight: 650; }

.help-completion { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.help-completion > div { display: grid; gap: .2rem; }
.help-completion > div span { color: #64717e; font-size: .88rem; }
.help-completion.is-complete { border-color: #8fc9b7; background: #f1fbf7; }

.help-feedback {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.15rem;
    border: 1px solid #d8e3e7;
    border-radius: 16px;
    background: #fff;
}

.help-feedback h2 { margin: 0; font-size: 1.15rem; }
.help-feedback p { margin: .25rem 0 0; color: #64717e; }
.help-feedback-actions { display: flex; align-items: flex-start; gap: .65rem; flex-wrap: wrap; }
.help-feedback-actions details { position: relative; }
.help-feedback-actions summary { list-style: none; cursor: pointer; }
.help-feedback-actions summary::-webkit-details-marker { display: none; }
.help-feedback-form { display: grid; gap: .7rem; width: min(24rem, calc(100vw - 3rem)); margin-top: .7rem; padding: 1rem; border: 1px solid #d8e3e7; border-radius: 12px; background: #f8fbfc; }
.help-feedback-form label { display: grid; gap: .3rem; font-size: .86rem; font-weight: 700; }
.help-feedback-form select,
.help-feedback-form textarea { width: 100%; padding: .55rem .65rem; border: 1px solid #bdcbd1; border-radius: 8px; background: #fff; }

.help-recent { margin-top: 1.5rem; }
.help-recent ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.help-recent li { display: flex; justify-content: space-between; gap: 1rem; }
.help-recent li span { color: #697684; font-size: .82rem; }

.help-search button {
    color: #fff;
    background: #145c6d;
}

.help-search-clear {
    color: #4d555a;
    background: #edf1f2;
}

.help-result-count {
    color: var(--dc-muted);
}

.help-category-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.help-category {
    padding: 1.35rem;
    border: 1px solid rgba(35, 33, 31, .09);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
}

.help-category > header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.help-category h2,
.help-related h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.help-category header span:last-child {
    color: var(--dc-muted);
    font-size: .86rem;
}

.help-category-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    color: #145c6d;
    background: #e4f2f2;
    font-weight: 800;
}

.help-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: .85rem;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-height: 9.5rem;
    padding: 1.15rem;
    color: var(--dc-ink);
    border: 1px solid rgba(35, 33, 31, .08);
    border-radius: 16px;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.help-card:hover {
    color: var(--dc-ink);
    border-color: rgba(20, 92, 109, .32);
    box-shadow: 0 14px 30px rgba(35, 33, 31, .09);
    transform: translateY(-2px);
}

.help-card strong {
    font-size: 1.02rem;
}

.help-card span {
    color: #5e6569;
}

.help-card small {
    margin-top: auto;
    color: #7b8083;
}

.help-empty {
    margin-top: 1.5rem;
    padding: 2rem;
    text-align: center;
    border: 1px dashed rgba(35, 33, 31, .2);
    border-radius: 20px;
    background: rgba(255, 255, 255, .65);
}

.help-breadcrumb {
    display: flex;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--dc-muted);
    font-size: .9rem;
}

.help-article-header {
    padding: clamp(1.6rem, 4vw, 3rem);
    border: 1px solid rgba(35, 33, 31, .08);
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
}

.help-article-header h1 {
    max-width: 850px;
    color: var(--dc-ink);
    font-size: clamp(2rem, 4vw, 3rem);
}

.help-article-header > p {
    max-width: 800px;
    margin: 1rem 0 0;
    color: var(--dc-muted);
    font-size: 1.08rem;
}

.help-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
    color: var(--dc-muted);
    font-size: .88rem;
}

.help-article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.help-toc {
    position: sticky;
    top: 1rem;
    align-self: start;
    padding: 1rem;
    border: 1px solid rgba(35, 33, 31, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.help-toc nav {
    display: grid;
    gap: .45rem;
    margin-top: .75rem;
}

.help-toc a {
    color: #4e5c61;
    font-size: .9rem;
}

.help-toc a.is-sub {
    padding-left: .8rem;
    font-size: .84rem;
}

.help-content {
    min-width: 0;
    padding: clamp(1.4rem, 3vw, 2.5rem);
    border: 1px solid rgba(35, 33, 31, .08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(35, 33, 31, .06);
}

.help-content h2,
.help-content h3 {
    scroll-margin-top: 1rem;
    font-weight: 800;
}

.help-content h2 {
    margin: 2rem 0 .8rem;
    padding-top: .4rem;
    font-size: 1.55rem;
}

.help-content h2:first-child {
    margin-top: 0;
}

.help-content h3 {
    margin: 1.45rem 0 .65rem;
    font-size: 1.18rem;
}

.help-content p,
.help-content li {
    line-height: 1.7;
}

.help-content ul,
.help-content ol {
    display: grid;
    gap: .5rem;
    padding-left: 1.35rem;
}

.help-note {
    display: grid;
    gap: .25rem;
    margin: 1.3rem 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid #e85b10;
    border-radius: 0 12px 12px 0;
    background: #fff4ea;
}

.help-content pre {
    overflow-x: auto;
    padding: 1rem;
    color: #eef6f7;
    border-radius: 12px;
    background: #253243;
}

.help-related {
    margin-top: 1.5rem;
}

.help-related h2 {
    margin-bottom: .85rem;
}

.context-help-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.context-help-link::before {
    content: "?";
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    color: #145c6d;
    background: #e4f2f2;
    font-size: .78rem;
    font-weight: 800;
}

@media (max-width: 820px) {
    .help-hero-mark,
    .help-toc {
        display: none;
    }

    .help-article-layout {
        grid-template-columns: 1fr;
    }

    .help-search {
        grid-template-columns: 1fr auto;
    }

    .help-search-with-filters { grid-template-columns: 1fr 1fr; }

    .help-search-with-filters > input { grid-column: 1 / -1; }

    .help-search-clear {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .help-hero,
    .help-article-header,
    .help-category,
    .help-content {
        border-radius: 16px;
    }

    .help-search {
        grid-template-columns: 1fr;
    }

    .help-search-with-filters { grid-template-columns: 1fr; }

    .help-search-with-filters > input { grid-column: auto; }

    .help-section-heading,
    .help-completion { align-items: flex-start; flex-direction: column; }

    .help-article-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
