:root {
  --wb-bg: oklch(97.6% 0.012 265);
  --wb-surface: oklch(99.2% 0.006 265);
  --wb-surface-strong: oklch(100% 0 0);
  --wb-ink: oklch(22% 0.025 265);
  --wb-muted: oklch(51% 0.025 265);
  --wb-faint: oklch(67% 0.018 265);
  --wb-line: oklch(88% 0.018 265);
  --wb-line-strong: oklch(78% 0.03 265);
  --wb-accent: oklch(58% 0.19 276);
  --wb-accent-soft: oklch(94% 0.035 276);
  --wb-mint: oklch(58% 0.13 164);
  --wb-mint-soft: oklch(94% 0.035 164);
  --wb-coral: oklch(65% 0.14 35);
  --wb-coral-soft: oklch(95% 0.028 35);
  --wb-warn: oklch(61% 0.13 80);
  --wb-danger: oklch(58% 0.16 25);
  --wb-shadow: 0 16px 42px color-mix(in srgb, var(--wb-ink) 7%, transparent);
  --wb-radius: 8px;
}

html[data-theme="dark"] {
  --wb-bg: oklch(19% 0.018 265);
  --wb-surface: oklch(23% 0.022 265);
  --wb-surface-strong: oklch(26% 0.024 265);
  --wb-ink: oklch(93% 0.012 265);
  --wb-muted: oklch(73% 0.018 265);
  --wb-faint: oklch(57% 0.018 265);
  --wb-line: oklch(34% 0.025 265);
  --wb-line-strong: oklch(45% 0.035 265);
  --wb-accent: oklch(76% 0.14 276);
  --wb-accent-soft: oklch(30% 0.045 276);
  --wb-mint: oklch(74% 0.11 164);
  --wb-mint-soft: oklch(29% 0.04 164);
  --wb-coral: oklch(78% 0.11 35);
  --wb-coral-soft: oklch(30% 0.035 35);
  --wb-warn: oklch(78% 0.11 80);
  --wb-danger: oklch(75% 0.11 25);
  --wb-shadow: 0 18px 50px color-mix(in srgb, black 25%, transparent);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--wb-bg); }
body {
  margin: 0;
  color: var(--wb-ink);
  background: var(--wb-bg);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.wb-shell { min-height: 100vh; }
.wb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--wb-line);
  background: color-mix(in srgb, var(--wb-bg) 92%, transparent);
  backdrop-filter: blur(18px);
}
.wb-topbar-inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.wb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wb-ink);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}
.wb-brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--wb-ink);
  border-radius: 7px;
  font-weight: 800;
  font-size: .8rem;
}
.wb-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--wb-line);
  color: var(--wb-muted);
  font-size: .82rem;
  white-space: nowrap;
}
.wb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wb-mint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--wb-mint) 16%, transparent);
}
.wb-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.wb-nav-links-scroll { display: contents; }
.wb-nav-link {
  padding: 7px 9px;
  color: var(--wb-muted);
  text-decoration: none;
  font-size: .8rem;
  border-radius: 5px;
}
.wb-nav-link:hover { color: var(--wb-ink); background: var(--wb-accent-soft); }
.wb-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--wb-line);
  border-radius: 50%;
  color: var(--wb-ink);
  background: transparent;
  cursor: pointer;
}
.wb-icon-button:hover { border-color: var(--wb-line-strong); background: var(--wb-accent-soft); }
.wb-icon-button span { font-size: 1.05rem; line-height: 1; }

.wb-main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 84px;
}
.wb-loading { min-height: 52vh; display: grid; place-items: center; color: var(--wb-muted); }
.wb-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}
.wb-eyebrow {
  margin: 0 0 10px;
  color: var(--wb-accent);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wb-title {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4vw, 4.05rem);
  font-weight: 500;
  line-height: 1.04;
}
.wb-subtitle {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--wb-muted);
  font-size: .94rem;
  line-height: 1.7;
}
.wb-hero-meta {
  flex: 0 0 auto;
  color: var(--wb-muted);
  font-size: .78rem;
  text-align: right;
}
.wb-hero-meta strong { color: var(--wb-ink); font-weight: 700; }
.wb-hero-meta .wb-status-dot { display: inline-block; margin-right: 8px; }

.wb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 20px; }
.wb-column, .wb-rail { min-width: 0; display: grid; gap: 20px; }
.wb-panel {
  overflow: hidden;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  background: var(--wb-surface);
  box-shadow: var(--wb-shadow);
}
.wb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--wb-line);
}
.wb-panel-head h2, .wb-panel-head h3 { margin: 0; font-size: .96rem; font-weight: 760; }
.wb-account-head-actions { display: inline-flex; align-items: center; gap: 10px; }
.wb-button-refresh { min-height: 30px; padding: 0 9px; color: var(--wb-muted); font-size: .68rem; }
.wb-button-refresh:hover { color: var(--wb-accent); border-color: var(--wb-accent); background: var(--wb-accent-soft); }
.wb-kicker { color: var(--wb-faint); font-size: .7rem; }
.wb-button {
  min-height: 36px;
  border: 1px solid var(--wb-line);
  border-radius: 5px;
  padding: 0 13px;
  color: var(--wb-muted);
  background: transparent;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 650;
}
.wb-button:hover { color: var(--wb-ink); border-color: var(--wb-line-strong); background: var(--wb-accent-soft); }
.wb-button:disabled { opacity: .5; cursor: not-allowed; }
.wb-button-primary { color: oklch(99% .01 265); border-color: var(--wb-accent); background: var(--wb-accent); }
.wb-button-primary:hover { color: oklch(99% .01 265); border-color: var(--wb-accent); background: color-mix(in srgb, var(--wb-accent) 88%, black); }
.wb-button-icon { display: inline-flex; align-items: center; gap: 7px; }
.wb-button-icon .wb-glyph { font-size: 1rem; line-height: 1; }
.wb-field { display: grid; gap: 7px; }
.wb-field label { color: var(--wb-muted); font-size: .72rem; font-weight: 760; }
.wb-field input, .wb-field select, .wb-field textarea,
.wb-select, .wb-input {
  width: 100%;
  min-height: 39px;
  border: 1px solid var(--wb-line);
  border-radius: 5px;
  padding: 0 10px;
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
  outline: 0;
}
.wb-field textarea { min-height: 140px; padding: 12px; resize: vertical; line-height: 1.65; }
.wb-field input:focus, .wb-field select:focus, .wb-field textarea:focus,
.wb-select:focus, .wb-input:focus { border-color: var(--wb-accent); box-shadow: 0 0 0 3px var(--wb-accent-soft); }
.wb-field select, .wb-select { cursor: pointer; }
.wb-muted { color: var(--wb-muted); }
.wb-faint { color: var(--wb-faint); }
.wb-status { color: var(--wb-mint); }
.wb-status-warn { color: var(--wb-warn); }
.wb-status-danger { color: var(--wb-danger); }

