.workspace-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.workspace-shell > .app-header,
.workspace-shell > .workspace-nav,
.workspace-tabs-bar,
.workspace-discard-notice {
  flex-shrink: 0;
}
.workspace-page-host {
  flex: 1;
  min-height: 0;
}
.workspace-tabs-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #dce2ea;
  background: #f5f7fa;
}
.workspace-tabs-list {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.workspace-tabs-list > span {
  display: flex;
  flex-shrink: 0;
}
.workspace-tabs-bar button,
.workspace-discard-notice button {
  padding: 7px 10px;
  border: 1px solid #dce2ea;
  background: white;
  color: #334155;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}
.workspace-tabs-bar [aria-selected="true"] {
  color: #174ea6;
  border-color: #174ea6;
  background: #eaf2ff;
}
.workspace-page-host iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  display: block;
}
.workspace-page-host iframe[hidden],
[data-workspace-original][hidden] {
  display: none !important;
}
.workspace-discard-notice {
  padding: 12px;
  background: #fff4d9;
}
.workspace-embedded .app-header,
.workspace-embedded .workspace-nav {
  display: none !important;
}
.ma-company-detail-page {
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  background: white;
}
.ma-company-detail-page dd {
  white-space: pre-wrap;
  user-select: text;
}

.workspace-tabs-bar[hidden] {
  display: none;
}

/* Inline panels share one sizing and spacing baseline. */
html body section.page-panel {
  position: static;
  width: auto;
  max-width: 1200px;
  max-height: none;
  margin: 16px auto;
  padding: 16px;
  border: 1px solid var(--ui-border, #dce2ea);
  border-radius: 4px;
  background: var(--ui-panel, white);
  box-shadow: none;
  overflow: visible;
  scroll-margin-top: 16px;
}
.page-panel[hidden] {
  display: none !important;
}
.page-question form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-question p,
.page-question textarea {
  flex-basis: 100%;
}
.page-question textarea {
  min-height: 80px;
}
html body :is(#toast, #ma-toast, #rw-toast, #nc-toast, .ui-global-loading) {
  position: static;
  transform: none;
  margin: 8px 16px;
  box-shadow: none;
}
html body :is(#toast, #ma-toast, #rw-toast, #nc-toast):not(.show),
html body .ui-global-loading:not(.is-visible) {
  display: none;
}
