.contextual-help-launcher {
    align-items: center;
    background: #f1f8f6;
    border: 1px solid #c7dfd8;
    border-radius: 14px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 18px;
    padding: 14px 16px;
}
.contextual-help-launcher > div { display: grid; gap: 2px; }
.contextual-help-launcher .eyebrow { margin: 0; }
.contextual-help-dialog {
    background: transparent;
    border: 0;
    color: inherit;
    height: auto;
    margin: auto;
    max-height: min(88vh, 900px);
    max-width: min(720px, calc(100vw - 32px));
    padding: 0;
    width: 100%;
}
.contextual-help-dialog::backdrop { background: rgba(7, 37, 32, .62); }
.contextual-help-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(2, 31, 27, .28);
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 900px);
    overflow: hidden;
}
.contextual-help-card > header {
    align-items: flex-start;
    background: linear-gradient(135deg, #edf8f5, #fff);
    border-bottom: 1px solid #dce9e5;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 24px 26px 20px;
}
.contextual-help-card header h2 { margin: 4px 0 8px; }
.contextual-help-card header p:last-child { margin: 0; }
.contextual-help-close {
    align-items: center;
    background: #fff;
    border: 1px solid #cedbd7;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}
.contextual-help-body { overflow-y: auto; padding: 22px 26px; }
.contextual-help-body section + section { margin-top: 24px; }
.contextual-help-body h3 { font-size: 1rem; margin: 0 0 10px; }
.contextual-help-body ul { margin: 0; padding-left: 22px; }
.contextual-help-body li + li { margin-top: 7px; }
.contextual-help-steps { counter-reset: contextual-help-step; list-style: none; margin: 0; padding: 0; }
.contextual-help-steps li {
    align-items: flex-start;
    counter-increment: contextual-help-step;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
}
.contextual-help-steps li::before {
    align-items: center;
    background: #087565;
    border-radius: 50%;
    color: #fff;
    content: counter(contextual-help-step);
    display: flex;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}
.contextual-help-result,
.contextual-help-tips { border-radius: 12px; padding: 16px 18px; }
.contextual-help-result { background: #edf8f5; border-left: 4px solid #087565; }
.contextual-help-tips { background: #fff8e7; border-left: 4px solid #b77a00; }
.contextual-help-result p { margin: 0; }
.contextual-help-card > footer {
    border-top: 1px solid #e1e8e6;
    display: flex;
    justify-content: flex-end;
    padding: 16px 26px;
}
@media (max-width: 640px) {
    .contextual-help-launcher { align-items: stretch; flex-direction: column; gap: 12px; }
    .contextual-help-launcher .button { justify-content: center; width: 100%; }
    .contextual-help-dialog { max-height: calc(100dvh - 20px); max-width: calc(100vw - 20px); }
    .contextual-help-card { max-height: calc(100dvh - 20px); }
    .contextual-help-card > header { padding: 20px 18px 16px; }
    .contextual-help-body { padding: 18px; }
    .contextual-help-card > footer { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .contextual-help-dialog { scroll-behavior: auto; }
}
