html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

#office-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}

#wopi-error,
#wopi-not-responding {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 16px;
  color: #a00;
}

/* Overlays the top of the Office frame without hiding it; the frame keeps loading below. */
#wopi-not-responding {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid #a00;
}

#wopi-error code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
