:root {
  --bg: #f4f1ea;
  --ink: #1c1915;
  --muted: #6b645b;
  --card: #fffcf7;
  --line: #e4ddd2;
  --accent: #0f6b5c;
  --accent-ink: #fff;
  --skip: #8a6d3b;
  --block: #9b2c2c;
  --push: #0f6b5c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.45 "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header, main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 32px 0 8px;
}
h1, h2 { margin: 0 0 8px; }
h1 { font-size: 1.8rem; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--muted); }
.lede, .hint { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input, select, button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-weight: 650;
  cursor: pointer;
}
button.secondary { background: #ece6db; color: var(--ink); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.status-pill {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ece6db;
  font-weight: 650;
}
.status-pill.ok { background: #d7efe8; color: var(--accent); }
.status-pill.bad { background: #f8d7d7; color: var(--block); }
.file-picker span {
  display: inline-block;
  padding: 10px 14px;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  color: var(--accent);
  cursor: pointer;
}
.file-picker input { display: none; }
.user-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
@media (max-width: 760px) {
  .user-map { grid-template-columns: 1fr; }
}
.user-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.85fr) minmax(11rem, 1.15fr);
  gap: 8px 12px;
  align-items: center;
  font-weight: 500;
}
.user-row .ts-wrapper {
  width: 100%;
  font-weight: 400;
}
.user-row .ts-control {
  min-height: 42px;
  border-radius: 10px;
  border-color: var(--line);
  padding: 8px 10px;
  box-shadow: none;
}
.user-row .ts-dropdown {
  z-index: 20;
  border-color: var(--line);
  border-radius: 10px;
}
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ece6db;
  font-weight: 650;
}
.chip.push { background: #d7efe8; color: var(--push); }
.chip.skip { background: #f4e6c8; color: var(--skip); }
.chip.block { background: #f8d7d7; color: var(--block); }
.table-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: #f7f3ec; z-index: 1; }
td:nth-child(6), td:nth-child(7) { max-width: 260px; word-break: break-word; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; text-transform: uppercase; font-size: 11px; }
.badge.push { background: #d7efe8; color: var(--push); }
.badge.skip { background: #f4e6c8; color: var(--skip); }
.badge.block { background: #f8d7d7; color: var(--block); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  background: var(--card);
  position: relative;
  z-index: 2;
}
.note { width: 100%; margin: 0; color: var(--block); font-weight: 500; }
.confirm { flex-direction: row; align-items: center; font-weight: 500; }
pre {
  white-space: pre-wrap;
  background: #1c1915;
  color: #f4f1ea;
  padding: 12px;
  border-radius: 12px;
  margin-top: 12px;
}
.task-source { color: var(--muted); font-size: 11px; }
