/* PXLTAB host-only adjustments. The copied V3 Editor layout remains unchanged. */
.app-shell {
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.topbar {
  display: none !important;
}

@media (max-width: 1500px) {
  .opacity-control,
  .brush-size-control,
  .toolbar-control-divider,
  .canvas-toolbar input[type="range"] {
    display: none;
  }
}

@media (max-width: 1200px) {
  .toolbar-mode {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto;
  }

  .editor-layout {
    min-height: 100dvh;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tool-group,
  .tool-button,
  .smart-tool-wrap {
    min-width: 0;
  }
}

#promptSystemButton,
#promptSystemView,
.prompt-system-view {
  display: none !important;
}

#generateButton {
  cursor: pointer;
}

#generateButton:disabled {
  cursor: not-allowed;
}

/* Single-line Editor menus keep labels and native chevrons centered within the
   control height. */
.inline-intent select {
  box-sizing: border-box;
  height: 32px;
  padding-block: 0;
  font-size: 10px;
  font-weight: 750;
  line-height: 30px;
  vertical-align: middle;
}

#expandCanvasControls .expand-canvas-custom[hidden] {
  display: none !important;
}

.inline-intent.is-required-missing {
  color: #d92338;
}

.inline-intent select[aria-invalid="true"] {
  border-color: #e23649;
  background: #fff6f7;
  box-shadow: 0 0 0 1px rgba(226, 54, 73, 0.12);
}

/* Intent uses the same controlled menu as User UI. The form remains the
   positioning boundary, while the menu overlays the canvas instead of
   increasing the callout height. */
.inline-comment-editor.pxds-menu-scope {
  overflow: visible;
}

.inline-comment-editor.pxds-menu-scope:has(.pxds-select.is-open) {
  z-index: 40;
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select {
  min-width: 0;
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-trigger {
  min-height: 32px;
  padding: 5px 9px;
  border-color: rgba(17, 24, 32, 0.2);
  color: #111820;
  background: #ffffff;
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
  letter-spacing: normal;
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-trigger.has-value {
  border-color: transparent;
  color: #ffffff;
  background: var(--pxds-brand-fill);
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-trigger[aria-invalid="true"] {
  border-color: #e23649;
  color: #111820;
  background: #fff6f7;
  box-shadow: 0 0 0 1px rgba(226, 54, 73, 0.12);
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-menu {
  right: 0;
  left: 0;
  z-index: 150;
  max-height: 230px;
  color: #111820;
  background: #ffffff;
  text-transform: none;
  letter-spacing: normal;
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-option {
  min-height: 36px;
  color: #111820;
  background: transparent;
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-option:is(:hover, :focus-visible) {
  background: #f0f2f5;
}

.inline-comment-editor.pxds-menu-scope .inline-intent .pxds-select-option.is-selected {
  border-color: #0b7657;
  color: #0b7657;
  background: #e8f5ef;
}

.inline-intent select[aria-invalid="true"]:focus {
  outline-color: rgba(226, 54, 73, 0.42);
}

/* Information toasts belong to the canvas, not the Generate action. Center
   them above the existing tool guidance while accounting for the rail and
   inspector columns. */
.toast-region {
  right: auto;
  bottom: 90px;
  left: calc(50% - 133px);
  justify-items: center;
  transform: translateX(-50%);
}

.toast {
  text-align: center;
}

@media (max-width: 1050px) {
  .toast-region {
    left: calc(50% - 118px);
  }
}

@media (max-width: 760px) {
  .toast-region {
    bottom: calc(22dvh + 54px);
    left: calc(50% + 27px);
    max-width: calc(100vw - 78px);
  }
}
