/* JS reveals the control only for the same small-screen condition as the skin
   policy, including phones with a wide virtual desktop viewport. */
#playmail-retention-notice:has(#playmail-display-controls) {
    flex-wrap: wrap;
    gap: 6px 12px;
}

#playmail-display-controls {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#playmail-display-controls.playmail-small-screen {
    display: inline-flex;
}

#playmail-view-switch {
    font: inherit;
    line-height: 1.3;
    border: 1px solid #826600;
    border-radius: 3px;
    padding: 4px 10px;
    min-height: 32px;
    background: #fff;
    color: #5f4800;
    cursor: pointer;
    white-space: nowrap;
}

#playmail-view-switch:focus-visible {
    outline: 2px solid #176772;
    outline-offset: 2px;
}

#playmail-view-status:not(:empty) {
    max-width: 32em;
    font-size: 12px;
}

@media print {
    #playmail-display-controls,
    #playmail-display-controls.playmail-small-screen {
        display: none;
    }
}
