/* ==========================================================================
   通辽市农业社会化服务 · 统一工作台
   设计语言与土流平台、高标准农田平台共用 OpenDesign 契约：
   #fdfff7 纸面 / #262626 墨色 / #87f24c · #5ad11f 荧光绿 /
   58px 液态玻璃顶栏 / 244px 浮动玻璃侧栏 / 24px 大圆角 /
   奶油绿表头 / 29px · 800 KPI。
   ========================================================================== */

@font-face {
  font-family: "Albert Sans";
  src: url("./AlbertSans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #fdfff7;
  --paper: #fdfff7;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --cream: #f0fbe9;
  --paper-2: #f5f6f1;

  --ink: #262626;
  --ink-2: #434343;
  --muted: #595959;
  --faint: #8c8c8c;

  --line: #f0f0f0;
  --line-soft: #f0f0f0;
  --line-strong: #d9d9d9;

  --accent: #87f24c;
  --lime: #87f24c;
  --lime-soft: #a8f56f;
  --neon: #5ad11f;
  --lime-deep: #0d5400;
  --pine: #0d5400;
  --green: #218c00;
  --green-deep: #1c7a00;
  --olive: #1c7a00;
  --olive-deep: #0d5400;
  --brand-soft: #d9f9c2;
  --lime-wash: rgba(135, 242, 76, 0.16);

  --red: #b42318;
  --red-wash: #feeceb;
  --amber: #a85b00;
  --amber-wash: #fff3e0;
  --blue: #175cd3;
  --blue-wash: #eaf2ff;
  --success: #1f7a3f;
  --success-wash: #e6f7ec;

  --radius: 12px;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-panel: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(38, 38, 38, 0.04), 0 10px 26px -22px rgba(38, 38, 38, 0.2);
  --shadow-card: 0 14px 26px -16px rgba(38, 38, 38, 0.42);
  --shadow-md: 0 30px 60px -30px rgba(38, 38, 38, 0.16);
  --shadow-lg: 0 44px 90px -44px rgba(38, 38, 38, 0.24);
  --shadow-pop: 0 30px 60px -30px rgba(38, 38, 38, 0.28);

  --font: "Albert Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  --topbar-h: 58px;
  --side-w: 244px;
  --max-w: 1760px;
  --gutter: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  isolation: isolate;
  background:
    radial-gradient(140px 46px at 14% 45px, rgba(90, 209, 31, 0.42), transparent 72%),
    radial-gradient(190px 55px at 43% 25px, rgba(255, 186, 80, 0.34), transparent 74%),
    radial-gradient(180px 52px at 74% 38px, rgba(87, 185, 255, 0.36), transparent 74%),
    radial-gradient(120px 40px at 94% 50px, rgba(33, 140, 0, 0.22), transparent 74%),
    radial-gradient(24% 170px at 8% -24px, rgba(135, 242, 76, 0.3), transparent 76%),
    radial-gradient(25% 170px at 70% -28px, rgba(87, 185, 255, 0.24), transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0, #ffffff 230px, var(--bg) 500px);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: 0;
  background-image:
    repeating-linear-gradient(112deg, transparent 0 54px, rgba(38, 38, 38, 0.04) 54px 55px, transparent 55px 110px),
    linear-gradient(rgba(38, 38, 38, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 38, 38, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34) 18%, transparent 48%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34) 18%, transparent 48%);
}

body::after {
  top: -180px;
  right: -160px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(90, 209, 31, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 92px rgba(135, 242, 76, 0.025),
    0 0 0 184px rgba(87, 185, 255, 0.018);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(135, 242, 76, 0.5); color: var(--ink); }

:focus-visible { outline: 2px solid rgba(90, 209, 31, 0.65); outline-offset: 2px; }

.wb-skip {
  position: fixed; left: 12px; top: -60px; z-index: 10000;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--ink); color: #fff; transition: top .18s var(--ease);
}
.wb-skip:focus { top: 12px; }

/* ---------------------------------------------------------------- 登录 */

.wb-login {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(46% 38% at 10% 4%, rgba(135, 242, 76, 0.32), transparent 70%),
    radial-gradient(42% 34% at 94% 90%, rgba(90, 209, 31, 0.16), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #fdfff7 54%, #f6ffec 100%);
}

.wb-login::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 38, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 38, 38, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, rgba(0, 0, 0, 0.7), transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 40%, rgba(0, 0, 0, 0.7), transparent 78%);
}

.wb-login::after {
  content: ""; position: absolute; right: -190px; top: -240px;
  width: 580px; height: 580px; pointer-events: none;
  border: 1px solid rgba(90, 209, 31, 0.22); border-radius: 50%;
}

