:root {
  --green: #0e5c45;
  --green-dark: #0a4635;
  --ink: #1c2430;
  --muted: #5c6b66;
  --line: #d5e0db;
  --bg: #eef3f0;
  --card: #fff;
  --warn: #8a4b12;
  --warn-bg: #fbf3e8;
  --bad: #8c3428;
  --bad-bg: #f8eeeb;
  --shadow: 0 10px 30px rgba(14, 40, 32, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SimSun", "Songti SC", "NSimSun", serif;
  font-size: 14px;
  color: #222;
  background: #f3f3f3;
}

button, input, textarea { font: inherit; color: inherit; }

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.form-shell { padding-bottom: 96px; }

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  background: var(--card);
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  box-shadow: none;
  padding: 22px 24px 18px;
}

.org {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #555;
}

.brand {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1 {
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}

.lead, .hint {
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}

.lead { margin: 0 0 18px; }

label {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
}

input[type="text"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  padding: 6px 8px;
  background: #fff;
  outline: none;
  font-size: 13px;
}

input:focus, select:focus, textarea:focus { border-color: var(--green); }

input:disabled { background: #f6f8f7; color: var(--muted); }

textarea { min-height: 84px; resize: vertical; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  display: inline-block;
  background: #e7f2ee;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
}

.progress { margin: 14px 0 8px; color: var(--muted); font-size: 13px; }

.bar {
  height: 6px;
  background: #e4ece8;
  border-radius: 99px;
  overflow: hidden;
}

.bar span { display: block; height: 100%; background: var(--green); }

h2 {
  margin: 4px 0 2px;
  font-size: 15px;
  line-height: 1.4;
}

.grid {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13px;
}

.grid th, .grid td {
  border: 1px solid #bfbfbf;
  padding: 12px 10px;
  vertical-align: top;
  text-align: left;
  line-height: 1.9;
}

.grid th {
  background: #f7f7f7;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.col-no { width: 42px; text-align: center; }
.col-opt { width: 148px; }
.col-note { width: 34%; }

.ask { line-height: 1.9; }
.rule { margin-top: 6px; color: #444; font-size: 14px; line-height: 1.9; }
.note-hint { margin: 0 0 8px; color: #333; font-size: 14px; line-height: 1.9; }

input.note, textarea.note { margin: 0; }
textarea.note.fill { min-height: 72px; line-height: 1.9; resize: vertical; }
button.xls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 8px 14px 8px 8px;
  border: 1px solid #b7d7c6;
  border-radius: 4px;
  background: #f3faf6;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}
button.xls:hover { border-color: #217346; background: #e7f6ee; }
.xls-icon { width: 32px; height: 38px; flex: 0 0 32px; display: block; }
.xls-text { display: flex; flex-direction: column; line-height: 1.45; }
.xls-name { color: #185c37; font-size: 14px; font-weight: 700; }
.xls-sub { color: #5c6b66; font-size: 12px; }
input.file { display: block; width: 100%; font-size: 13px; }
input.file.need { outline: 1px solid var(--bad); }
.warn-line { margin-top: 8px; color: var(--bad); font-size: 14px; line-height: 1.9; font-weight: 700; }
input.note.need, textarea.note.need { border-color: var(--bad); background: var(--bad-bg); }

.choice {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.9;
  cursor: pointer;
  color: #222;
  text-align: left;
}

.choice.on { font-weight: 700; }

.choice:last-child { margin-right: 0; }

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

button.primary, button.ghost {
  border-radius: 2px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

button.primary { background: var(--green); color: #fff; border: 0; }
button.primary:disabled { opacity: 0.55; cursor: not-allowed; }
button.ghost { background: #fff; border: 1px solid var(--line); }

.item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.tag {
  font-size: 12px;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}
.tag.ok { background: #e7f2ee; color: var(--green-dark); }
.tag.partial, .tag.bad { background: var(--bad-bg); color: var(--bad); }

.banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.banner.ok { background: #e7f2ee; color: var(--green-dark); }

textarea.prose { min-height: 240px; line-height: 1.7; }
textarea.prose.short { min-height: 120px; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin: 8px 0 0; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(14, 40, 32, 0.06);
}

.dock-inner {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .card { padding: 16px 12px 12px; }
  .row { grid-template-columns: 1fr; }
  .col-note, .col-opt { width: auto; white-space: normal; }
  h1 { font-size: 16px; }
}

@media print {
  body { background: #fff; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .dock, .noprint { display: none !important; }
}