.wb-account-body { display: grid; gap: 18px; padding: 20px; }
.wb-source { display: flex; align-items: flex-start; gap: 11px; }
.wb-source-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--wb-accent);
  background: var(--wb-accent-soft);
  font-size: .82rem;
  font-weight: 850;
}
.wb-source strong { display: block; font-size: .84rem; }
.wb-source span { display: block; max-width: 250px; margin-top: 3px; overflow-wrap: anywhere; color: var(--wb-muted); font-size: .75rem; }
.wb-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 0 18px; border-bottom: 1px solid var(--wb-line); }
.wb-balance span { color: var(--wb-muted); font-size: .75rem; }
.wb-balance strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 600; }
.wb-account-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--wb-line); background: var(--wb-line); }
.wb-account-stat { min-width: 0; padding: 11px; background: var(--wb-surface-strong); }
.wb-account-stat span { display: block; color: var(--wb-faint); font-size: .68rem; }
.wb-account-stat strong { display: block; overflow: hidden; margin-top: 4px; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.wb-route { display: grid; gap: 9px; padding-top: 2px; }
.wb-route-head, .wb-key-manager-head, .wb-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wb-route-head strong, .wb-key-manager-head strong { font-size: .78rem; }
.wb-route-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--wb-faint); font-size: .7rem; }
.wb-key-manager { display: grid; gap: 10px; padding-top: 2px; }
.wb-key-manager select { width: 100%; min-height: 39px; border: 1px solid var(--wb-line); border-radius: 5px; padding: 0 9px; color: var(--wb-ink); background: var(--wb-surface-strong); }
.wb-key-manager select:focus { border-color: var(--wb-accent); outline: 0; box-shadow: 0 0 0 3px var(--wb-accent-soft); }
.wb-key-manager p { margin: 0; color: var(--wb-faint); font-size: .71rem; line-height: 1.55; }
.wb-key-move { width: 100%; color: var(--wb-accent); border-color: color-mix(in srgb, var(--wb-accent) 35%, var(--wb-line)); }
.wb-provision { display: grid; gap: 11px; padding: 13px; border: 1px solid color-mix(in srgb, var(--wb-warn) 32%, var(--wb-line)); border-radius: 6px; background: var(--wb-coral-soft); }
.wb-provision strong { font-size: .8rem; }
.wb-provision p { margin: 0; color: var(--wb-muted); font-size: .73rem; line-height: 1.55; }
.wb-account-error { padding: 13px; border: 1px solid color-mix(in srgb, var(--wb-danger) 30%, var(--wb-line)); border-radius: 6px; color: var(--wb-danger); background: color-mix(in srgb, var(--wb-danger) 6%, transparent); font-size: .78rem; line-height: 1.55; }

.wb-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100% - 44px));
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--wb-line-strong);
  border-radius: 6px;
  padding: 12px 15px;
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
  box-shadow: var(--wb-shadow);
  font-size: .8rem;
  transition: opacity .2s ease, transform .2s ease;
}
.wb-toast.is-visible { transform: translateY(0); opacity: 1; }
.wb-toast.is-error { color: var(--wb-danger); border-color: color-mix(in srgb, var(--wb-danger) 35%, var(--wb-line)); }
.wb-login { max-width: 620px; margin: 80px auto; padding: 36px; }
.wb-login h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.wb-login p { max-width: 55ch; margin: 13px 0 22px; color: var(--wb-muted); line-height: 1.7; }
.wb-login a { color: var(--wb-accent); font-weight: 700; }

