.inset-shell {
    position: relative;
    background: #fff;
    padding: 0.5rem;
}

.site-header--compact {
    border-bottom: none;
    background: transparent;
    margin-bottom: 0.5rem;
}

.site-header--compact .site-header-inner {
    height: 60px;
    border-radius: 1rem;
    background: var(--signal-700);
}

.site-header--compact .site-brand-badge {
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
}

.site-header--compact .site-nav {
    color: rgba(255, 255, 255, 0.9);
}

.site-header--compact .site-nav-link:hover {
    color: #fff;
}

.site-header--compact .site-nav-divider {
    background: rgba(255, 255, 255, 0.2);
}

.site-header--compact .site-login-btn {
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.375rem;
    background: transparent;
    padding: 0 1rem;
    font-weight: 500;
}

.site-header--compact .site-login-btn:hover {
    background: #fff;
    color: #000;
}

.site-header--compact .site-console-btn {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.site-header--compact .site-console-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.site-header--compact .site-avatar {
    background: #fff;
    color: var(--signal-800);
}

.site-header--compact .site-account-btn:hover .site-avatar,
.site-header--compact .site-account-btn[aria-expanded="true"] .site-avatar {
    box-shadow: 0 0 0 2px var(--signal-500), 0 0 0 3px rgba(255, 255, 255, 0.6);
}

html:has(.help) {
    scroll-padding-top: 6rem;
}

.help {
    --help-tint: #e9f3fd;
    --help-line: rgba(10, 45, 73, 0.1);
    background: var(--help-tint);
}

.help-crumbs a,
.help-crumbs span,
.help-title,
.help-lede,
.help .section-eyebrow,
.help-topic-title,
.help-row-title,
.help-row-excerpt,
.help-side-label,
.help-rail-title,
.help-rail-all,
.help-pager-title,
.help-empty {
    overflow-wrap: anywhere;
}

.help-hero {
    position: relative;
    overflow: clip;
    padding: 2rem 1.25rem 6rem;
    background-color: #f3f9ff;
    background-image:
        radial-gradient(120% 105% at 84% -18%, rgba(36, 148, 242, 0.3) 0%, rgba(36, 148, 242, 0) 56%),
        radial-gradient(85% 65% at 46% 118%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(180deg, #dcebfb 0%, #f3f9ff 46%, #fff 100%);
}

.landing .help-hero {
    margin-top: -84px;
    padding-top: calc(84px + 2.5rem);
}

.help-hero-decor,
.help-hero-decor > span {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.help-hero-bloom {
    border-radius: 50%;
    filter: blur(110px);
}

.help-hero-decor > .help-hero-bloom--a {
    inset: -8rem -8rem auto auto;
    width: 34rem;
    height: 34rem;
    background: rgba(131, 190, 248, 0.4);
}

.help-hero-dots {
    background-image: radial-gradient(rgba(36, 148, 242, 0.22) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
    mask-image: radial-gradient(60% 80% at 20% 40%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(60% 80% at 20% 40%, #000 20%, transparent 80%);
}

.help-hero-inner {
    position: relative;
    max-width: 76rem;
    margin: 0 auto;
}

.help-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.875rem;
    color: var(--zinc-500);
}

.help-crumbs a {
    color: inherit;
    text-decoration: none;
}

.help-crumbs a:hover {
    color: var(--signal-700);
}

.help-crumbs svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.help-crumbs [aria-current] {
    font-weight: 500;
    color: var(--ink-950);
}

.help-hero-grid {
    display: grid;
    align-items: end;
    gap: 2rem;
    margin-top: 2rem;
}

.help-hero--article .section-eyebrow {
    margin-top: 1.75rem;
}

.help-title {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ink-950);
    animation: hero-rise-12 700ms var(--ease-expo) backwards;
}

.help-title--article {
    max-width: 52rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.help-lede {
    max-width: 36rem;
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--zinc-500);
}

.help-hero-icon {
    display: none;
    width: 7rem;
    height: 7rem;
    place-items: center;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--signal-400), var(--signal-700));
    box-shadow: 0 24px 48px -20px rgba(36, 148, 242, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
    rotate: -6deg;
    animation: hero-chip-in 600ms var(--ease-back) 200ms backwards;
}

.help-hero-icon svg {
    width: 3rem;
    height: 3rem;
}

.help-band {
    position: relative;
    z-index: 1;
    overflow: clip;
    margin-top: -2.5rem;
    padding: 3.5rem 1rem 6rem;
    border-radius: 1.75rem 1.75rem 0 0;
    background: linear-gradient(180deg, #1e7fd1 0%, var(--signal-500) 22%, var(--signal-400) 50%, #a9d3f8 74%,
        var(--help-tint) 92%);
}

.help-band-bloom {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.help-band-bloom--a {
    right: -8rem;
    top: -10rem;
    width: 34rem;
    height: 34rem;
    background: rgba(131, 190, 248, 0.55);
}

.help-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 76rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 2rem;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(10, 45, 73, 0.06),
        0 36px 64px -36px rgba(6, 27, 45, 0.35),
        inset 0 0 0 1px rgba(10, 45, 73, 0.05);
}

.help-side,
.help-rail {
    padding: 1.25rem 1rem;
    background: linear-gradient(180deg, #f5f9fe 0%, #eef4fb 100%);
}

.help-side {
    border-bottom: 1px solid var(--zinc-100);
}

.help-rail {
    border-top: 1px solid var(--zinc-100);
}

.help-side-label {
    padding: 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--zinc-500);
}

.help-topics {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.help-topic {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    max-width: 16rem;
    padding: 0.65rem 0.75rem;
    border-radius: 1rem;
    color: var(--ink-950);
    text-decoration: none;
    transition: background-color 250ms, box-shadow 250ms;
}

.help-topic:hover {
    background: rgba(255, 255, 255, 0.7);
}

.help-topic-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(10, 45, 73, 0.07);
    color: var(--signal-600);
}

.help-topic-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.help-topic-text {
    display: grid;
    min-width: 0;
}

.help-topic-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.help-topic-count {
    display: none;
    font-size: 0.75rem;
    color: var(--zinc-500);
}

.help-topic--active {
    background: #fff;
    box-shadow: 0 12px 26px -16px rgba(10, 45, 73, 0.45), inset 0 0 0 1px rgba(10, 45, 73, 0.05);
}

.help-topic--active .help-topic-icon {
    background: linear-gradient(135deg, var(--signal-500), var(--signal-700));
    box-shadow: 0 10px 18px -10px rgba(30, 127, 209, 0.9);
    color: #fff;
}

.help-main {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.help-filter {
    display: flex;
    height: 3.1rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: #f3f7fb;
    box-shadow: inset 0 0 0 1px var(--help-line);
    transition: box-shadow 200ms, background-color 200ms;
}

.help-filter:focus-within {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--signal-400), 0 0 0 4px rgba(36, 148, 242, 0.14);
}

.help-filter svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    color: var(--zinc-400);
}

.help-filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink-950);
    font: inherit;
    font-size: 1rem;
    text-overflow: ellipsis;
    outline: none;
}

.help-list {
    margin-top: 1rem;
}

.help-list li + li {
    border-top: 1px solid var(--help-line);
}

.help-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0.75rem;
    border-radius: 1.1rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 250ms;
}

