.help-hint { display: inline-flex; align-items: center; }
.help-hint-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--rz-base-300, var(--bs-border-color, #ced4da));
    background: var(--rz-base-100, var(--bs-body-bg, #fff));
    color: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}
.help-hint-btn:focus-visible {
    outline: 2px solid #3d5afe;
    outline-offset: 2px;
}
.help-hint-dock .help-hint-btn {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255,255,255,.16);
    color: #fff;
    border-color: rgba(255,255,255,.4);
}
.help-hint-fab {
    position: fixed;
    right: calc(.85rem + env(safe-area-inset-right));
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    z-index: 1045;
}
.help-hint-fab .help-hint-btn {
    width: 2.75rem;
    height: 2.75rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    background: var(--rz-primary, #3d5afe);
    color: #fff;
    border-color: transparent;
}
@media (min-width: 768px) {
    .help-hint-fab { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}
.help-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1085;
    background: rgba(15, 23, 42, .45);
}
.help-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1086;
    max-height: min(82vh, 40rem);
    overflow-y: auto;
    background: var(--rz-base-100, var(--bs-body-bg, #fff));
    color: var(--rz-text-color, var(--bs-body-color, #212529));
    border-radius: 1rem 1rem 0 0;
    padding: 1rem 1rem calc(1.1rem + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 40px rgba(0,0,0,.22);
}
.help-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}
.help-sheet-kicker {
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color, #6c757d);
}
.help-sheet-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}
.help-sheet-close {
    min-height: 2.5rem;
    padding: .35rem .7rem;
    border-radius: .65rem;
    border: 1px solid var(--rz-base-300, #ced4da);
    background: transparent;
    color: inherit;
    font-weight: 600;
}
.help-sheet-summary { margin: .35rem 0 .75rem; }
.help-sheet-points {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}
.help-sheet-points li + li { margin-top: .45rem; }
.help-sheet-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .85rem;
}
.help-sheet-link,
.help-sheet-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: .4rem .75rem;
    border-radius: .65rem;
    text-decoration: none;
    font-weight: 600;
}
.help-sheet-link {
    border: 1px solid var(--rz-base-300, #ced4da);
    color: inherit;
}
.help-sheet-all { color: #3d5afe; padding-left: 0; }

.help-hub { max-width: 52rem; }
.help-hub-lead {
    color: var(--rz-text-secondary-color, #6c757d);
    margin-bottom: 1rem;
}
.help-role-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1rem;
}
.help-role-tab {
    text-align: left;
    border: 1px solid var(--rz-base-300, #dee2e6);
    background: var(--rz-base-100, #fff);
    color: inherit;
    border-radius: .85rem;
    padding: .7rem .8rem;
    min-height: 3.4rem;
}
.help-role-tab.is-active {
    border-color: #3d5afe;
    box-shadow: 0 0 0 2px rgba(61, 90, 254, .18);
}
.help-role-name { display: block; font-weight: 700; }
.help-role-audience {
    display: block;
    font-size: .78rem;
    color: var(--rz-text-secondary-color, #6c757d);
}
.help-flow-card,
.help-topic-card {
    border: 1px solid var(--rz-base-300, #dee2e6);
    border-radius: .9rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--rz-base-100, #fff);
}
.help-flow-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 .35rem; }
.help-flow-steps { list-style: none; margin: 0; padding: 0; }
.help-flow-steps li + li { margin-top: .5rem; }
.help-flow-step {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .75rem;
    border-radius: .75rem;
    border: 1px solid var(--rz-base-300, #dee2e6);
    color: inherit;
    text-decoration: none;
    min-height: 2.75rem;
}
.help-topic-index h2 { font-size: 1.05rem; font-weight: 700; }
.help-topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}
.help-topic-tile {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem .8rem;
    border-radius: .85rem;
    border: 1px solid var(--rz-base-300, #dee2e6);
    color: inherit;
    text-decoration: none;
    background: var(--rz-base-100, #fff);
}
.help-topic-tile.is-active { border-color: #3d5afe; }
.help-topic-tile span {
    font-size: .86rem;
    color: var(--rz-text-secondary-color, #6c757d);
}

.scan-shell { position: relative; }
.scan-help {
    position: absolute;
    top: calc(.65rem + env(safe-area-inset-top));
    right: calc(.7rem + env(safe-area-inset-right));
    z-index: 21;
    pointer-events: auto;
}

.tech-top-help {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .help-sheet {
        left: auto;
        right: 1rem;
        bottom: 1rem;
        width: min(26rem, calc(100vw - 2rem));
        border-radius: 1rem;
        max-height: min(78vh, 38rem);
    }
    .help-role-tabs { grid-template-columns: repeat(4, 1fr); }
    .help-topic-grid { grid-template-columns: 1fr 1fr; }
}