.wb-login-shell {
  position: relative;
  width: min(1120px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  background: #fff;
  border: 1px solid rgba(38, 38, 38, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.wb-login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 54px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(60% 46% at 88% 2%, rgba(135, 242, 76, 0.5), transparent 66%),
    radial-gradient(70% 50% at 0% 100%, rgba(90, 209, 31, 0.14), transparent 62%),
    linear-gradient(158deg, #f7ffe9 0%, #fdfff7 52%, #f1fbe4 100%);
}

.wb-login-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(38, 38, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 38, 38, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.wb-login-brand::after {
  content: ""; position: absolute; right: -150px; bottom: -190px;
  width: 420px; height: 420px; pointer-events: none;
  border: 1px solid rgba(90, 209, 31, 0.3); border-radius: 50%;
}

.wb-login-brand > * { position: relative; z-index: 1; }

.wb-brand-top { display: flex; align-items: center; gap: 12px; }
.wb-brand-seal { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; }
.wb-brand-seal img { width: 44px; height: 44px; border-radius: 14px; }
.wb-brand-org {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted);
}

.wb-brand-title {
  margin: 60px 0 20px;
  font-size: clamp(32px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.02em;
}
.wb-brand-title span {
  display: inline-block;
  padding: 1px 12px 3px;
  border-radius: 10px;
  background: linear-gradient(135deg, #87f24c 0%, #5ad11f 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(13, 84, 0, 0.22);
}
.wb-brand-rule {
  width: 44px; height: 4px; margin-bottom: 22px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, #87f24c, #5ad11f);
}
.wb-brand-desc {
  margin: 0; max-width: 420px;
  font-size: 14px; line-height: 1.95; color: var(--muted);
}
.wb-brand-facts {
  margin: 34px 0 0; display: grid; gap: 12px;
  font-size: 13.5px; color: var(--ink-2);
}
.wb-brand-facts li { display: flex; align-items: center; gap: 10px; }
.wb-brand-facts li::before {
  content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 0 4px rgba(90, 209, 31, 0.14);
}
.wb-brand-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: auto 0 0; padding-top: 48px;
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint);
}
.wb-brand-status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--olive-deep); white-space: nowrap;
}
.wb-brand-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 0 3px rgba(90, 209, 31, 0.18);
}

.wb-login-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 52px 42px; background: #fff;
}
.wb-panel-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--faint);
}
.wb-panel-title {
  margin: 12px 0 8px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
}
.wb-panel-sub { margin: 0 0 28px; font-size: 13px; color: var(--muted); }
.wb-login-card { width: 100%; }
.wb-login-card form { display: grid; gap: 20px; }

.wb-field label {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 600;
}
.wb-field label em { font-style: normal; color: var(--faint); font-weight: 400; font-size: 11px; }
.wb-field input,
.wb-field select,
.wb-field textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fcfcfc;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13px;
  transition: box-shadow .2s var(--ease);
}
.wb-field textarea { height: auto; min-height: 110px; padding: 11px 14px; resize: vertical; }
.wb-field input:focus,
.wb-field select:focus,
.wb-field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--neon), 0 0 0 3px rgba(90, 209, 31, 0.18);
}
.wb-field input[readonly],
.wb-field textarea[readonly] { background: var(--paper-2); color: var(--muted); }
.wb-field .hint { margin-top: 5px; color: var(--faint); font-size: 11.5px; }

.wb-login-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 12px; color: var(--muted);
}
.wb-login-row a { color: var(--olive-deep); font-weight: 700; }
.wb-login-error {
  display: none; padding: 12px 16px;
  border: 1px solid rgba(185, 28, 28, 0.22); border-radius: 14px;
  background: rgba(254, 226, 226, 0.72); color: #991b1b;
  font-size: 12px; font-weight: 600; line-height: 1.65;
}
.wb-login-error.is-on { display: block; }
.wb-login-actions { display: grid; gap: 10px; }
.wb-login-button {
  height: 52px; width: 100%; margin-top: 10px;
  border: 0; border-radius: var(--pill);
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.16em;
  box-shadow: 0 14px 26px -16px rgba(38, 38, 38, 0.42);
  animation: wb-breathe 2.8s var(--ease) infinite;
}
.wb-login-button:hover { background: #000; transform: translateY(-1px); }
.wb-login-button[disabled] { opacity: .7; cursor: wait; animation: none; }
.wb-login-alt {
  display: flex; align-items: center; gap: 12px;
  color: var(--faint); font-size: 11.5px; letter-spacing: .1em;
}
.wb-login-alt::before, .wb-login-alt::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.wb-login-alt-link {
  display: flex; align-items: center; justify-content: center;
  height: 48px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.wb-login-alt-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.wb-login-foot {
  margin-top: 26px; padding-top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--faint); font-size: 11.5px;
}
@keyframes wb-breathe {
  0%, 100% { box-shadow: 0 14px 26px -16px rgba(38,38,38,.42), 0 0 0 0 rgba(99,254,19,.28); }
  50% { box-shadow: 0 14px 26px -16px rgba(38,38,38,.42), 0 0 0 7px rgba(99,254,19,.133); }
}

/* ---------------------------------------------------------------- 主壳 */

.wb-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--topbar-h);
  color: var(--ink);
  border-bottom: 1px solid rgba(38, 38, 38, 0.08);
  background:
    radial-gradient(28% 160% at 8% 100%, rgba(135, 242, 76, 0.19), transparent 72%),
    radial-gradient(30% 170% at 72% 100%, rgba(255, 186, 80, 0.1), transparent 74%),
    radial-gradient(28% 150% at 94% 100%, rgba(87, 185, 255, 0.16), transparent 74%),
    rgba(255, 255, 255, 0.48);
  -webkit-backdrop-filter: blur(16px) saturate(1.55);
  backdrop-filter: blur(16px) saturate(1.55);
  box-shadow:
    inset 0 0 2px 1px rgba(255, 255, 255, 0.64),
    inset 0 0 14px 4px rgba(255, 255, 255, 0.26),
    0 7px 24px rgba(17, 17, 26, 0.06);
  isolation: isolate;
  display: flex;
  align-items: center;
}

