@font-face {
  font-family: "Geist";
  src: url("Geist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f1efe8;
  --sheet: #ffffff;
  --ink: #16171b;
  --ink-2: #6b6e78;
  --ink-3: #9a9da6;
  --line: #e7e4dc;
  --line-soft: #efede6;
  --blue: #1f3fdf;
  --blue-deep: #1733bd;
  --blue-tint: #dfe5fc;
  --blue-mist: #f0f3ff;
  --hover: #f7f6f2;
  --sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 16px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --spring: linear(0, .22 4.6%, .43 9.4%, .63 14.6%, .8 20%, .95 26%, 1.05 32%, 1.09 39%, 1.06 48%, 1.01 58%, .99 70%, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-spacing-trim: space-first;
}

button, input {
  font: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::selection { background: var(--blue); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Canvas */

.brand {
  position: fixed;
  top: 28px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 16px; height: 16px; color: var(--blue); }

.stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 72px 24px;
}

/* Module: a white sheet; its mark is the slot at the top, not the edge */

.chute {
  width: 680px;
  max-width: 100%;
  border-radius: var(--radius);
  background: var(--sheet);
  border: 1px solid rgba(22, 23, 27, .09);
  box-shadow:
    0 1px 2px rgba(31, 36, 60, .06),
    0 28px 56px -28px rgba(31, 36, 60, .28);
}

.sheet { padding: 20px 28px 28px; }

/* Slot: the chute's opening. Files go in here; it opens when something is dragged over. */

.slot {
  display: block;
  width: 200px;
  height: 12px;
  margin: 0 auto;
  border-radius: 999px;
  background: #2b2e37;
  box-shadow:
    inset 0 3px 4px rgba(0, 0, 0, .75),
    inset 0 -1px 0 rgba(255, 255, 255, .16),
    0 1px 0 rgba(255, 255, 255, .9);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
}
.slot-top {
  cursor: copy;
  margin-bottom: 18px;
}
.slot-top:hover {
  background: var(--blue-deep);
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .2);
}
.slot-top:focus-visible { outline-offset: 4px; }

/* Header */

.head { padding: 4px 4px 16px; }
.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.head-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.head-actions { display: flex; gap: 20px; }
.head-eta {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.head-eta:empty { display: none; }
.head-meta { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.head-meta:empty { display: none; }

.textbtn {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 24px;
  border-radius: 6px;
  padding: 0 2px;
  transition: color .15s;
}
.textbtn:hover { color: var(--ink); }
.textbtn:active { color: var(--ink); transform: translateY(.5px); }

/* File rows: each row is its own progress bar */

.files { list-style: none; margin: 0; padding: 0; }

.file {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 76px 60px 24px;
  align-items: center;
  column-gap: 12px;
  height: 44px;
  padding: 0 6px 0 8px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}
.file + .file { margin-top: 2px; }
.file::after {
  content: "";
  position: absolute;
  left: 60px; right: 8px; bottom: 0;
  height: 1px;
  background: var(--line-soft);
}
.file:last-child::after { display: none; }
.file:hover { background: var(--hover); }

.fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(52px + var(--p, 0) * (100% - 52px));
  background: var(--blue-tint);
  border-right: 2px solid var(--blue);
  z-index: -1;
  transition: width .35s linear;
}
.file.is-done .fill, .file.is-queued .fill, .file.is-failed .fill { display: none; }

.badge {
  justify-self: start;
  min-width: 40px;
  padding: 0 7px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
}
.file.is-queued .badge { background: var(--line); color: var(--ink-2); }

.name {
  display: flex;
  min-width: 0;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.name-head { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-tail { flex: none; white-space: nowrap; }
.file.is-queued .name { color: var(--ink-2); }

.size { text-align: right; color: var(--ink-2); font-size: 13px; }
.status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.file.is-up .status { color: var(--blue-deep); font-weight: 500; }
.status svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: square; }
.file.is-failed .status { color: var(--ink); font-weight: 500; }
.retry { color: var(--blue); font-weight: 500; font-size: 13px; border-radius: 4px; }
.retry:hover { text-decoration: underline; text-underline-offset: 3px; }

.cancel {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
}
.cancel svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.file:hover .cancel, .cancel:focus-visible { opacity: 1; }
.cancel:hover { background: var(--line); color: var(--ink); }
.file.is-done .cancel { visibility: hidden; }

/* Row entrance */
.file.enter { animation: rowIn .32s var(--ease-out) both; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.file.pop .status svg { animation: check .38s var(--spring) both; }
@keyframes check {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
