:root {
  --navy: #031B4E;
  --gold: #F2B322;
  --text: #1A1F2C;
  --muted: #5A6473;
  --soft: #F4F6FA;
  --border: #E2E6ED;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #cf222e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

.topbar {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 14px 16px;
}
.brand { color: #fff; font-weight: 700; letter-spacing: .02em; }

main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { color: var(--navy); font-size: 1.6rem; margin: 0 0 4px; }
.client { color: var(--muted); margin-top: 0; }
.note { color: var(--muted); font-size: .92rem; }

.items { display: grid; gap: 14px; margin: 20px 0; }
.item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.item-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.item h2 { font-size: 1.05rem; margin: 0; color: var(--navy); }
.accepts, .due { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }

.status {
  flex: none;
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}
.status-received { color: var(--warn); background: #fff8c5; }
.status-accepted { color: var(--ok); background: #dafbe1; }
.status-rejected { color: var(--bad); background: #ffebe9; }

.files, .progress { list-style: none; padding: 0; margin: 10px 0 0; font-size: .9rem; }
.files li, .progress li { padding: 4px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.when { color: var(--muted); }
.progress .error { color: var(--bad); }
.progress .done { color: var(--ok); }

.upload {
  margin-top: 12px;
  padding: 12px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.upload.dragging { border-color: var(--navy); background: var(--soft); }
.button {
  position: relative;
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.button:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hint { color: var(--muted); font-size: .9rem; }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  padding: 24px 16px;
  border-top: 1px solid var(--border);
}