.wb-topbar::after {
  content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,209,31,.4), rgba(255,255,255,.72), rgba(87,185,255,.35), transparent);
}

.wb-topbar.is-scrolled {
  background:
    radial-gradient(28% 160% at 8% 100%, rgba(135, 242, 76, 0.22), transparent 72%),
    radial-gradient(30% 170% at 72% 100%, rgba(255, 186, 80, 0.12), transparent 74%),
    radial-gradient(28% 150% at 94% 100%, rgba(87, 185, 255, 0.18), transparent 74%),
    rgba(255, 255, 255, 0.64);
  border-bottom-color: rgba(21, 20, 15, 0.11);
  box-shadow:
    inset 0 0 2px 1px rgba(255, 255, 255, 0.7),
    inset 0 0 16px 5px rgba(255, 255, 255, 0.28),
    0 10px 32px rgba(17, 17, 26, 0.08);
}

.wb-topbar-brand {
  width: calc(var(--side-w) - 24px);
  flex: 0 0 calc(var(--side-w) - 24px);
  height: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 0 18px 0 20px;
  border-right: 1px solid rgba(38, 38, 38, 0.09);
}
.wb-topbar-brand img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.wb-topbar-brand strong {
  display: block; overflow: hidden;
  font-size: 13.5px; font-weight: 700; letter-spacing: .01em;
  line-height: 1.2; white-space: nowrap; text-overflow: ellipsis;
}
.wb-topbar-brand small {
  display: block; margin-top: 3px; overflow: hidden;
  color: var(--faint); font-size: 8px; font-weight: 600; letter-spacing: .13em;
  line-height: 1.2; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis;
}
.wb-burger {
  display: none; width: 36px; height: 36px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid rgba(38,38,38,.12); border-radius: 50%;
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.wb-burger span { display: block; width: 16px; height: 1.6px; background: var(--ink); position: relative; }
.wb-burger span::before, .wb-burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--ink);
}
.wb-burger span::before { top: -5px; }
.wb-burger span::after { top: 5px; }

.wb-topbar-main {
  flex: 1; min-width: 0; height: 100%;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px 0 20px;
}
.wb-crumb {
  min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding-left: 18px; border-left: 1px solid rgba(38, 38, 38, 0.09);
}
.wb-crumb p {
  display: flex; align-items: center; gap: 6px;
  color: var(--faint); font-size: 8.5px; font-weight: 700;
  letter-spacing: .12em; line-height: 1.2; text-transform: uppercase;
}
.wb-crumb p .slash { color: rgba(38,38,38,.26); }
.wb-crumb strong {
  overflow: hidden; color: var(--ink);
  font-size: 13px; font-weight: 650; letter-spacing: -.01em;
  line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}

.wb-topbar-right { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wb-health {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid rgba(90,209,31,.22);
  border-radius: var(--pill);
  background: linear-gradient(135deg, rgba(135,242,76,.16), rgba(255,255,255,.44));
  color: var(--olive-deep); font-size: 11.5px; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}
.wb-health i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 0 3px rgba(90,209,31,.18);
}
.wb-health.is-warn {
  border-color: rgba(168,91,0,.24);
  background: var(--amber-wash); color: var(--amber);
}
.wb-health.is-warn i { background: var(--amber); box-shadow: none; }
.wb-scope { color: var(--muted); font-size: 11px; white-space: nowrap; }
.wb-topbar-date { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.wb-user {
  position: relative; height: 36px;
  display: flex; align-items: center; gap: 8px;
  padding: 3px 9px 3px 4px;
  border: 1px solid transparent; border-radius: var(--pill);
  background: transparent; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.wb-user:hover { border-color: rgba(38,38,38,.08); background: rgba(255,255,255,.5); transform: translateY(-1px); }
.wb-user .avatar {
  position: relative; width: 29px; height: 29px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.58); border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.34), transparent 42%),
    linear-gradient(135deg, #87f24c, #218c00);
  color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.56);
}
.wb-user .avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 8px; height: 8px; border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%; background: var(--neon);
}
.wb-user .name { max-width: 6em; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wb-user .caret { color: var(--faint); font-size: 10px; }
.wb-user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 90;
  min-width: 220px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-md);
  display: none;
}
.wb-user-menu.is-open { display: block; }
.wb-user-menu .who { padding: 9px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.wb-user-menu .who b { display: block; font-size: 13px; }
.wb-user-menu .who span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.wb-user-menu button {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-2); font-size: 12.5px; text-align: left;
}
.wb-user-menu button:hover { background: rgba(135,242,76,.18); color: var(--olive-deep); }