@media (max-width: 980px) {
  .wb-layout { grid-template-columns: 1fr; }
  .wb-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 700px) {
  .wb-topbar-inner, .wb-main { width: min(100% - 28px, 1440px); }
  .wb-topbar-inner { min-height: 60px; gap: 12px; }
  .wb-brand { flex: 0 0 auto; }
  .wb-brand > span:not(.wb-brand-mark) { display: none; }
  .wb-product { display: none; }
  .wb-top-actions {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 4px;
    overflow: visible;
  }
  .wb-nav-links-scroll {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .wb-nav-links-scroll::-webkit-scrollbar { display: none; }
  .wb-nav-links-scroll .wb-nav-link { flex: 0 0 auto; }
  .wb-nav-link { display: inline-flex; flex: 0 0 auto; padding: 7px 8px; font-size: .68rem; }
  .wb-icon-button { flex: 0 0 auto; }
  .wb-main { padding-top: 30px; }
  .wb-hero { display: grid; gap: 16px; margin-bottom: 22px; }
  .wb-title { font-size: 2.35rem; }
  .wb-hero-meta { text-align: left; }
  .wb-rail { grid-template-columns: 1fr; }
  .wb-panel-head { padding: 15px 16px; }
  .wb-account-body { padding: 16px; }
  .wb-login { margin: 42px auto; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Shared workspace language: Museflow-like canvas, explicit routing, quiet chrome. */
.wb-shell {
  --wb-bg: #f3f4f0;
  --wb-surface: #ffffff;
  --wb-surface-strong: #fafbf8;
  --wb-ink: #17181b;
  --wb-muted: #687078;
  --wb-faint: #9299a0;
  --wb-line: #dfe2dd;
  --wb-line-strong: #c8cdc7;
  --wb-accent: #5a50d6;
  --wb-accent-soft: #eeedff;
  --wb-mint: #16866d;
  --wb-mint-soft: #e6f4ee;
  --wb-coral: #d76b55;
  --wb-coral-soft: #fff0eb;
  --wb-warn: #aa7415;
  --wb-danger: #c34b43;
  --wb-shadow: 0 14px 38px rgba(25, 32, 28, .055);
  --wb-radius: 7px;
  background: var(--wb-bg);
  font-family: "Noto Sans SC", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
html[data-theme="dark"] .wb-shell {
  --wb-bg: #15171a;
  --wb-surface: #1d2024;
  --wb-surface-strong: #181b1f;
  --wb-ink: #f1f2ee;
  --wb-muted: #b2b8b4;
  --wb-faint: #7b837e;
  --wb-line: #303630;
  --wb-line-strong: #495149;
  --wb-accent: #a9a4ff;
  --wb-accent-soft: #29274d;
  --wb-mint: #69c4a7;
  --wb-mint-soft: #203d34;
  --wb-coral: #f19a83;
  --wb-coral-soft: #4a2a23;
  --wb-warn: #e6b45b;
  --wb-danger: #f08d84;
  --wb-shadow: 0 16px 44px rgba(0, 0, 0, .22);
}
.wb-shell .wb-topbar { border-bottom-color: var(--wb-line); background: color-mix(in srgb, var(--wb-bg) 92%, transparent); box-shadow: none; }
.wb-shell .wb-topbar-inner { width: min(1420px, calc(100% - 56px)); min-height: 72px; gap: 22px; }
.wb-shell .wb-brand { font-family: Sora, "Noto Sans SC", sans-serif; font-size: .84rem; }
.wb-shell .wb-brand-mark { border-color: var(--wb-ink); border-radius: 7px; }
.wb-shell .wb-product { border-left-color: var(--wb-line); }
.wb-shell .wb-nav-link { border-radius: 5px; font-size: .72rem; font-weight: 650; }
.wb-shell .wb-nav-link.is-active { color: var(--wb-ink); border: 1px solid var(--wb-line); background: var(--wb-surface); }
.wb-shell .wb-nav-link:hover { color: var(--wb-ink); background: var(--wb-surface); }
.wb-shell .wb-gateway-link { color: var(--wb-mint); font-weight: 800; }
.wb-shell .wb-gateway-link:hover { color: var(--wb-ink); background: var(--wb-mint-soft); }
.wb-shell .wb-nav-link:focus-visible,
.wb-shell .wb-icon-button:focus-visible,
.wb-shell .wb-button:focus-visible,
.wb-shell a:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.wb-shell .wb-icon-button { border-color: var(--wb-line-strong); border-radius: 5px; }
.wb-shell .wb-main { width: min(1420px, calc(100% - 56px)); padding: 56px 0 96px; }
.wb-shell .wb-hero { align-items: end; margin-bottom: 30px; }
.wb-shell .wb-eyebrow { color: var(--wb-accent); font-size: .63rem; letter-spacing: .13em; }
.wb-shell .wb-title { max-width: 780px; color: var(--wb-ink); font-family: Sora, "Noto Sans SC", sans-serif; font-size: 3.25rem; font-weight: 600; line-height: 1.13; }
.wb-shell .wb-subtitle { max-width: 680px; color: var(--wb-muted); font-size: .88rem; line-height: 1.75; }
.wb-shell .wb-hero-meta { color: var(--wb-muted); }
.wb-shell .wb-hero-meta strong { color: var(--wb-ink); }
.wb-shell .wb-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; }
.wb-shell .wb-column, .wb-shell .wb-rail { gap: 18px; }
.wb-shell .wb-panel { border-color: var(--wb-line); border-radius: 7px; background: var(--wb-surface); box-shadow: none; }
.wb-shell .wb-panel-head { padding: 16px 19px; border-bottom-color: var(--wb-line); }
.wb-shell .wb-panel-head h2, .wb-shell .wb-panel-head h3 { font-family: Sora, "Noto Sans SC", sans-serif; font-size: .88rem; }
.wb-shell .wb-panel-index { margin: 0 0 4px; color: var(--wb-accent); font-size: .56rem; font-weight: 850; letter-spacing: .12em; line-height: 1.2; }
.wb-shell .wb-panel-head .wb-panel-index { display: block; }
.wb-shell .wb-button { min-height: 36px; border-color: var(--wb-line-strong); border-radius: 5px; color: var(--wb-muted); background: transparent; font-size: .72rem; font-weight: 750; }
.wb-shell .wb-button:hover { color: var(--wb-ink); border-color: var(--wb-ink); background: var(--wb-surface-strong); }
.wb-shell .wb-button-primary { color: #fff; border-color: var(--wb-accent); background: var(--wb-accent); }
.wb-shell .wb-button-primary:hover { color: #fff; border-color: var(--wb-accent); background: color-mix(in srgb, var(--wb-accent) 86%, #000); }
.wb-shell .wb-field label { color: var(--wb-muted); font-size: .68rem; }
.wb-shell .wb-field input, .wb-shell .wb-field select, .wb-shell .wb-field textarea, .wb-shell .wb-select, .wb-shell .wb-input { border-color: var(--wb-line); border-radius: 5px; color: var(--wb-ink); background: var(--wb-surface-strong); }
.wb-shell .wb-field input:focus, .wb-shell .wb-field select:focus, .wb-shell .wb-field textarea:focus, .wb-shell .wb-select:focus, .wb-shell .wb-input:focus { border-color: var(--wb-accent); box-shadow: 0 0 0 3px var(--wb-accent-soft); }
.wb-shell .wb-account-body { gap: 17px; padding: 19px; }
.wb-shell .wb-source { align-items: center; }
.wb-shell .wb-source-mark { width: 34px; height: 34px; color: var(--wb-accent); background: var(--wb-accent-soft); }
.wb-shell .wb-source strong { font-size: .78rem; }
.wb-shell .wb-source span { font-size: .69rem; }
.wb-shell .wb-source-live { display: inline-flex !important; flex: 0 0 auto; align-items: center; margin-left: auto !important; color: var(--wb-mint) !important; font-size: .62rem !important; font-weight: 800; }
.wb-shell .wb-balance-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 2px 0 16px; border-bottom: 1px solid var(--wb-line); }
.wb-shell .wb-balance { padding: 0; border: 0; }
.wb-shell .wb-balance span { color: var(--wb-muted); font-size: .68rem; }
.wb-shell .wb-balance strong { color: var(--wb-ink); font-family: Sora, sans-serif; font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wb-shell .wb-balance-link { color: var(--wb-accent); font-size: .66rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.wb-shell .wb-balance-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.wb-shell .wb-account-stats { border-color: var(--wb-line); background: var(--wb-line); }
.wb-shell .wb-account-stat { padding: 10px; background: var(--wb-surface-strong); }
.wb-shell .wb-account-stat span { color: var(--wb-faint); font-size: .62rem; }
.wb-shell .wb-account-stat strong { color: var(--wb-ink); font-size: .76rem; }
.wb-shell .wb-routing-block { display: grid; gap: 9px; padding: 3px 0 1px; }
.wb-shell .wb-routing-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.wb-shell .wb-routing-heading strong { font-size: .76rem; }
.wb-shell .wb-route-meta { color: var(--wb-faint); font-size: .64rem; }
.wb-shell .wb-key-manager { gap: 9px; padding-top: 3px; }
.wb-shell .wb-key-manager-head strong { font-size: .76rem; }
.wb-shell .wb-key-manager select { border-color: var(--wb-line); border-radius: 5px; color: var(--wb-ink); background: var(--wb-surface-strong); }
.wb-shell .wb-key-manager p { color: var(--wb-faint); font-size: .66rem; line-height: 1.6; }
.wb-shell .wb-key-move { color: var(--wb-accent); border-color: color-mix(in srgb, var(--wb-accent) 40%, var(--wb-line)); }
.wb-shell .wb-provision { border-color: color-mix(in srgb, var(--wb-coral) 35%, var(--wb-line)); border-radius: 6px; background: var(--wb-coral-soft); }
.wb-shell .wb-toast { right: 22px; bottom: 22px; border-color: var(--wb-line-strong); border-radius: 6px; color: var(--wb-ink); background: var(--wb-surface); box-shadow: var(--wb-shadow); }
.wb-shell :focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 3px; }
@media (max-width: 1050px) {
  .wb-shell .wb-topbar-inner, .wb-shell .wb-main { width: min(100% - 36px, 1420px); }
  .wb-shell .wb-title { font-size: 2.85rem; }
}
@media (max-width: 700px) {
  .wb-shell .wb-topbar-inner, .wb-shell .wb-main { width: min(100% - 28px, 1420px); }
  .wb-shell .wb-main { padding-top: 36px; }
  .wb-shell .wb-title { font-size: 2.3rem; }
  .wb-shell .wb-hero { gap: 17px; }
  .wb-shell .wb-panel-head { padding: 14px 16px; }
  .wb-shell .wb-account-body { padding: 16px; }
  .wb-shell .wb-source-live { font-size: .58rem !important; }
  .wb-shell .wb-balance-row { gap: 8px; }
  .wb-shell .wb-balance strong { font-size: 1.35rem; }
  .wb-shell .wb-top-actions { gap: 4px; }
  .wb-shell .wb-nav-links-scroll { gap: 4px; }
  .wb-shell .wb-nav-link { display: inline-flex; }
}

/* v6: keep every workbench surface on the same storefront palette. */
.wb-shell {
  --wb-bg: #eef2ef;
  --wb-surface: #f8faf8;
  --wb-surface-strong: #e7efec;
  --wb-ink: #17231f;
  --wb-muted: #65716e;
  --wb-faint: #8b9692;
  --wb-line: #d6dfda;
  --wb-line-strong: #b8c7c0;
  --wb-accent: #5f58c6;
  --wb-accent-soft: #ecebff;
  --wb-mint: #187e67;
  --wb-mint-soft: #e1f2ec;
  --wb-coral: #b75e47;
  --wb-coral-soft: #faebe5;
  --wb-warn: #996817;
  --wb-danger: #b5423c;
  --wb-shadow: 0 16px 42px rgba(31, 54, 45, .07);
  color: var(--wb-ink);
  color-scheme: light;
}
html[data-theme="dark"] .wb-shell {
  --wb-bg: #0b1219;
  --wb-surface: #111c26;
  --wb-surface-strong: #172633;
  --wb-ink: #edf4f1;
  --wb-muted: #aebcb8;
  --wb-faint: #778983;
  --wb-line: #263943;
  --wb-line-strong: #3b5059;
  --wb-accent: #b6b1ff;
  --wb-accent-soft: #28264b;
  --wb-mint: #83dfbf;
  --wb-mint-soft: #183a34;
  --wb-coral: #f0a58d;
  --wb-coral-soft: #432b28;
  --wb-warn: #e2b15b;
  --wb-danger: #ef8b82;
  --wb-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  color-scheme: dark;
}
.wb-shell .wb-topbar {
  background: color-mix(in srgb, var(--wb-bg) 94%, transparent);
  border-bottom-color: var(--wb-line);
}
.wb-shell .wb-panel,
.wb-shell .wb-login {
  border-color: var(--wb-line);
  background: var(--wb-surface);
  box-shadow: none;
}
.wb-shell .wb-panel-head { border-bottom-color: var(--wb-line); }
.wb-shell .wb-button,
.wb-shell .wb-icon-button {
  border-color: var(--wb-line-strong);
  color: var(--wb-muted);
  background: transparent;
}
.wb-shell .wb-button:hover,
.wb-shell .wb-icon-button:hover {
  border-color: var(--wb-ink);
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}
.wb-shell .wb-button-primary,
.wb-shell .wb-button-primary:hover {
  border-color: var(--wb-accent);
  color: #f7faf8;
  background: var(--wb-accent);
}
.wb-shell .wb-field input,
.wb-shell .wb-field select,
.wb-shell .wb-field textarea,
.wb-shell .wb-select,
.wb-shell .wb-input,
.wb-shell .wb-key-manager select {
  border-color: var(--wb-line);
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}
.wb-shell .wb-field input:focus,
.wb-shell .wb-field select:focus,
.wb-shell .wb-field textarea:focus,
.wb-shell .wb-select:focus,
.wb-shell .wb-input:focus,
.wb-shell .wb-key-manager select:focus {
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}
.wb-shell .wb-source-mark {
  color: var(--wb-accent);
  background: var(--wb-accent-soft);
}
.wb-shell .wb-account-stats { border-color: var(--wb-line); background: var(--wb-line); }
.wb-shell .wb-account-stat { background: var(--wb-surface-strong); }
.wb-shell .wb-provision { border-color: color-mix(in srgb, var(--wb-coral) 38%, var(--wb-line)); background: var(--wb-coral-soft); }
.wb-shell .wb-toast {
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
  background: var(--wb-surface);
  box-shadow: var(--wb-shadow);
}
.wb-shell :focus-visible { outline-color: var(--wb-accent); }

/* v9: neutral workspace foundation inspired by mature self-hosted AI tools. */
:root {
  --wb-bg: oklch(97.7% 0.004 255);
  --wb-surface: oklch(99.4% 0.002 255);
  --wb-surface-strong: oklch(95.9% 0.006 255);
  --wb-ink: oklch(23% 0.012 255);
  --wb-muted: oklch(48% 0.014 255);
  --wb-faint: oklch(64% 0.011 255);
  --wb-line: oklch(89.5% 0.007 255);
  --wb-line-strong: oklch(80.5% 0.012 255);
  --wb-accent: oklch(55% 0.17 255);
  --wb-accent-soft: oklch(94.7% 0.025 255);
  --wb-mint: oklch(52% 0.11 166);
  --wb-mint-soft: oklch(94.5% 0.025 166);
  --wb-coral: oklch(57% 0.14 33);
  --wb-coral-soft: oklch(95% 0.025 33);
  --wb-warn: oklch(56% 0.12 77);
  --wb-danger: oklch(55% 0.15 26);
  --wb-shadow: 0 12px 32px color-mix(in srgb, var(--wb-ink) 7%, transparent);
  --wb-radius: 8px;
}

html[data-theme="dark"] {
  --wb-bg: oklch(17.5% 0.008 255);
  --wb-surface: oklch(21.5% 0.009 255);
  --wb-surface-strong: oklch(25.5% 0.011 255);
  --wb-ink: oklch(94.5% 0.006 255);
  --wb-muted: oklch(72% 0.01 255);
  --wb-faint: oklch(57% 0.01 255);
  --wb-line: oklch(31% 0.011 255);
  --wb-line-strong: oklch(41% 0.014 255);
  --wb-accent: oklch(74% 0.12 255);
  --wb-accent-soft: oklch(29% 0.035 255);
  --wb-mint: oklch(72% 0.09 166);
  --wb-mint-soft: oklch(28% 0.025 166);
  --wb-coral: oklch(73% 0.1 33);
  --wb-coral-soft: oklch(29% 0.025 33);
  --wb-warn: oklch(75% 0.1 77);
  --wb-danger: oklch(72% 0.11 26);
  --wb-shadow: 0 16px 42px color-mix(in srgb, black 26%, transparent);
}

html,
body {
  background: var(--wb-bg);
}

.wb-shell {
  --wb-bg: oklch(97.7% 0.004 255);
  --wb-surface: oklch(99.4% 0.002 255);
  --wb-surface-strong: oklch(95.9% 0.006 255);
  --wb-ink: oklch(23% 0.012 255);
  --wb-muted: oklch(48% 0.014 255);
  --wb-faint: oklch(64% 0.011 255);
  --wb-line: oklch(89.5% 0.007 255);
  --wb-line-strong: oklch(80.5% 0.012 255);
  --wb-accent: oklch(55% 0.17 255);
  --wb-accent-soft: oklch(94.7% 0.025 255);
  --wb-mint: oklch(52% 0.11 166);
  --wb-mint-soft: oklch(94.5% 0.025 166);
  --wb-coral: oklch(57% 0.14 33);
  --wb-coral-soft: oklch(95% 0.025 33);
  --wb-warn: oklch(56% 0.12 77);
  --wb-danger: oklch(55% 0.15 26);
  --wb-shadow: 0 12px 32px color-mix(in srgb, var(--wb-ink) 7%, transparent);
  --wb-radius: 8px;
  min-height: 100vh;
  color: var(--wb-ink);
  background: var(--wb-bg);
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", "Noto Sans SC", system-ui, sans-serif;
}

html[data-theme="dark"] .wb-shell {
  --wb-bg: oklch(17.5% 0.008 255);
  --wb-surface: oklch(21.5% 0.009 255);
  --wb-surface-strong: oklch(25.5% 0.011 255);
  --wb-ink: oklch(94.5% 0.006 255);
  --wb-muted: oklch(72% 0.01 255);
  --wb-faint: oklch(57% 0.01 255);
  --wb-line: oklch(31% 0.011 255);
  --wb-line-strong: oklch(41% 0.014 255);
  --wb-accent: oklch(74% 0.12 255);
  --wb-accent-soft: oklch(29% 0.035 255);
  --wb-mint: oklch(72% 0.09 166);
  --wb-mint-soft: oklch(28% 0.025 166);
  --wb-coral: oklch(73% 0.1 33);
  --wb-coral-soft: oklch(29% 0.025 33);
  --wb-warn: oklch(75% 0.1 77);
  --wb-danger: oklch(72% 0.11 26);
  --wb-shadow: 0 16px 42px color-mix(in srgb, black 26%, transparent);
  color-scheme: dark;
}

.wb-shell .wb-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--wb-line);
  background: color-mix(in srgb, var(--wb-bg) 96%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.wb-shell .wb-topbar-inner {
  width: min(1480px, calc(100% - 40px));
  min-height: 64px;
  gap: 16px;
}

.wb-shell .wb-brand {
  gap: 9px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 720;
}

.wb-shell .wb-brand-mark {
  width: 31px;
  height: 31px;
  border: 1px solid var(--wb-ink);
  border-radius: 8px;
  color: var(--wb-surface);
  background: var(--wb-ink);
  font-size: .72rem;
}

html[data-theme="dark"] .wb-shell .wb-brand-mark {
  color: var(--wb-bg);
  background: var(--wb-ink);
}

.wb-shell .wb-product {
  gap: 7px;
  padding-left: 16px;
  border-left-color: var(--wb-line);
  color: var(--wb-muted);
  font-size: .75rem;
}

.wb-shell .wb-status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.wb-shell .wb-top-actions { gap: 5px; }
.wb-shell .wb-nav-links-scroll { gap: 2px; }

.wb-shell .wb-nav-link {
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--wb-muted);
  background: transparent;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 620;
  letter-spacing: 0;
}

.wb-shell .wb-nav-link:hover {
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}

.wb-shell .wb-nav-link.is-active {
  border: 0;
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}

.wb-shell .wb-gateway-link {
  color: var(--wb-mint);
  font-weight: 740;
}

.wb-shell .wb-gateway-link:hover {
  color: var(--wb-mint);
  background: var(--wb-mint-soft);
}

.wb-shell .wb-icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  color: var(--wb-muted);
  background: var(--wb-surface);
}

.wb-shell .wb-icon-button:hover {
  border-color: var(--wb-line-strong);
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}

.wb-shell .wb-main {
  width: min(1360px, calc(100% - 48px));
  padding: 48px 0 80px;
}

.wb-shell .wb-loading { color: var(--wb-muted); }

.wb-shell .wb-hero {
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 24px;
}

.wb-shell .wb-eyebrow,
.wb-shell .wb-panel-index {
  color: var(--wb-muted);
  font-family: inherit;
  font-size: .65rem;
  font-weight: 680;
  letter-spacing: 0;
  text-transform: none;
}

.wb-shell .wb-title {
  max-width: 780px;
  color: var(--wb-ink);
  font-family: inherit;
  font-size: 2.75rem;
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: 0;
}

.wb-shell .wb-subtitle {
  max-width: 720px;
  margin-top: 13px;
  color: var(--wb-muted);
  font-size: .9rem;
  line-height: 1.72;
}

.wb-shell .wb-hero-meta {
  color: var(--wb-muted);
  font-size: .72rem;
  line-height: 1.65;
}

.wb-shell .wb-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.wb-shell .wb-column,
.wb-shell .wb-rail { gap: 20px; }

.wb-shell .wb-panel,
.wb-shell .wb-login {
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: var(--wb-surface);
  box-shadow: none;
}

.wb-shell .wb-panel-head {
  min-height: 54px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--wb-line);
}

.wb-shell .wb-panel-head h2,
.wb-shell .wb-panel-head h3 {
  font-family: inherit;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: 0;
}

.wb-shell .wb-kicker {
  color: var(--wb-faint);
  font-size: .66rem;
}

.wb-shell .wb-button {
  min-height: 38px;
  border: 1px solid var(--wb-line-strong);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--wb-ink);
  background: var(--wb-surface);
  font-family: inherit;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: 0;
}

.wb-shell .wb-button:hover:not(:disabled) {
  border-color: var(--wb-ink);
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}

.wb-shell .wb-button-primary,
.wb-shell .wb-button-primary:hover:not(:disabled) {
  border-color: var(--wb-ink);
  color: var(--wb-bg);
  background: var(--wb-ink);
}

.wb-shell .wb-button:disabled { opacity: .45; }

.wb-shell .wb-field { min-width: 0; gap: 6px; }
.wb-shell .wb-field label,
.wb-shell .wb-route-select-label,
.wb-shell .wb-key-create > label {
  color: var(--wb-muted);
  font-size: .67rem;
  font-weight: 650;
}

.wb-shell .wb-field input,
.wb-shell .wb-field select,
.wb-shell .wb-field textarea,
.wb-shell .wb-select,
.wb-shell .wb-input,
.wb-shell .wb-key-manager select,
.wb-shell .wb-key-create input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 40px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  color: var(--wb-ink);
  background: var(--wb-surface);
  outline: 0;
  font-family: inherit;
  font-size: .75rem;
}

