/* Shared icon controls; accessible names and permission reasons remain textual. */
.peer-control-label{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#remote-workspace{position:relative;min-width:0}
#remote-workspace .remote-layout{display:block;position:relative}
#remote-workspace .desktop-area{position:relative;min-width:0}
#remote-workspace .desktop-screen{display:flex;align-items:center;justify-content:center;height:clamp(240px,65dvh,880px);min-height:0;border-radius:12px;isolation:isolate}
/* Intrinsic image geometry also defines annotation and remote input coordinates. */
#remote-workspace .desktop-screen img{display:block;width:auto;height:auto;max-width:100%;max-height:100%}
#remote-workspace .remote-tools{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:4px;width:max-content;max-width:calc(100% - 16px);margin:0;padding:6px;border:1px solid #d4e0eacc;border-radius:13px;background:#fffffff5;color:#294a63;box-shadow:0 4px 20px #07192926;backdrop-filter:blur(14px)}
#remote-tool-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0}
#remote-workspace .remote-tools button{position:relative;display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;line-height:1;transition:background .12s,color .12s}
#remote-workspace .remote-tools button svg{width:18px;height:18px;pointer-events:none}
#remote-workspace .remote-tools button:not(:disabled):hover{background:#e9f1f8}
#remote-workspace .remote-tools button[aria-pressed=true],#remote-workspace .remote-tools button[aria-expanded=true]:not(#remote-tools-toggle){background:#dcecff;color:#1266bd;border-color:#c4ddf6}
#remote-workspace .remote-tools button:focus-visible{outline:2px solid #367fca;outline-offset:2px}
#remote-workspace .remote-tools button:disabled{opacity:.36;cursor:not-allowed}
#remote-workspace .remote-tools button.danger{color:#c23f50}
#remote-workspace .remote-tools button.danger:not(:disabled):hover{background:#ffe8eb;color:#a52235}
.remote-tool-divider{width:1px;height:18px;margin:0 2px;background:#cddae4;flex:none}
#remote-workspace.tools-collapsed #remote-tool-actions{display:none}
#remote-controller-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(280px,calc(100vw - 32px));padding:14px;border:1px solid #d9e4ee;border-radius:12px;background:#fff;color:#294a63;box-shadow:0 8px 28px #07192930;text-align:left}
#remote-controller-panel[hidden],#remote-toolbar-tooltip[hidden]{display:none}
#remote-controller-panel label{display:flex;flex-direction:column;align-items:stretch;gap:8px;font-size:12px;font-weight:600;color:#294a63}
#remote-controller-panel .edge-select{margin:0}
#remote-controller-panel button.edge-select-trigger{display:flex;width:100%;height:auto;min-height:38px;padding:8px 11px;border:1px solid #d7e1e9;border-radius:7px;background:#fff;color:#294a63;font-size:12px;text-align:left}
#remote-toolbar-tooltip{position:absolute;top:calc(100% + 9px);transform:translateX(-50%);z-index:9;width:max-content;max-width:min(210px,calc(100vw - 24px));padding:7px 10px;border:1px solid #2e4659;border-radius:7px;background:#122b40;color:#fff;font-size:11px;font-weight:500;line-height:1.5;text-align:center;pointer-events:none;box-shadow:0 3px 10px #0002}
#remote-workspace .collaboration{display:none;position:absolute;right:12px;top:70px;bottom:16px;z-index:4;width:min(340px,calc(100% - 24px));padding:18px;border:1px solid #d9e4ee;border-radius:12px;overflow:auto;background:#fff;color:#17364d;box-shadow:0 8px 28px #07192926}
#remote-workspace.collaboration-open .collaboration{display:block}
#remote-workspace .collaboration>h3{padding-right:30px}
#remote-collaboration-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:0;background:transparent}
#remote-collaboration-close svg,#remote-chat-send svg{width:17px;height:17px;pointer-events:none}
#remote-chat-send{display:grid;place-items:center;width:38px;min-width:38px;padding:0;align-self:end}
#remote-workspace.is-expanded{position:fixed;inset:0;width:100%;height:100dvh;padding:0;background:#0a1620;color:#fff;z-index:1;overflow:hidden}
#remote-workspace.is-expanded>header{display:none}
#remote-workspace.is-expanded .remote-layout,#remote-workspace.is-expanded .desktop-area{height:100%;padding:0}
#remote-workspace.is-expanded .desktop-area>.hint{display:none}
#remote-workspace.is-expanded .desktop-screen{width:100%;height:100%;border:0;border-radius:0}
#remote-workspace.is-expanded .remote-tools{border-color:#ffffff26;background:#142e45f2;color:#eef6ff;box-shadow:0 4px 24px #0005}
#remote-workspace.is-expanded .remote-tools button:not(:disabled):hover{background:#ffffff1a}
#remote-workspace.is-expanded .remote-tools button[aria-pressed=true],#remote-workspace.is-expanded .remote-tools button[aria-expanded=true]:not(#remote-tools-toggle){background:#2d6091;color:#fff;border-color:#a7ceff44}
#remote-workspace.is-expanded .remote-tools button:focus-visible{outline-color:#9bcaff}
#remote-workspace.is-expanded .remote-tools button.danger{color:#ffacb8}
#remote-workspace.is-expanded .remote-tools button.danger:not(:disabled):hover{background:#8d3544aa;color:#fff}
#remote-workspace.is-expanded .remote-tool-divider{background:#ffffff2b}
#remote-workspace.is-expanded #remote-error:not(:empty){position:absolute;bottom:8px;left:12px;z-index:5;max-width:calc(100% - 24px);padding:8px;border-radius:6px;background:#fff}
@media(max-width:480px){
  #remote-workspace .remote-tools{top:8px;padding:5px;gap:3px;border-radius:11px}
  #remote-tool-actions{gap:3px}
  #remote-workspace .remote-tools button{flex-basis:32px;width:32px;height:34px;min-width:32px;min-height:34px}
  #remote-workspace .remote-tools button svg{width:17px;height:17px}
  .remote-tool-divider{margin:0 1px}
  #remote-workspace .collaboration{top:62px;bottom:10px}
}
@media(max-width:350px){#remote-workspace .remote-tools button{flex-basis:28px;width:28px;min-width:28px}#remote-tool-actions{gap:2px}#remote-workspace .remote-tools{gap:2px;padding:4px}}
@media(prefers-reduced-motion:reduce){#remote-workspace .remote-tools button{transition:none}}
@media(forced-colors:active){#remote-workspace .remote-tools,#remote-controller-panel,#remote-toolbar-tooltip{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}#remote-workspace .remote-tools button{color:ButtonText}#remote-workspace .remote-tools button:focus-visible{outline-color:Highlight}.remote-tool-divider{background:CanvasText}}
