/*
    Help (help-): the Help Center drawer, the popup help sheet and the article both render (HelpArticleView), ported from
    the mobile help popup. One hue per area, from the Chip In design system (§7.2): every colored element reads
    --help-accent (icons, links, callout bars), --help-soft (pills, tip tints) and --help-border (hairlines) from the
    nearest .help-area-* class, so a Liabilities article reads rose and a Settle article amber-bronze. Light and dark are
    tuned separately (data-bs-theme="dark"). No screenshots: articles are structured text.
*/

:root {
    --help-font: "Poppins", var(--si-font-sans-serif, "Manrope"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --help-page: #FCFDFD;
    --help-surface: #F3F5FA;
    --help-text: #0B0F19;
    --help-muted: #565973;
    --help-hairline: #E2E5F1;
    --help-glass: rgba(255, 255, 255, .78);
    --help-shadow: -10px 0 40px rgba(15, 23, 42, .18);
    --help-backdrop: rgba(15, 23, 42, .42);
    --help-caution: #B45309;
    --help-caution-soft: #FEF3C7;
    --help-partner: #7C3AED;
    --help-partner-soft: #EDE9FE;
    --help-primary: hsl(calc(247.83deg + var(--ci-accent-shift, 0deg)) 76.3% 58.63%);
    --help-primary-soft: hsl(calc(246.92deg + var(--ci-accent-shift, 0deg)) 100% 94.9%);
}

[data-bs-theme="dark"] {
    --help-page: #0B0F19;
    --help-surface: #151B28;
    --help-text: #D9DBE8;
    --help-muted: #B4B7C9;
    --help-hairline: #2B3045;
    --help-glass: rgba(255, 255, 255, .06);
    --help-shadow: -10px 0 40px rgba(0, 0, 0, .55);
    --help-backdrop: rgba(0, 0, 0, .6);
    --help-caution: #FBBF24;
    --help-caution-soft: rgba(251, 191, 36, .14);
    --help-partner: #C4B5FD;
    --help-partner-soft: rgba(124, 58, 237, .2);
    --help-primary: hsl(calc(246.79deg + var(--ci-accent-shift, 0deg)) 100% 79.22%);
    --help-primary-soft: hsl(calc(247.94deg + var(--ci-accent-shift, 0deg)) 83.95% 68.24% / .2);
}

/* ------------------------------------------------------------------ Area hues (icon / badge / hero border) */

.help-area-general,
.help-area-recurring { --help-accent: hsl(calc(247.83deg + var(--ci-accent-shift, 0deg)) 76.3% 58.63%); --help-soft: hsl(calc(249deg + var(--ci-accent-shift, 0deg)) 100% 96.08%); --help-border: hsl(calc(252.97deg + var(--ci-accent-shift, 0deg)) 78.72% 90.78%); }
.help-area-home,
.help-area-transactions { --help-accent: #2563EB; --help-soft: #DBEAFE; --help-border: #B5CFF6; }
.help-area-accounts { --help-accent: #0D9488; --help-soft: #CCFBF1; --help-border: #BCE6E2; }
.help-area-budgets { --help-accent: #C026D3; --help-soft: #FAE8FF; --help-border: #EBC9F2; }
.help-area-liabilities { --help-accent: #DC2626; --help-soft: #FEE2E2; --help-border: #F0C8D0; }
.help-area-investments { --help-accent: #16A34A; --help-soft: #DCFCE7; --help-border: #C2EACF; }
.help-area-reports { --help-accent: hsl(calc(243.4deg + var(--ci-accent-shift, 0deg)) 75.36% 58.63%); --help-soft: #E0E7FF; --help-border: hsl(calc(248.57deg + var(--ci-accent-shift, 0deg)) 71.01% 86.47%); }
.help-area-bills,
.help-area-settle { --help-accent: #B45309; --help-soft: #F6DDB2; --help-border: #EBD6B5; }
.help-area-ai { --help-accent: hsl(calc(271.48deg + var(--ci-accent-shift, 0deg)) 81.33% 55.88%); --help-soft: hsl(calc(268.7deg + var(--ci-accent-shift, 0deg)) 100% 95.49%); --help-border: hsl(calc(270.7deg + var(--ci-accent-shift, 0deg)) 72.88% 88.43%); }
.help-area-partner { --help-accent: #7C3AED; --help-soft: #EDE9FE; --help-border: #D5C8F7; }
.help-area-settings { --help-accent: #475569; --help-soft: #E2E8F0; --help-border: #CBD5E1; }

[data-bs-theme="dark"] .help-area-general,
[data-bs-theme="dark"] .help-area-recurring { --help-accent: hsl(calc(248.4deg + var(--ci-accent-shift, 0deg)) 100% 80.39%); --help-soft: hsl(calc(247.94deg + var(--ci-accent-shift, 0deg)) 83.95% 68.24% / .18); --help-border: hsl(calc(245.45deg + var(--ci-accent-shift, 0deg)) 31.43% 27.45%); }
[data-bs-theme="dark"] .help-area-home,
[data-bs-theme="dark"] .help-area-transactions { --help-accent: #60A5FA; --help-soft: #1E3354; --help-border: #24406A; }
[data-bs-theme="dark"] .help-area-accounts { --help-accent: #2DD4BF; --help-soft: #163A3B; --help-border: #1D3A40; }
[data-bs-theme="dark"] .help-area-budgets { --help-accent: #E879F9; --help-soft: #3B1F44; --help-border: #4A2A55; }
[data-bs-theme="dark"] .help-area-liabilities { --help-accent: #F87171; --help-soft: #3A1F1F; --help-border: #3D2433; }
[data-bs-theme="dark"] .help-area-investments { --help-accent: #34D399; --help-soft: #223A2B; --help-border: #1F3A2B; }
[data-bs-theme="dark"] .help-area-reports { --help-accent: #A5B4FC; --help-soft: hsl(calc(245.62deg + var(--ci-accent-shift, 0deg)) 44.44% 28.24%); --help-border: hsl(calc(245.81deg + var(--ci-accent-shift, 0deg)) 40.79% 29.8%); }
[data-bs-theme="dark"] .help-area-bills,
[data-bs-theme="dark"] .help-area-settle { --help-accent: #F2B557; --help-soft: #45331A; --help-border: #3E3121; }
[data-bs-theme="dark"] .help-area-ai { --help-accent: hsl(calc(269.19deg + var(--ci-accent-shift, 0deg)) 97.37% 85.1%); --help-soft: hsl(calc(271.48deg + var(--ci-accent-shift, 0deg)) 81.33% 55.88% / .22); --help-border: hsl(calc(262.37deg + var(--ci-accent-shift, 0deg)) 44.36% 26.08%); }
[data-bs-theme="dark"] .help-area-partner { --help-accent: #C4B5FD; --help-soft: #33245F; --help-border: #3A2A66; }
[data-bs-theme="dark"] .help-area-settings { --help-accent: #CBD5E1; --help-soft: #273244; --help-border: #334155; }

/* ------------------------------------------------------------------ Top bar Help button and section help icons */

.help-button {
    --help-btn-accent: var(--chipin-brand-primary, hsl(calc(247.74deg + var(--ci-accent-shift, 0deg)) 60.78% 50%));
    position: relative;
    gap: .35rem;
    height: 2.25rem;
    margin-bottom: 0;
    padding: 0 .65rem 0 .5rem;
    border: 1px solid transparent !important;
    border-radius: .5rem !important;
    background: transparent !important;
    color: var(--si-body-color, #1f2440) !important;
    box-shadow: none !important;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.help-button i {
    font-size: 1.35rem;
    line-height: 1;
    opacity: .85;
    transition: opacity .15s ease, color .15s ease;
}

.help-button:hover,
.help-button:focus-visible {
    background-color: rgba(0, 0, 0, .06) !important;
}

.help-button:hover i,
.help-button:focus-visible i {
    opacity: 1;
}

.help-button:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--help-btn-accent) 45%, transparent) !important;
}

.help-button.is-open {
    background-color: color-mix(in srgb, var(--help-btn-accent) 12%, transparent) !important;
    color: var(--help-btn-accent) !important;
}

.help-button.is-open i {
    opacity: 1;
}

[data-bs-theme="dark"] .help-button {
    --help-btn-accent: hsl(calc(246.79deg + var(--ci-accent-shift, 0deg)) 100% 79.22%);
    color: #e6e9f5 !important;
}

[data-bs-theme="dark"] .help-button:hover,
[data-bs-theme="dark"] .help-button:focus-visible {
    background-color: rgba(255, 255, 255, .08) !important;
}

[data-bs-theme="dark"] .help-button.is-open {
    background-color: color-mix(in srgb, var(--help-btn-accent) 16%, transparent) !important;
}

.help-icon-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tx-primary, var(--help-primary));
    font: 600 12px/1.2 var(--help-font);
    cursor: pointer;
}

.help-icon-button i {
    font-size: 15px;
}

.help-icon-button:hover {
    background: var(--help-primary-soft);
}

.help-icon-button:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ Drawer shell */

.help-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: var(--help-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.help-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.help-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    width: var(--help-drawer-width, min(920px, 96vw));
    min-width: 380px;
    max-width: 100vw;
    background: var(--help-page);
    background-image: radial-gradient(ellipse 55% 26% at 0% 0%, color-mix(in srgb, var(--help-accent) 16%, transparent), transparent 100%);
    border-left: 1px solid var(--help-border);
    box-shadow: var(--help-shadow);
    color: var(--help-text);
    font-family: var(--help-font);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .26s cubic-bezier(.4, 0, .2, 1), visibility .26s;
    outline: none;
}

.help-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.help-drawer *,
.help-sheet * {
    box-sizing: border-box;
}

.help-drawer-resizer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5px;
    z-index: 2;
    width: 10px;
    cursor: ew-resize;
    touch-action: none;
}

.help-drawer-resizer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 42px;
    border-radius: 999px;
    background: var(--help-accent);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .15s ease;
}

.help-drawer-resizer:hover::before,
.help-drawer.is-resizing .help-drawer-resizer::before {
    opacity: .5;
}

.help-drawer.is-resizing {
    transition: none;
    user-select: none;
}

/* Header (drawer and sheet) */
.help-drawer-header,
.help-sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--help-hairline);
}

.help-drawer-titles {
    flex: 1 1 auto;
    min-width: 0;
}

.help-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    min-width: 0;
}

.help-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--help-accent);
    font: 700 10.5px/1.5 var(--help-font);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.help-eyebrow-link {
    cursor: pointer;
}

.help-eyebrow-link:hover {
    text-decoration: underline;
}

.help-eyebrow-chevron {
    font-size: 8px;
    color: var(--help-accent);
    opacity: .75;
}

.help-drawer-title {
    margin: 1px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--help-text);
    font: 600 18px/1.3 var(--help-font);
}

.help-drawer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.help-round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--help-hairline);
    border-radius: 18px;
    background: var(--help-surface);
    color: var(--help-text);
    font-size: 14px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.help-round-button:hover {
    border-color: var(--help-border);
    background: var(--help-soft);
}

.help-chip-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--help-hairline);
    border-radius: 16px;
    background: var(--help-glass);
    color: var(--help-text);
    font: 600 12px/1 var(--help-font);
    white-space: nowrap;
    cursor: pointer;
}

.help-chip-button .tx-glyph,
.help-chip-button i {
    color: var(--help-accent);
    font-size: 11px;
}

.help-chip-button:hover {
    border-color: var(--help-border);
    background: var(--help-soft);
}

.help-drawer :focus-visible,
.help-sheet :focus-visible {
    outline: 2px solid var(--help-accent);
    outline-offset: 2px;
}

/* Pills */
.help-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--help-soft);
    color: var(--help-accent);
    font-size: 14px;
}

.help-pill-large {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 18px;
}

.help-pill-small {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 12px;
}

/* Body: navigation + article */
.help-drawer-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.help-nav {
    display: flex;
    flex-direction: column;
    flex: 0 0 280px;
    width: 280px;
    min-height: 0;
    border-right: 1px solid var(--help-hairline);
    background: color-mix(in srgb, var(--help-surface) 55%, transparent);
}

.help-search {
    position: relative;
    padding: 14px 14px 10px;
}

.help-search-glyph {
    position: absolute;
    top: 50%;
    left: 27px;
    margin-top: 2px;
    color: var(--help-muted);
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.help-search-input {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 36px;
    border: 1px solid var(--help-hairline);
    border-radius: 12px;
    background: var(--help-page);
    color: var(--help-text);
    font: 500 13px/1 var(--help-font);
    outline: none;
}

.help-search-input:focus {
    border-color: var(--help-primary);
    box-shadow: 0 0 0 3px var(--help-primary-soft);
}

.help-search-input::-webkit-search-cancel-button {
    display: none;
}

.help-search-clear {
    position: absolute;
    top: 50%;
    right: 22px;
    margin-top: 2px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--help-muted);
    font-size: 11px;
    transform: translateY(-50%);
    cursor: pointer;
}

.help-nav-toggle {
    display: none;
}

.help-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 10px 18px;
}

.help-nav-group {
    margin-top: 12px;
}

.help-nav-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 6px 4px;
    color: var(--help-muted);
    font: 700 10px/1.5 var(--help-font);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.help-nav-heading::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--help-accent, var(--help-primary));
}

.help-nav-row {
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 10px;
    transition: background-color .12s ease;
}

.help-nav-row:hover {
    background: var(--help-glass);
}

.help-nav-row.is-active {
    background: var(--help-soft, var(--help-primary-soft));
}

.help-nav-row.is-active .help-nav-link {
    color: var(--help-accent, var(--help-primary));
    font-weight: 600;
}

.help-nav-expand,
.help-nav-expand-space {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.help-nav-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--help-muted);
    font-size: 9px;
    cursor: pointer;
}