.wb-shell .wb-key-create input { padding: 0 10px; }

.wb-shell .wb-field input:focus,
.wb-shell .wb-field select:focus,
.wb-shell .wb-field textarea:focus,
.wb-shell .wb-select:focus,
.wb-shell .wb-input:focus,
.wb-shell .wb-key-manager select:focus,
.wb-shell .wb-key-create input:focus {
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 3px var(--wb-accent-soft);
}

.wb-shell .wb-account-body {
  gap: 0;
  padding: 18px;
}

.wb-shell .wb-source {
  align-items: center;
  padding-bottom: 16px;
}

.wb-shell .wb-source-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  color: var(--wb-ink);
  background: var(--wb-surface-strong);
}

.wb-shell .wb-source strong { font-size: .76rem; }
.wb-shell .wb-source span { font-size: .66rem; }
.wb-shell .wb-source-live {
  margin-left: auto !important;
  color: var(--wb-mint) !important;
  font-size: .64rem !important;
  font-weight: 700;
}

.wb-shell .wb-balance-row {
  padding: 15px 0;
  border-top: 1px solid var(--wb-line);
  border-bottom: 1px solid var(--wb-line);
}

.wb-shell .wb-balance strong {
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 650;
}

.wb-shell .wb-balance-link {
  color: var(--wb-accent);
  font-size: .66rem;
  font-weight: 700;
}

