:root {
  --bg: #f4f0ea;
  --card: #fff;
  --ink: #161616;
  --muted: #8b8b8b;
  --line: #ece8e1;
  --btn: #f3f1ed;
  --accent: #ff6a2b;
  --ok: #1f8a4c;
  --warn: #c47b12;
  --bad: #c0392b;
  --shadow: 0 18px 50px rgba(40, 28, 12, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 12% -10%, #fff8ee 0%, transparent 55%),
    radial-gradient(700px 380px at 90% 8%, #ffe9d6 0%, transparent 50%),
    var(--bg);
}

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111;
  position: relative;
}
.logo:after {
  content: "M";
  color: #fff;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { color: var(--muted); font-size: 13px; }

.btn {
  border: 0;
  cursor: pointer;
  background: var(--btn);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { filter: brightness(0.97); }
.btn-dark { background: #171717; color: #fff; }
.btn-ghost { background: transparent; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 80px; }

.hero { text-align: center; padding: 42px 12px 28px; }
.hero h1 { margin: 0 0 10px; font-size: 32px; letter-spacing: 0.04em; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.role {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  min-height: 214px;
  display: flex;
  flex-direction: column;
}
.role-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: #222;
}
.role-icon.accent { color: var(--accent); }
.role h3 { margin: 0 8px 0 0; font-size: 18px; display: inline; }
.tags { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
.tag {
  font-size: 11px;
  color: #9a9a9a;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 1px 6px;
}
.role p { color: #7d7d7d; font-size: 13px; line-height: 1.65; margin: 10px 0 18px; flex: 1; }
.role-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 720px;
  margin: 12px auto 0;
}
.panel h2 { margin: 0 0 6px; font-size: 22px; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 14px; }

.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: #555; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.error { color: var(--bad); font-size: 13px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }

.banner {
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 18px;
  background: #fff6e8;
  color: #8a5a12;
}
.banner.ok { background: #eaf8ef; color: #1d6b3c; }
.banner.bad { background: #fdeeee; color: #9a2b22; }

.list { display: grid; gap: 12px; }
.item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}
.item h4 { margin: 0 0 4px; font-size: 16px; }
.item .meta { color: var(--muted); font-size: 12px; }
.badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #f3f1ed;
}
.badge.wait { background: #fff1d6; color: #9a6508; }
.badge.pass { background: #e5f7ea; color: #1f8a4c; }
.badge.reject { background: #fde8e6; color: #c0392b; }

.files { display: grid; gap: 8px; }
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.progress {
  height: 6px;
  background: #eee;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.progress > i {
  display: block;
  height: 100%;
  background: #171717;
  width: 0;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.38);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}
.modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1;
  border: 0;
  background: var(--btn);
  border-radius: 999px;
  padding: 8px;
  cursor: pointer;
  font-weight: 600;
}
.tab.on { background: #171717; color: #fff; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .row { grid-template-columns: 1fr; }
  .item { grid-template-columns: 56px 1fr; }
  .item .badge { grid-column: 2; justify-self: start; }
}
