.context-help-backdrop {
    position: fixed;
    z-index: 4990;
    inset: 0;
    visibility: hidden;
    background: rgba(15, 35, 62, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, background-color 180ms ease, visibility 180ms ease;
}

.context-help-backdrop.is-open {
    visibility: visible;
    background: rgba(15, 35, 62, .14);
    opacity: 1;
    pointer-events: auto;
}

.context-help-panel {
    position: fixed;
    z-index: 5000;
    box-sizing: border-box;
    top: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: clamp(380px, 31vw, 440px);
    max-width: calc(100vw - 24px);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    visibility: hidden;
    border: 1px solid rgba(0, 91, 89, .2);
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: -12px 0 36px rgba(16, 44, 66, .2), 0 12px 32px rgba(16, 44, 66, .15);
    color: var(--ct-ink, #23374d);
    font-family: 'Albert Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.48;
    opacity: 0;
    outline: none;
    transform: translateX(calc(100% + 24px));
    transition: transform 220ms ease, opacity 180ms ease, visibility 220ms ease;
    user-select: text;
}

.context-help-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.context-help__header {
    position: relative;
    display: grid;
    min-height: 66px;
    padding: 14px 58px;
    grid-template-columns: 1fr;
    align-items: center;
    border-bottom: 1px solid #dce8e6;
    background: #fff;
}

.context-help__header h2 {
    margin: 0;
    color: #007f7c;
    font-size: 1.12rem;
    font-weight: 820;
    line-height: 1.25;
    text-align: center;
}

.context-help__back,
.context-help__close {
    position: absolute;
    top: 50%;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #34465f;
    font: inherit;
    cursor: pointer;
    transform: translateY(-50%);
}

.context-help__back { left: 12px; }
.context-help__close { right: 12px; font-size: 1.8rem; line-height: 1; }
.context-help__back[hidden] { display: none; }

.context-help__back:hover,
.context-help__close:hover {
    border-color: #cfe2df;
    background: #edf8f6;
    color: #007f7c;
}

.context-help__back:focus-visible,
.context-help__close:focus-visible,
.context-help-panel button:focus-visible,
.context-help-panel a:focus-visible,
.context-help-panel iframe:focus-visible {
    outline: 3px solid rgba(0, 134, 205, .34);
    outline-offset: 2px;
}

.context-help__body {
    min-height: 0;
    padding: 22px 22px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.context-help__loading {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #5b6a7c;
}

.context-help__spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 177, 173, .2);
    border-top-color: var(--ct-brand-teal, #00b1ad);
    border-radius: 50%;
    animation: context-help-spin 800ms linear infinite;
}

@keyframes context-help-spin { to { transform: rotate(360deg); } }

.context-help__identity {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    padding: 18px;
    border: 1px solid #cfe4e1;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4fbfa, #edf8f6);
}

.context-help__activity-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    color: #008f8c;
    box-shadow: 0 3px 10px rgba(31, 74, 82, .1);
}

.context-help__activity-icon svg {
    width: 39px;
    height: 39px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.context-help__identity h3 {
    margin: 0 0 6px;
    color: #172451;
    font-size: 1.28rem;
    font-weight: 820;
    line-height: 1.2;
}

.context-help__identity .context-help__about-label {
    margin: 0 0 4px;
    color: #47666c;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.context-help__identity p {
    margin: 8px 0 0;
    color: #46596d;
    font-size: .88rem;
    line-height: 1.5;
}

.context-help__mode {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dff3f1;
    color: #007c79;
    font-size: .68rem;
    font-weight: 800;
}

.context-help__mode--child {
    background: #eee8f8;
    color: #694b9f;
}

.context-help__section {
    margin-top: 26px;
}

.context-help__section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: #172451;
    font-size: 1rem;
    font-weight: 820;
    line-height: 1.3;
}

.context-help__about-copy {
    margin: 0;
    color: #3d5067;
    font-size: .88rem;
    line-height: 1.58;
}

.context-help__highlight-note {
    padding: 2px 4px;
    border-radius: 5px;
    background: #dff3f1;
    color: #076966;
    font-weight: 820;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.context-help__callout {
    padding: 15px 16px;
    border: 1px solid #c8e5e2;
    border-left: 4px solid #00a7a3;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf9f7, #f8fbf5);
}

.context-help__callout .context-help__section-heading {
    margin-bottom: 8px;
    color: #075f61;
}

.context-help__callout-copy {
    margin: 0;
    color: #3d5067;
    font-size: .86rem;
    line-height: 1.55;
}

.context-help__detail-list {
    overflow: hidden;
    border: 1px solid #dce8e6;
    border-radius: 12px;
    background: #fff;
}

.context-help__detail-item {
    padding: 10px 12px;
}

.context-help__detail-item + .context-help__detail-item {
    border-top: 1px solid #e5edec;
}

.context-help__detail-item h4 {
    margin: 0 0 3px;
    color: #233b52;
    font-size: .82rem;
    font-weight: 820;
    line-height: 1.35;
}

.context-help__detail-item p {
    margin: 0;
    color: #526478;
    font-size: .8rem;
    line-height: 1.45;
}

.context-help__examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.context-help__example {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dce8e6;
    border-radius: 11px;
    background: #f8fbfa;
}

.context-help__example h4 {
    margin: 0 0 4px;
    color: #172451;
    font-size: .78rem;
    font-weight: 820;
    line-height: 1.3;
}

.context-help__example p {
    margin: 0;
    color: #526478;
    font-size: .78rem;
    line-height: 1.4;
}

.context-help__section-icon,
.context-help__tip-icon,
.context-help__video-icon,
.context-help__related-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #008f8c;
}

.context-help__section-icon svg,
.context-help__tip-icon svg,
.context-help__video-icon svg,
.context-help__related-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.context-help__steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: context-help-step;
}

