:root {
  --bg: #0b0d16; --fg: hsl(230 30% 94%); --card: hsl(236 30% 10%); --sec: hsl(236 25% 15%);
  --muted: hsl(232 15% 62%); --border: hsl(236 25% 18%); --primary: hsl(245 85% 66%); --accent: hsl(275 80% 66%);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --r: .85rem;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body.wb { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  font-family: var(--font-body, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wb-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(40rem 22rem at 12% 4%, rgba(79,70,229,.22), transparent 70%), radial-gradient(34rem 20rem at 92% 10%, rgba(168,85,247,.18), transparent 70%); }
.wb-nav { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border); background: rgba(9,11,20,.82); backdrop-filter: blur(14px); }
.wb-nav-in { max-width: 1180px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.wb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; color: var(--muted); white-space: nowrap; }
.wb-brand b { color: var(--fg); font-family: var(--font-heading, inherit); font-size: 15px; }
.wb-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); }
.wb-nav nav { display: flex; gap: 22px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.wb-nav nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.wb-nav nav a:hover { color: var(--fg); }
.wb-user { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.wb-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 528px; margin: 0 auto; padding: 32px 20px 64px; }
.wb-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.wb-back:hover { color: var(--fg); }
h1 { margin: 10px 0 18px; font: 700 26px/1.3 var(--font-heading, inherit); letter-spacing: .01em; }
h2 { margin: 0 0 14px; font: 700 17px/1.4 var(--font-heading, inherit); }
.wb-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--r) + 4px); padding: 20px; margin-bottom: 16px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.6); }
.wb-muted { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.wb-card p { margin: 0 0 12px; font-size: 14px; }
.wb-field { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.wb-field input { display: block; width: 100%; margin-top: 6px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
  background: var(--sec); color: var(--fg); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.wb-field input::placeholder { color: hsl(232 12% 48%); }
.wb-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.22); }
.wb-check { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-size: 12px; color: var(--muted); cursor: pointer; }
.wb-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.wb-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; color: #fff; text-decoration: none; background: linear-gradient(90deg, #4f46e5, #9333ea); transition: filter .2s, opacity .2s; }
.wb-btn:hover { filter: brightness(1.12); }
.wb-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.wb-btn.ghost { background: var(--sec); color: var(--fg); border: 1px solid var(--border); }
.wb-row { display: flex; gap: 10px; margin-top: 10px; }
.wb-row > * { flex: 1; }
.wb-err { color: var(--bad); font-size: 13px; margin: -4px 0 12px; }
.wb-err:empty { display: none; }
.wb-note { font-size: 12px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2); margin: 0 0 14px; }
.wb-note.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.28); color: #fcd34d; }
.wb-note.bad { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.3); color: #fca5a5; }
.wb-company { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.wb-company b { color: var(--fg); font-size: 15px; }
.wb-pending { text-align: center; padding: 28px 20px; }
.wb-spin { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(99,102,241,.2); border-top-color: var(--primary); animation: wbspin 1s linear infinite; }
@keyframes wbspin { to { transform: rotate(360deg); } }
.wb-done { text-align: center; padding: 30px 20px; }
.wb-done .big { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.wb-done h2 { font-size: 20px; }
.text-gradient { background: linear-gradient(90deg, #a5b4fc, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
ol.wb-steps { list-style: none; display: flex; padding: 0; margin: 0 0 18px; counter-reset: s; }
.wb-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--muted); }
.wb-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%;
  background: var(--sec); border: 1px solid var(--border); font: 600 12px/1 var(--font-en, inherit); position: relative; z-index: 1; }
.wb-steps li + li::after { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.wb-steps li.done::before { content: "✓"; background: linear-gradient(135deg, #4f46e5, #9333ea); border-color: transparent; color: #fff; }
.wb-steps li.done + li::after, .wb-steps li.done::after, .wb-steps li.cur::after { background: linear-gradient(90deg, #4f46e5, #9333ea); }
.wb-steps li.cur { color: var(--fg); }
.wb-steps li.cur::before { border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.2); }
.wb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.wb-tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.wb-tab.on { color: #fff; border-color: transparent; background: linear-gradient(90deg, #4f46e5, #9333ea); }
.wb-log h2 { font-size: 14px; color: var(--muted); }
.wb-log ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); }
.wb-log li { position: relative; padding: 0 0 14px 10px; font-size: 13px; }
.wb-log li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--sec); border: 2px solid var(--primary); }
.wb-log li.rejected::before { border-color: var(--bad); }
.wb-log li.approved::before { border-color: var(--ok); }
.wb-log time { display: block; font-size: 11px; color: var(--muted); font-family: var(--font-en, inherit); }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--sec); color: var(--muted); margin-left: 6px; }
.tag.ok { color: var(--ok); background: rgba(52,211,153,.1); }
.tag.bad { color: var(--bad); background: rgba(248,113,113,.1); }
.wb-foot { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 28px 20px; text-align: center; font-size: 12px; color: var(--muted); }
#wb-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
@media (max-width: 760px) {
  .wb-nav nav { display: none; }
  h1 { font-size: 22px; }
  .wb-steps li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .wb-spin { animation: none; } }
.wb-main.wide { max-width: 760px; }
