/* =========================================================
   基础 + 应用外壳：图标导航栏 / 上下文面板 / 顶栏 / 主画布 / 登录分流
   ========================================================= */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(61, 91, 255, .07), transparent 60%),
    radial-gradient(900px 420px at 104% 0%, rgba(122, 77, 255, .06), transparent 55%),
    var(--base);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, pre { margin: 0; }
img { display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(90, 100, 130, .25); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(90, 100, 130, .42); }
::selection { background: rgba(61, 91, 255, .18); }

.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 700; color: var(--faint); }
.eyebrow.light { color: var(--d-faint); }
.muted { color: var(--faint); font-size: 12px; }
h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 700; }
.ico { flex: none; vertical-align: -2px; }

/* ---------- 外壳 ---------- */
.app-shell { display: grid; grid-template-columns: 64px 1fr; height: 100vh; }
body.has-panel .app-shell { grid-template-columns: 64px 232px 1fr; }
body.immersive .nav-rail, body.immersive .topbar, body.immersive .ctx-panel { display: none; }
body.immersive .app-shell { grid-template-columns: 1fr; }
body.immersive .view-root { padding: 0; }
body.gated .app-shell { filter: blur(8px) saturate(.9); pointer-events: none; user-select: none; }
body.role-supplier .ctx-panel { display: none !important; }
body.role-supplier-child .rail-item:not([data-nav="delivery"]):not(#navLogout) { display: none; }
body.role-supplier-parent .rail-item:not([data-nav="overview"]):not([data-nav="assets"]):not([data-nav="delivery"]):not([data-nav="settings"]):not(#navLogout) { display: none; }
body:not(.role-admin) .rail-item[data-nav="voice"] { display: none; }

/* 导航栏 */
.nav-rail {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0 12px; gap: 4px;
  background: linear-gradient(180deg, #0D1322, #0A0F1C);
  border-right: 1px solid rgba(132, 152, 255, .10);
  z-index: 30;
}
.rail-logo { margin-bottom: 14px; cursor: default; filter: drop-shadow(0 4px 14px rgba(61, 91, 255, .35)); }
.brand-glyph-img { display: block; width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(70,150,240,.42)); }
.rail-items { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail-bottom { display: flex; flex-direction: column; gap: 4px; }
.rail-item {
  width: 50px; padding: 8px 0 6px; border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--d-faint);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.rail-item span { font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.rail-item:hover { color: var(--d-text); background: rgba(132, 152, 255, .10); }
.rail-item.is-active { color: #fff; background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(55,65,81,.9)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.rail-item.accent { position: relative; }
.rail-item.accent::after {
  content: ""; position: absolute; top: 7px; right: 9px; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #54E0C7, #3D5BFF);
  box-shadow: 0 0 8px rgba(84, 224, 199, .8);
}

/* 上下文面板 */
.ctx-panel {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 14px 10px 10px;
  overflow: hidden;
  z-index: 20;
}
.ctx-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 10px; }
.ctx-head b { font-size: 13px; }
.ctx-search {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 7px 10px; margin: 0 2px 10px; color: var(--faint);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ctx-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.ctx-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 12.5px; color: var(--text); }
.ctx-groups { overflow-y: auto; flex: 1; min-height: 0; padding: 0 2px 8px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ctx-gtitle {
  display: flex; align-items: center; gap: 5px; width: 100%;
  font-size: 11px; font-weight: 700; color: var(--faint);
  padding: 8px 6px 5px; letter-spacing: .02em;
}
.ctx-gtitle em { font-style: normal; font-weight: 600; margin-left: auto; }
.ctx-gtitle .chev { display: inline-flex; transition: transform var(--t-fast); }
.ctx-gtitle .chev.closed { transform: rotate(-90deg); }
.ctx-acc {
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 36px; padding: 7px 8px; border-radius: var(--r-md); text-align: left;
  transition: background var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer; contain: layout paint;
}
.ctx-acc:hover { background: var(--tint); }
.ctx-acc.is-active { background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.ctx-idx {
  flex: none; width: 34px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; letter-spacing: 0;
  color: #53627d; background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(245,247,255,.72));
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--acc-grad, #3D5BFF) 72%, transparent);
  font-variant-numeric: tabular-nums;
}
.ctx-idx.xhs { color: #C2255C; border-color: rgba(214,51,108,.22); background: #FFF0F4; box-shadow: inset 3px 0 0 #F06595; }
.ctx-idx.sph { color: #087F5B; border-color: rgba(8,127,91,.22); background: #E6FCF5; box-shadow: inset 3px 0 0 #20C997; }
.ctx-acc.is-active .ctx-idx {
  color: #2F46D8; border-color: rgba(61,91,255,.26);
  background: linear-gradient(135deg, rgba(236,240,255,.95), rgba(255,255,255,.86));
}
.ctx-acc.is-active .ctx-idx.xhs { color: #C2255C; border-color: rgba(214,51,108,.35); background: #FFF0F4; }
.ctx-acc.is-active .ctx-idx.sph { color: #087F5B; border-color: rgba(8,127,91,.35); background: #E6FCF5; }
.ctx-acc .ctx-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.ctx-acc.is-disabled { opacity: .58; filter: saturate(.55); }
.ctx-acc.is-disabled .ctx-name { text-decoration: line-through; text-decoration-color: rgba(100,116,139,.48); }
.ctx-new-badge {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 6px;
  border-radius: 999px; background: rgba(37,99,235,.11); color: #2563eb;
  font-size: 9px; font-style: normal; vertical-align: 1px;
  animation: ctx-new-account-pulse 2.4s ease-in-out infinite;
}
@keyframes ctx-new-account-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); transform: translateY(0); }
  45% { box-shadow: 0 0 0 5px rgba(37,99,235,.08); transform: translateY(-1px); }
}
.ctx-acc em { font-style: normal; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ctx-del {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  color: var(--faint); opacity: 0; flex: none; transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.ctx-acc:hover .ctx-del, .ctx-del:focus-visible { opacity: 1; }
.ctx-del:hover { background: var(--danger-bg); color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.lg { width: 12px; height: 12px; }

/* 统一下拉：保留原 select 作为数据源，展示为应用内浮层。 */
.smart-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.smart-select-wrap {
  position: relative;
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.smart-select-wrap.input { padding-block: 0; }
.select-shell.has-smart-select > svg:last-child { display: none; }
.select-shell.has-smart-select .smart-select-trigger { flex: 1; }
.smart-select-trigger {
  min-width: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
}
.smart-select-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smart-select-trigger i { width: 7px; height: 7px; flex: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.smart-select-trigger[aria-expanded="true"] i { transform: rotate(225deg) translate(-1px,-1px); }
.smart-select-menu {
  position: fixed;
  z-index: 10050;
  max-height: min(320px, 54vh);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 6px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 8px;
  background: rgba(250,251,253,.98);
  box-shadow: 0 18px 48px rgba(15,23,42,.16);
  backdrop-filter: blur(20px);
  animation: smartSelectIn 140ms ease both;
}
@keyframes smartSelectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.smart-select-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 5px;
  color: #374151;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}
.smart-select-option:hover { background: #eef0f3; color: #111827; }
.smart-select-option.is-active { background: #171b22; color: #fff; }
.smart-select-option:disabled { opacity: .42; }

/* 主列（min-height:0 让 view-root 的 overflow 滚动真正生效） */
.main-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 52px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(243, 245, 250, .8);
  backdrop-filter: blur(14px);
  z-index: 15;
}

/* 剪辑步骤随顶部栏固定，给画布和时间轴让出完整工作区。 */
.topbar.studio-topbar-active { gap: 12px; }
.topbar.studio-topbar-active .top-crumb {
  flex: 0 1 260px;
  min-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar.studio-topbar-active .chain-stepper {
  position: static;
  top: auto;
  z-index: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.topbar.studio-topbar-active .chain-stepper .cs-prod,
.topbar.studio-topbar-active .chain-stepper .cs-spacer { display: none; }
.topbar.studio-topbar-active .chain-stepper .cs-step { padding-block: 4px; }
.topbar.studio-topbar-active + .view-root { flex: 1 1 auto; min-height: 0; padding-top: 10px; padding-bottom: 10px; }

@media (max-width: 980px) {
  .topbar.studio-topbar-active .top-crumb { display: none; }
  .topbar.studio-topbar-active .chain-stepper { overflow-x: auto; }
}
.top-crumb { font-size: 12.5px; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-supplier-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top-supplier-platforms { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.top-supplier-platforms .top-btn { padding-inline: 10px; white-space: nowrap; }
.top-supplier-platforms .top-btn.is-active { color: #fff; border-color: #171b22; background: #171b22; }
.top-supplier-search { display: flex; align-items: center; gap: 7px; width: min(285px, 23vw); height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--faint); background: var(--surface); }
.top-supplier-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font: inherit; }
.top-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 99px; padding: 6px 12px; font-size: 12px; color: var(--muted);
  transition: all var(--t-fast);
}
.top-btn kbd { font-family: var(--mono); font-size: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--faint); }
.top-btn:hover { border-color: var(--line-2); color: var(--text); box-shadow: var(--shadow-xs); }
.top-btn.top-primary {
  color: #fff;
  border-color: rgba(255,255,255,.16);
  background:
    linear-gradient(118deg, rgba(255,255,255,.18), transparent 36%, rgba(109,168,255,.13) 72%, transparent),
    linear-gradient(135deg, rgba(5, 8, 14, .96), rgba(22, 29, 42, .92) 66%, rgba(47, 91, 158, .68));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}
.top-btn.top-primary:hover {
  color: #fff;
  border-color: rgba(180, 210, 255, .32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .22), 0 0 20px rgba(80, 144, 220, .10), inset 0 1px 0 rgba(255,255,255,.30);
  transform: translateY(-1px);
}
.top-btn.icon { padding: 7px; border-radius: var(--r-md); position: relative; }
.top-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; font-style: normal;
  min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px;
  border: 2px solid var(--base);
}
@media (max-width: 1060px) { .top-supplier-platforms { display: none; } }
@media (max-width: 860px) { .top-supplier-search { width: min(220px, 29vw); } .top-supplier-tools .top-btn span { display: none; } }
@media (max-width: 640px) { .top-supplier-search { display: none; } }
.view-root { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 60px; scroll-behavior: smooth; }
.view-error { padding: 40px; color: var(--danger); }

/* ---------- v120 统一工作区外壳（本地预览，可回退） ---------- */
body.workspace-shell-v2 .app-shell { grid-template-columns: 56px minmax(248px, 280px) minmax(0, 1fr); }
body.workspace-shell-v2.has-panel .app-shell { grid-template-columns: 56px minmax(248px, 280px) minmax(0, 1fr); }
body.workspace-shell-v2 .nav-rail { padding-block: 12px; }
body.workspace-shell-v2 .brand-glyph-img { width: 36px; height: 36px; }
body.workspace-shell-v2 .rail-logo { margin-bottom: 10px; }
body.workspace-shell-v2 .rail-items { display: none; }
body.workspace-shell-v2 .rail-item { width: 44px; min-height: 44px; border-radius: 15px; }
body.workspace-shell-v2 .rail-item span { font-size: 10px; line-height: 1.15; }
body.workspace-shell-v2 .client-rail-entry .rail-item span { white-space: nowrap; }
body.workspace-shell-v2.role-supplier .ctx-panel,
body.workspace-shell-v2.role-supplier-parent .ctx-panel,
body.workspace-shell-v2.role-supplier-child .ctx-panel {
  display: flex !important;
}
body.workspace-shell-v2 .ctx-panel {
  background: rgba(248, 250, 253, .82);
  padding: 14px 12px 12px;
  border-right: 1px solid rgba(226,232,240,.9);
}
body.workspace-shell-v2 .main-col {
  background:
    linear-gradient(180deg, rgba(245,247,251,.94), rgba(242,246,252,.92)),
    var(--base);
}
body.workspace-shell-v2 .topbar {
  height: 54px;
  justify-content: flex-start;
  gap: 12px;
  padding-inline: 14px 16px;
  background: rgba(248,250,253,.86);
}
body.workspace-shell-v2 .topbar .top-actions { margin-left: auto; }
body.workspace-shell-v2 .top-crumb {
  color: #7b8496;
  min-width: 0;
  max-width: min(44vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.workspace-shell-v2 .view-root {
  padding: 18px 18px 42px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.workspace-switcher { position: relative; flex: none; z-index: 25; }
.workspace-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 154px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(203,213,225,.86);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.9);
  color: #111827;
  font-weight: 780;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.workspace-switch-button:hover,
.workspace-switcher.is-open .workspace-switch-button {
  transform: translateY(-1px);
  border-color: rgba(148,163,184,.95);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.12), inset 0 1px 0 #fff;
}
.workspace-switch-button span { flex: 1; text-align: left; white-space: nowrap; }
.workspace-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 264px;
  max-height: min(74vh, 520px);
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(17,19,24,.96);
  color: #fff;
  box-shadow: 0 28px 70px rgba(15,23,42,.32), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(1.1);
  transform: translateY(-5px) scale(.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  overflow: auto;
}
.workspace-switcher.is-open .workspace-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.workspace-menu-kicker {
  padding: 8px 10px 6px;
  color: rgba(226,232,240,.62);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .04em;
}
.workspace-menu button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  color: rgba(241,245,249,.82);
  text-align: left;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.workspace-menu button:hover,
.workspace-menu button:focus-visible {
  outline: 0;
  color: #fff;
  background: rgba(255,255,255,.09);
}
.workspace-menu button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
}
.workspace-menu button > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.workspace-menu b { font-size: 13px; }
.workspace-menu em { color: rgba(203,213,225,.62); font-style: normal; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-menu-legacy { margin-top: 4px; border-top: 1px solid rgba(255,255,255,.08); }

.wsctx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 12px;
}
.wsctx-head span { min-width: 0; display: grid; gap: 3px; }
.wsctx-head em {
  color: #9aa4b6;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.wsctx-head b {
  color: #111827;
  font-size: 18px;
  letter-spacing: -.02em;
}
.wsctx-search { margin-inline: 0; }
.wsctx-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0 12px;
}
.wsctx-quick button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(203,213,225,.78);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #64748b;
  font-size: 11px;
  font-weight: 720;
  transition: all var(--t-fast);
}
.wsctx-quick button:hover { color: #111827; border-color: #b8c2d3; background: #fff; }
.wsctx-quick button.is-active { color: #fff; border-color: #111827; background: #111827; }
.wsctx-groups {
  min-height: 0;
  flex: 1;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-bottom: 12px;
  scrollbar-gutter: stable;
}
.wsctx-group {
  display: grid;
  gap: 6px;
}
.wsctx-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  color: #7b8496;
  font-size: 11px;
}
.wsctx-title b { color: #6b7280; letter-spacing: .03em; }
.wsctx-title em { font-style: normal; font-variant-numeric: tabular-nums; }
.wsctx-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(226,232,240,.86);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  text-align: left;
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.wsctx-row:hover,
.wsctx-row:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  border-color: rgba(148,163,184,.8);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15,23,42,.08);
}
.wsctx-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.wsctx-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 12.5px;
}
.wsctx-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8b96aa;
  font-size: 11px;
  font-style: normal;
}
.wsctx-row i,
.wsctx-row strong {
  justify-self: end;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 7px;
  background: #eef2ff;
  color: #405ee8;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 780;
}
.wsctx-empty {
  padding: 12px 8px;
  color: #9aa4b6;
  font-size: 12px;
}

body.workspace-shell-v2[data-zone="custom"] .view-root {
  padding: 0;
  overflow: hidden;
}
body.workspace-shell-v2[data-zone="custom"] .custom-creation-shell {
  min-height: 100%;
  grid-template-rows: minmax(0, 1fr);
}
body.workspace-shell-v2[data-zone="custom"] .custom-creation-header {
  display: none;
}
body.workspace-shell-v2[data-zone="custom"] .custom-creation-stage {
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

@media (max-width: 1100px) {
  body.workspace-shell-v2 .app-shell,
  body.workspace-shell-v2.has-panel .app-shell {
    grid-template-columns: 56px minmax(220px, 248px) minmax(0, 1fr);
  }
  .workspace-switch-button { min-width: 132px; }
  body.workspace-shell-v2 .top-crumb { max-width: 28vw; }
}

@media (max-width: 860px) {
  body.workspace-shell-v2 .app-shell,
  body.workspace-shell-v2.has-panel .app-shell {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  body.workspace-shell-v2 .ctx-panel { display: none !important; }
  body.workspace-shell-v2 .top-crumb { display: none; }
  .workspace-switch-button { min-width: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-menu,
  .workspace-switch-button,
  .wsctx-row,
  body.workspace-shell-v2 .view-root {
    transition-duration: 1ms !important;
  }
}

/* ---------- v120 统一工作区外壳 · GPT 式无边框导航 ---------- */
body.workspace-shell-v2 {
  --workspace-context-width: 244px;
}
body.workspace-shell-v2 .app-shell,
body.workspace-shell-v2.has-panel .app-shell {
  grid-template-columns: var(--workspace-context-width) minmax(0, 1fr);
  background: #fff;
}
body.workspace-shell-v2 .nav-rail {
  display: none !important;
}
body.workspace-shell-v2 .ctx-panel,
body.workspace-shell-v2.role-supplier .ctx-panel,
body.workspace-shell-v2.role-supplier-parent .ctx-panel,
body.workspace-shell-v2.role-supplier-child .ctx-panel {
  display: flex !important;
  min-width: 0;
  padding: 0;
  border-right: 1px solid #e6e6e3;
  background: #f7f7f5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 35;
}
body.workspace-shell-v2 .main-col {
  min-width: 0;
  background: #fff;
}
body.workspace-shell-v2 .topbar {
  height: 54px;
  padding: 0 16px;
  gap: 8px;
  border-bottom-color: #ececea;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.workspace-shell-v2 .topbar .top-actions { margin-left: auto; }
body.workspace-shell-v2 .top-crumb {
  max-width: min(44vw, 520px);
  color: #8b8b86;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.workspace-shell-v2 .view-root {
  min-width: 0;
  padding: 18px 20px 42px;
  background: #fff;
}

/* 首页沿用统一工作区侧栏，顶栏仍由首页自己的悬浮账号控件取代。 */
body.workspace-shell-v2[data-zone="home"] .app-shell,
body.workspace-shell-v2[data-zone="home"].has-panel .app-shell {
  grid-template-columns: var(--workspace-context-width) minmax(0, 1fr);
}
body.workspace-shell-v2[data-zone="home"] .ctx-panel {
  display: flex !important;
}
body.workspace-shell-v2[data-zone="home"] .topbar {
  display: none !important;
}
body.workspace-shell-v2[data-zone="home"] .main-col {
  grid-template-rows: minmax(0, 1fr);
}
body.workspace-shell-v2[data-zone="home"] .view-root {
  padding: 0;
  overflow: auto;
}
@media (max-width: 900px) {
  body.workspace-shell-v2[data-zone="home"] .app-shell,
  body.workspace-shell-v2[data-zone="home"].has-panel .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  body.workspace-shell-v2[data-zone="home"] .topbar {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 96;
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: flex !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.workspace-shell-v2[data-zone="home"] .topbar > :not(.workspace-context-toggle) {
    display: none !important;
  }
  body.workspace-shell-v2[data-zone="home"] .topbar .workspace-context-toggle {
    position: static;
    display: grid;
  }
}

body.workspace-shell-v2 .wsctx-row.has-leading-icon {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  column-gap: 7px;
}
body.workspace-shell-v2 .wsctx-row .wsctx-leading-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,.75);
  color: #5c6674;
}
body.workspace-shell-v2 .wsctx-row .wsctx-row-copy {
  min-width: 0;
}
body.workspace-shell-v2[data-zone="home"] .wsctx-home-function {
  min-height: 38px;
}
body.workspace-shell-v2[data-zone="home"] .wsctx-home-function:hover .wsctx-leading-icon,
body.workspace-shell-v2[data-zone="home"] .wsctx-home-function:focus-visible .wsctx-leading-icon {
  background: #fff;
  color: #1f63bd;
}
body.workspace-shell-v2[data-zone="home"] .wsctx-home-history {
  min-height: 38px;
}
body.workspace-shell-v2[data-zone="home"] .wsctx-home-history > i {
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #4f77ad;
  font-size: 9px;
}
body.workspace-shell-v2[data-zone="home"] .wsctx-title-actions .wsctx-title-add {
  position: relative;
}
body.workspace-shell-v2[data-zone="home"] .wsctx-title-actions .wsctx-title-add .ico + .ico {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 1px;
  border-radius: 50%;
  background: #f7f7f5;
}

.workspace-context-shell {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  padding: 10px 10px 8px;
}
.workspace-context-brand {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 7px;
}
.workspace-context-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: #111;
}
.workspace-context-logo .brand-glyph-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.workspace-context-brand > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.workspace-context-brand b {
  color: #20201e;
  font-size: 14px;
  line-height: 1.2;
}
.workspace-context-brand em {
  color: #999994;
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.2;
}
.workspace-context-close {
  display: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  place-items: center;
  border-radius: 8px;
  color: #73736e;
}
.workspace-context-close:hover { background: #e9e9e5; color: #20201e; }

body.workspace-shell-v2 .wsctx-head {
  min-height: 44px;
  padding: 5px 8px 7px;
}
body.workspace-shell-v2 .wsctx-head span {
  display: grid;
  gap: 1px;
}
body.workspace-shell-v2 .wsctx-head em {
  color: #a0a09a;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}
body.workspace-shell-v2 .wsctx-head b {
  color: #272724;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -.01em;
}
body.workspace-shell-v2 .wsctx-head .icon-btn {
  color: #83837d;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.workspace-shell-v2 .wsctx-head .icon-btn:hover { background: #e9e9e5; color: #222; }
body.workspace-shell-v2 .wsctx-search {
  height: 36px;
  margin: 0 4px 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: #ecece8;
  color: #8a8a84;
  box-shadow: none;
}
body.workspace-shell-v2 .wsctx-search:focus-within {
  background: #fff;
  box-shadow: inset 0 0 0 1px #cfcfca, 0 1px 3px rgba(0,0,0,.05);
}
body.workspace-shell-v2 .wsctx-search input {
  color: #242422;
  font-size: 12px;
}
body.workspace-shell-v2 .wsctx-search input::placeholder { color: #9a9a94; }

body.workspace-shell-v2 .wsctx-groups {
  min-height: 0;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px 18px;
  scrollbar-gutter: auto;
}
body.workspace-shell-v2 .wsctx-group {
  display: block;
  margin: 0 0 16px;
}
body.workspace-shell-v2 .wsctx-title {
  height: 28px;
  padding: 6px 8px 4px;
  color: #969690;
  font-size: 10.5px;
  font-weight: 650;
}
body.workspace-shell-v2 .wsctx-title b {
  color: inherit;
  font-weight: 650;
  letter-spacing: .01em;
}
body.workspace-shell-v2 .wsctx-title em {
  color: #adada7;
  font-style: normal;
}
body.workspace-shell-v2 .wsctx-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #2d2d2a;
  text-align: left;
  transform: none;
  transition: background 150ms ease, color 150ms ease;
}
body.workspace-shell-v2 .wsctx-row:hover,
body.workspace-shell-v2 .wsctx-row:focus-visible {
  outline: 0;
  border: 0;
  background: #ebebe7;
  box-shadow: none;
  transform: none;
}
body.workspace-shell-v2 .wsctx-row.is-active {
  background: #e3e3df;
  color: #11110f;
}
body.workspace-shell-v2 .wsctx-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}
body.workspace-shell-v2 .wsctx-row b {
  color: inherit;
  font-size: 12.5px;
  font-weight: 620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.workspace-shell-v2 .wsctx-row em {
  color: #94948e;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 450;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.workspace-shell-v2 .wsctx-row i,
body.workspace-shell-v2 .wsctx-row strong {
  max-width: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a8a84;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.workspace-shell-v2 .wsctx-row.is-active i { color: #444440; }
body.workspace-shell-v2 .wsctx-empty {
  margin: 4px 8px;
  padding: 12px 8px;
  color: #a1a19b;
  font-size: 11.5px;
}

.workspace-account {
  position: relative;
  padding-top: 7px;
  border-top: 1px solid #e2e2de;
}
.workspace-account-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 9px;
  color: #292927;
  text-align: left;
  transition: background 150ms ease;
}
.workspace-account-button:hover,
.workspace-account-button:focus-visible,
.workspace-account.is-open .workspace-account-button {
  outline: 0;
  background: #e9e9e5;
}
.workspace-account-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #262624;
  font-size: 12px;
  font-weight: 700;
}
.workspace-account-avatar.lg { width: 38px; height: 38px; font-size: 14px; }
.workspace-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.workspace-account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.workspace-account-copy b,
.workspace-account-summary b {
  color: #242422;
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-account-copy em,
.workspace-account-summary em {
  color: #92928c;
  font-size: 10.5px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 7px;
  border: 1px solid #dfdfdb;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 42px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 70;
}
.workspace-account.is-open .workspace-account-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.workspace-account-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 8px 9px;
}
.workspace-account-summary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.workspace-account-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #353532;
  font-size: 12px;
  text-align: left;
}
.workspace-account-menu button:hover,
.workspace-account-menu button:focus-visible {
  outline: 0;
  background: #efefec;
}
.workspace-account-menu button.is-danger { color: #b13b35; }
.workspace-account-menu button.is-danger:hover { background: #fff0ee; }
.workspace-account-separator {
  height: 1px;
  margin: 5px 3px;
  background: #e5e5e1;
}

.workspace-switcher {
  position: relative;
  flex: none;
  z-index: 45;
}
.workspace-switch-button {
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: #2d2d2a;
  font-size: 12.5px;
  font-weight: 650;
  transform: none;
}
.workspace-switch-button:hover,
.workspace-switch-button:focus-visible,
.workspace-switcher.is-open .workspace-switch-button {
  outline: 0;
  border: 0;
  background: #f0f0ed;
  box-shadow: none;
  transform: none;
}
.workspace-switch-button span { flex: initial; }
.workspace-menu {
  top: calc(100% + 6px);
  width: 292px;
  max-height: min(74vh, 540px);
  padding: 7px;
  border: 1px solid #dfdfdb;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  color: #2b2b28;
  box-shadow: 0 16px 44px rgba(0,0,0,.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-4px);
}
.workspace-switcher.is-open .workspace-menu { transform: translateY(0); }
.workspace-menu-kicker {
  padding: 7px 9px 5px;
  color: #9a9a94;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .02em;
}
.workspace-menu button {
  min-height: 45px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #393936;
}
.workspace-menu button:hover,
.workspace-menu button:focus-visible {
  color: #171715;
  background: #f0f0ed;
}
.workspace-menu button.is-active {
  color: #171715;
  background: #e8e8e4;
}
.workspace-menu b { color: inherit; font-size: 12.5px; font-weight: 650; }
.workspace-menu em { color: #92928c; font-size: 10.5px; }
.workspace-context-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #555550;
}
.workspace-context-toggle:hover { background: #f0f0ed; color: #222; }
.workspace-shell-restore { flex: none; }

body.workspace-shell-v2[data-zone="custom"] .view-root {
  padding: 0;
  overflow: hidden;
}
body.workspace-shell-v2[data-zone="custom"] .custom-creation-shell {
  min-height: 100%;
  grid-template-rows: minmax(0, 1fr);
}
body.workspace-shell-v2[data-zone="custom"] .custom-creation-header { display: none; }
body.workspace-shell-v2[data-zone="custom"] .custom-creation-stage {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1200px) and (min-width: 901px) {
  body.workspace-shell-v2 { --workspace-context-width: 236px; }
  body.workspace-shell-v2 .top-crumb { max-width: 28vw; }
}

@media (max-width: 900px) {
  body.workspace-shell-v2 .app-shell,
  body.workspace-shell-v2.has-panel .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  body.workspace-shell-v2 .ctx-panel,
  body.workspace-shell-v2.role-supplier .ctx-panel,
  body.workspace-shell-v2.role-supplier-parent .ctx-panel,
  body.workspace-shell-v2.role-supplier-child .ctx-panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 288px);
    display: flex !important;
    transform: translateX(-103%);
    box-shadow: 18px 0 46px rgba(0,0,0,.16);
    transition: transform 180ms ease;
    z-index: 90;
  }
  body.workspace-shell-v2.workspace-context-open .ctx-panel { transform: translateX(0); }
  body.workspace-shell-v2.workspace-context-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(20,20,18,.28);
  }
  .workspace-context-close,
  .workspace-context-toggle { display: grid; }
  body.workspace-shell-v2 .top-crumb { display: none; }
  body.workspace-shell-v2 .topbar { padding-inline: 10px; }
  .workspace-menu {
    position: fixed;
    left: 10px;
    top: 50px;
    width: min(292px, calc(100vw - 20px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-account-menu,
  body.workspace-shell-v2 .ctx-panel {
    transition-duration: 1ms !important;
  }
}

/* ---------- 开屏 · 白色科技舞台 + 三身份口令 ---------- */
.login-gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background:
    radial-gradient(760px 520px at 50% 16%, rgba(72, 154, 255, .18), transparent 68%),
    radial-gradient(720px 460px at 14% 74%, rgba(154, 188, 232, .2), transparent 68%),
    radial-gradient(660px 420px at 88% 28%, rgba(210, 224, 241, .42), transparent 66%),
    linear-gradient(180deg, #fbfdff 0%, #eef5fc 48%, #f8fbff 100%);
  overflow: hidden;
}
.auth-booting .login-gate { visibility: hidden; }
.has-auth-token .login-gate { display: none; }
.lg-bg-video {
  display: none;
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  background: #080d18; filter: saturate(1.02) contrast(1.02);
}
.login-gate::before {
  content: ""; position: absolute; inset: -12%; z-index: 1; pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 28%, rgba(80, 143, 218, .09) 28.2%, transparent 29.6% 62%, rgba(28, 104, 190, .075) 62.2%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(24, 71, 128, .05) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(24, 71, 128, .04) 0 1px, transparent 1px 92px);
  opacity: .9;
  transform: translate3d(0, 0, 0);
  animation: loginFieldDrift 18s ease-in-out infinite alternate;
}
.login-gate::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% 56%, rgba(255, 255, 255, .82), transparent 66%),
    conic-gradient(from 210deg at 50% 42%, transparent 0 18%, rgba(76, 148, 230, .12) 20%, transparent 26% 56%, rgba(10, 37, 72, .08) 58%, transparent 64% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .52), transparent 38%, rgba(255, 255, 255, .54));
  mix-blend-mode: normal;
  animation: loginSheen 10s ease-in-out infinite alternate;
}
@keyframes loginFieldDrift { 0% { transform: translate3d(-1.5%, -1%, 0) scale(1.02); } 100% { transform: translate3d(1.5%, 1%, 0) scale(1.03); } }
@keyframes loginSheen { 0% { opacity: .56; transform: translateX(-1.2%); } 100% { opacity: .9; transform: translateX(1.2%); } }
.lg-stage { position: absolute; inset: 0; pointer-events: none; opacity: .62; z-index: 3; }
.lg-aurora { position: absolute; inset: 0; overflow: hidden; }
.lg-aurora i { position: absolute; border-radius: 50%; filter: blur(86px); opacity: .62; mix-blend-mode: multiply; will-change: transform; }
.lg-aurora .a1 { width: 58vw; height: 58vw; left: -16vw; top: -16vh; background: radial-gradient(circle, rgba(188, 211, 239, .62), transparent 64%); animation: auroraDrift 26s ease-in-out infinite; }
.lg-aurora .a2 { width: 52vw; height: 52vw; right: -14vw; top: -8vh; background: radial-gradient(circle, rgba(116, 176, 242, .32), transparent 64%); animation: auroraDrift 32s ease-in-out infinite reverse; }
.lg-aurora .a3 { width: 72vw; height: 48vw; left: 14vw; bottom: -22vh; background: radial-gradient(circle, rgba(214, 225, 238, .7), transparent 66%); animation: auroraDrift2 36s ease-in-out infinite; }
@keyframes auroraDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 5vh) scale(1.12); } }
@keyframes auroraDrift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-7vw, -4vh) scale(1.08); } }
.lg-constellation {
  position: absolute; inset: 8% 10%; opacity: .58;
  background:
    linear-gradient(108deg, transparent 6%, rgba(44, 94, 154, .16) 6.2%, transparent 6.8% 31%, rgba(88, 148, 210, .12) 31.2%, transparent 31.8%),
    linear-gradient(24deg, transparent 18%, rgba(80, 118, 164, .12) 18.2%, transparent 18.8% 62%, rgba(58, 121, 255, .1) 62.2%, transparent 62.9%);
  mask-image: radial-gradient(ellipse at center, #000 0 70%, transparent 100%);
  animation: constellationDrift 22s ease-in-out infinite alternate;
}
.lg-constellation i {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #2c77d2; box-shadow: 0 0 14px rgba(78, 143, 220, .5), 0 0 28px rgba(116, 176, 242, .28);
  animation: starPulse 3.6s ease-in-out infinite;
}
.lg-constellation i:nth-child(1) { left: 8%; top: 23%; animation-delay: -.2s; }
.lg-constellation i:nth-child(2) { left: 18%; top: 38%; animation-delay: -.8s; }
.lg-constellation i:nth-child(3) { left: 30%; top: 18%; animation-delay: -1.4s; }
.lg-constellation i:nth-child(4) { left: 43%; top: 31%; animation-delay: -.5s; }
.lg-constellation i:nth-child(5) { left: 56%; top: 16%; animation-delay: -1.9s; }
.lg-constellation i:nth-child(6) { left: 71%; top: 28%; animation-delay: -.9s; }
.lg-constellation i:nth-child(7) { left: 86%; top: 20%; animation-delay: -2.2s; }
.lg-constellation i:nth-child(8) { left: 12%; top: 72%; animation-delay: -1.1s; }
.lg-constellation i:nth-child(9) { left: 29%; top: 63%; animation-delay: -2.6s; }
.lg-constellation i:nth-child(10) { left: 51%; top: 75%; animation-delay: -1.7s; }
.lg-constellation i:nth-child(11) { left: 70%; top: 62%; animation-delay: -.4s; }
.lg-constellation i:nth-child(12) { left: 90%; top: 76%; animation-delay: -2.9s; }
@keyframes constellationDrift { to { transform: translate3d(1.8vw, -1.2vh, 0) scale(1.02); } }
@keyframes starPulse { 0%, 100% { opacity: .36; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.35); } }
.lg-ground {
  position: absolute; left: 50%; bottom: -14vh; transform: translateX(-50%);
  width: 130vw; height: 36vh; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(116, 176, 242, .22), transparent 70%),
    radial-gradient(closest-side, rgba(204, 218, 236, .46), transparent 80%);
  filter: blur(6px);
}
.lg-deep {
  position: absolute; left: 50%; bottom: -12vh; transform: translateX(-50%);
  width: 150vw; height: 48vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(156, 184, 220, .26), rgba(236, 244, 252, .22) 56%, transparent 78%);
  filter: blur(12px);
}
.lg-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lg-particles i {
  position: absolute; left: var(--x); bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(65, 133, 210, .55);
  animation: rise var(--t, 10s) linear var(--d, 0s) infinite;
}
@keyframes rise { to { transform: translateY(-105vh); opacity: 0; } }

/* 登录卡整体落到视觉中心偏下，避开星阵主体头部高光。 */
.lg-center { position: relative; top: clamp(56px, 9vh, 118px); z-index: 4; display: flex; flex-direction: column; align-items: center; animation: gateIn .7s var(--ease) .15s both; }
@keyframes gateIn { from { opacity: 0; transform: translateY(20px); } }
.lg-logo {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 24px);
  margin-inline: auto; width: fit-content;
  filter: drop-shadow(0 16px 32px rgba(24, 72, 132, .18));
  animation: lgConverge 1.2s cubic-bezier(.18, .7, .16, 1) both;
  pointer-events: none;
}
.lg-logo-img {
  display: block; width: 500px; max-width: 78vw; height: auto; max-height: 25vh; object-fit: contain;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(255, 255, 255, .38)) drop-shadow(0 16px 32px rgba(24, 72, 132, .22));
  animation: logoFloat 6.5s ease-in-out 1.2s infinite;
}
.lg-login-logo {
  display: block;
  width: min(230px, 58vw);
  max-height: 118px;
  object-fit: contain;
  margin: -6px auto 6px;
  filter:
    drop-shadow(0 16px 30px rgba(42, 113, 218, .16))
    drop-shadow(0 5px 12px rgba(255, 255, 255, .74));
}
@keyframes logoFloat { 50% { transform: translateY(-8px); } }
/* 开屏：聚焦成形（模糊放大 → 清晰归位） */
@keyframes lgConverge {
  0%   { opacity: 0; transform: scale(1.4); filter: blur(22px); }
  55%  { opacity: 1; filter: blur(4px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 16px 32px rgba(24, 72, 132, .18)); }
}
/* 开屏：双层光环向 logo 收拢（汇聚） */
.lg-gather { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.lg-gather::before, .lg-gather::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(70, 150, 240, .34); animation: lgGather 1.25s cubic-bezier(.2, .6, .2, 1) both;
}
.lg-gather::after { border-color: rgba(20, 185, 210, .28); animation-delay: .18s; }
@keyframes lgGather { 0% { transform: scale(1.7); opacity: 0; } 35% { opacity: .75; } 100% { transform: scale(.18); opacity: 0; } }
.lg-tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .46); border-radius: var(--r-md); padding: 4px; margin-bottom: 18px; }
.lg-tab { flex: 1; padding: 9px; border-radius: var(--r-sm); font-size: 13px; font-weight: 650; color: var(--d-faint); transition: all var(--t-fast); }
.lg-tab.is-active { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(150, 160, 255, .2); }
.lg-card {
  position: relative; width: min(530px, calc(100vw - 48px));
  overflow: hidden; isolation: isolate;
  background: rgba(247, 251, 255, .38);
  border: 1px solid rgba(245, 250, 255, .54);
  border-radius: 24px; padding: 32px 32px 24px;
  box-shadow:
    0 30px 90px rgba(5, 14, 31, .2),
    0 12px 34px rgba(62, 116, 190, .12),
    inset 0 1px 0 rgba(255, 255, 255, .72),
    inset 0 -18px 50px rgba(255, 255, 255, .10);
  backdrop-filter: blur(34px) saturate(1.48);
  -webkit-backdrop-filter: blur(34px) saturate(1.48);
}
/* 玻璃材质：斜向高光 + 轻微毛边，不盖住背景主体。 */
.lg-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, .16) 34%, rgba(71, 142, 235, .06) 100%),
    radial-gradient(420px 180px at 18% 0%, rgba(255, 255, 255, .36), transparent 68%);
  opacity: .9;
}
.lg-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: 26px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(32px 18px at 5% 12%, rgba(255, 255, 255, .54), transparent 70%),
    radial-gradient(38px 20px at 19% 2%, rgba(255, 255, 255, .36), transparent 72%),
    radial-gradient(42px 20px at 74% 100%, rgba(255, 255, 255, .32), transparent 72%),
    radial-gradient(26px 16px at 97% 84%, rgba(255, 255, 255, .4), transparent 70%);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 1px rgba(120, 172, 230, .16), inset 0 0 30px rgba(255, 255, 255, .18);
  filter: blur(.25px);
  mix-blend-mode: screen;
}
.lg-card > * { position: relative; z-index: 1; }
.lg-brand { text-align: center; margin-bottom: 20px; }
.lg-brand h1 { color: #0f1f35; font-size: 20px; letter-spacing: .02em; }
.lg-brand p { color: #62748e; font-size: 12px; margin-top: 6px; letter-spacing: .14em; }
.lg-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.lg-form { display: flex; flex-direction: column; gap: 11px; }
.lg-field {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(235, 246, 255, .62); border-radius: var(--r-md);
  padding: 0 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lg-field:focus-within { border-color: #3d94ff; box-shadow: 0 0 0 3px rgba(55, 144, 255, .16); }
.lgf-ico { color: #7890aa; display: inline-flex; flex: none; }
.lg-field input, .lg-field select {
  flex: 1; background: none; border: 0; outline: 0;
  padding: 13px 0; color: #102136; font-size: 14px;
}
.lg-field select { appearance: none; cursor: pointer; color-scheme: light; }
.lg-field input::placeholder { color: #91a1b5; }
.lg-real-name-hint {
  flex: none;
  color: #5f7898;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .02em;
  opacity: .68;
  animation: lgRealNameHint 2.8s ease-in-out infinite;
}
@keyframes lgRealNameHint {
  0%, 100% { opacity: .52; transform: translateX(0); }
  45% { opacity: .92; transform: translateX(-2px); }
  58% { opacity: .78; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lg-real-name-hint { animation: none; }
}
.lg-login {
  margin-top: 4px;
  background: linear-gradient(135deg, #1a8dff, #1567d8 52%, #132f72);
  color: #fff; font-size: 14px; font-weight: 700;
  border-radius: var(--r-md); padding: 13px;
  box-shadow: 0 12px 28px rgba(28, 112, 220, .3);
  transition: all var(--t-fast);
}
.lg-login:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(28, 112, 220, .4); }
.lg-secondary {
  color: #52667f;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(235, 246, 255, .56);
  border-radius: var(--r-md);
  padding: 11px 13px;
  background: rgba(255, 255, 255, .32);
  transition: all var(--t-fast);
}
.lg-secondary:hover { color: #102136; border-color: rgba(55, 144, 255, .42); background: rgba(255, 255, 255, .72); }

/* ---------- v36 主版本 · 极简液态玻璃质感（只改材质和配色，不改布局） ---------- */
body {
  background:
    radial-gradient(920px 380px at 12% -8%, rgba(64, 139, 255, .08), transparent 62%),
    radial-gradient(840px 420px at 96% 2%, rgba(15, 23, 42, .08), transparent 58%),
    linear-gradient(180deg, #F8FAFD 0%, #EEF3F8 52%, #F7F9FC 100%);
}
.nav-rail {
  background:
    linear-gradient(180deg, rgba(4, 7, 13, .98), rgba(12, 16, 24, .98)),
    radial-gradient(120px 180px at 50% 0%, rgba(76, 143, 255, .20), transparent 70%);
  border-right-color: rgba(255, 255, 255, .08);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06), 16px 0 48px rgba(15, 23, 42, .08);
}
.rail-item { color: rgba(227, 233, 242, .52); }
.rail-item:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.rail-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(70,132,255,.28));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.22);
}
.rail-item.accent::after {
  background: #6DA8FF;
  box-shadow: 0 0 10px rgba(109, 168, 255, .78);
}
.ctx-panel {
  background: rgba(249, 251, 255, .58);
  border-right-color: rgba(15, 23, 42, .08);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.72), 20px 0 60px rgba(15, 23, 42, .06);
  backdrop-filter: blur(26px) saturate(1.32);
  -webkit-backdrop-filter: blur(26px) saturate(1.32);
}
.ctx-search,
.top-btn {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(15, 23, 42, .09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 28px rgba(15, 23, 42, .04);
  backdrop-filter: blur(18px) saturate(1.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
}
.ctx-search:focus-within,
.top-btn:hover {
  border-color: rgba(75, 128, 230, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 34px rgba(37, 99, 235, .10);
}
.ctx-acc:hover { background: rgba(255,255,255,.58); }
.ctx-acc.is-active {
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.08), 0 12px 30px rgba(15, 23, 42, .07);
}
.topbar {
  background: rgba(247, 249, 253, .62);
  border-bottom-color: rgba(15, 23, 42, .08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.78), 0 10px 34px rgba(15,23,42,.04);
  backdrop-filter: blur(26px) saturate(1.26);
  -webkit-backdrop-filter: blur(26px) saturate(1.26);
}
.topbar.voice-topbar-active {
  position: relative;
  min-width: 0;
}
.topbar.voice-topbar-active .top-crumb {
  flex: 0 0 160px;
}
.view-root {
  background:
    radial-gradient(780px 280px at 16% 0%, rgba(65, 132, 255, .07), transparent 64%),
    radial-gradient(720px 300px at 92% 6%, rgba(15, 23, 42, .055), transparent 60%),
    linear-gradient(180deg, rgba(250,252,255,.96), rgba(239,244,250,.98));
}

.login-gate {
  background:
    radial-gradient(920px 520px at 50% 14%, rgba(72, 154, 255, .18), transparent 68%),
    radial-gradient(700px 420px at 15% 72%, rgba(219, 232, 247, .68), transparent 66%),
    radial-gradient(640px 420px at 90% 26%, rgba(192, 213, 238, .46), transparent 64%),
    linear-gradient(180deg, #fbfdff 0%, #edf4fb 50%, #f9fbff 100%);
}
.lg-bg-video {
  display: none;
}
.login-gate::before {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(760px 440px at 50% 24%, rgba(255,255,255,.54), transparent 68%),
    linear-gradient(116deg, transparent 0 30%, rgba(74, 132, 210, .08) 30.2%, transparent 31.5% 64%, rgba(15, 53, 103, .055) 64.2%, transparent 66%),
    repeating-linear-gradient(90deg, rgba(24, 71, 128, .045) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(24, 71, 128, .035) 0 1px, transparent 1px 84px);
  opacity: .82;
  animation: loginFieldDrift 22s ease-in-out infinite alternate;
}
.login-gate::after {
  z-index: 2;
  background:
    radial-gradient(980px 520px at 50% 52%, rgba(255,255,255,.72), transparent 66%),
    conic-gradient(from 210deg at 50% 42%, transparent 0 18%, rgba(76, 148, 230, .11) 20%, transparent 26% 56%, rgba(10, 37, 72, .075) 58%, transparent 64% 100%),
    linear-gradient(90deg, rgba(255,255,255,.42), transparent 36%, rgba(255,255,255,.34));
  opacity: .78;
  animation: loginSheen 12s ease-in-out infinite alternate;
}
.lg-stage { opacity: .34; z-index: 3; }
.lg-particles { z-index: 3; }
.lg-center { top: 0; }
.lg-logo { display: none; }
.lg-card {
  width: min(520px, calc(100vw - 48px));
  background: rgba(255, 255, 255, .26);
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 30px;
  padding: 34px 34px 26px;
  box-shadow:
    0 34px 90px rgba(15, 23, 42, .24),
    0 10px 26px rgba(41, 102, 190, .08),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -28px 72px rgba(255,255,255,.18);
  backdrop-filter: blur(42px) saturate(1.34);
  -webkit-backdrop-filter: blur(42px) saturate(1.34);
}
.lg-card::before {
  background:
    linear-gradient(122deg, rgba(255,255,255,.66), rgba(255,255,255,.16) 36%, rgba(35, 87, 150, .08)),
    radial-gradient(360px 150px at 12% 0%, rgba(255,255,255,.45), transparent 72%);
}
.lg-card::after {
  border-color: rgba(255,255,255,.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), inset 0 0 36px rgba(255,255,255,.22);
}
.lg-brand h1 { color: #0A0F18; }
.lg-brand p { color: rgba(15, 23, 42, .58); }
.lg-field {
  background: rgba(255,255,255,.66);
  border-color: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 10px 24px rgba(15,23,42,.05);
}
.lg-field:focus-within {
  border-color: rgba(75, 132, 242, .52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 0 0 3px rgba(64, 132, 255, .14);
}
.lg-login {
  background: linear-gradient(135deg, #0A0F18, #1F2937 58%, #2F80FF);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .24), inset 0 1px 0 rgba(255,255,255,.22);
}
.lg-login:hover { box-shadow: 0 20px 42px rgba(15, 23, 42, .30), 0 0 34px rgba(47, 128, 255, .24); }
.lg-secondary {
  background: rgba(255,255,255,.42);
  border-color: rgba(255,255,255,.56);
  color: rgba(15,23,42,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.lg-secondary:hover { color: #0A0F18; background: rgba(255,255,255,.72); }

/* 登录内容直接悬浮在背景上，不使用整块面板外框。 */
.login-gate .lg-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.login-gate .lg-card::before,
.login-gate .lg-card::after { display: none; }

/* 登录等待态：过程只在主标题上反馈，保持界面克制、稳定。 */
.lg-mode-title {
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 58%;
  text-wrap: balance;
}
.lg-card.is-authenticating {
  border-color: transparent;
  box-shadow: none;
}
.lg-card.is-authenticating .lg-mode-title {
  font-size: 18px;
  letter-spacing: .035em;
}
.lg-mode-title.is-phase-entering {
  animation: lgTitlePhaseIn .42s cubic-bezier(.22,.78,.22,1) both;
}
@keyframes lgTitlePhaseIn {
  from {
    opacity: 0;
    transform: perspective(360px) rotateX(-34deg) translateY(4px);
    filter: blur(2.5px);
  }
  to {
    opacity: 1;
    transform: perspective(360px) rotateX(0) translateY(0);
    filter: blur(0);
  }
}
.lg-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
}
.lg-login:disabled {
  cursor: wait;
  opacity: .84;
  transform: none;
  box-shadow: 0 14px 30px rgba(15,23,42,.22);
}
.lg-login-label { position: relative; z-index: 1; }
.lg-secondary:disabled { cursor: wait; opacity: .46; }
.lg-card.is-authenticating .lg-field { opacity: .64; }
.lg-card.is-authenticating .lg-field input,
.lg-card.is-authenticating .lg-field select { cursor: wait; }
.lg-form { position: relative; }
.lg-gate-error {
  position: absolute;
  z-index: 2;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(190,38,51,.16);
  border-radius: 12px;
  background: rgba(255,245,246,.72);
  color: #9e2733;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
  animation: lgErrorIn .26s ease-out both;
}
.lg-gate-error[hidden] { display: none; }
@keyframes lgErrorIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .lg-bg-video { display: none; }
  .login-gate::before,
  .login-gate::after,
  .lg-stage *,
  .lg-particles i,
  .lg-mode-title.is-phase-entering,
  .lg-gate-error {
    animation: none !important;
  }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: rgba(13, 19, 34, .94); color: #fff;
  padding: 10px 18px; border-radius: 99px; font-size: 12.5px; font-weight: 550;
  border: 1px solid rgba(132, 152, 255, .25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  opacity: 0; transition: all var(--t-med);
  z-index: 999; pointer-events: none; max-width: min(620px, 90vw);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { border-color: rgba(224, 49, 49, .5); }

@media (max-width: 1080px) {
  body.has-panel .app-shell { grid-template-columns: 64px 1fr; }
  .ctx-panel { position: fixed; left: 64px; top: 0; bottom: 0; width: 232px; box-shadow: var(--shadow-lg); }
}

/* v120 必须晚于旧版响应式规则，避免 1024px 下重新落回 64px 黑轨布局。 */
@media (max-width: 1080px) and (min-width: 901px) {
  body.workspace-shell-v2 .app-shell,
  body.workspace-shell-v2.has-panel .app-shell {
    grid-template-columns: var(--workspace-context-width) minmax(0, 1fr);
  }
  body.workspace-shell-v2 .ctx-panel,
  body.workspace-shell-v2.role-supplier .ctx-panel,
  body.workspace-shell-v2.role-supplier-parent .ctx-panel,
  body.workspace-shell-v2.role-supplier-child .ctx-panel {
    position: static;
    inset: auto;
    left: auto;
    width: auto;
    height: auto;
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  body.workspace-shell-v2 .app-shell,
  body.workspace-shell-v2.has-panel .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  body.workspace-shell-v2 .ctx-panel,
  body.workspace-shell-v2.role-supplier .ctx-panel,
  body.workspace-shell-v2.role-supplier-parent .ctx-panel,
  body.workspace-shell-v2.role-supplier-child .ctx-panel {
    position: fixed;
    inset: 0 auto 0 0;
    left: 0;
    width: min(86vw, 288px);
    height: auto;
    transform: translateX(-103%);
    box-shadow: 18px 0 46px rgba(0,0,0,.16);
  }
  body.workspace-shell-v2.workspace-context-open .ctx-panel {
    transform: translateX(0);
  }
}

/* ---------- v120.1 · 无顶栏浮动工作区 ---------- */
body.workspace-shell-v2 .main-col {
  position: relative;
  min-height: 0;
}
body.workspace-shell-v2 .topbar {
  position: absolute;
  inset: 10px 12px auto 12px;
  width: auto;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  z-index: 65;
}
body.workspace-shell-v2 .topbar > *,
body.workspace-shell-v2 .topbar .top-actions {
  pointer-events: auto;
}
body.workspace-shell-v2 .topbar .top-actions {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}
body.workspace-shell-v2 .top-crumb {
  display: none !important;
}
body.workspace-shell-v2 .view-root {
  min-height: 0;
  padding-top: 12px;
}
body.workspace-shell-v2[data-zone="agent"] .view-root,
body.workspace-shell-v2[data-zone="custom"] .view-root {
  padding: 0;
}

.workspace-context-shell {
  height: 100%;
  flex: 1;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 8px 9px 8px;
}
.workspace-context-shell > .workspace-context-brand { grid-row: 1; }
.workspace-context-shell > .wsctx-groups,
.workspace-context-shell > .workspace-context-tool-host {
  grid-row: 2;
  min-height: 0;
}
.workspace-context-shell > .workspace-account-footer { grid-row: 3; }
.workspace-context-tool-host {
  min-width: 0;
  overflow: hidden;
}
.workspace-context-tool-host[hidden] { display: none !important; }
.workspace-context-brand {
  position: relative;
  height: 58px;
  padding: 4px 3px 8px;
}
#workspaceSwitcherHost {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.workspace-context-brand .workspace-switcher {
  width: 100%;
}
.workspace-context-brand .workspace-switch-button {
  width: 100%;
  height: 46px;
  display: grid;
  grid-template-columns: 76px minmax(48px, 1fr) auto;
  gap: 4px;
  padding: 5px 6px;
  border-radius: 10px;
  text-align: left;
}
.workspace-brand-glyph {
  width: 30px;
  height: 30px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  object-fit: cover;
}
.workspace-brand-lockup {
  position: relative;
  width: 76px;
  height: 36px;
  display: block;
  overflow: hidden;
  flex: none;
}
.workspace-brand-lockup img {
  position: absolute;
  left: 0;
  top: 46%;
  width: 76px;
  height: 76px;
  display: block;
  max-width: none;
  transform: translateY(-50%);
  user-select: none;
}
.workspace-switch-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  text-align: left;
}
.workspace-switch-copy b {
  overflow: hidden;
  color: #242422;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-switch-copy em {
  overflow: hidden;
  color: #92928d;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 520;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.workspace-shell-v2 .wsctx-row-shell {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 3px;
  border-radius: 10px;
  transition: background 140ms ease;
}
body.workspace-shell-v2 .wsctx-row-shell:hover,
body.workspace-shell-v2 .wsctx-row-shell:focus-within,
body.workspace-shell-v2 .wsctx-row-shell.is-menu-open {
  background: #efefec;
}
body.workspace-shell-v2 .wsctx-canvas-project-shell.is-active,
body.workspace-shell-v2 .wsctx-video-project-shell.is-active {
  background: #e8e8e5;
}
body.workspace-shell-v2 .wsctx-canvas-project-shell.is-active::before {
  content: none;
  display: none;
}
body.workspace-shell-v2 .wsctx-video-project-shell.is-working::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 150, 84, .04) 24%,
      rgba(255, 105, 69, .16) 42%,
      rgba(255, 196, 113, .18) 50%,
      rgba(255, 105, 69, .11) 58%,
      transparent 78%
    );
  background-size: 240% 100%;
  pointer-events: none;
  animation: workspace-video-heatwave 2.7s ease-in-out infinite;
}
body.workspace-shell-v2 .wsctx-video-project-shell.is-working > * {
  position: relative;
  z-index: 1;
}
@keyframes workspace-video-heatwave {
  0% { background-position: 115% 0; opacity: .48; filter: blur(.2px); }
  50% { opacity: .95; filter: blur(.6px); }
  100% { background-position: -115% 0; opacity: .48; filter: blur(.2px); }
}
@keyframes workspace-current-session {
  0%, 100% { opacity: .58; box-shadow: 0 0 0 3px rgba(49, 95, 213, .05); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(49, 95, 213, .1); }
}
@media (prefers-reduced-motion: reduce) {
  body.workspace-shell-v2 .wsctx-canvas-project-shell.is-active::before,
  body.workspace-shell-v2 .wsctx-video-project-shell.is-working::after {
    animation: none;
  }
}
body.workspace-shell-v2 .wsctx-row-shell .wsctx-row {
  min-width: 0;
  background: transparent;
}
body.workspace-shell-v2 .wsctx-row-more {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a1a19b;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 140ms ease, color 140ms ease, background 140ms ease;
}
body.workspace-shell-v2 .wsctx-row-shell:hover .wsctx-row-more,
body.workspace-shell-v2 .wsctx-row-shell:focus-within .wsctx-row-more,
body.workspace-shell-v2 .wsctx-row-shell.is-menu-open .wsctx-row-more,
body.workspace-shell-v2 .wsctx-row-more:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
body.workspace-shell-v2 .wsctx-row-more:hover,
body.workspace-shell-v2 .wsctx-row-more:focus-visible,
body.workspace-shell-v2 .wsctx-row-shell.is-menu-open .wsctx-row-more {
  outline: 0;
  background: transparent;
  color: #292927;
}
body.workspace-shell-v2 .wsctx-row-menu {
  position: absolute;
  z-index: 80;
  top: 32px;
  right: 0;
  width: min(208px, calc(100vw - 38px));
  display: none;
  padding: 6px;
  border: 1px solid #e1e1dc;
  border-radius: 12px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 14px 36px rgb(27 27 24 / 13%);
}
body.workspace-shell-v2 .wsctx-row-shell.is-menu-open .wsctx-row-menu {
  display: grid;
}
body.workspace-shell-v2 .wsctx-row-menu > button,
body.workspace-shell-v2 .wsctx-menu-groups > button {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #353532;
  font: inherit;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}
body.workspace-shell-v2 .wsctx-row-menu > button:hover,
body.workspace-shell-v2 .wsctx-row-menu > button:focus-visible,
body.workspace-shell-v2 .wsctx-menu-groups > button:hover,
body.workspace-shell-v2 .wsctx-menu-groups > button:focus-visible {
  outline: 0;
  background: #f0f0ed;
}
body.workspace-shell-v2 .wsctx-row-menu > button.is-danger {
  color: #a73d37;
}
body.workspace-shell-v2 .wsctx-row-menu > button.is-danger:hover,
body.workspace-shell-v2 .wsctx-row-menu > button.is-danger:focus-visible {
  background: #faefed;
}
body.workspace-shell-v2 .wsctx-menu-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px 3px;
  color: #91918b;
  font-size: 9.5px;
}
body.workspace-shell-v2 .wsctx-menu-groups {
  max-height: 140px;
  overflow-y: auto;
}
body.workspace-shell-v2 .wsctx-menu-groups > button {
  min-height: 28px;
  padding-left: 28px;
  color: #686863;
  font-size: 10.5px;
}
body.workspace-shell-v2 .wsctx-menu-groups > button.is-current::before {
  content: "✓";
  width: 12px;
  margin-left: -18px;
  color: #2f6fdd;
}
body.workspace-shell-v2 .wsctx-menu-divider {
  height: 1px;
  margin: 5px 4px;
  background: #ecece8;
}
body.workspace-shell-v2 .wsctx-row-shell .wsctx-video-project,
body.workspace-shell-v2 .wsctx-row-shell .wsctx-video-project.is-active {
  background: transparent;
  color: #2d2d2a;
}
body.workspace-shell-v2 .wsctx-row-shell:hover .wsctx-video-project,
body.workspace-shell-v2 .wsctx-row-shell .wsctx-video-project:focus-visible {
  background: transparent;
}
body.workspace-shell-v2 .wsctx-row-shell .wsctx-canvas-project,
body.workspace-shell-v2 .wsctx-row-shell .wsctx-canvas-project.is-active,
body.workspace-shell-v2 .wsctx-row-shell:hover .wsctx-canvas-project,
body.workspace-shell-v2 .wsctx-row-shell .wsctx-canvas-project:focus-visible {
  background: transparent;
}
body.workspace-shell-v2 .wsctx-row[data-session-favorite="true"] > span > b::before {
  content: "★";
  margin-right: 5px;
  color: #d39b2a;
  font-size: 9px;
  vertical-align: 1px;
}
body.workspace-shell-v2 .wsctx-subgroup {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 7px 2px;
  color: #8c8c86;
  font-size: 10px;
}
body.workspace-shell-v2 .wsctx-subgroup span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
body.workspace-shell-v2 .wsctx-subgroup em {
  color: #aaa9a3;
  font-style: normal;
}
body.workspace-shell-v2 .wsctx-subgroup-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
body.workspace-shell-v2 .wsctx-subgroup-actions button {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a09f99;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 140ms ease, color 140ms ease, background 140ms ease;
}
body.workspace-shell-v2 .wsctx-subgroup:hover .wsctx-subgroup-actions button,
body.workspace-shell-v2 .wsctx-subgroup:focus-within .wsctx-subgroup-actions button {
  opacity: 1;
  pointer-events: auto;
}
body.workspace-shell-v2 .wsctx-subgroup-actions button:hover,
body.workspace-shell-v2 .wsctx-subgroup-actions button:focus-visible {
  outline: 0;
  background: #ecece8;
  color: #343431;
}
body.workspace-shell-v2 .wsctx-title.wsctx-title-static {
  justify-content: flex-start;
  gap: 4px;
  cursor: default;
}
body.workspace-shell-v2 .wsctx-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
body.workspace-shell-v2 .wsctx-title-add {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8f8f89;
  cursor: pointer;
}
body.workspace-shell-v2 .wsctx-title-add:hover,
body.workspace-shell-v2 .wsctx-title-add:focus-visible {
  outline: 0;
  background: #e8e8e4;
  color: #222220;
}
body.workspace-shell-v2 .wsctx-row.wsctx-return-action {
  border: 1px solid #dededa;
  background: #f4f4f1;
}
body.workspace-shell-v2 .wsctx-row.wsctx-return-action:hover,
body.workspace-shell-v2 .wsctx-row.wsctx-return-action:focus-visible {
  border-color: #d0d0ca;
  background: #e9e9e5;
}
body.workspace-shell-v2 .wsctx-row.wsctx-return-action strong {
  color: #4a4a46;
}
.workspace-context-brand .workspace-menu {
  left: 2px;
  top: calc(100% + 4px);
  width: min(292px, calc(100vw - 24px));
}
.workspace-context-close {
  position: absolute;
  top: 12px;
  right: 6px;
  z-index: 3;
}

body.workspace-shell-v2 .wsctx-groups {
  padding: 2px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.workspace-shell-v2 .wsctx-groups::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body.workspace-shell-v2 .wsctx-group {
  margin-bottom: 12px;
}
body.workspace-shell-v2 .wsctx-title {
  height: 25px;
  padding-block: 4px 3px;
}

body.workspace-shell-v2 .wsctx-account-row {
  min-height: 38px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 7px;
  padding: 5px 7px;
}
body.workspace-shell-v2 .wsctx-account-number {
  width: 34px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148,163,184,.28);
  border-radius: 999px;
  color: #53627d;
  background: #f4f6fb;
  box-shadow: inset 3px 0 0 #7285aa;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body.workspace-shell-v2 .wsctx-account-number.xhs {
  color: #c2255c;
  border-color: rgba(214,51,108,.22);
  background: #fff0f4;
  box-shadow: inset 3px 0 0 #f06595;
}
body.workspace-shell-v2 .wsctx-account-number.sph {
  color: #087f5b;
  border-color: rgba(8,127,91,.22);
  background: #e6fcf5;
  box-shadow: inset 3px 0 0 #20c997;
}
body.workspace-shell-v2 .wsctx-account-copy {
  min-width: 0;
  display: grid;
  gap: 0;
}
body.workspace-shell-v2 .wsctx-account-row strong {
  min-width: 20px;
  color: #969690;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
body.workspace-shell-v2 .wsctx-account-row.is-disabled {
  opacity: .55;
  filter: saturate(.55);
}
body.workspace-shell-v2 .wsctx-account-row.is-disabled b {
  text-decoration: line-through;
  text-decoration-color: rgba(100,116,139,.45);
}

body.workspace-shell-v2[data-zone="agent"] .main-col,
body.workspace-shell-v2[data-zone="agent"] .view-root {
  background: #050505;
}
body.workspace-shell-v2[data-zone="agent"] .ctx-panel,
body.workspace-shell-v2[data-zone="agent"].has-panel .ctx-panel {
  border-right-color: rgba(255,255,255,.09);
  background: #050505;
  color: rgba(255,255,255,.9);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-switch-button,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-button {
  color: rgba(255,255,255,.88);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-switch-button:hover,
body.workspace-shell-v2[data-zone="agent"] .workspace-switch-button:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-button:hover,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-button:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .workspace-account.is-open .workspace-account-button {
  background: rgba(255,255,255,.08);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-switch-copy b,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-copy b,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row {
  color: rgba(255,255,255,.88);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-switch-copy em,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-copy em,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row em,
body.workspace-shell-v2[data-zone="agent"] .wsctx-title,
body.workspace-shell-v2[data-zone="agent"] .wsctx-empty {
  color: rgba(255,255,255,.43);
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-row:hover,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row.is-active {
  background: rgba(255,255,255,.09);
  color: #fff;
}
body.workspace-shell-v2[data-zone="agent"] .workspace-account {
  border-top-color: rgba(255,255,255,.1);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-account-menu,
body.workspace-shell-v2[data-zone="agent"] .workspace-menu {
  border-color: rgba(255,255,255,.12);
  background: #171717;
  color: rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(0,0,0,.48);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-account-menu button,
body.workspace-shell-v2[data-zone="agent"] .workspace-menu button,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-summary b {
  color: rgba(255,255,255,.9);
}
body.workspace-shell-v2[data-zone="agent"] .workspace-account-menu button:hover,
body.workspace-shell-v2[data-zone="agent"] .workspace-account-menu button:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .workspace-menu button:hover,
body.workspace-shell-v2[data-zone="agent"] .workspace-menu button:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .workspace-menu button.is-active {
  background: rgba(255,255,255,.09);
}
body.workspace-shell-v2[data-zone="agent"] .topbar .top-btn {
  color: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.13);
  background: rgba(14,14,14,.86);
}
body.workspace-shell-v2[data-zone="agent"] .topbar .top-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(26,26,26,.94);
}

@media (max-width: 900px) {
  body.workspace-shell-v2 .topbar {
    inset-inline: 10px;
  }
  body.workspace-shell-v2 .topbar .workspace-context-toggle {
    position: absolute;
    left: 0;
    top: 0;
  }
  .workspace-context-brand .workspace-switch-button {
    padding-right: 40px;
  }
}

/* ---------- v120.2 · 轻量统一工作区收口 ---------- */
.top-actions-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-utility-toggle {
  display: none;
}

body.workspace-shell-v2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  --workspace-context-width: 244px;
}
body.workspace-shell-v2 .view-root,
body.workspace-shell-v2 .ctx-panel,
body.workspace-shell-v2 .topbar {
  font-weight: 400;
}
body.workspace-shell-v2 .view-root :is(h1, h2, h3, h4, h5, h6),
body.workspace-shell-v2 .view-root :is(b, strong) {
  font-weight: 500;
}
body.workspace-shell-v2 .view-root :is(button, .btn, .top-btn),
body.workspace-shell-v2 .ctx-panel button {
  font-weight: 430;
}
body.workspace-shell-v2 .ctx-panel,
body.workspace-shell-v2.role-supplier .ctx-panel,
body.workspace-shell-v2.role-supplier-parent .ctx-panel,
body.workspace-shell-v2.role-supplier-child .ctx-panel {
  background: #fff;
}
body.workspace-shell-v2 .workspace-context-shell,
body.workspace-shell-v2 .workspace-menu,
body.workspace-shell-v2 .workspace-account-menu {
  font-family: inherit;
  font-weight: 400;
}

body.workspace-shell-v2 .workspace-utility-toggle {
  display: none !important;
}
body.workspace-shell-v2 .topbar .top-actions {
  width: auto;
  height: 38px;
  overflow: visible;
}
body.workspace-shell-v2 .top-actions-panel {
  position: static;
  width: max-content;
  max-width: min(720px, calc(100vw - 84px));
  min-height: 38px;
  padding-right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}
body.workspace-shell-v2 .top-actions-panel > * {
  flex: 0 0 auto;
}
body.workspace-shell-v2 .top-actions:hover .top-actions-panel,
body.workspace-shell-v2 .top-actions:focus-within .top-actions-panel,
body.workspace-shell-v2 .top-actions.is-open .top-actions-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 170ms ease, transform 170ms ease, visibility 0s;
}

.workspace-context-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 1px;
}
.workspace-context-actions .top-btn {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777771;
  box-shadow: none;
}
.workspace-context-actions .top-btn:hover,
.workspace-context-actions .top-btn:focus-visible {
  background: #ededeb;
  color: #222220;
}
.workspace-context-actions #topSearch span,
.workspace-context-actions #topSearch kbd {
  display: none;
}
.workspace-context-actions #topBell .badge {
  position: absolute;
  top: -2px;
  right: -2px;
}
.workspace-context-actions #topBell.has-priority-notification {
  color: var(--danger);
  background: #fff3f3;
}
.workspace-context-actions #topBell .badge.is-priority {
  background: #e23333;
  box-shadow: 0 0 0 3px rgba(226, 51, 51, .12);
}
.workspace-account-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: end;
  gap: 4px;
}
.workspace-account-footer .workspace-account {
  min-width: 0;
}
.workspace-account-notify {
  min-width: 0;
  padding: 7px 0 6px;
  display: grid;
  place-items: center;
}
.workspace-account-notify .top-btn {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #777771;
  box-shadow: none;
}
.workspace-account-notify .top-btn:hover,
.workspace-account-notify .top-btn:focus-visible {
  outline: 0;
  background: #ededeb;
  color: #222220;
}
.workspace-account-notify #topBell .badge {
  position: absolute;
  top: -2px;
  right: -2px;
}
.workspace-account-notify #topBell.has-priority-notification {
  color: var(--danger);
  background: #fff3f3;
}
.workspace-account-notify #topBell .badge.is-priority {
  background: #e23333;
  box-shadow: 0 0 0 3px rgba(226, 51, 51, .12);
}

body.workspace-shell-v2[data-zone="home"] .wsctx-home-function.is-vip > i {
  max-width: none;
  padding: 2px 7px;
  border: 1px solid rgba(192, 139, 32, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff9df, #f7e4aa);
  color: #9a6913;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
}

.publish-tag-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.publish-tag-picker select {
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #777771 50%),
    linear-gradient(135deg, #777771 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.publish-tag-picker [data-publish-tag-add] {
  border-color: #d7d9dd;
  background: #fff;
  color: #282b30;
  box-shadow: 0 6px 18px rgba(20, 28, 40, .07);
}
.publish-tag-picker [data-publish-tag-add]:hover {
  border-color: #aeb5c0;
  background: #f7f8fa;
  color: #111318;
}
.publish-tag-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.publish-tag-create[hidden] { display: none !important; }
.publish-tag-status {
  display: block;
  margin-top: 5px;
  color: #999994;
  font-size: 10.5px;
  font-weight: 400;
}

.workspace-context-brand .workspace-menu {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: min(70vh, 460px);
  padding: 6px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.workspace-context-brand .workspace-menu button {
  min-height: 36px;
  padding: 5px 8px;
  border-radius: 7px;
}
.workspace-context-brand .workspace-menu b {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.workspace-switch-copy b {
  font-size: 14px;
  font-weight: 460;
  letter-spacing: -.01em;
}
.workspace-switch-copy em {
  font-size: 11px;
  font-weight: 400;
}
.workspace-account-copy b,
.workspace-account-summary b {
  font-weight: 460;
}
.workspace-account-copy em,
.workspace-account-summary em {
  font-weight: 400;
}

.modal-panel.workspace-feedback-panel {
  width: min(430px, calc(100vw - 32px));
  max-width: 430px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: #171717;
}
.workspace-feedback-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 30px;
}
.workspace-feedback-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6e6e69;
  cursor: pointer;
}
.workspace-feedback-close:hover,
.workspace-feedback-close:focus-visible {
  background: #f0f0ed;
  color: #171717;
  outline: 0;
}
.workspace-feedback-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #171717;
  color: #fff;
}
.workspace-feedback-dialog h2 {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.workspace-feedback-dialog p {
  margin: 0;
  color: #6f6f6a;
  font-size: 14px;
  line-height: 1.65;
}
.workspace-feedback-email {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  background: #f3f3f0;
  color: #242424;
  font-size: 14px;
  user-select: all;
}
.workspace-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 2px;
}
.workspace-feedback-actions .btn {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 450;
}
.workspace-feedback-actions .btn.primary {
  background: #171717;
  color: #fff;
}

body.workspace-shell-v2 .wsctx-groups {
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.workspace-shell-v2 .wsctx-group {
  margin-bottom: 8px;
}
body.workspace-shell-v2 .wsctx-title {
  width: 100%;
  height: 24px;
  padding: 4px 7px 3px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 400;
  text-align: left;
}
body.workspace-shell-v2 .wsctx-title:hover,
body.workspace-shell-v2 .wsctx-title:focus-visible {
  outline: 0;
  color: #5f5f5a;
}
body.workspace-shell-v2 .wsctx-title b {
  font-weight: 400;
}
.wsctx-title-chevron {
  display: inline-flex;
  transition: transform 160ms ease;
}
.wsctx-group.is-collapsed .wsctx-title-chevron {
  transform: rotate(-90deg);
}
body.workspace-shell-v2 .wsctx-row {
  min-height: 35px;
  padding: 5px 8px;
  border-radius: 7px;
  font-weight: 400;
}
body.workspace-shell-v2 .wsctx-row b {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
body.workspace-shell-v2 .wsctx-row em,
body.workspace-shell-v2 .wsctx-row i,
body.workspace-shell-v2 .wsctx-row strong {
  font-weight: 400;
}
body.workspace-shell-v2 .wsctx-row:hover,
body.workspace-shell-v2 .wsctx-row:focus-visible {
  background: #efefec;
}
body.workspace-shell-v2 .wsctx-row.is-active {
  background: #e8e8e5;
}
body.workspace-shell-v2 .wsctx-account-row {
  min-height: 36px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  padding: 4px 7px;
}
body.workspace-shell-v2 .wsctx-account-number {
  font-size: 9.5px;
  font-weight: 500;
}
body.workspace-shell-v2 .wsctx-account-row strong {
  font-size: 11px;
  font-weight: 400;
}
body.workspace-shell-v2 .workspace-account {
  border-top: 0;
}

.wsctx-filter-stack {
  display: grid;
  gap: 6px;
  padding: 2px 4px 6px;
}
.wsctx-filter-range {
  min-width: 0;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: #f3f3f0;
}
.wsctx-filter-range legend {
  padding: 0;
  color: #696963;
  font-size: 10.5px;
}
.wsctx-filter-range > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.wsctx-filter-range input {
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 0 4px;
  border: 1px solid #deded8;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #252522;
  font: inherit;
  font-size: 9.5px;
}
.wsctx-filter-range input:focus {
  border-color: #9fb7eb;
  box-shadow: 0 0 0 2px rgba(49,95,213,.08);
}
.wsctx-filter-range i {
  color: #999992;
  font-size: 9px;
  font-style: normal;
}
.wsctx-filter-select {
  min-height: 32px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 7px;
  background: #f3f3f0;
  color: #696963;
  font-size: 10.5px;
}
.wsctx-filter-select select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #252522;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wsctx-filter-choice {
  display: grid;
  gap: 5px;
  padding: 4px 0;
}
.wsctx-filter-choice > span {
  padding-inline: 7px;
  color: #777771;
  font-size: 10.5px;
}
.wsctx-filter-choice > div {
  display: flex;
  gap: 4px;
  padding-inline: 4px;
}
.wsctx-filter-choice button {
  min-width: 0;
  min-height: 27px;
  flex: 1;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: #f3f3f0;
  color: #666660;
  font-size: 10.5px;
  font-weight: 400;
}
.wsctx-filter-choice button:hover,
.wsctx-filter-choice button:focus-visible {
  outline: 0;
  background: #e9e9e5;
  color: #222;
}
.wsctx-filter-choice button.is-active {
  background: #222220;
  color: #fff;
}
.wsctx-filter-reset {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #75756f;
  font-size: 11px;
  font-weight: 400;
}
.wsctx-filter-reset:hover,
.wsctx-filter-reset:focus-visible {
  outline: 0;
  background: #efefec;
  color: #222;
}

body.workspace-shell-v2[data-zone="assets"] #assetsTopDock,
body.workspace-shell-v2[data-zone="delivery"] .creator-delivery-filters,
body.workspace-shell-v2[data-zone="delivery"] .supplier-filters > .delivery-filter-controls {
  display: none !important;
}
body.workspace-shell-v2[data-zone="delivery"] .supplier-filters {
  justify-content: flex-end;
}

body.workspace-shell-v2[data-zone="agent"] .workspace-switcher.is-open .workspace-switch-button {
  background: rgba(255,255,255,.08);
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-title:hover,
body.workspace-shell-v2[data-zone="agent"] .wsctx-title:focus-visible {
  color: rgba(255,255,255,.7);
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-row:hover,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row.is-active {
  background: rgba(255,255,255,.08);
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell:hover,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell:focus-within,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell.is-menu-open,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell:has(.wsctx-row.is-active) {
  background: rgba(255,255,255,.055);
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell .wsctx-row:hover,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell .wsctx-row:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell .wsctx-row.is-active {
  background: transparent;
}

/* v120 supplier workspace context */
body.workspace-shell-v2 .wsctx-supplier-account-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  min-width: 0;
  border-radius: 9px;
  transition: background-color 140ms ease;
}
body.workspace-shell-v2 .wsctx-supplier-account-shell:hover,
body.workspace-shell-v2 .wsctx-supplier-account-shell:focus-within,
body.workspace-shell-v2 .wsctx-supplier-account-shell.is-active {
  background: #ececea;
}
body.workspace-shell-v2 .wsctx-supplier-account-shell .wsctx-row,
body.workspace-shell-v2 .wsctx-supplier-account-shell .wsctx-row:hover,
body.workspace-shell-v2 .wsctx-supplier-account-shell .wsctx-row:focus-visible,
body.workspace-shell-v2 .wsctx-supplier-account-shell .wsctx-row.is-active {
  min-width: 0;
  background: transparent;
}
body.workspace-shell-v2 .wsctx-supplier-favorite {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  color: #aaa9a3;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  transition: opacity 140ms ease, color 140ms ease, background-color 140ms ease;
}
body.workspace-shell-v2 .wsctx-supplier-account-shell:hover .wsctx-supplier-favorite,
body.workspace-shell-v2 .wsctx-supplier-account-shell:focus-within .wsctx-supplier-favorite,
body.workspace-shell-v2 .wsctx-supplier-favorite.is-active {
  opacity: 1;
}
body.workspace-shell-v2 .wsctx-supplier-favorite:hover,
body.workspace-shell-v2 .wsctx-supplier-favorite:focus-visible {
  color: #33332f;
  background: rgba(255,255,255,.62);
  outline: none;
}
body.workspace-shell-v2 .wsctx-supplier-favorite.is-active {
  color: #315fd5;
}
body.workspace-shell-v2 .wsctx-supplier-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 40px;
  margin: 0 4px 8px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #dfdfda;
  border-radius: 12px;
  background: #f4f4f1;
  color: #8c8c86;
}
body.workspace-shell-v2 .wsctx-supplier-search:focus-within {
  border-color: #c9c9c3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24,24,22,.045);
}
body.workspace-shell-v2 .wsctx-supplier-search svg {
  flex: 0 0 auto;
}
body.workspace-shell-v2 .wsctx-supplier-search input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  font-size: 13px;
  line-height: 1;
}
body.workspace-shell-v2 .wsctx-supplier-delivery-tools {
  margin: 0 4px 10px;
  display: grid;
  gap: 8px;
}
body.workspace-shell-v2 .wsctx-supplier-delivery-tools .wsctx-supplier-search {
  width: 100%;
  height: 40px;
  margin: 0;
}
body.workspace-shell-v2 .wsctx-supplier-primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 2px 4px 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #20201e;
  font: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}
body.workspace-shell-v2 .wsctx-supplier-delivery-tools .wsctx-supplier-primary-action {
  width: 100%;
  min-height: 38px;
  margin: 0;
  border-radius: 12px;
  color: #fff;
  background: #20201e;
  justify-content: center;
}
body.workspace-shell-v2 .wsctx-supplier-delivery-tools .wsctx-supplier-primary-action:hover,
body.workspace-shell-v2 .wsctx-supplier-delivery-tools .wsctx-supplier-primary-action:focus-visible {
  color: #fff;
  background: #343431;
  transform: translateY(-1px);
}
body.workspace-shell-v2.role-supplier .palette-ov.is-gooey .palette {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
body.workspace-shell-v2.role-supplier .palette-ov .pal-goo-layer,
body.workspace-shell-v2.role-supplier .palette-ov .pal-goo-defs {
  display: none;
}
body.workspace-shell-v2.role-supplier .palette-ov .pal-list,
body.workspace-shell-v2.role-supplier .palette-ov .pal-foot {
  background: var(--surface);
}
body.workspace-shell-v2.role-supplier .palette-ov .pal-item,
body.workspace-shell-v2.role-supplier .palette-ov .pal-search-orb {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}
body.workspace-shell-v2.role-supplier .palette-ov,
body.workspace-shell-v2.role-supplier-child .palette-ov {
  align-items: flex-start;
  padding-top: 9vh;
}
body.workspace-shell-v2.role-supplier .palette-ov .palette,
body.workspace-shell-v2.role-supplier-child .palette-ov .palette {
  width: min(720px, calc(100vw - 40px));
  transform: none;
  transition: none;
}
body.workspace-shell-v2.role-supplier .palette-ov .pal-list,
body.workspace-shell-v2.role-supplier-child .palette-ov .pal-list {
  margin-top: 0;
  overscroll-behavior: contain;
}
body.workspace-shell-v2 .wsctx-supplier-primary-action:hover,
body.workspace-shell-v2 .wsctx-supplier-primary-action:focus-visible {
  background: #343431;
  transform: translateY(-1px);
  outline: none;
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-more {
  color: rgba(255,255,255,.42);
}
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-more:hover,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-more:focus-visible,
body.workspace-shell-v2[data-zone="agent"] .wsctx-row-shell.is-menu-open .wsctx-row-more {
  color: rgba(255,255,255,.76);
}

@media (max-width: 1024px) {
  body.workspace-shell-v2 {
    --workspace-context-width: 232px;
  }
  body.workspace-shell-v2 .top-actions-panel {
    max-width: calc(100vw - 70px);
    gap: 6px;
  }
}

/*
 * ui-motion.css 会在本文件之后载入，并保留旧供应商 64px 侧轨规则。
 * 这里用更明确的工作区选择器锁定统一上下文栏，避免供应商页面被压窄。
 */
body.workspace-shell-v2.role-supplier .app-shell,
body.workspace-shell-v2.role-supplier-parent .app-shell,
body.workspace-shell-v2.role-supplier-child .app-shell,
body.workspace-shell-v2.role-supplier.has-panel .app-shell,
body.workspace-shell-v2.role-supplier-parent.has-panel .app-shell,
body.workspace-shell-v2.role-supplier-child.has-panel .app-shell {
  grid-template-columns: var(--workspace-context-width) minmax(0, 1fr);
  padding-bottom: 0;
}

@media (max-width: 900px) {
  body.workspace-shell-v2.role-supplier .app-shell,
  body.workspace-shell-v2.role-supplier-parent .app-shell,
  body.workspace-shell-v2.role-supplier-child .app-shell,
  body.workspace-shell-v2.role-supplier.has-panel .app-shell,
  body.workspace-shell-v2.role-supplier-parent.has-panel .app-shell,
  body.workspace-shell-v2.role-supplier-child.has-panel .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-context-brand .workspace-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.workspace-shell-v2 .top-actions-panel,
  body.workspace-shell-v2 .wsctx-title-chevron {
    transition: none;
  }
}

/* ---------- v120.3 · 统一壳视觉层级收口 ---------- */
body.workspace-shell-v2:not([data-zone="agent"]) .main-col,
body.workspace-shell-v2:not([data-zone="agent"]) .view-root {
  background: #fff;
}

/* 单号创作：顶层内容改为白底分区，交互控件自身边界保持不变。 */
body.workspace-shell-v2[data-zone="studio"] .studio-home {
  max-width: 1120px;
  gap: 0;
}
body.workspace-shell-v2[data-zone="studio"] .studio-home > .card,
body.workspace-shell-v2[data-zone="studio"] .chain-main > .card:not(.dark),
body.workspace-shell-v2[data-zone="studio"] .chain-side > .card {
  border-color: transparent;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
body.workspace-shell-v2[data-zone="studio"] .studio-home > .card {
  padding-inline: 2px;
}
body.workspace-shell-v2[data-zone="studio"] .studio-home > .card + .card {
  border-top: 1px solid #ececea;
}
body.workspace-shell-v2[data-zone="studio"] .sh-head {
  padding-block: 18px 22px;
}
body.workspace-shell-v2[data-zone="studio"] .sh-prods,
body.workspace-shell-v2[data-zone="studio"] .sh-assets,
body.workspace-shell-v2[data-zone="studio"] .sh-delivered {
  padding-block: 20px;
}

/* 批量生产：上下文栏与沉浸式中区连续过渡，不保留亮色竖向框线。 */
body.workspace-shell-v2[data-zone="agent"] .ctx-panel,
body.workspace-shell-v2[data-zone="agent"].has-panel .ctx-panel {
  border-right-color: transparent;
  box-shadow: none;
}
body.workspace-shell-v2[data-zone="agent"] .agw-body {
  box-shadow: none;
}

/* 整体资产中的草稿时间轴使用 1px 高级灰渐变，避免粗黑轨道。 */
body.workspace-shell-v2[data-zone="assets"] .draft-timeline::before {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(148, 148, 143, .22) 10%,
    rgba(126, 126, 121, .48) 48%,
    rgba(148, 148, 143, .22) 90%,
    transparent 100%
  );
  box-shadow: none;
}

/* v130 · 首页品牌锁定为静态入口，不再保留工作区下拉按钮反馈。 */
.workspace-switcher.is-static .workspace-switch-static,
.workspace-switcher.is-static .workspace-switch-static:hover,
.workspace-switcher.is-static .workspace-switch-static:focus-visible {
  cursor: default;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  transform: none;
}