.help-nav-expand .tx-glyph,
.help-nav-expand i {
    transition: transform .15s ease;
}

.help-nav-expand.is-expanded .tx-glyph,
.help-nav-expand.is-expanded i {
    transform: rotate(90deg);
}

.help-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 7px 8px 7px 2px;
    border: 0;
    background: transparent;
    color: var(--help-text);
    font: 500 13px/1.3 var(--help-font);
    text-align: left;
    cursor: pointer;
}

.help-nav-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.help-nav-glyph {
    flex: 0 0 16px;
    width: 16px;
    color: var(--help-accent, var(--help-primary));
    font-size: 12px;
    text-align: center;
}

.help-nav-children {
    margin-left: 11px;
    padding-left: 6px;
    border-left: 1px solid var(--help-hairline);
}

.help-nav-item.depth-1 .help-nav-link,
.help-nav-item.depth-2 .help-nav-link,
.help-nav-item.depth-3 .help-nav-link {
    font-size: 12.5px;
}

.help-nav-empty,
.help-nav-count {
    margin: 10px 6px;
    color: var(--help-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.help-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--help-text);
    font-family: var(--help-font);
    text-align: left;
    cursor: pointer;
}

.help-result:hover,
.help-result.is-active {
    border-color: var(--help-border);
    background: var(--help-soft);
}

