.archive-main {
  padding: 24px 18px 42px;
}

.archive-header {
  padding: 6px 4px 18px;
}

.archive-header h1 {
  margin: 0;
  font-size: clamp(2.7rem, 13vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.archive-header p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.archive-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.archive-refresh-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #2b1114;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.archive-counter {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

.archive-status {
  display: none;
  margin: 0 0 16px;
  padding: 14px 15px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.55;
}

.archive-status.is-visible {
  display: block;
}

.archive-status.is-warning {
  color: #ffe1a0;
  border-color: rgba(255, 191, 36, 0.24);
  background: rgba(255, 191, 36, 0.075);
}

.archive-status.is-error {
  color: #ffd1d1;
  border-color: rgba(255, 93, 93, 0.28);
  background: rgba(255, 93, 93, 0.075);
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-empty strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1.1rem;
}

@media (max-width: 520px) {
  .archive-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .archive-counter {
    text-align: left;
  }
}

@media (min-width: 760px) {
  .archive-main {
    padding: 34px 28px 64px;
  }
}

.archive-tools-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.archive-search-wrap {
  max-width: 420px;
  justify-self: end;
}

@media (max-width: 640px) {
  .archive-tools-row {
    grid-template-columns: 1fr;
  }

  .archive-search-wrap {
    max-width: none;
    justify-self: stretch;
  }
}