.wb-shell .wb-account-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--wb-line);
}

.wb-shell .wb-account-stat {
  padding: 11px;
  background: var(--wb-surface-strong);
}

.wb-shell .wb-account-stat:nth-child(odd) { border-right: 1px solid var(--wb-line); }
.wb-shell .wb-account-stat:nth-child(-n + 2) { border-bottom: 1px solid var(--wb-line); }
.wb-shell .wb-account-stat span { font-size: .62rem; }
.wb-shell .wb-account-stat strong { font-size: .76rem; }

.wb-shell .wb-routing-block,
.wb-shell .wb-key-manager {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--wb-line);
}

.wb-shell .wb-routing-heading,
.wb-shell .wb-key-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wb-shell .wb-routing-heading strong,
.wb-shell .wb-key-manager-head strong { font-size: .76rem; }

.wb-shell .wb-routing-heading > span,
.wb-shell .wb-key-target {
  flex: 0 0 auto;
  max-width: 46%;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--wb-muted);
  background: var(--wb-surface-strong);
  font-size: .59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-shell .wb-routing-heading > .wb-status {
  color: var(--wb-mint);
  background: var(--wb-mint-soft);
}

.wb-shell .wb-routing-heading > .wb-status-warn {
  color: var(--wb-warn);
  background: var(--wb-coral-soft);
}