.help-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.help-result-title {
    font-weight: 600;
    font-size: 13px;
}

.help-result-excerpt {
    display: -webkit-box;
    overflow: hidden;
    color: var(--help-muted);
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.help-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 26px 28px;
}

.help-content > .help-article {
    max-width: 680px;
}

.help-content-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 680px;
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px solid var(--help-hairline);
    color: var(--help-muted);
    font-size: 12.5px;
}

.help-content-footer a {
    color: var(--help-primary);
    font-weight: 600;
}

/* ------------------------------------------------------------------ Popup sheet (SfDialog CssClass="help-sheet-dialog") */

.e-dialog.help-sheet-dialog {
    border: 1px solid var(--help-hairline);
    border-radius: 22px;
    overflow: hidden;
}

.e-dialog.help-sheet-dialog .e-dlg-content {
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--help-page);
}

.help-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--help-page);
    background-image: radial-gradient(ellipse 60% 28% at 0% 0%, color-mix(in srgb, var(--help-accent) 16%, transparent), transparent 100%);
    color: var(--help-text);
    font-family: var(--help-font);
}

.help-sheet-head {
    flex: 0 0 auto;
}

.help-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px 24px;
}

/* ------------------------------------------------------------------ Article */

.help-article {
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: var(--help-text);
    font-family: var(--help-font);
}