.wb-body { display: block; min-height: 100vh; padding-top: var(--topbar-h); }

.wb-side {
  position: fixed;
  top: calc(var(--topbar-h) + 14px);
  bottom: 14px;
  left: 14px;
  z-index: 90;
  width: var(--side-w);
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 24% at 0% 0%, rgba(135,242,76,.2), transparent 72%),
    radial-gradient(110% 24% at 100% 54%, rgba(87,185,255,.14), transparent 76%),
    linear-gradient(155deg, rgba(255,255,255,.68), rgba(253,255,247,.46));
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 0 18px 5px rgba(255,255,255,.2),
    0 28px 74px -34px rgba(17,17,26,.34),
    0 10px 28px -20px rgba(33,140,0,.24);
  isolation: isolate;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.wb-side::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255,255,255,.4), transparent 31%, transparent 72%, rgba(255,255,255,.22)),
    radial-gradient(70% 22% at 20% -5%, rgba(255,255,255,.64), transparent 72%);
  mix-blend-mode: screen; opacity: .84;
}
.wb-side::after {
  content: ""; position: absolute; inset: 1px; pointer-events: none;
  border: 1px solid rgba(255,255,255,.3); border-radius: 27px;
  box-shadow: inset 0 0 14px rgba(255,255,255,.16);
}

.wb-side-head {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 18px 14px;
}
.wb-side-head > div { min-width: 0; }
.wb-side-head p {
  margin: 0 0 4px; overflow: hidden; color: var(--faint);
  font-size: 7.5px; font-weight: 700; letter-spacing: .13em;
  line-height: 1.3; text-transform: uppercase;
  white-space: nowrap; text-overflow: ellipsis;
}
.wb-side-head strong {
  display: block; overflow: hidden; color: var(--ink);
  font-size: 18px; font-weight: 700; letter-spacing: -.035em;
  line-height: 1.18; text-overflow: ellipsis; white-space: nowrap;
}
.wb-side-ordinal {
  display: grid; min-width: 34px; height: 28px; padding: 0 8px; place-items: center;
  border: 1px solid rgba(38,38,38,.09); border-radius: 10px;
  background: rgba(255,255,255,.42); color: var(--faint);
  font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.wb-side-scroll {
  position: relative; z-index: 1; min-height: 0; flex: 1;
  padding: 0 10px 10px; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.wb-side-foot {
  position: relative; z-index: 1;
  padding: 13px 17px 16px;
  border-top: 1px solid rgba(38,38,38,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.3));
}
.wb-side-foot b {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--olive-deep); font-size: 9px; font-weight: 650; letter-spacing: .06em;
}
.wb-side-foot b i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 0 3px rgba(90,209,31,.14);
}
.wb-side-foot span {
  display: block; margin-top: 3px; color: var(--faint);
  font-size: 8.5px; letter-spacing: .06em;
}

.wb-main {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max-w); margin: 0;
  padding: 28px var(--gutter) 36px calc(var(--side-w) + 38px);
}
.wb-main-inner { min-width: 0; }

.wb-loadbar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: 2px; z-index: 80;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.wb-loadbar.is-on { opacity: 1; }
.wb-loadbar i {
  display: block; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  animation: wb-load 1.1s ease-in-out infinite;
}
@keyframes wb-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(380%); } }

/* ---------------------------------------------------------------- 导航 */

.wb-nav { display: grid; gap: 5px; }
.wb-nav-group { min-width: 0; border-radius: 18px; }

