:root {
  --teal: #0f6e56;
  --teal-400: #1d9e75;
  --teal-50: #e1f5ee;
  --blue: #185fa5;
  --blue-50: #e6f1fb;
  --amber: #854f0b;
  --amber-50: #faeeda;
  --red: #a32d2d;
  --red-50: #fcebeb;
  --text: #1f2933;
  --muted: #6b7785;
  --line: #e3e8ee;
  --bg: #f3f6f8;
  --card: #fff;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 8px; padding: 8px 14px; font-size: 13px; }
.btn:hover { border-color: var(--teal-400); color: var(--teal); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: #0b5945; color: #fff; }
.btn.danger { color: var(--red); border-color: #f0c9c9; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.section-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.section-title::before { content: ""; width: 3px; height: 14px; background: var(--teal); border-radius: 2px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: #4b5563; margin-bottom: 5px; }
.field .req { color: var(--red); margin-right: 2px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dfe5eb; border-radius: 8px; padding: 9px 10px; background: #fff; color: var(--text); outline: none; font-size: 13px; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-400); }
.field .err { color: var(--red); font-size: 11px; margin-top: 3px; }
.hint { font-size: 11px; color: var(--muted); }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.badge.wait { background: var(--amber-50); color: var(--amber); }
.badge.doing { background: var(--blue-50); color: var(--blue); }
.badge.recheck { background: #f3eefe; color: #534ab7; }
.badge.done { background: var(--teal-50); color: var(--teal); }
.badge.reject { background: var(--red-50); color: var(--red); }
.tag { font-size: 10px; padding: 2px 6px; border-radius: 8px; margin-left: 6px; }
.tag.urgent { background: var(--red-50); color: var(--red); }
.tag.anon { background: #f1efe8; color: #5f5e5a; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); background: #1f2933; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-mask { position: fixed; inset: 0; background: rgba(20,35,48,.42); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 20px; max-height: 86vh; overflow-y: auto; }
.modal-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
