.lx-context-help-trigger {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    color: #075bd8;
    display: inline-flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    margin: -8px 0 -8px 4px;
    padding: 0;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
    touch-action: manipulation;
    vertical-align: middle;
    width: 36px;
}

.lx-context-help-trigger:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    box-shadow: 0 3px 8px rgba(7, 91, 216, .16);
    color: #0049b7;
    transform: translateY(-1px);
}

.lx-context-help-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .22);
    color: #075bd8;
    outline: 0;
}

.lx-context-help-trigger i { font-size: 1rem; }

.lx-context-help-modal { z-index: 2080; }
.lx-context-help-backdrop { z-index: 2070; }
.lx-context-help-modal .modal-dialog { max-width: 980px; }
.lx-context-help-modal .modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 26px 80px rgba(15, 23, 42, .26);
    max-height: min(92dvh, 900px);
    overflow: hidden;
}

.lx-context-help-modal .modal-header {
    align-items: flex-start;
    background: linear-gradient(125deg, #f7fbff 0%, #eef4ff 58%, #f7f5ff 100%);
    border-bottom: 1px solid #dbe6f4;
    gap: 14px;
    padding: 20px 22px;
}

.lx-context-help-heading { display: flex; gap: 13px; min-width: 0; }
.lx-context-help-icon {
    align-items: center;
    background: #0b62df;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(11, 98, 223, .2);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.lx-context-help-eyebrow {
    color: #075bd8;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.lx-context-help-modal .modal-title {
    color: #122033;
    font-size: 1.22rem;
    font-weight: 760;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.lx-context-help-summary {
    color: #5d6b7e;
    font-size: .86rem;
    line-height: 1.55;
    margin: 5px 0 0;
    max-width: 760px;
}

.lx-context-help-modal .modal-body {
    background: #f8fafc;
    overscroll-behavior: contain;
    padding: 20px 22px 24px;
}

.lx-context-help-flow {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(var(--lx-help-flow-count, 4), minmax(0, 1fr));
    margin-bottom: 16px;
    overflow: hidden;
}

.lx-context-help-flow-step {
    align-items: center;
    color: #334155;
    display: flex;
    font-size: .76rem;
    font-weight: 700;
    gap: 8px;
    min-height: 62px;
    padding: 12px 10px;
    position: relative;
}

.lx-context-help-flow-step:not(:last-child)::after {
    border-right: 1px solid #dbe4ee;
    bottom: 12px;
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
}

.lx-context-help-flow-number {
    align-items: center;
    background: #e7f0ff;
    border-radius: 999px;
    color: #075bd8;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .72rem;
    height: 27px;
    justify-content: center;
    width: 27px;
}

.lx-context-help-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.38fr) minmax(260px, .82fr);
}

.lx-context-help-panel {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    min-width: 0;
    padding: 16px;
}

.lx-context-help-panel + .lx-context-help-panel { margin-top: 14px; }
.lx-context-help-panel-title {
    align-items: center;
    color: #1f2b3d;
    display: flex;
    font-size: .9rem;
    font-weight: 760;
    gap: 8px;
    margin: 0 0 12px;
}
.lx-context-help-panel-title i { color: #0b62df; }

.lx-context-help-steps,
.lx-context-help-list { list-style: none; margin: 0; padding: 0; }
.lx-context-help-steps { counter-reset: lx-help-step; }
.lx-context-help-steps li {
    color: #425166;
    counter-increment: lx-help-step;
    display: grid;
    font-size: .83rem;
    gap: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
    line-height: 1.5;
    padding: 0 0 12px;
}
.lx-context-help-steps li:last-child { padding-bottom: 0; }
.lx-context-help-steps li::before {
    align-items: center;
    background: #edf4ff;
    border-radius: 8px;
    color: #075bd8;
    content: counter(lx-help-step);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.lx-context-help-list li {
    color: #4b596c;
    display: grid;
    font-size: .8rem;
    gap: 8px;
    grid-template-columns: 17px minmax(0, 1fr);
    line-height: 1.45;
    margin-bottom: 8px;
}
.lx-context-help-list li:last-child { margin-bottom: 0; }
.lx-context-help-list i { color: #16a164; margin-top: 2px; }
.lx-context-help-list.is-mistakes i { color: #d97706; }

.lx-context-help-notice {
    align-items: flex-start;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e3a5f;
    display: flex;
    font-size: .8rem;
    gap: 9px;
    line-height: 1.45;
    margin-top: 14px;
    padding: 11px 12px;
}
.lx-context-help-notice.is-info { background: #eff7ff; border-color: #bfdbfe; }
.lx-context-help-notice.is-warning { background: #fff8e7; border-color: #f5d58a; color: #704b08; }
.lx-context-help-notice.is-danger { background: #fff1f2; border-color: #fecdd3; color: #8f1d2c; }

.lx-context-help-decisions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}
.lx-context-help-decision {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    min-width: 0;
    padding: 13px;
}
.lx-context-help-decision i { color: #075bd8; font-size: 1.05rem; }
.lx-context-help-decision strong { color: #203047; display: block; font-size: .8rem; margin: 7px 0 4px; }
.lx-context-help-decision span { color: #5f6d80; display: block; font-size: .74rem; line-height: 1.4; }

.lx-context-help-media {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}
.lx-context-help-media.is-single { grid-template-columns: minmax(0, 1fr); }
.lx-context-help-media.is-double { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-context-help-media a {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    color: #334155;
    display: block;
    overflow: hidden;
    text-decoration: none;
}
.lx-context-help-media a:focus-visible,
.lx-context-help-source:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .22);
    outline: 0;
}
.lx-context-help-media-frame {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #edf2f7;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.lx-context-help-media img { height: 100%; object-fit: contain; width: 100%; }
.lx-context-help-media span { display: block; font-size: .72rem; line-height: 1.35; padding: 9px 10px; }

.lx-context-help-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-context-help-source {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e3ef;
    border-radius: 999px;
    color: #075bd8;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 650;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    text-decoration: none;
}
.lx-context-help-source:hover { background: #edf5ff; color: #064db7; }

.lx-context-help-modal .modal-footer {
    background: #fff;
    border-top: 1px solid #e5eaf1;
    gap: 8px;
    justify-content: space-between;
    padding: 12px 18px;
}
.lx-context-help-footer-meta { color: #7b8798; font-size: .7rem; }
.lx-context-help-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

@media (max-width: 767.98px) {
    .lx-context-help-trigger { height: 44px; margin: -10px 0 -10px 2px; width: 44px; }
    .lx-context-help-modal .modal-content { border-radius: 0; max-height: 100dvh; }
    .lx-context-help-modal .modal-header { padding: 16px; }
    .lx-context-help-modal .modal-body { padding: 14px; }
    .lx-context-help-grid { grid-template-columns: 1fr; }
    .lx-context-help-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lx-context-help-flow-step:nth-child(odd)::after { border-right: 1px solid #dbe4ee; }
    .lx-context-help-flow-step:nth-child(even)::after { display: none; }
    .lx-context-help-decisions,
    .lx-context-help-media { grid-template-columns: 1fr; }
    .lx-context-help-media a { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
    .lx-context-help-media-frame { aspect-ratio: 4 / 3; }
    .lx-context-help-media.is-single a { display: block; }
    .lx-context-help-media.is-single .lx-context-help-media-frame { aspect-ratio: 16 / 9; }
    .lx-context-help-modal .modal-footer { align-items: stretch; flex-direction: column; }
    .lx-context-help-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .lx-context-help-actions .btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .lx-context-help-trigger { transition: none; }
}