.wb-shell .wb-route-select-label { margin-top: 2px; }

.wb-shell .wb-route-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: var(--wb-surface-strong);
}

.wb-shell .wb-route-identity > div { min-width: 0; }
.wb-shell .wb-route-identity strong,
.wb-shell .wb-route-identity span { display: block; }
.wb-shell .wb-route-identity strong { font-size: .72rem; }
.wb-shell .wb-route-identity > div > span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--wb-faint);
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-shell .wb-route-model-count {
  flex: 0 0 auto;
  color: var(--wb-muted);
  font-size: .61rem;
}

.wb-shell .wb-routing-help,
.wb-shell .wb-key-manager > p {
  margin: 0;
  color: var(--wb-muted);
  font-size: .66rem;
  line-height: 1.6;
}

.wb-shell .wb-route-meta {
  padding-top: 2px;
  color: var(--wb-faint);
  font-size: .61rem;
}

.wb-shell .wb-key-create {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: var(--wb-surface-strong);
}

.wb-shell .wb-key-create > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.wb-shell .wb-key-create .wb-button { white-space: nowrap; }
.wb-shell .wb-key-move { width: 100%; }

.wb-shell .wb-provision {
  margin-top: 16px;
  border-color: var(--wb-line);
  border-radius: 8px;
  background: var(--wb-surface-strong);
}

