html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  padding: 1.5rem 0 3rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* ---- downloader ---- */

.dl-shell {
  max-width: 720px;
  margin: 0 auto;
}

.dl-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: .25rem;
}

.dl-subtitle {
  color: var(--bs-secondary-color);
  margin-bottom: 1.5rem;
}

.dl-input-row {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.dl-input-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.dl-card {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--bs-body-bg);
}

.dl-preview {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dl-thumb {
  width: 160px;
  max-width: 40%;
  border-radius: .5rem;
  object-fit: cover;
}

.dl-preview-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 .25rem;
  overflow-wrap: anywhere;
}

.dl-preview-meta {
  color: var(--bs-secondary-color);
  font-size: .875rem;
  margin: 0;
}

.dl-hint {
  color: var(--bs-secondary-color);
  font-size: .8125rem;
  margin: .375rem 0 .75rem;
  min-height: 1rem;
}

.dl-job-head {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .625rem;
}

.dl-job-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.dl-progress {
  height: .625rem;
  border-radius: 1rem;
}

.dl-job-status {
  font-size: .875rem;
  color: var(--bs-secondary-color);
  margin: .5rem 0 .75rem;
  overflow-wrap: anywhere;
}

.dl-job-actions {
  display: flex;
  gap: .5rem;
}

@media (max-width: 575.98px) {
  .dl-input-row {
    flex-direction: column;
  }

  .dl-preview {
    flex-direction: column;
  }

  .dl-thumb {
    width: 100%;
    max-width: none;
  }
}
