:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #6d7783;
  --line: #dce2e7;
  --panel: #ffffff;
  --canvas: #f4f6f8;
  --accent: #1f6feb;
  --accent-soft: #e8f1ff;
  --success: #18864b;
  --danger: #bd3c3c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 28px; }
.narrow { max-width: 720px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(27, 39, 51, .06); }
.hero-panel { padding: 28px 30px 24px; margin-bottom: 16px; }
.form-panel { padding: 28px 30px 30px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); }
h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; margin: 10px 0 8px; }
h2 { margin: 0; font-size: 22px; }
.muted { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 650; }
input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dropzone { display: grid; justify-items: center; gap: 7px; border: 1.5px dashed #9db6d1; border-radius: 8px; padding: 34px 18px; background: #f8fbff; cursor: pointer; transition: .15s ease; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 27px; line-height: 1; }
.file-list { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.file-item span { min-width: 0; display: grid; gap: 2px; }
.file-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item small { color: var(--muted); }
.file-item button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 5px; }
.primary-button { width: 100%; border: 0; border-radius: 6px; padding: 13px 16px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: #185abc; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.status { min-height: 22px; margin-top: 13px; font-size: 14px; }
.status.success { color: var(--success); }
.status.error { color: var(--danger); }
.footer { text-align: center; margin-top: 18px; font-size: 13px; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button, .link-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: #fff; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stat strong { display: block; font-size: 26px; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: 12px; font-weight: 700; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.done { color: var(--success); background: #e7f7ee; }
.pill.pending { color: #9a6700; background: #fff4ce; }
.stack { display: grid; gap: 12px; }
.login-box { max-width: 420px; margin: 13vh auto 0; }
.empty { padding: 22px 0; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 720px); padding-top: 20px; }
  .hero-panel, .form-panel { padding: 22px 18px; }
  .field-grid, .stats { grid-template-columns: 1fr; gap: 0; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}
