/* Scoped to the native client view; login and connection inventory are untouched. */
body.client .dh-client-tools { display: none; }
.dh-remote-toolbar {
    position: absolute; z-index: 110; top: 0; left: 50%;
    width: max-content; max-width: calc(100% - 16px);
    transform: translate(-50%, calc(-100% + 7px));
    transition: transform .15s ease;
    display: flex; flex-direction: column; align-items: center;
    font: 13px/1.4 system-ui, sans-serif;
}
.dh-remote-toolbar-actions {
    display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
    justify-content: center; background: #172d43; padding: 5px; border-radius: 0 0 6px 6px;
}
.dh-remote-toolbar.dh-tools-open,
.dh-remote-toolbar:has(button:focus-visible) { transform: translate(-50%, 0); }
@media (hover: hover) {
    .dh-remote-toolbar:hover { transform: translate(-50%, 0); }
}
.dh-remote-toolbar button {
    margin: 0; padding: 6px 10px; border: 1px solid #8c9daf; border-radius: 5px;
    background: #172d43; color: white; font: inherit; cursor: pointer;
}
.dh-remote-toolbar button:hover { background: #294965; }
.dh-remote-toolbar button:focus-visible { outline: 3px solid #f4c35b; outline-offset: 2px; }
.dh-remote-toolbar span { background: #172d43; color: white; border-radius: 4px; padding: 4px 8px; }
.dh-remote-toolbar .dh-remote-handle {
    padding: 0; margin: 0; width: 48px; height: 7px; min-height: 0;
    border: 0; border-radius: 0 0 5px 5px; background: #6f8495;
    opacity: .35;
}
.dh-remote-toolbar .dh-remote-handle span { display: none; }
.dh-remote-toolbar .dh-remote-handle:hover { opacity: 1; }
@media (hover: none) {
    .dh-remote-toolbar { transform: translate(-50%, calc(-100% + 18px)); }
    .dh-remote-toolbar .dh-remote-handle { height: 18px; }
    .dh-remote-toolbar.dh-tools-open,
    .dh-remote-toolbar:has(button:focus-visible) { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { .dh-remote-toolbar { transition: none; } }
#guac-menu .dh-remote-help { padding: 12px; margin: 0; font: 13px/1.5 system-ui, sans-serif; color: #253b50; background: #edf4fa; }
#guac-menu .dh-remote-menu-controls { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
#guac-menu .dh-remote-menu-controls button { margin: 0; }
@media (max-width: 540px) { .dh-remote-toolbar span { display: none; } }
