:root { --brand: #0369a1; --brand-d: #0c4a6e; --accent: #7c3aed; --bg: #f8fafc; --card: #fff; --line: #e2e8f0; --text: #1e293b; --muted: #64748b; --err: #dc2626; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { background: linear-gradient(120deg, var(--brand-d), var(--accent)); color: #fff; padding: 18px 0; }
.brand { font-size: 20px; font-weight: 700; }
.brand span { font-weight: 400; opacity: .85; font-size: 14px; margin-left: 6px; }
.tag { font-size: 13px; opacity: .85; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 20px 0; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: 13px; color: var(--muted); border-bottom: 3px solid var(--line); padding-bottom: 6px; }
.steps li.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
h1 { font-size: 20px; margin: 0 0 8px; color: var(--brand-d); }
h2 { font-size: 16px; margin: 24px 0 8px; color: var(--brand); border-left: 4px solid var(--brand); padding-left: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.roles { display: grid; gap: 12px; }
.role { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.role:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(3,105,161,.1); }
.badge { align-self: flex-start; font-size: 12px; padding: 0 8px; border-radius: 99px; background: #dcfce7; color: #166534; }
.badge.internal { background: #ede9fe; color: #5b21b6; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; font-size: 15px; }
.field > label { font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.req { color: var(--err); font-style: normal; margin-left: 2px; }
input[type=text], input[type=tel], input[type=email], input[type=url], input[type=date], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bae6fd; border-color: var(--brand); }
.opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.opt { font-weight: 400; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.check input { margin-top: 5px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.grow { flex: 1; }
.actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.btn { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font: inherit; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.notice { background: #f1f5f9; border-radius: 8px; padding: 12px 14px; font-size: 13px; max-height: 320px; overflow: auto; margin: 12px 0; }
.notice p { margin: 6px 0; }
.hint { font-size: 13px; color: var(--brand); min-height: 1.5em; }
.error { color: var(--err); font-size: 14px; min-height: 1.5em; }
.qr { border: 1px dashed var(--line); border-radius: 8px; padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding-bottom: 30px; }
.foot a { color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; font-size: 14px; }
#toast.show { opacity: 1; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.list th, table.list td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.list th { background: #e0f2fe; }
@media (max-width: 560px) { .steps li { font-size: 12px; } .actions { flex-direction: column-reverse; } .btn { width: 100%; } }
.card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.reject { margin-top: 8px; padding: 8px 10px; background: #fff7ed; border-left: 3px solid #f97316; border-radius: 6px; }
.reject p { margin: 4px 0; }
.btn.small { padding: 4px 10px; font-size: 13px; }