.wb-shell .wb-toast {
  border-color: var(--wb-line-strong);
  border-radius: 8px;
  color: var(--wb-ink);
  background: var(--wb-surface);
  box-shadow: var(--wb-shadow);
}

.wb-shell .wb-login {
  width: min(520px, 100%);
  margin: 12vh auto 0;
  padding: 30px 8px;
  border: 0;
  background: transparent;
  text-align: center;
}

.wb-shell .wb-login h1,
.wb-shell .wb-login h2 {
  margin: 0;
  color: var(--wb-ink);
  font-family: inherit;
  font-size: 1.85rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.wb-shell .wb-login p:not(.wb-eyebrow) {
  max-width: 46ch;
  margin: 14px auto 22px;
  color: var(--wb-muted);
  font-size: .8rem;
  line-height: 1.7;
}

.wb-shell .wb-login .wb-eyebrow { margin-bottom: 12px; }
.wb-shell .wb-login > a,
.wb-shell .wb-login > button { display: inline-flex; align-items: center; width: auto; text-decoration: none; }

.wb-shell .wb-nav-link:focus-visible,
.wb-shell .wb-icon-button:focus-visible,
.wb-shell .wb-button:focus-visible,
.wb-shell a:focus-visible {
  outline: 2px solid var(--wb-accent);
  outline-offset: 2px;
}

.wb-shell .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .wb-shell .wb-layout { grid-template-columns: minmax(0, 1fr); }
  .wb-shell .wb-rail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1050px) {
  .wb-shell .wb-main { width: min(100% - 36px, 1360px); }
  .wb-shell .wb-title { font-size: 2.4rem; }
}

