/* VNC window — panel chrome (dots + title + panel__actions) over a black noVNC screen. */
.vnc-window-frame {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

/* Fills nearest positioned ancestor (app content shell / catalog demo host). */
.vnc-window-frame--fullscreen {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.panel--vnc {
  /* Remote desktop aspect — override via --vnc-aspect (e.g. 1280 / 1024). */
  --vnc-aspect: 16 / 9;
  flex: 0 1 100%;
  width: 100%;
  height: auto;
}

.panel--vnc > .panel__bar {
  flex: 0 0 var(--panel-bar-height-chrome);
  width: 100%;
  height: var(--panel-bar-height-chrome);
  min-height: var(--panel-bar-height-chrome);
}

.vnc-window__status-label {
  color: var(--window-control-info);
  font-size: var(--font-size-xs, 0.6875rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vnc-window--disconnecting .vnc-window__status-label {
  color: var(--connection-status-disconnecting);
}

.vnc-window--disconnected .vnc-window__status-label {
  color: var(--window-control-danger);
}

.vnc-window__screen {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: var(--vnc-aspect);
  min-height: 0;
  background: #000;
}

.vnc-window__screen-mount {
  width: 100%;
  height: 100%;
}

.vnc-window--connecting .vnc-window__session-control,
.vnc-window--disconnecting .vnc-window__session-control,
.vnc-window--disconnected .vnc-window__session-control {
  display: none;
}

.vnc-window--connected .vnc-window__status-label {
  display: none;
}

.vnc-window--fullscreen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vnc-window--fullscreen .vnc-window__screen {
  flex: 1 1 auto;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