.context-help__steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    color: #34465f;
    font-size: .88rem;
    counter-increment: context-help-step;
}

.context-help__step-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00a7a3;
    color: #fff;
    font-size: .76rem;
    font-weight: 850;
}

.context-help__step-number::before { content: counter(context-help-step); }

.context-help__tips {
    display: grid;
    gap: 10px;
}

.context-help__tip-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #eadfbd;
    border-radius: 12px;
    background: #fff9e9;
}

.context-help__tip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #ffedb9;
    color: #926b00;
}

.context-help__tip-card p,
.context-help__why p {
    margin: 0;
    color: #3d5067;
    font-size: .86rem;
    line-height: 1.52;
}

.context-help__why {
    padding: 15px 16px;
    border-left: 4px solid #00a7a3;
    border-radius: 0 12px 12px 0;
    background: #f1f8f7;
}

.context-help__why .context-help__section-heading { margin-bottom: 8px; }

.context-help__video-button {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1.5px solid #e73352;
    border-radius: 10px;
    background: #fff;
    color: #c62643;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
}

.context-help__video-button:hover { background: #fff1f3; }
.context-help__video-icon { color: currentColor; }

.context-help__video-frame {
    margin-top: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #172451;
}

.context-help__video-frame[hidden] { display: none; }
.context-help__video-frame iframe { width: 100%; height: 100%; border: 0; }

.context-help__related-list {
    display: grid;
    gap: 8px;
}

.context-help__related-link {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid #dcd4ec;
    border-radius: 10px;
    background: #f8f5fc;
    color: #62468f;
    font: inherit;
    font-size: .84rem;
    font-weight: 780;
    text-align: left;
    cursor: pointer;
}

.context-help__related-link:hover {
    border-color: #aa95ce;
    background: #f0eaf8;
}

.context-help__related-icon { color: #7656a8; }

@media (max-width: 600px) {
    .context-help-panel {
        top: 6px;
        right: 6px;
        bottom: 6px;
        width: calc(100vw - 12px);
        max-width: none;
        border-radius: 16px;
    }

    .context-help__body { padding: 18px 16px 26px; }
    .context-help__identity { padding: 15px; }
}

@media (max-width: 380px) {
    .context-help__examples-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .context-help-backdrop,
    .context-help-panel { transition: none; }
    .context-help__spinner { animation-duration: 1600ms; }
}
