.ohc-guide {
    --ohcg-brand: #07576f;
    --ohcg-dark: #102c38;
    --ohcg-muted: #435c65;
    --ohcg-edge: 1rem;
    --ohcg-right: calc(var(--ohcg-edge) + env(safe-area-inset-right, 0px));
    --ohcg-bottom: calc(var(--ohcg-edge) + env(safe-area-inset-bottom, 0px));
    font-family: inherit;
}

.ohc-guide [hidden],
.ohc-guide__dialog:not([open]) {
    display: none !important;
}

.ohc-guide .ohc-guide__launcher {
    position: fixed;
    inset: auto var(--ohcg-right) var(--ohcg-bottom) auto;
    z-index: 9990;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    color: #fff;
    background: var(--ohcg-brand);
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 18px #102c383b;
    cursor: pointer;
    line-height: 1;
}

.ohc-guide__bubble {
    position: relative;
    width: 24px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 7px;
}

.ohc-guide__bubble::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    inset: 6px auto auto 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 6px 0 currentColor, 12px 0 currentColor;
}

.ohc-guide__bubble::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 5px;
    inset: auto auto -5px 4px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 0 0 0 2px;
    background: var(--ohcg-brand);
    transform: skewY(-32deg);
}

.ohc-guide .ohc-guide__dialog {
    box-sizing: border-box;
    position: fixed;
    inset: auto var(--ohcg-right) var(--ohcg-bottom) auto;
    z-index: 9991;
    width: min(25rem, calc(100vw - 2 * var(--ohcg-edge) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-width: none;
    max-height: min(36rem, calc(100vh - var(--ohcg-bottom) - var(--ohcg-edge)));
    max-height: min(36rem, calc(100dvh - var(--ohcg-bottom) - var(--ohcg-edge)));
    margin: 0;
    padding: 0;
    color: var(--ohcg-dark);
    background: #fff;
    border: 1px solid #b5cbd3;
    border-radius: 1rem;
    box-shadow: 0 10px 44px #102c3847;
    overflow: hidden;
}

.ohc-guide__dialog[open] {
    display: flex;
    flex-direction: column;
}

.ohc-guide__dialog::backdrop {
    background: rgb(16 44 56 / 20%);
}

.ohc-guide__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .7rem .55rem 1rem;
    color: #fff;
    background: var(--ohcg-brand);
}

.ohc-guide .ohc-guide__header h2 {
    margin: 0;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1.35;
}

.ohc-guide__controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .15rem;
}

.ohc-guide .ohc-guide__close,
.ohc-guide .ohc-guide__sound,
.ohc-guide .ohc-guide__back {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: .25rem .65rem;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: .45rem;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
}

.ohc-guide .ohc-guide__close {
    min-width: 44px;
    font-size: 1.6rem;
}

.ohc-guide .ohc-guide__sound {
    min-width: 44px;
    border: 1px solid #ffffff92;
    font-size: .8rem;
    font-weight: 600;
}

.ohc-guide .ohc-guide__sound[aria-pressed='false'] {
    text-decoration: line-through;
}

.ohc-guide .ohc-guide__back {
    margin: 0 0 .25rem -.4rem;
    color: var(--ohcg-brand);
    text-decoration: underline;
}

.ohc-guide__content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .95rem 1rem 1rem;
}

.ohc-guide .ohc-guide__heading {
    margin: 0 0 .75rem;
    color: var(--ohcg-dark);
    font-size: 1.05rem;
    line-height: 1.4;
}

.ohc-guide .ohc-guide__intro {
    margin: 0 0 .8rem;
    color: var(--ohcg-muted);
    line-height: 1.5;
}

.ohc-guide .ohc-guide__speech-status {
    margin: 0 0 .8rem;
    font-size: .85rem;
    line-height: 1.45;
    color: var(--ohcg-muted);
}

.ohc-guide .ohc-guide__options {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .5rem;
}

.ohc-guide .ohc-guide__options li { margin: 0; }

.ohc-guide .ohc-guide__option {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .62rem .8rem;
    color: var(--ohcg-brand);
    background: #eef7fa;
    border: 1px solid #abccd7;
    border-radius: .55rem;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ohc-guide .ohc-guide__option:hover {
    color: var(--ohcg-dark);
    background: #daeef4;
}

.ohc-guide button:focus-visible,
.ohc-guide a:focus-visible {
    outline: 2px solid var(--ohcg-brand);
    outline-offset: 2px;
}

.ohc-guide .ohc-guide__launcher:focus-visible,
.ohc-guide .ohc-guide__sound:focus-visible,
.ohc-guide .ohc-guide__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
