@font-face {
  font-family: Doto;
  src: url("./vendor/doto.woff2?v=2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #24262a;
  background: #f4f3ed;
  --ink: #24262a;
  --accent: #ff512f;
  --accent-hover: #f04423;
  --surface: #fffefa;
  --border: #d9d6ca;
  --muted: #717277;
}
header {
  height: auto;
  max-width: 1280px;
  margin: auto;
  padding: 42px 4.5vw 36px;
  border: 0;
  background: transparent;
}
header a {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-family: Doto, monospace;
  font-size: clamp(56px, 8.4vw, 108px);
  font-weight: 900;
  font-variation-settings:
    "wght" 850,
    "ROND" 100;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #df3d1e;
}
header .brand-word {
  margin: 0;
  font: inherit;
  color: inherit;
}
header .brand-word:last-child {
  color: var(--ink);
}
main {
  grid-template-columns: 340px minmax(0, 1fr);
  padding-top: 16px;
  gap: 36px;
}
.card {
  border-radius: 14px;
  background: var(--surface);
}
.controls {
  border: 0;
  padding: 0;
  background: transparent;
}
.transcripts {
  overflow: hidden;
  min-height: 216px;
}
label,
h1,
.primary,
.history-item small,
.download-controls,
.text-button {
  font-family: "Courier New", monospace;
}
.controls > label:first-child {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}
.key-field {
  margin-bottom: 24px;
}
.key-field input {
  height: 56px;
  padding-left: 20px;
  padding-right: 58px;
  border-radius: 12px;
  border-color: #c6c2b6;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.key-field input::placeholder {
  color: var(--muted);
}
.key-field button {
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dropzone {
  min-height: 190px;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid #d8d4c7;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.dropzone > .upload-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}
.upload-symbol .icon {
  width: 30px;
  height: 30px;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: #ffe7df;
}
.dropzone:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #181a1d;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition:
    background 140ms,
    transform 140ms;
}
.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.primary:active {
  transform: translateY(1px);
}
.primary .icon {
  width: 20px;
  height: 20px;
}
.selected-file {
  font-size: 12px;
}
.list-heading {
  padding: 28px 26px 20px;
}
.list-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.list-heading h1 span:not(:empty) {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin: 0;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--accent);
  color: #181a1d;
  font-size: 12px;
  font-weight: 700;
}
.empty {
  padding: 0 26px 28px;
  color: var(--muted);
  font-size: 13px;
}
.history-row {
  padding: 0 16px;
  gap: 8px;
}
.history-item {
  min-height: 48px;
  padding: 14px 18px;
  border-radius: 12px;
}
.history-item:hover {
  background: #edeae1;
}
.history-item.active {
  background: var(--ink);
  color: #fff;
}
.history-item.active:before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
.history-item strong {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.history-item small,
.history-item.complete small {
  color: #66686c;
}
.history-item.active small {
  color: #ff957f;
}
.delete,
.selected-file button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: #e8e5db;
  color: #66686c;
}
.delete:hover,
.selected-file button:hover {
  background: #ffd6c9;
  color: #912c18;
}
.secondary,
.text-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: #181a1d;
  font-size: 12px;
  font-weight: 700;
}
.secondary:hover {
  background: var(--accent-hover);
}
.text-button {
  background: var(--ink);
  color: #fff;
}
.text-button:hover {
  background: #44474d;
}
.result-heading h2 {
  font-size: 18px;
  font-weight: 700;
}
#result-meta {
  color: #696b70;
  font-family: "Courier New", monospace;
  font-size: 11px;
}
.download-controls {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  margin: 4px 22px 24px;
}
.download-controls select {
  appearance: none;
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 14px;
  padding: 18px 30px 18px 18px;
  background: #e9e6db url("./vendor/lucide/chevron-down.svg") right 12px
    center / 18px no-repeat;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
#download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 112px;
  width: 100%;
  padding: 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #181a1d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
}
#download:hover {
  background: var(--accent-hover);
}
#download .icon {
  width: 38px;
  height: 38px;
}
.segment button {
  color: #b33a22;
  font-weight: 600;
}
.segment small {
  color: #6f7177;
}
.segment p {
  color: var(--ink);
  font-size: 14px;
}
.progress-wrap > div {
  color: var(--ink);
}
.progress-wrap small {
  color: var(--muted);
}
progress {
  height: 5px;
}
progress::-webkit-progress-bar {
  background: #dfddda;
}
progress::-webkit-progress-value {
  background: var(--accent);
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.notice {
  border-radius: 16px;
  background: #ffe1d5;
  color: #8b3221;
}
#retry-consent {
  color: #8b3221;
}
#toast {
  border-radius: 12px;
  background: var(--ink);
  box-shadow: none;
}
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  vertical-align: middle;
}
.delete .icon,
.selected-file button .icon {
  width: 16px;
  height: 16px;
}
.audio-controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 22px 22px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #edeae1;
}
.audio-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #181a1d;
}
.audio-controls input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
#audio-time {
  color: #696b70;
  font:
    10px "Courier New",
    monospace;
  white-space: nowrap;
}
@media (max-width: 800px) {
  header {
    padding: 32px 20px 28px;
  }
  main {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
  }
  .download-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .download-controls select {
    justify-self: end;
    width: auto;
    min-width: 90px;
  }
}
@media (max-width: 620px) {
  header {
    padding: 28px 20px 24px;
  }
  header a {
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(54px, 15.2vw, 76px);
    line-height: 0.96;
    gap: 0;
  }
  main {
    grid-template-columns: 1fr;
    padding: 12px 16px 28px;
    gap: 28px;
  }
  .dropzone {
    min-height: 166px;
  }
  .card,
  .dropzone {
    border-radius: 14px;
  }
  .list-heading {
    padding: 24px 22px 20px;
  }
  .empty {
    padding-left: 22px;
  }
  .transcripts {
    min-height: 184px;
  }
  .download-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 4px 20px 22px;
  }
  .download-controls select {
    justify-self: end;
    width: auto;
    min-width: 90px;
    padding: 12px 28px 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    background-position: right 7px center;
    background-size: 14px;
  }
  #download {
    min-height: 96px;
    padding: 18px 12px;
    border-radius: 12px;
    gap: 10px;
    font-size: 30px;
    letter-spacing: -0.7px;
  }
  #download .icon {
    width: 28px;
    height: 28px;
  }
  .audio-controls {
    gap: 9px;
    margin-right: 20px;
    margin-left: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .primary {
    transition: none;
    transform: none;
  }
}
