.save-converter-page {
  width: min(860px, calc(100% - 16px));
  margin: 0 auto;
}

.save-converter-card {
  width: min(760px, 100%);
  margin: 8px auto 0;
  border: 1px solid #b9b9b9;
  background: #f4f4f4;
  border-radius: 6px;
  padding: 14px 14px 12px;
  box-sizing: border-box;
}

.save-converter-note {
  margin: 0 0 12px;
  text-align: center;
  color: #2f3a44;
}

.save-converter-row {
  margin-bottom: 12px;
}

.save-converter-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.save-file-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.save-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.save-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  border: 1px solid #7f7f7f;
  background: #e9e9e9;
  border-radius: 4px;
  padding: 7px 10px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.save-file-button:hover {
  background: #f1f1f1;
}

.save-file-input:focus + .save-file-button {
  outline: 2px solid #84b6ff;
  outline-offset: 1px;
}

.save-file-name {
  min-width: 112px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
}

.save-language-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .95em;
}

.save-converter-actions {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.save-convert-btn {
  border: 1px solid #7f7f7f;
  background: #e9e9e9;
  border-radius: 4px;
  padding: 7px 18px;
  font-size: .95em;
  cursor: pointer;
}

.save-convert-btn:hover {
  background: #f1f1f1;
}

.save-converter-status {
  margin-top: 10px;
  text-align: center;
  color: #47515b;
  font-size: .92em;
  min-height: 1.25em;
}

@media (max-width: 680px) {
  .save-converter-page {
    width: 100%;
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
  }

  .save-converter-card {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .save-file-picker {
    align-items: flex-start;
  }

  .save-file-name {
    width: 100%;
    min-width: 0;
  }

  .save-language-grid {
    grid-template-columns: 1fr 1fr;
  }
}