.help-summary {
    margin: 0;
    color: var(--help-text);
    font-size: 14.5px;
    line-height: 1.6;
}

.help-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* A section the opener pointed at (the transaction popup's Recurring help): a soft ring in the section's own hue. */
.help-section.help-section-focus {
    margin: -10px -12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--help-accent, currentColor) 9%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--help-accent, currentColor) 35%, transparent);
    animation: help-section-focus-in 900ms ease-out;
}

@keyframes help-section-focus-in {
    from { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--help-accent, currentColor) 70%, transparent); }
}

.help-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-section-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--help-text);
    font: 600 15px/1.35 var(--help-font);
}

.help-details {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 28px;
    padding: 0 11px;
    border: 1px solid var(--help-hairline);
    border-radius: 14px;
    background: var(--help-glass);
    color: var(--help-accent);
    font: 600 12px/1 var(--help-font);
    cursor: pointer;
}

.help-details .tx-glyph,
.help-details i {
    font-size: 9px;
}

.help-details:hover {
    border-color: var(--help-border);
    background: var(--help-soft);
}

.help-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

.help-points {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 0 12px;
    padding: 0;
    list-style: none;
}

.help-point {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    padding: 5px 0;
    font-size: 13.5px;
    line-height: 1.5;
}

li.help-point {
    grid-template-columns: 24px minmax(0, 1fr);
}