.wb-nav-trigger {
  width: 100%; min-height: 48px;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center; gap: 9px;
  padding: 7px 10px;
  border: 1px solid transparent; border-radius: 17px;
  background: transparent; color: var(--ink-2);
  font-family: inherit; text-align: left; text-decoration: none;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease), transform .24s var(--ease);
}
.wb-nav-trigger:hover {
  border-color: rgba(38,38,38,.07);
  background:
    linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.18)),
    rgba(135,242,76,.08);
  color: var(--ink); transform: translateX(2px);
}
.wb-nav-group.is-open > .wb-nav-trigger,
.wb-nav-group.is-active > .wb-nav-trigger {
  border-color: rgba(90,209,31,.17);
  background:
    radial-gradient(90% 120% at 0 50%, rgba(135,242,76,.2), transparent 68%),
    rgba(255,255,255,.3);
  color: var(--olive-deep);
}
.wb-nav-ordinal {
  display: grid; width: 26px; height: 26px; place-items: center;
  border: 1px solid rgba(38,38,38,.08); border-radius: 9px;
  background: rgba(255,255,255,.42); color: var(--faint);
  font-size: 8px; font-variant-numeric: tabular-nums; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.wb-nav-group.is-active .wb-nav-ordinal {
  border-color: rgba(90,209,31,.24);
  background: linear-gradient(145deg, rgba(201,249,168,.8), rgba(255,255,255,.5));
  color: var(--olive-deep);
}
.wb-nav-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wb-nav-title {
  overflow: hidden; font-size: 12.5px; font-weight: 650;
  line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}
.wb-nav-copy small {
  color: var(--faint); font-size: 8.5px; font-weight: 500; letter-spacing: .08em;
}
.wb-nav-chevron {
  width: 10px; height: 7px; color: var(--faint);
  transition: color .22s var(--ease), transform .28s var(--ease);
}
.wb-nav-chevron.is-open { color: var(--olive); transform: rotate(180deg); }
.wb-nav-item-arrow {
  margin-left: auto; color: var(--faint); font-size: 10px;
  opacity: 0; transform: translate(-2px, 1px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wb-nav-trigger:hover .wb-nav-item-arrow,
.wb-nav-trigger--link.is-active .wb-nav-item-arrow { opacity: 1; transform: none; }
.wb-nav-trigger--link.is-active .wb-nav-item-arrow { color: var(--lime); }

.wb-nav-children[hidden] { display: none; }
.wb-nav-children {
  position: relative; display: grid; gap: 3px;
  margin: 2px 7px 6px 31px; padding: 3px 0 3px 10px;
  border-left: 1px solid rgba(38,38,38,.09);
}
.wb-nav-item {
  position: relative; min-height: 36px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  border: 1px solid transparent; border-radius: 12px;
  color: var(--muted); font-size: 11.5px; text-decoration: none;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.wb-nav-item:hover {
  border-color: rgba(38,38,38,.06); background: rgba(255,255,255,.5);
  color: var(--ink); transform: translateX(2px);
}
.wb-nav-item.is-active {
  border-color: rgba(255,255,255,.1);
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(135,242,76,.2), transparent 56%),
    var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 20px -17px rgba(38,38,38,.66);
}
.wb-nav-item::before {
  content: ""; width: 4px; height: 4px; flex: none; border-radius: 50%;
  background: var(--line-strong);
}
.wb-nav-item.is-active::before {
  background: var(--lime); box-shadow: 0 0 0 3px rgba(135,242,76,.17);
}
.wb-nav-item .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-nav-item .arrow {
  margin-left: auto; color: var(--faint); font-size: 10px;
  opacity: 0; transform: translate(-2px, 1px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wb-nav-item:hover .arrow, .wb-nav-item.is-active .arrow { opacity: 1; transform: none; }
.wb-nav-item.is-active .arrow { color: var(--lime); }
.wb-nav-item .count {
  margin-left: auto; min-width: 22px; height: 18px; padding: 0 6px;
  border-radius: var(--pill); display: inline-grid; place-items: center;
  background: var(--amber-wash); color: var(--amber);
  font-size: 10px; font-weight: 600;
}

/* ---------------------------------------------------------------- 页头 */

.wb-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 18px;
}
.wb-page-kicker {
  margin: 0 0 6px;
  color: var(--muted); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.wb-page-title {
  position: relative; margin: 0; padding-top: 14px;
  color: var(--ink); font-size: 32px; font-weight: 700;
  line-height: 1.1; letter-spacing: -.015em;
}
.wb-page-title::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 34px; height: 4px; border-radius: var(--pill);
  background: linear-gradient(90deg, var(--lime), var(--neon));
}
.wb-page-sub { margin: 8px 0 0; max-width: 840px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.wb-page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------------- 按钮 */

.wb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: var(--surface); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wb-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.wb-btn:active { transform: translateY(0); }
.wb-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.wb-btn.is-primary {
  border-color: var(--ink); background: var(--ink); color: #fff;
  box-shadow: 0 14px 26px -16px rgba(38,38,38,.42);
}
.wb-btn.is-primary:hover { background: #000; border-color: #000; box-shadow: 0 18px 32px -16px rgba(38,38,38,.48), 0 0 0 4px rgba(135,242,76,.16); }
.wb-btn.is-lime { border-color: transparent; background: var(--lime); color: var(--olive-deep); }
.wb-btn.is-lime:hover { background: var(--neon); }
.wb-btn.is-danger { border-color: rgba(180,35,24,.3); background: var(--red-wash); color: var(--red); }
.wb-btn.is-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.wb-btn.is-ghost:hover { background: rgba(38,38,38,.05); color: var(--ink); }
.wb-btn.is-sm { height: 32px; padding: 0 13px; font-size: 11.5px; }
.wb-btn .ico { width: 14px; height: 14px; }

.wb-link {
  border: 0; background: transparent; padding: 0;
  color: var(--olive-deep); font-size: 12px; font-weight: 700;
}
.wb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.wb-link.is-danger { color: var(--red); }

/* ---------------------------------------------------------------- KPI */

.wb-kpis {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 16px;
}
.wb-kpi {
  position: relative; overflow: hidden;
  padding: 17px 18px 15px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.wb-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.wb-kpi .k-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--muted); font-size: 11.5px;
}
.wb-kpi .k-value {
  display: flex; align-items: baseline; gap: 3px;
  margin-top: 4px;
  color: var(--ink); font-size: 29px; font-weight: 800;
  letter-spacing: -.035em; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.wb-kpi .k-value small { margin-left: 3px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.wb-kpi .k-hint { margin-top: 3px; color: var(--faint); font-size: 10.5px; }
.wb-kpi .k-hint b { color: var(--olive-deep); font-weight: 700; }
.wb-kpi.is-alert .k-value { color: var(--amber); }

/* ---------------------------------------------------------------- 卡片 */

.wb-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wb-card + .wb-card { margin-top: 14px; }
.wb-card-head {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 20px 24px 10px;
  border-bottom: 0;
}
.wb-card-head h2 {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 18px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2;
}
.wb-card-head h2::before {
  content: ""; width: 4px; height: 16px; border-radius: var(--pill);
  background: linear-gradient(180deg, var(--lime), var(--neon));
}
.wb-card-head .meta { color: var(--muted); font-size: 12px; }
.wb-card-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.wb-card-body { padding: 16px 24px 22px; }
.wb-card-body.is-flush { padding: 0; }

.wb-grid { display: grid; gap: 18px; }
.wb-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-grid.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }

/* ---------------------------------------------------------------- 筛选 */

.wb-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px;
  margin-bottom: 14px; padding: 14px 16px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
}
.wb-filter { min-width: 132px; flex: 1 1 170px; max-width: 260px; }
.wb-filter.is-wide { flex-basis: 240px; max-width: 340px; }
.wb-filter label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.wb-filter input, .wb-filter select {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink-2); font-size: 12.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.wb-filter input:focus, .wb-filter select:focus {
  outline: none; border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(90,209,31,.18);
}
.wb-filter-actions { display: flex; gap: 8px; margin-left: auto; padding-bottom: 1px; }
.wb-filter-actions .wb-btn { height: 36px; padding: 0 16px; font-size: 12px; }

/* ---------------------------------------------------------------- 表格 */

.wb-table-wrap {
  width: 100%; overflow: auto;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
}
.wb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.wb-table th {
  position: sticky; top: 0; z-index: 2;
  height: 38px; padding: 0 14px;
  text-align: left; white-space: nowrap;
  background: var(--cream); color: var(--ink-2);
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  border-bottom: 1px solid var(--line-soft);
}
.wb-table td {
  height: 44px; padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2); vertical-align: middle; white-space: nowrap;
}
.wb-table tbody tr { transition: background .18s ease; }
.wb-table tbody tr:hover td { background: rgba(99,254,19,.06); }
.wb-table tbody tr:last-child td { border-bottom: 0; }
.wb-table td.is-num, .wb-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.wb-table td.is-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--muted); }
.wb-table td.is-strong { color: var(--ink); font-weight: 600; }
.wb-table td .cell-sub { display: block; margin-top: 2px; color: var(--faint); font-size: 10.5px; white-space: normal; }
.wb-table td.is-wrap { white-space: normal; min-width: 220px; }
.wb-table .row-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.wb-pager {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 14px 24px 2px;
  color: var(--muted); font-size: 11.5px;
}
.wb-pager .spacer { margin-left: auto; }
.wb-pager button {
  min-width: 30px; height: 30px; padding: 0 9px;
  border: 1px solid transparent; border-radius: var(--pill);
  background: transparent; color: var(--ink-2); font-size: 11.5px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.wb-pager button:hover { background: rgba(135,242,76,.2); color: var(--olive-deep); }
.wb-pager button[disabled] { opacity: .45; cursor: not-allowed; }
.wb-pager .page-now { background: var(--ink); color: #fff; font-weight: 700; }
.wb-pager .page-now:hover { background: var(--ink); color: #fff; }
.wb-pager-size {
  height: 30px; border: 1px solid var(--line-strong); border-radius: var(--pill);
  background: var(--surface); padding: 0 10px; font-size: 11.5px;
}

/* ---------------------------------------------------------------- 状态 */

.wb-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px; border: 1px solid rgba(38,38,38,.08);
  border-radius: var(--pill);
  background: var(--paper-2); color: var(--ink-2);
  font-size: 10.5px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.wb-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: .75;
}
.wb-pill.is-ok { border-color: rgba(90,209,31,.28); background: rgba(135,242,76,.14); color: var(--olive-deep); }
.wb-pill.is-warn { border-color: rgba(168,91,0,.2); background: var(--amber-wash); color: var(--amber); }
.wb-pill.is-bad { border-color: rgba(180,35,24,.2); background: var(--red-wash); color: var(--red); }
.wb-pill.is-info { border-color: rgba(23,92,211,.16); background: var(--blue-wash); color: var(--blue); }
.wb-pill.is-mute { border-color: rgba(38,38,38,.08); background: var(--paper-2); color: var(--muted); }

.wb-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 9px; border: 1px solid rgba(90,209,31,.28);
  border-radius: var(--pill); background: rgba(135,242,76,.14);
  color: var(--olive-deep); font-size: 10.5px;
}

/* ---------------------------------------------------------------- 状态页 */

.wb-state {
  display: grid; justify-items: center; gap: 10px;
  padding: 40px 20px 36px; text-align: center; color: var(--muted);
}
.wb-state .ico {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 35%, rgba(135,242,76,.65), rgba(90,209,31,.18));
  box-shadow: 0 0 0 8px rgba(90,209,31,.1);
  color: var(--olive-deep);
}
.wb-state .ico svg { width: 22px; height: 22px; }
.wb-state h3 { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.wb-state p { max-width: 460px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.wb-state .actions { display: flex; gap: 8px; margin-top: 6px; }
.wb-state.is-error .ico {
  background: var(--red-wash); box-shadow: 0 0 0 8px rgba(180,35,24,.06); color: var(--red);
}

.wb-skeleton { padding: 16px; display: grid; gap: 9px; }
.wb-skeleton i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(38,38,38,.05), rgba(38,38,38,.1), rgba(38,38,38,.05));
  background-size: 200% 100%;
  animation: wb-shimmer 1.2s ease-in-out infinite;
}
.wb-skeleton i:nth-child(2) { width: 82%; }
.wb-skeleton i:nth-child(3) { width: 64%; }
@keyframes wb-shimmer { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* ---------------------------------------------------------------- 抽屉 / 弹窗 */

.wb-layer { position: relative; z-index: 200; }
.wb-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(38, 38, 38, 0.14);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s var(--ease);
}
.wb-scrim.is-on { opacity: 1; }

.wb-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
  width: min(560px, 96vw);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .26s var(--ease);
}
.wb-drawer.is-on { transform: none; }
.wb-drawer.is-wide { width: min(760px, 98vw); }
.wb-drawer-head {
  flex: none; display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--line-soft);
}
.wb-drawer-head h2 { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.wb-drawer-head p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.wb-drawer-head .close {
  margin-left: auto; flex: none; width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(38,38,38,.1); border-radius: 50%;
  background: rgba(255,255,255,.52); color: var(--ink); font-size: 18px; line-height: 1;
}
.wb-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 26px; }
.wb-drawer-foot {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 14px 24px; border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.wb-drawer-foot .note { margin-right: auto; color: var(--faint); font-size: 11.5px; }

.wb-modal {
  position: fixed; z-index: 210; left: 50%; top: 50%;
  width: min(460px, 94vw);
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translate(-50%, -46%) scale(.98); opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.wb-modal.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wb-modal h3 { font-size: 18px; font-weight: 700; }
.wb-modal p { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.wb-modal .actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }

.wb-toasts {
  position: fixed; z-index: 300; right: 18px; bottom: 18px;
  display: grid; gap: 8px; width: min(360px, calc(100vw - 36px));
}
.wb-toast {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface);
  box-shadow: var(--shadow-md); font-size: 12.5px;
  animation: wb-toast-in .2s var(--ease) both;
}
.wb-toast i { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--neon); }
.wb-toast.is-error i { background: var(--red); }
.wb-toast.is-warn i { background: var(--amber); }
@keyframes wb-toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 表单 */

