.app-help-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .15rem;
    min-width: 0;
}

.app-help-heading > :first-child { min-width: 0; }

.app-help[data-app-help] {
    display: block;
    position: relative;
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.app-help > .app-help-trigger {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--app-muted, #4c6567);
    cursor: pointer;
    list-style: none;
}

.app-help-trigger::-webkit-details-marker { display: none; }
.app-help-trigger::marker { content: ''; }

.app-help-trigger > span {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font: 700 12px/1 Georgia, serif;
}

.app-help > .app-help-trigger:hover,
.app-help[open] > .app-help-trigger {
    background: var(--app-soft, #eef4f3);
    color: var(--app-accent-strong, #00625d);
}

.app-help-trigger:focus-visible { outline: 2px solid var(--app-accent-strong, #00625d); outline-offset: 2px; }

.app-help > .app-help-panel {
    box-sizing: border-box;
    position: absolute;
    z-index: 20;
    inset: calc(100% + 6px) auto auto 0;
    width: min(22rem, calc(100vw - 24px));
    max-height: min(24rem, calc(100vh - 24px));
    overflow: auto;
    margin: 0;
    padding: .75rem .9rem;
    border: 1px solid var(--app-control-line, #b4c9c9);
    border-radius: 10px;
    background: var(--app-surface, #fff);
    box-shadow: 0 6px 22px rgb(19 47 75 / 16%);
    color: var(--app-ink, #132f4b);
    font: 400 .875rem/1.6 system-ui, sans-serif;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
}

.app-help[data-app-help-positioned] > .app-help-panel {
    position: fixed;
    z-index: 1000;
    inset: var(--app-help-top, 0px) auto auto var(--app-help-left, 0px);
}

.app-help .app-help-panel :is(p, ul, ol) { margin: 0; color: inherit; }
.app-help .app-help-panel > * + * { margin-block-start: .5rem; }

@media print {
    .app-help { display: none !important; }
}
