/* Local preview extension: preserve the original modal panel and typography. */
#modal.oms-preview-window-host {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
  align-items: flex-start !important;
  box-sizing: border-box;
  padding-top: var(--oms-preview-window-top, 110px) !important;
  padding-bottom: var(--oms-preview-window-bottom, 12px) !important;
}
#modal.oms-preview-window-host.hidden,
#modal.oms-preview-window-host.oms-preview-minimized {
  display: none !important;
}
#modal.oms-preview-window-host > .modal-panel {
  pointer-events: auto;
  max-height: var(--oms-preview-window-height, calc(100vh - 122px)) !important;
  min-height: min(220px, var(--oms-preview-window-height, calc(100vh - 122px))) !important;
  box-shadow: 0 14px 44px rgba(19, 43, 47, .24);
}
#modal.oms-preview-window-host > .modal-panel > header {
  cursor: move;
  touch-action: none;
}
#modal.oms-preview-window-host > .modal-panel > header button {
  cursor: pointer;
  touch-action: manipulation;
}
.oms-preview-window-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.oms-preview-return-window {
  font-size: 12px;
  white-space: nowrap;
}
#omsPreviewRestoreWindow {
  position: fixed;
  left: 18px;
  bottom: 14px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(400px, calc(100vw - 36px));
  padding: 9px 13px;
  color: var(--ink, #16262b);
  background: var(--paper, #fff);
  border: 1px solid var(--brand, #155d55);
  border-radius: 9px;
  box-shadow: 0 5px 20px rgba(19, 43, 47, .16);
  cursor: pointer;
}
#omsPreviewRestoreWindow.hidden { display: none !important; }
#omsPreviewRestoreWindow span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#omsPreviewRestoreWindow small {
  flex: 0 0 auto;
  color: var(--brand, #155d55);
}
@media (max-width: 620px) {
  .oms-preview-window-actions { gap: 2px; }
  .oms-preview-return-window { max-width: 90px; white-space: normal; }
}