.help-row:hover {
    background: #f5f9fe;
}

.help-row-index {
    font-family: "Inter Tight", var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--signal-700);
}

.help-row-text {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.help-row-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-950);
    transition: color 200ms;
}

.help-row:hover .help-row-title {
    color: var(--signal-700);
}

.help-row-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.925rem;
    line-height: 1.55;
    color: var(--zinc-500);
}

.help-row-arrow {
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--zinc-200);
    border-radius: 999px;
    color: var(--ink-900);
    transition:
        transform 300ms var(--ease-expo),
        background-color 250ms,
        color 250ms,
        border-color 250ms;
}

.help-row-arrow svg {
    width: 1rem;
    height: 1rem;
}

.help-row:hover .help-row-arrow {
    transform: translateX(3px);
    border-color: var(--signal-600);
    background: var(--signal-600);
    color: #fff;
}

.help-empty {
    padding: 2rem 0.75rem;
    color: var(--zinc-500);
}

.help-article-col {
    padding: clamp(1.5rem, 4vw, 3.25rem);
}

.help-article {
    min-width: 0;
    max-width: 44rem;
}

.help-pager {
    display: grid;
    gap: 0.75rem;
    max-width: 44rem;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--help-line);
}

.help-pager-link {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border-radius: 1.1rem;
    box-shadow: inset 0 0 0 1px var(--help-line);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 250ms, background-color 250ms;
}

