* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  background: var(--white200);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  background: var(--white200);
}

.app-stage {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: inherit;
}

.app-loading {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding: 12px 16px;
  background: var(--white200);
  color: var(--black100);
  font-size: 13px;
}

.app-loading.is-hidden {
  display: none;
}

.main-ui {
  height: 100%;
  overflow: auto;
}

.w100 {
  width: 100% !important;
}

.pdlr4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.undo-banner{
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0 var(--space-4);
  border-radius: var(--space-4);
  background: var(--black100);
  color: var(--white100);
  max-width: 400px;
}


.import-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(245, 245, 245, 0.96);
  backdrop-filter: blur(12px);
}

.import-overlay.is-open {
  display: flex;
}

.import-overlay__panel {
  width: min(420px, 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.import-overlay__panel.is-active {
  display: flex;
}

.import-overlay__panel[hidden] {
  display: none !important;
}

.import-overlay__gif {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.import-overlay__actions {
  width: 100%;
  display: flex;
  gap: var(--space-3);
}

.share-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 18, 18, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.share-gate.is-open {
  opacity: 1;
  pointer-events: auto;
}

.share-gate__panel {
  width: min(600px, 100%);
  padding: var(--space-5);
  border-radius: var(--br-top);
  background: var(--white100);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 -10px 40px rgba(18, 18, 18, 0.2);
}

.share-gate__panel.is-shaking {
  animation: share-gate-shake 420ms cubic-bezier(.36,.07,.19,.97);
}

@keyframes share-gate-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
