:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #161616;
  background: #fff;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1120px;
  margin: auto;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -1px;
  color: inherit;
  text-decoration: none;
}
.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.local {
  font-size: 13px;
  color: #888;
}
main {
  max-width: 640px;
  margin: 100px auto 0;
  padding: 0 24px;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  line-height: 1.2;
  font-weight: 550;
  margin: 0 0 14px;
}
.intro {
  font-size: 16px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 36px;
}
.converter {
  border: 1px solid #dedede;
  border-radius: 20px;
  overflow: hidden;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid #e9e9e9;
}
.tab {
  background: none;
  border: 0;
  color: #777;
  font: inherit;
  font-size: 13px;
  padding: 11px 17px;
  border-radius: 30px;
  cursor: pointer;
}
.tab.active {
  background: #f0f0f0;
  color: #111;
}
form {
  padding: 28px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 12px;
}
input {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #111;
  background: white;
  font: inherit;
  font-size: 14px;
}
input::placeholder {
  color: #aaa;
}
input:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.details {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  margin: 12px 0 26px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 13px 21px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.primary:hover {
  background: #333;
}
.primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.note {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
  margin: 20px 3px;
}
.status {
  padding: 24px 28px;
  border-top: 1px solid #e9e9e9;
}
.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#percent {
  color: #888;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
progress {
  display: block;
  appearance: none;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  height: 5px;
  margin-top: 16px;
  background: #eee;
}
progress::-webkit-progress-bar {
  background: #eee;
  border-radius: 20px;
}
progress::-webkit-progress-value {
  background: #111;
  border-radius: 20px;
  transition: width 0.4s ease;
}
progress::-moz-progress-bar {
  background: #111;
  border-radius: 20px;
}
progress:indeterminate {
  background: linear-gradient(90deg, #eee 0%, #eee 30%, #777 50%, #eee 70%);
  background-size: 200% 100%;
  animation: loading 1.8s linear infinite;
}
progress:indeterminate::-webkit-progress-bar {
  background: transparent;
}
.status .primary {
  margin-top: 22px;
}
.status.error {
  color: #a23225;
}
.status.error progress {
  display: none;
}
footer {
  max-width: 640px;
  margin: 100px auto 30px;
  padding: 0 24px;
  font-size: 11px;
  color: #999;
  line-height: 1.6;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #555;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  progress:indeterminate {
    animation: none;
  }
  progress::-webkit-progress-value {
    transition: none;
  }
}
@media (max-width: 600px) {
  header {
    padding: 24px;
  }
  .local {
    font-size: 11px;
  }
  main {
    margin-top: 65px;
  }
  h1 {
    font-size: 34px;
  }
  .intro {
    font-size: 14px;
  }
  form,
  .status {
    padding: 23px;
  }
  .tab {
    padding: 11px 14px;
    font-size: 12px;
  }
  .details {
    font-size: 10px;
  }
  footer {
    margin-top: 65px;
  }
}

.connection { min-height: 20px; margin: -16px 0 16px; color: #888; font-size: 12px; line-height: 1.6; }
#connection-retry { border: 0; background: transparent; padding: 0 0 0 5px; color: #222; text-decoration: underline; cursor: pointer; font: inherit; }

.wordmark { font-size: 18px; font-weight: 550; letter-spacing: -.6px; }
.wordmark span { color: #888; font-weight: 400; }
.footer-brand { display: block; color: #555; margin-bottom: 8px; }
