.archives {
  min-width: 0;
  display: grid;
  gap: 26px;
}
.archive-upload {
  padding: 28px;
}
.archive-upload h2,
.archive-library h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.archive-upload form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.archives input[hidden] {
  display: none !important;
}
.archive-file-picker {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.archive-file-picker button {
  justify-self: start;
}
.archive-upload label {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.archive-upload input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: var(--ink);
  font-size: 16px;
}
.archive-upload input[type="file"] {
  font-weight: 400;
  overflow: hidden;
}
.archive-upload input::file-selector-button {
  border: 0;
  border-radius: 5px;
  padding: 9px;
  margin-right: 8px;
  background: #edf1e7;
  color: var(--ink);
  cursor: pointer;
}
.archive-upload form > button {
  justify-self: start;
}
.archive-upload .help {
  margin: 0 0 8px;
  line-height: 1.55;
}
.archive-filename {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}
.archive-quota {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.archive-notice:not(:empty),
.archive-error:not(:empty) {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 14px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.archive-notice {
  background: #eef4e2;
  color: #304e2a;
}
.archive-error {
  background: #fff0e9;
  color: #a33322;
}
.archive-notice:empty,
.archive-error:empty {
  display: none;
}
.archive-library-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.archive-library-head h2 {
  margin: 0;
}
.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.archive-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.archive-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.archive-item-head > div {
  min-width: 0;
}
.archive-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.archive-state {
  flex-shrink: 0;
  background: #edf1e7;
  border-radius: 16px;
  padding: 5px 9px;
  font-size: 12px;
}
.archive-meta,
.archive-progress-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.archive-item progress {
  display: block;
  width: 100%;
  height: 10px;
  accent-color: var(--orange);
}
.archive-progress-label {
  margin: 8px 0 14px;
}
.archive-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.archives button,
.archive-download {
  min-height: 44px;
  overflow-wrap: anywhere;
}
.archive-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 15px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.archive-download:hover {
  background: #294652;
}
.archive-empty {
  grid-column: 1 / -1;
  padding: 36px 24px;
  background: white;
  border: 1px dashed #bac8b5;
  border-radius: 14px;
  text-align: center;
  line-height: 1.6;
}
.archive-empty h3 {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .archive-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .archive-upload,
  .archive-item {
    padding: 18px;
  }
  .archive-item-head {
    flex-direction: column;
  }
  .archive-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .archive-actions > *,
  .archive-upload form > button {
    width: 100%;
  }
  .archive-library-head {
    flex-wrap: wrap;
  }
  .archive-upload h2,
  .archive-library h2 {
    font-size: 20px;
  }
}
