:root {
  --accent: #ffada3;
  --ink: #1e1919;
  --muted: #736c64;
  --line: #c9c2bb;
  --card: #ffffff;
  --field: #f7f5f2;
  --blue: #0061fe;
  --ok: #1d8a4b;
  --bad: #c43a2b;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.45 var(--font);
  color: var(--ink);
  background: var(--accent);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }

.topbar {
  height: 64px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.studio { font-weight: 600; font-size: 17px; }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.card {
  position: relative;
  width: 100%;
  max-width: 612px;
  height: min(778px, calc(100vh - 128px));
  min-height: 460px;
  background: var(--card);
  padding: 54px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.view { height: 100%; }
.center {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

/* Drop zone */
.dropzone {
  height: 100%;
  border: 1.5px dashed var(--line);
  transition: background 0.15s, border-color 0.15s;
}
.dropzone.over { background: #f5f9ff; border-color: var(--blue); }
.folder-icon { width: 68px; color: #6b635b; margin-bottom: 26px; }
.drop-label { margin: 0 0 26px; font-size: 18px; }
.request { margin-top: 40px; max-width: 380px; }
.request-title { font-weight: 600; margin: 0 0 4px; }
.request-message { margin: 0; color: var(--muted); white-space: pre-wrap; }
.resume-note { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 360px; }

/* Buttons */
.btn {
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover { background: var(--field); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #3a3333; }
.btn-quiet { font-size: 15px; padding: 8px 14px; }
.btn-block { width: 100%; }
.split { position: relative; display: inline-flex; gap: 0; }
.split .btn + .btn { border-left: none; }
.btn-caret { padding: 10px 12px; background: var(--field); display: flex; align-items: center; }
.btn-caret svg { width: 16px; height: 16px; }
.menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
  text-align: left;
}
.menu button {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 14px;
  cursor: pointer;
}
.menu button:hover, .menu button:focus-visible { background: var(--field); outline: none; }

/* Who form */
.who { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 380px; margin: 0 auto; }
.who label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
input, textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 0;
  width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.error { color: var(--bad); font-size: 14px; margin: 0; }

/* Uploading */
.upload { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.upload-head p { margin: 0 0 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: #ece8e4; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--blue); transition: width 0.3s linear; }
.bar-fill.ok { background: var(--ok); }
.files {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ece8e4;
}
.file {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ece8e4;
  font-size: 14px;
}
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-bar { grid-column: 1 / -1; height: 3px; background: #ece8e4; }
.file-bar > div { height: 100%; width: 0; background: var(--blue); }
.file.done .file-bar > div { background: var(--ok); }
.file.done .file-bar, .file.error .file-bar { display: none; }
.file.error .file-meta { color: var(--bad); }
.icon-btn {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.icon-btn:hover { color: var(--ink); text-decoration: underline; }
.upload-foot { display: flex; flex-direction: column; gap: 12px; }
.upload-foot .split { gap: 8px; }
.upload-foot .split .btn + .btn { border-left: 1px solid var(--line); }
textarea { resize: none; font-size: 15px; }
.drop-overlay {
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--blue);
  background: rgba(245, 249, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
}

/* Done */
.check { width: 56px; color: var(--ok); margin-bottom: 18px; }
#view-done .btn { margin-top: 24px; }

@media (max-width: 640px) {
  .topbar { height: 56px; padding: 0 16px; }
  .stage { padding: 16px; align-items: stretch; }
  .card { padding: 20px; height: auto; min-height: calc(100vh - 88px); }
  .view { min-height: calc(100vh - 128px); }
}
