:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #232323;
  background: #f6f3ef;
}
* { box-sizing: border-box; }
body { margin: 0; }
.container { width: min(960px, calc(100% - 28px)); margin: 38px auto; }
.card { background: white; padding: 28px; border-radius: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.narrow { max-width: 430px; margin: 12vh auto 0; }
.center { text-align: center; }
.brand { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #806b54; }
h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { margin-top: 28px; font-size: 1.1rem; }
label { display: block; margin: 16px 0 7px; font-weight: 650; }
input, select, textarea {
  width: 100%; border: 1px solid #d8d2ca; border-radius: 10px;
  padding: 12px 13px; font: inherit; background: white;
}
textarea { resize: vertical; }
button, .button-link {
  display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px;
  background: #29231e; color: white; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; margin-top: 18px;
}
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: #eee8e1; color: #29231e; }
.small { margin: 0; padding: 9px 12px; }
.danger { background: #a83a3a; margin-top: 30px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.drop-zone { border: 2px dashed #cfc4b8; background: #faf8f5; padding: 25px; text-align: center; border-radius: 14px; }
.drop-zone input { border: 0; padding: 0; }
.muted { color: #756f68; font-size: .9rem; }
.alert { padding: 12px; border-radius: 10px; margin-top: 15px; }
.error { background: #fdeaea; color: #8b2222; }
.hidden { display: none; }
.progress { height: 12px; background: #ece7e1; border-radius: 100px; overflow: hidden; margin-top: 20px; }
#progress-bar { width: 0; height: 100%; background: #29231e; transition: width .2s; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e2f4e6; color: #27763b; font-size: 38px; line-height: 64px; }
.search { display: flex; gap: 10px; margin-bottom: 20px; }
.search button { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 10px; border-bottom: 1px solid #eee8e1; text-align: left; vertical-align: top; }
th { font-size: .82rem; color: #756f68; }
a { color: #634c35; font-weight: 700; }
.back { display: inline-block; margin-bottom: 15px; }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.details div { background: #faf8f5; border-radius: 10px; padding: 13px; }
.details span { display: block; color: #756f68; font-size: .8rem; margin-bottom: 5px; }
.notes { background: #faf8f5; padding: 14px; border-radius: 10px; }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid #eee8e1; }
.empty { text-align: center; padding: 35px; color: #756f68; }
@media (max-width: 700px) {
  .container { margin: 18px auto; }
  .card { padding: 20px; }
  .grid.two, .grid.four, .details { grid-template-columns: 1fr 1fr; }
  .topbar { align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid.two, .grid.four, .details { grid-template-columns: 1fr; }
  .topbar, .file-row { flex-direction: column; align-items: stretch; }
  .search { flex-direction: column; }
}