.wb-form { display: grid; gap: 18px; }
.wb-form .row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-form .row.is-one { grid-template-columns: 1fr; }
.wb-form .row.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-form .wb-field label { font-size: 12px; }
.wb-form .full { grid-column: 1 / -1; }
.wb-form .error { display: none; margin-top: 4px; color: var(--red); font-size: 11.5px; }
.wb-field.has-error input, .wb-field.has-error select, .wb-field.has-error textarea {
  border-color: rgba(180,35,24,.45);
  box-shadow: inset 0 0 0 1px rgba(180,35,24,.45), 0 0 0 3px rgba(180,35,24,.08);
}
.wb-field.has-error .error { display: block; }

.wb-checkline { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 4px; }
.wb-check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12.5px; }
.wb-check input { width: 15px; height: 15px; accent-color: var(--green); }

/* ---------------------------------------------------------------- 详情 */

.wb-desc {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--line-soft);
}
.wb-desc > div { min-width: 0; padding: 11px 13px; background: var(--surface); }
.wb-desc dt { margin-bottom: 3px; color: var(--faint); font-size: 10.5px; }
.wb-desc dd { color: var(--ink); font-size: 12.5px; word-break: break-word; }
.wb-desc .full { grid-column: 1 / -1; }
.wb-section-title {
  margin: 20px 0 10px; display: flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 12px; font-weight: 700;
}
.wb-section-title::before {
  content: ""; width: 4px; height: 14px; border-radius: var(--pill);
  background: linear-gradient(180deg, var(--lime), var(--neon));
}
.wb-section-title:first-child { margin-top: 0; }

