/* Workspace overlay */

.workspace {
  --header-icon-size: 22px;

  position: fixed;
  inset: 0;
  z-index: 1000;

  overflow: hidden;

  background: var(--color-surface-base);

  /* Important – prevent flash before animation */
  opacity: 0;
}


/* Visible state */

.workspace.is-visible {
  animation: workspaceEnter 320ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
}


/* Workspace app layout */

.workspace-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}


/* Header */

.workspace header {
  position: relative;
}

.workspace header .container {
  padding-top: 16px;
  padding-bottom: 28px;
}

.workspace-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.workspace-header-left {
  justify-self: start;
}

.workspace-header-center {
  display: flex;
  justify-self: center;
  gap: 8px;
}

.workspace-header-right {
  justify-self: end;
}


/* Main */

.workspace main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.workspace main::-webkit-scrollbar {
  display: none;
}

.workspace main .container {
  padding-top: 0px;
  padding-bottom: 0px;
}


/* Footer */

.workspace footer .container {
  padding-block: 8px;
  font-size: var(--font-size-xs);
  text-align: center;
}


/* Header lock */

.workspace-header-inner.is-locked {
  pointer-events: none;
  opacity: 0.6;
}


/* Animations */

@keyframes workspaceEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
