.devices-view .rustdesk-device:has(>a[href]) {cursor:pointer}
.devices-view .rustdesk-device>a[href]::after {content:"";position:absolute;inset:0;border-radius:inherit}
.devices-view .rustdesk-device:has(>.phone-alternate) {grid-template-columns:46px minmax(0,1fr) auto auto}
.phone-alternate {position:relative;z-index:1;grid-area:1 / 4 / 3 / 5;color:var(--muted);background:transparent;border:0;border-radius:50%;width:36px;height:36px;cursor:pointer;font:700 18px/1 system-ui}
.phone-alternate:hover,.phone-alternate[aria-expanded="true"] {background:var(--surface-hover)}
.devices-view .device-gallery .device-card[data-alternate="closed"] {display:none}
html:lang(zh) .device-card[data-alternate="open"] .device-card__title strong::after {content:" · 无线 ADB";font-weight:500}
.phone-window {
  position:fixed;z-index:120;top:min(9dvh,64px);left:max(0px,calc(50vw - 181px));
  display:grid;grid-template-rows:32px minmax(0,1fr);width:min(362px,100vw);height:min(680px,88dvh);
  min-width:min(200px,100vw);min-height:min(170px,100dvh);max-width:100vw;max-height:100dvh;
  box-sizing:border-box;overflow:hidden;resize:both;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 12px 42px #0003;background:var(--bg-elevated);
}
.phone-window>header {display:flex;align-items:center;justify-content:space-between;padding:0 5px 0 12px;cursor:move;touch-action:none;user-select:none}
.phone-window>header strong {font-size:13px}
.phone-window>header button {background:transparent;color:var(--text);border:0;border-radius:6px;width:30px;height:30px;font:20px/1 system-ui;cursor:pointer}
.phone-window>iframe {display:block;width:100%;height:100%;min-width:0;min-height:0;border:0}
