/* Keep the product name visible as both the terminal and sample screens load. */
.monitor-screen {
  --workbench-title-size: clamp(28px, 2.7vw, 39px);
  --workbench-actions-size: 44px;
  display: flex;
  flex-direction: column;
}

.workbench-screen-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex: 0 0 var(--workbench-title-size);
  margin: 0;
  padding: 0 10px;
  background: #0d293f;
  color: #fff6df;
  border-bottom: 1px solid #c68a48;
  font: 700 clamp(12px, 1.18vw, 17px)/1.2 system-ui;
}

.monitor-screen .monitor-guide {
  flex: 1;
  height: auto;
  min-height: 0;
}

/* Leave the real entry link available while the terminal runs. */
.monitor-screen .monitor-controls {
  height: var(--workbench-actions-size);
}

.monitor-screen:not(.is-ready) .monitor-guide {
  opacity: 1;
  visibility: visible;
}

.monitor-screen:not(.is-ready) .viewer-image-scroll,
.monitor-screen:not(.is-ready) [data-viewer-caption],
.monitor-screen:not(.is-ready) .monitor-controls > :not(.workbench-direct) {
  visibility: hidden;
}

.monitor-screen .monitor-terminal {
  inset-block-start: var(--workbench-title-size);
  inset-block-end: var(--workbench-actions-size);
  padding-block: clamp(4px, 1.2vw, 18px);
  gap: .3em;
  overflow: hidden;
}

@media (max-width: 360px) {
  .monitor-screen .monitor-terminal {
    font-size: 11px;
  }
}

.monitor-controls .workbench-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  align-self: stretch;
  min-width: 44px;
  margin-inline-start: auto;
  padding-inline: 8px;
  background: #f1cd94;
  color: #0d293f;
  font: 700 11px/1.2 system-ui;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
}

.monitor-controls .workbench-direct:focus-visible {
  outline: 2px solid #0d293f;
  outline-offset: -3px;
}

.monitor-camera-active .office-wrap {
  overflow: clip;
}

.monitor-camera-active .office-scene {
  pointer-events: none;
}

.monitor-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0b1d2c;
  touch-action: none;
}

.office-immersive > main {
  position: relative;
}

.office-intro-explore:not([hidden]) {
  position: absolute;
  z-index: 10;
  inset-block-start: 12px;
  inset-inline-start: max(12px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 13px;
  border: 1px solid #c68a48;
  border-radius: 4px;
  background: #0d293f;
  color: #fff6df;
  font: 700 13px/1.3 system-ui, sans-serif;
  text-decoration: none;
}

.office-intro-explore:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.office-intro-explore:focus-visible {
  outline: 2px solid #fff6df;
  outline-offset: 2px;
}
