.desktop-workspace { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 540px; height: calc(100dvh - 112px); border: 1px solid var(--line); background: #fff; }
.desktop-workspace[hidden] { display: none; }
.desktop-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.desktop-header h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.desktop-header p { margin: 7px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.desktop-header a { color: var(--text); font-size: 12px; text-underline-offset: 3px; }
.desktop-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.desktop-toolbar .button { min-height: 35px; padding: 7px 12px; font-size: 12px; }
.desktop-status { color: var(--muted); font-size: 12px; margin-right: auto; }
.desktop-status[data-state=connected] { color: #39734b; }
.desktop-options { display: flex; align-items: center; gap: 16px; font-size: 12px; }
.desktop-options label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.desktop-notice { margin: 0; padding: 9px 20px; font-size: 12px; color: #805528; background: #fcf8ef; line-height: 1.6; }
.desktop-stage { position: relative; flex: 1; min-height: 280px; min-width: 0; overflow: hidden; background: #202322; }
.desktop-screen { position: absolute; inset: 0; overflow: auto; }
.desktop-screen canvas { outline: none; touch-action: none; }
.desktop-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; margin: 0; color: #c4cbc7; text-align: center; font-size: 14px; pointer-events: none; }
.desktop-placeholder[hidden] { display: none; }
.desktop-footer { padding: 10px 20px; border-top: 1px solid var(--line); background: #fafaf9; }
.desktop-footer > p { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.desktop-keys { display: flex; gap: 6px; flex-wrap: wrap; }
.desktop-keys button { min-width: 40px; min-height: 32px; padding: 5px 10px; font-family: inherit; font-size: 12px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.desktop-keys button:disabled { opacity: .45; cursor: default; }
.desktop-keys button[aria-pressed=true] { background: #e2e9e3; border-color: #77917c; }
.desktop-clipboard { margin-top: 10px; font-size: 12px; }
.desktop-clipboard summary { cursor: pointer; width: fit-content; }
.desktop-clipboard p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.desktop-clipboard textarea { display: block; width: 100%; resize: vertical; min-height: 70px; margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 12px; }
.desktop-clipboard .button { font-size: 12px; }
.desktop-workspace:fullscreen { width: 100%; height: 100dvh; min-height: 0; border: 0; }
@media (max-width: 640px) {
  .desktop-workspace { height: calc(100dvh - 90px); min-height: 530px; }
  .desktop-header { padding: 14px; }
  .desktop-header h2 { font-size: 18px; }
  .desktop-toolbar { padding: 10px 12px; gap: 8px; }
  .desktop-status { order: 5; width: 100%; }
  .desktop-options { gap: 10px; }
  .desktop-stage { min-height: 260px; }
  .desktop-footer { padding: 10px 12px; }
}