.wb-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wb-mini-table th {
  padding: 8px 10px; text-align: left; background: var(--cream);
  color: var(--ink-2); font-size: 10.5px; font-weight: 700;
}
.wb-mini-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }

.wb-note {
  display: flex; gap: 9px; margin-top: 14px; padding: 12px 14px;
  border: 1px solid rgba(168,91,0,.2); border-radius: var(--radius-sm);
  background: var(--amber-wash); color: #6b4e00; font-size: 12px; line-height: 1.65;
}
.wb-note i {
  flex: none; width: 17px; height: 17px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: #f5d98a; color: #6b4e00; font-size: 10px; font-style: normal; font-weight: 700;
}
.wb-note.is-info { border-color: rgba(23,92,211,.16); background: var(--blue-wash); color: #1c4f83; }
.wb-note.is-info i { background: #cfe0f5; color: #1c4f83; }

/* ---------------------------------------------------------------- 总览 */

.wb-overview-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 22px;
  margin-bottom: 16px; padding: 22px 24px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(99, 254, 19, 0.14), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.wb-overview-hero h2 {
  margin-top: 6px; color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.3;
}
.wb-overview-hero h2 span { color: var(--olive-deep); }
.wb-overview-hero p { margin-top: 8px; max-width: 660px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.wb-overview-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wb-overview-hero .hero-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink-2); font-size: 11.5px;
}
.wb-overview-hero .hero-meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wb-hero-side { display: grid; align-content: center; gap: 9px; }
.wb-hero-stat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface);
}
.wb-hero-stat span { color: var(--muted); font-size: 11.5px; }
.wb-hero-stat b { color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.wb-todo-list { display: grid; gap: 9px; }
.wb-todo {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.wb-todo:hover { border-color: rgba(90,209,31,.3); transform: translateY(-1px); }
.wb-todo .n {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--cream); color: var(--olive-deep);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.wb-todo.is-hot .n { background: var(--amber-wash); color: var(--amber); }
.wb-todo .t { min-width: 0; }
.wb-todo .t b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.wb-todo .t span { display: block; margin-top: 1px; color: var(--faint); font-size: 11px; }
.wb-todo .arrow { margin-left: auto; color: var(--faint); font-size: 14px; }

.wb-bars { display: grid; gap: 11px; }
.wb-bar-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: 11.5px; }
.wb-bar-row span { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.wb-bar { height: 7px; overflow: hidden; border-radius: var(--pill); background: rgba(38,38,38,.07); }
.wb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--neon)); }
.wb-bar-row b { color: var(--ink-2); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.wb-recent { display: grid; }
.wb-recent-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) 90px 90px;
  gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px;
}
.wb-recent-row:last-child { border-bottom: 0; }
.wb-recent-row .m { color: var(--muted); }
.wb-recent-row .n { text-align: right; font-variant-numeric: tabular-nums; }
.wb-recent-row .t { color: var(--faint); font-size: 11px; text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1380px) {
  .wb-health { display: none; }
  .wb-topbar-main { gap: 14px; }
}

