/* Confine the existing screen, map and sheet flows to the shared work frame. */
body.fate-platform-work.gwiin-page .app {
  max-width: 100%;
  min-width: 0;
}
body.fate-platform-work.gwiin-page .app .dosa-stage {
  width: 100%;
  max-width: 350px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  margin-inline: auto;
}
body.fate-platform-work.gwiin-page .app :is(.form-card, .field, .time-value, .scroll) {
  min-width: 0;
  max-width: 100%;
}
body.fate-platform-work.gwiin-page .app :is(.primary, .secondary, .quiet) {
  white-space: normal;
  overflow-wrap: anywhere;
}
body.fate-platform-work.gwiin-page .app :is(.modal-layer, .map-expand-layer) {
  position: absolute;
  inset: 0;
  max-width: 100%;
}
body.fate-platform-work.gwiin-page .app .map-expand-layer {
  padding: 10px;
}
body.fate-platform-work.gwiin-page .app .map-expand-dialog {
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 10px);
}
body.fate-platform-work.gwiin-page .app .map-expand-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
  gap: 10px;
}
body.fate-platform-work.gwiin-page .app .map-expand-stage {
  min-height: 0;
  max-height: none;
}
body.fate-platform-work.gwiin-page .app :is(.sheet, .relation-dialog, .product-dialog) {
  min-width: 0;
  max-width: 100%;
}
body.fate-platform-work.gwiin-page .app .toast {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
