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

.app-shell {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.site-header { position: relative; flex: none; }

.app-context {
  margin-left: .35rem;
  padding-left: .8rem;
  color: var(--color-highlight);
  border-left: 1px solid color-mix(in srgb, var(--color-text-on-dark) 38%, transparent);
  font-weight: 700;
}

.account-menu a {
  padding: .72rem 1rem;
  color: var(--color-text);
  border-radius: 8px;
  text-decoration: none;
}
.account-menu a:hover { background: color-mix(in srgb, var(--color-primary) 14%, transparent); }

.editor-host {
  position: relative;
  min-height: 0;
  flex: 1;
  background: var(--color-background-dark);
}

.editor-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--color-background-dark);
}

.editor-load-message {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 50%;
  margin: 0;
  padding: .75rem 1rem;
  color: var(--color-text-on-dark);
  border-radius: 10px;
  background: var(--color-error);
  transform: translateX(-50%);
}
.editor-load-message:empty { display: none; }

@media (max-width: 720px) {
  .app-context { display: none; }
}