@media (max-width: 1180px) {
  .wb-overview-hero { grid-template-columns: 1fr; }
  .wb-grid.wide-left { grid-template-columns: 1fr; }
  .wb-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1119px) {
  .wb-side {
    top: calc(var(--topbar-h) + 10px);
    bottom: 10px;
    left: 10px;
    width: min(348px, calc(100vw - 20px));
    transform: translateX(calc(-100% - 20px));
    border-radius: var(--radius-xl);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.92),
      0 30px 76px -28px rgba(17,17,26,.42);
  }
  .wb-side.is-open { transform: none; }
  .wb-side-scrim {
    position: fixed; inset: var(--topbar-h) 0 0; z-index: 80;
    background: rgba(38,38,38,.14);
    -webkit-backdrop-filter: blur(6px) saturate(.92); backdrop-filter: blur(6px) saturate(.92);
  }
  .wb-burger { display: inline-flex; margin-left: auto; }
  .wb-topbar-brand { width: auto; flex: 0 0 auto; border-right: 0; }
  .wb-topbar-main { padding: 0 14px; }
  .wb-main { padding: 24px 22px 32px; }
  .wb-scope { display: none; }
}

@media (max-width: 760px) {
  .wb-topbar-main { padding: 0 12px; gap: 10px; }
  .wb-crumb { padding-left: 10px; }
  .wb-crumb p { display: none; }
  .wb-crumb strong { max-width: 30vw; font-size: 12px; }
  .wb-topbar-date { display: none; }
  .wb-topbar-right { gap: 5px; }
}

@media (max-width: 720px) {
  .wb-page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .wb-page-actions { width: 100%; justify-content: flex-start; }
  .wb-page-title { font-size: 28px; }
  .wb-grid.two, .wb-grid.three { grid-template-columns: 1fr; }
  .wb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-kpi .k-value { font-size: 23px; }
  .wb-filters { padding: 12px; }
  .wb-filter { max-width: none; flex-basis: 100%; }
  .wb-filter-actions { width: 100%; margin-left: 0; }
  .wb-filter-actions .wb-btn { flex: 1; }
  .wb-form .row, .wb-form .row.is-three { grid-template-columns: 1fr; }
  .wb-desc { grid-template-columns: 1fr; }
  .wb-card-head { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 14px 10px; }
  .wb-card-body { padding: 14px; }
  .wb-table td, .wb-table th { padding-left: 12px; padding-right: 12px; }
  .wb-pager { padding: 12px 14px 2px; }
  .wb-recent-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .wb-recent-row .m, .wb-recent-row .t { display: none; }
  .wb-login { padding: 14px; }
  .wb-login-shell { grid-template-columns: 1fr; min-height: auto; border-radius: 22px; }
  .wb-login-brand { display: none; }
  .wb-login-panel { padding: 34px 26px 30px; }
  .wb-login-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 640px) {
  .wb-topbar-brand strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .wb-topbar-brand small { display: none; }
  .wb-user { padding: 3px; }
  .wb-user .name, .wb-user .caret { display: none; }
  .wb-main { padding: 18px 14px 26px; }
  .wb-overview-hero { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