.help-pager-link:hover {
    background: #f5f9fe;
    box-shadow: inset 0 0 0 1px var(--signal-300);
}

.help-pager-link--next {
    text-align: right;
}

.help-pager-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal-700);
}

.help-pager-link--next .help-pager-label {
    justify-content: flex-end;
}

.help-pager-label svg {
    width: 0.9rem;
    height: 0.9rem;
}

.help-pager-title {
    font-weight: 600;
    color: var(--ink-950);
}

.help-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.85rem 0.75rem 0;
}

.help-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--zinc-500);
}

.help-rail-list {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
}

.help-rail-link {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--zinc-600);
    text-decoration: none;
    transition: background-color 200ms, color 200ms;
}

.help-rail-link:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-950);
}

.help-rail-num {
    display: grid;
    width: 1.6rem;
    height: 1.6rem;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--help-line);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--zinc-500);
}

.help-rail-link--active {
    background: #fff;
    box-shadow: 0 10px 22px -16px rgba(10, 45, 73, 0.45), inset 0 0 0 1px rgba(10, 45, 73, 0.05);
    font-weight: 600;
    color: var(--ink-950);
}

.help-rail-link--active .help-rail-num {
    background: linear-gradient(135deg, var(--signal-500), var(--signal-700));
    box-shadow: none;
    color: #fff;
}

.help-rail-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--signal-700);
    text-decoration: none;
}

.help-rail-all svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

.help-stuck {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding: 1.1rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, var(--ink-850), var(--signal-800));
    color: #fff;
}

.help-stuck-icon {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    color: #8fcafc;
}

.help-stuck-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.help-stuck-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.help-stuck-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.help-stuck-btn {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ink-950);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.help-stuck-btn svg {
    width: 0.9rem;
    height: 0.9rem;
}

.help a:focus-visible,
.help button:focus-visible,
.help input:focus-visible {
    outline: 2px solid var(--signal-500);
    outline-offset: 2px;
}

.help .help-filter input:focus-visible {
    outline: none;
}

.help-stuck-btn:focus-visible {
    outline-color: #fff;
}

.prose-help {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--zinc-700);
}

.prose-help > :first-child {
    margin-top: 0;
}

.prose-help h2 {
    margin: 2.5rem 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-950);
}

.prose-help p {
    margin: 1.125rem 0;
}

.prose-help pre {
    overflow-x: auto;
}

.prose-help {
    overflow-wrap: anywhere;
}

.prose-help ul,
.prose-help ol {
    margin: 1.125rem 0;
    padding-left: 1.5rem;
}

.prose-help ul {
    list-style: disc;
}

.prose-help ol {
    list-style: decimal;
}

.prose-help li + li {
    margin-top: 0.5rem;
}

.prose-help a {
    font-weight: 500;
    color: var(--ink-800);
    text-decoration: underline;
    text-decoration-color: var(--signal-200);
    text-underline-offset: 3px;
}

