.alternate-archives-page {
  width: min(100% - 32px, 1240px);
}

.alternate-archive-tabs {
  justify-content: center;
  margin-bottom: 16px;
}

.alternate-archive-workspace {
  display: grid;
  gap: 12px;
}

.alternate-archive-toolbar {
  justify-content: center;
}

.alternate-archive-table .voice-cell {
  cursor: default;
}

body.tamers-home-popup-open {
  overflow: hidden;
}

.tamers-home-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 12, 24, 0.72);
}

.tamers-home-popup-backdrop[hidden] {
  display: none !important;
}

.tamers-home-popup {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--voice-border);
  background: var(--voice-panel);
  color: var(--voice-text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  padding: 24px 24px 20px;
}

.tamers-home-popup h2 {
  margin: 0 0 12px;
  font: 700 28px/1.15 Georgia, "Times New Roman", serif;
}

.tamers-home-popup p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.alternate-archive-help-text {
  white-space: pre-line;
}

.tamers-home-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tamers-home-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--voice-border);
  background: var(--voice-button-bg);
  color: var(--voice-button-text);
  font: 600 14px/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.tamers-home-popup-btn:hover,
.tamers-home-popup-btn:focus-visible {
  background: var(--voice-button-hover);
  outline: none;
}

:root[data-theme="dark"] .tamers-home-popup-backdrop {
  background: rgba(3, 7, 16, 0.8);
}

@media (max-width: 900px) {
  .alternate-archives-page {
    width: min(100% - 18px, 1240px);
  }
}
