ul.treesy-download-badges {
    --store-gap: clamp(6px, 2vw, 12px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    place-items: center;
    gap: var(--store-gap);
    max-inline-size: 584px;
    margin: 0 auto 8px;
    padding-inline-start: 0;
    list-style: none;
    container-type: inline-size;
}

.treesy-store-option {
    display: grid;
    place-items: center;
    min-block-size: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.treesy-store-option:focus-visible { outline: 2px solid #24451e; outline-offset: 2px; }

.treesy-store-option img {
    display: block;
    inline-size: auto;
    max-inline-size: 100%;
    /* Three columns, each sized for the widest source badge (183:44). */
    block-size: min(44px, calc((100cqi - 2 * var(--store-gap)) / 12.5));
    object-fit: contain;
}

.treesy-download-notice {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(300px, calc(100% - 32px));
    margin: auto;
    padding: 18px;
    border: 1px solid #d5dece;
    border-radius: 12px;
    background: #fbfaf4;
    color: #273624;
    text-align: center;
}
.treesy-download-notice::backdrop { background: #0004; }
.treesy-download-notice p { margin: 0 0 12px; font-weight: 600; }
.treesy-download-notice button {
    min-height: 44px;
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: #4c7744;
    color: white;
    font: inherit;
    cursor: pointer;
}
