.app-shell {
  overflow: auto;
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 0 48px;
}

.hero {
  margin-bottom: 24px;
  padding: 20px 0 12px;
}

.hero-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-copy {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(220, 229, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.mapping-card {
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading > :first-child {
  flex-shrink: 0;
  min-width: max-content;
  margin-right: 24px;
}

#mappingTitle {
  white-space: nowrap;
}

.field {
  min-width: 0;
}

.language-switcher {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.actions-toolbar {
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 376px;
  flex-wrap: nowrap;
  width: auto;
}

.actions-toolbar .mapping-search-input {
  flex: 1 1 320px;
  min-width: 0;
}

.actions-toolbar .button {
  max-width: fit-content;
}

.actions-footer {
  margin-top: 22px;
}

.actions-footer .button-primary {
  width: 100%;
  justify-content: center;
}

@media (max-width: 800px) {
  .app-shell {
    width: calc(100% - 16px);
    max-width: 1120px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .mapping-card {
    padding: 16px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-bar {
    flex-direction: column;
  }

  .language-switcher {
    min-width: 0;
    width: 100%;
  }

  .actions-toolbar,
  .actions-footer {
    justify-content: stretch;
  }

  .actions-toolbar .button,
  .actions-toolbar .mapping-search-input,
  .actions-footer .button,
  .section-heading .button {
    width: 100%;
  }
}