.prose-help a:hover {
    color: var(--ink-900);
    text-decoration-color: var(--signal-500);
}

.prose-help strong {
    font-weight: 600;
    color: var(--ink-950);
}

.prose-help code {
    border-radius: 0.25rem;
    background: var(--zinc-100);
    padding: 0.125rem 0.375rem;
    font-size: 0.875em;
    color: var(--zinc-700);
}

.help-article .prose-help {
    line-height: 1.75;
    color: #3b4a5c;
}

.help-article .prose-help > p:first-child {
    font-size: 1.15rem;
    color: var(--ink-950);
}

.help-article .prose-help h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.help-article .prose-help h3 {
    margin: 2rem 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink-950);
}

.help-article .prose-help ol {
    counter-reset: help-step;
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
    list-style: none;
}

.help-article .prose-help ol > li {
    position: relative;
    counter-increment: help-step;
    padding-left: 2.75rem;
}

.help-article .prose-help ol > li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: 0.15rem;
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
    place-items: center;
    border-radius: 999px;
    background: var(--signal-50);
    box-shadow: inset 0 0 0 1px var(--signal-100);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    color: var(--signal-700);
}

.help-article .prose-help ul {
    display: grid;
    gap: 0.5rem;
    padding-left: 0;
    list-style: none;
}

.help-article .prose-help ul > li {
    position: relative;
    padding-left: 1.5rem;
}

.help-article .prose-help ul > li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.72em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--signal-500);
}

.help-article .prose-help li + li {
    margin-top: 0;
}

.help-article .prose-help a {
    color: var(--signal-700);
    text-decoration-color: var(--signal-200);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

.help-article .prose-help a:hover {
    color: var(--signal-800);
    text-decoration-color: var(--signal-600);
}

.help-article .prose-help code {
    padding: 0.12rem 0.45rem;
    border-radius: 0.4rem;
    background: #eef3f9;
    box-shadow: inset 0 0 0 1px var(--help-line);
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 0.88em;
    color: var(--ink-950);
}

.help-article .prose-help pre {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: #f3f7fb;
    box-shadow: inset 0 0 0 1px var(--help-line);
}

.help-article .prose-help pre code {
    padding: 0;
    background: none;
    box-shadow: none;
}

.help-article .prose-help blockquote {
    margin: 1.75rem 0 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--signal-500);
    border-radius: 0.5rem 1rem 1rem 0.5rem;
    background: #eef6ff;
    color: var(--ink-950);
}

.help-article .prose-help blockquote > :first-child {
    margin-top: 0;
}

.help-article .prose-help blockquote > :last-child {
    margin-bottom: 0;
}

.help-article .prose-help img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.help-article .prose-help hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--help-line);
}

@media (min-width: 640px) {
    .inset-shell {
        padding: 0.75rem;
    }

    .site-header--compact {
        margin-bottom: 0.75rem;
    }

    .help-band {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        border-radius: 2.5rem 2.5rem 0 0;
    }

    .help-hero-grid {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .help-hero-icon {
        display: grid;
    }

    .help-row {
        grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    }

    .help-row-arrow {
        display: grid;
    }

    .help-pager {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .help-card {
        grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
    }

    .help-card--article {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    }

    .help-side {
        border-right: 1px solid var(--zinc-100);
        border-bottom: 0;
    }

    .help-rail {
        padding: 1.75rem 1.25rem;
        border-top: 0;
        border-left: 1px solid var(--zinc-100);
    }

    .help-topics {
        display: grid;
        overflow: visible;
    }

    .help-topic {
        max-width: none;
    }

    .help-topic-count {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-title,
    .help-hero-icon {
        animation: none;
    }

    .help-row,
    .help-row-arrow,
    .help-topic,
    .help-rail-link,
    .help-pager-link {
        transition: none;
    }
}