.help-point-link {
    width: 100%;
    padding: 6px 8px 6px 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.help-point-link:hover {
    background: var(--help-glass);
}

.help-point-link .help-point-lead {
    color: var(--help-accent);
}

.help-point-glyph {
    display: inline-flex;
    justify-content: center;
    padding-top: 2px;
    color: var(--help-accent);
    font-size: 13px;
}

.help-point-dot {
    justify-self: center;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 4px;
    background: var(--help-accent);
}

.help-point-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.help-point-lead {
    font-weight: 600;
    color: var(--help-text);
}

.help-point-body {
    color: var(--help-text);
    opacity: .82;
}

.help-point-chevron {
    align-self: center;
    color: var(--help-accent);
    font-size: 10px;
}

.help-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-steps li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
    font-size: 13.5px;
    line-height: 1.5;
}

.help-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--help-soft);
    color: var(--help-accent);
    font-weight: 600;
    font-size: 12px;
}

.help-callout {
    --help-callout-bar: var(--help-accent);
    --help-callout-bg: var(--help-soft);
    position: relative;
    padding: 10px 14px 12px 16px;
    border-radius: 14px;
    background: var(--help-callout-bg);
    overflow: hidden;
}

.help-callout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--help-callout-bar);
}

.help-callout-head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--help-callout-bar);
    font: 700 11px/1.4 var(--help-font);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.help-callout p {
    margin: 4px 0 0;
    color: var(--help-text);
    font-size: 13px;
    line-height: 1.55;
}

.help-callout-important { --help-callout-bar: var(--help-caution); --help-callout-bg: var(--help-caution-soft); }
.help-callout-note { --help-callout-bar: var(--help-muted); --help-callout-bg: var(--help-surface); }
.help-callout-privacy { --help-callout-bar: var(--help-partner); --help-callout-bg: var(--help-partner-soft); }
.help-callout-allaccess { --help-callout-bar: var(--help-primary); --help-callout-bg: var(--help-primary-soft); }

.help-related {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-caption {
    color: var(--help-muted);
    font: 700 10.5px/1.4 var(--help-font);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.help-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.help-related-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 10px;
    border: 1px solid var(--help-hairline);
    border-radius: 14px;
    background: var(--help-glass);
    color: var(--help-text);
    font-family: var(--help-font);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.help-related-card:hover {
    border-color: var(--help-border);
    background: var(--help-soft);
    transform: translateY(-1px);
}

.help-related-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.help-related-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.help-related-area {
    color: var(--help-muted);
    font-size: 11px;
}

/* ------------------------------------------------------------------ Small screens */

@media (max-width: 760px) {
    .help-drawer {
        width: 100vw;
        min-width: 0;
        border-left: 0;
    }

    .help-drawer-resizer {
        display: none;
    }

    .help-drawer-body {
        flex-direction: column;
    }

    .help-nav {
        flex: 0 0 auto;
        width: 100%;
        max-height: 55vh;
        border-right: 0;
        border-bottom: 1px solid var(--help-hairline);
    }

    .help-nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 14px 10px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--help-primary);
        font: 600 12.5px/1 var(--help-font);
        cursor: pointer;
    }

    .help-nav:not(.is-open) .help-nav-scroll {
        display: none;
    }

    .help-content {
        padding: 18px 16px 24px;
    }

    .help-drawer-header,
    .help-sheet-head {
        flex-wrap: wrap;
        padding: 12px 14px;
    }

    .help-chip-button span {
        display: none;
    }

    .help-chip-button {
        width: 32px;
        padding: 0;
        justify-content: center;
    }

    .help-points {
        margin-left: 0;
    }

    .e-dialog.help-sheet-dialog {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-drawer,
    .help-drawer-backdrop,
    .help-related-card {
        transition: none;
    }
}
