/* core/_shell.html */

#shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Full width: sections that need a centred column wrap themselves in .page
   (base.css); the home hero and backoffice layout run edge to edge. */
#app-viewport {
  flex: 1;
  width: 100%;
}

/* Request-failure message (shell.js). Clear of the phone's home indicator.
   (While a dialog is open the message goes inside it instead.) */
.toast {
  position: fixed;
  right: var(--space-2);
  bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  left: var(--space-2);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 32rem;
  margin-inline: auto;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius);
  background: var(--color-danger-soft);
  color: var(--color-danger);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.2);
}

.toast[hidden] {
  display: none;
}

.toast__text {
  flex: 1;
  margin: 0;
  font-weight: 600;
}

.toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tap-size);
  height: var(--tap-size);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