@media (max-width: 700px) {
  .wb-shell { overflow-x: clip; }
  .wb-shell .wb-topbar-inner,
  .wb-shell .wb-main { width: min(100% - 24px, 1360px); }
  .wb-shell .wb-topbar-inner { min-height: 58px; gap: 8px; }
  .wb-shell .wb-top-actions { min-width: 0; max-width: calc(100% - 40px); overflow: hidden; }
  .wb-shell .wb-nav-links-scroll {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .wb-shell .wb-nav-links-scroll::-webkit-scrollbar { display: none; }
  .wb-shell .wb-icon-button { flex: 0 0 auto; }
  .wb-shell .wb-main { padding: 30px 0 56px; }
  .wb-shell .wb-main > *,
  .wb-shell .wb-layout,
  .wb-shell .wb-column,
  .wb-shell .wb-rail,
  .wb-shell .wb-panel { min-width: 0; max-width: 100%; }
  .wb-shell .wb-title { font-size: 2rem; }
  .wb-shell .wb-hero { gap: 16px; }
  .wb-shell .wb-panel-head { padding: 13px 14px; }
  .wb-shell .wb-account-body { padding: 14px; }
  .wb-shell .wb-key-create > div { grid-template-columns: 1fr; }
  .wb-shell .wb-key-create .wb-button { width: 100%; }
  .wb-shell .wb-login { margin-top: 9vh; padding-inline: 12px; }
}

/* v11: shared ChatGPT-like frame for every auxiliary workbench. */
.wb-shell {
  --wb-bg: #fbfbfa;
  --wb-surface: #ffffff;
  --wb-surface-strong: #f4f4f1;
  --wb-ink: #20201f;
  --wb-muted: #6f6f6a;
  --wb-faint: #9a9a94;
  --wb-line: rgba(32, 32, 31, .11);
  --wb-line-strong: rgba(32, 32, 31, .2);
  --wb-accent: #147d64;
  --wb-accent-soft: #e4f4ee;
  --wb-mint: #147d64;
  --wb-mint-soft: #e4f4ee;
  --wb-coral: #b66b43;
  --wb-coral-soft: #fbefe9;
  --wb-warn: #a36b00;
  --wb-danger: #b42318;
  --wb-shadow: 0 1px 2px rgba(20, 20, 18, .05), 0 2px 8px rgba(20, 20, 18, .04);
  --wb-radius: 14px;
  --wb-sidebar: #f4f4f0;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  overflow-x: clip;
  color: var(--wb-ink);
  color-scheme: light;
  background: var(--wb-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

html[data-theme="dark"] .wb-shell {
  --wb-bg: #20211f;
  --wb-surface: #292a27;
  --wb-surface-strong: #31322f;
  --wb-ink: #f2f2ed;
  --wb-muted: #b4b4ac;
  --wb-faint: #85857e;
  --wb-line: rgba(255, 255, 250, .1);
  --wb-line-strong: rgba(255, 255, 250, .2);
  --wb-accent: #4fba99;
  --wb-accent-soft: #173c31;
  --wb-mint: #4fba99;
  --wb-mint-soft: #173c31;
  --wb-coral: #e28b63;
  --wb-coral-soft: #3c2821;
  --wb-warn: #e8bb6e;
  --wb-danger: #ff8a80;
  --wb-shadow: 0 1px 2px rgba(0, 0, 0, .22);
  --wb-sidebar: #171815;
  color-scheme: dark;
}

.wb-sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 0;
  padding: 14px 10px 10px;
  border-right: 1px solid var(--wb-line);
  color: var(--wb-ink);
  background: var(--wb-sidebar);
}
.wb-sidebar-header { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 6px 10px; }
.wb-sidebar-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--wb-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.wb-sidebar-brand .wb-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 10px; color: var(--wb-bg); background: var(--wb-ink); font-size: 13px; }
.wb-sidebar-new { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 11px; border: 1px solid var(--wb-line-strong); border-radius: 10px; color: var(--wb-ink); background: transparent; font-size: 13px; font-weight: 650; text-decoration: none; }
.wb-sidebar-new:hover { border-color: var(--wb-ink); background: var(--wb-surface); }
.wb-sidebar-label { margin: 22px 9px 7px; color: var(--wb-faint); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.wb-sidebar-nav { display: grid; gap: 2px; }
.wb-sidebar-nav a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 9px; color: var(--wb-muted); font-size: 13px; text-decoration: none; }
.wb-sidebar-nav a:hover, .wb-sidebar-nav a.is-active { color: var(--wb-ink); background: var(--wb-surface-strong); }
.wb-sidebar-nav a.is-active { font-weight: 650; }
.wb-sidebar-icon { width: 18px; color: var(--wb-faint); text-align: center; }
.wb-sidebar-nav a.is-active .wb-sidebar-icon { color: var(--wb-accent); }
.wb-sidebar-spacer { flex: 1; }
.wb-sidebar-source { display: flex; align-items: center; gap: 9px; margin: 0 5px 9px; padding: 10px 5px; border-top: 1px solid var(--wb-line); color: var(--wb-muted); font-size: 11px; }
.wb-sidebar-source .wb-status-dot { flex: 0 0 auto; width: 7px; height: 7px; }
.wb-sidebar-source div { display: grid; min-width: 0; gap: 2px; }
.wb-sidebar-source strong { color: var(--wb-ink); font-size: 11px; }
.wb-sidebar-source small { color: var(--wb-faint); font-size: 10px; }
.wb-sidebar-account-link { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 9px; border-radius: 8px; color: var(--wb-muted); font-size: 11px; text-decoration: none; }
.wb-sidebar-account-link:hover { color: var(--wb-ink); background: var(--wb-surface-strong); }
.wb-sidebar-backdrop[hidden] { display: none !important; }
.wb-mobile-nav-button { display: none; }
.wb-topbar { grid-column: 2; grid-row: 1; min-width: 0; }
.wb-main { grid-column: 2; grid-row: 2; min-width: 0; width: min(1240px, calc(100% - 48px)); padding: 38px 0 72px; }
.wb-shell .wb-topbar-inner { width: min(1240px, calc(100% - 48px)); min-height: 58px; gap: 10px; }
.wb-shell .wb-topbar .wb-brand, .wb-shell .wb-topbar .wb-nav-links-scroll { display: none; }
.wb-shell .wb-topbar .wb-product { padding-left: 0; border-left: 0; color: var(--wb-muted); font-size: 12px; }
.wb-shell .wb-title { font-family: inherit; font-size: 2.25rem; font-weight: 650; line-height: 1.15; letter-spacing: 0; }
.wb-shell .wb-hero { align-items: flex-start; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--wb-line); }
.wb-shell .wb-hero-meta { padding-top: 6px; }
.wb-shell .wb-panel { border-color: var(--wb-line); border-radius: var(--wb-radius); background: var(--wb-surface); box-shadow: none; }
.wb-shell .wb-panel-head { padding: 15px 18px; }
.wb-shell .wb-button-primary { border-color: var(--wb-ink); color: var(--wb-bg); background: var(--wb-ink); }
.wb-shell .wb-button-primary:hover { border-color: var(--wb-ink); color: var(--wb-bg); background: color-mix(in srgb, var(--wb-ink) 86%, #000); }
.wb-shell .wb-button, .wb-shell .wb-icon-button { border-radius: 9px; }
.wb-shell .wb-field input, .wb-shell .wb-field select, .wb-shell .wb-field textarea, .wb-shell .wb-select, .wb-shell .wb-input { border-radius: 10px; }
.wb-shell .wb-account-panel { box-shadow: var(--wb-shadow); }

@media (max-width: 780px) {
  .wb-shell { display: block; }
  .wb-sidebar { position: fixed; left: 0; top: 0; display: none; width: min(284px, 86vw); box-shadow: 12px 0 32px rgba(0, 0, 0, .18); }
  .wb-sidebar.is-open { display: flex; }
  .wb-sidebar-backdrop { position: fixed; inset: 0; z-index: 20; display: block; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .18s ease; }
  .wb-sidebar-backdrop.is-visible { opacity: 1; }
  .wb-mobile-nav-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--wb-line); border-radius: 9px; color: var(--wb-ink); background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
  .wb-mobile-nav-button:hover { background: var(--wb-surface-strong); }
  .wb-sidebar-header .wb-mobile-nav-button { display: inline-grid; border: 0; font-size: 24px; }
  .wb-topbar-menu { flex: 0 0 auto; }
  .wb-shell .wb-topbar-inner, .wb-shell .wb-main { width: calc(100% - 24px); }
  .wb-shell .wb-topbar-inner { min-height: 58px; }
  .wb-shell .wb-topbar .wb-product { display: inline-flex; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wb-shell .wb-main { padding-top: 28px; }
  .wb-shell .wb-title { font-size: 2rem; }
  .wb-shell .wb-hero { display: grid; gap: 14px; }
  .wb-shell .wb-top-actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-sidebar-backdrop { transition: none; }
}
