/*
 * 霖熙健康 OA · Liquid Glass system layer
 *
 * This stylesheet is intentionally presentation-only. It does not change DOM
 * structure, visibility state, hit testing, or workflow behavior. The shared
 * desktop title-bar height is the only explicit chrome dimension contract.
 * Load it after module styles so scoped overrides do not need `!important`.
 */

:root[data-ui-theme="linxi-liquid-glass"] {
  color-scheme: light;

  /* Shared materials: chrome may transmit context; business content stays solid. */
  --lx-glass-material-chrome: rgba(247, 252, 250, 0.72);
  --lx-glass-material-chrome-strong: rgba(247, 252, 250, 0.88);
  --lx-glass-material-panel: rgba(255, 255, 255, 0.82);
  --lx-glass-material-control: rgba(255, 255, 255, 0.46);
  --lx-glass-material-control-hover: rgba(255, 255, 255, 0.58);
  --lx-glass-material-float: rgba(250, 253, 252, 0.88);
  --lx-glass-material-modal: rgba(252, 254, 253, 0.94);
  --lx-glass-material-solid: #ffffff;
  --lx-glass-material-toast: rgba(13, 33, 28, 0.86);
  --lx-glass-material-danger: rgba(153, 27, 27, 0.92);

  /* Edge light and semantic tint. */
  --lx-glass-edge-light: rgba(255, 255, 255, 0.88);
  --lx-glass-edge-mid: rgba(255, 255, 255, 0.52);
  --lx-glass-edge-dark: rgba(61, 91, 81, 0.16);
  --lx-glass-separator: rgba(61, 91, 81, 0.13);
  --lx-glass-brand: #138a58;
  --lx-glass-brand-deep: #0b6f4a;
  --lx-glass-brand-soft: rgba(19, 138, 88, 0.14);
  --lx-glass-brand-lens: rgba(215, 246, 232, 0.68);
  --lx-glass-info-soft: rgba(62, 132, 203, 0.12);
  --lx-glass-focus: #64748b;
  --lx-glass-field-focus-border: #94a3b8;
  --lx-glass-field-focus-ring: rgba(100, 116, 139, 0.16);

  /* One continuous desktop title bar. The opaque optical base prevents each
     web/native segment from sampling a different backdrop. */
  --lx-glass-topbar-height: 72px;
  --lx-glass-topbar-border: rgba(61, 91, 81, 0.13);
  --lx-glass-topbar-surface: #f4f9f6;

  /* Optical depth. Blur is never animated. */
  --lx-glass-blur-thin: 10px;
  --lx-glass-blur-regular: 16px;
  --lx-glass-blur-thick: 18px;
  --lx-glass-saturate: 136%;
  --lx-glass-shadow-chrome: 0 14px 38px rgba(18, 50, 40, 0.10);
  --lx-glass-shadow-float:
    0 22px 64px rgba(11, 40, 31, 0.18),
    0 2px 10px rgba(11, 40, 31, 0.08);
  --lx-glass-shadow-modal:
    0 34px 100px rgba(8, 31, 24, 0.24),
    0 4px 18px rgba(8, 31, 24, 0.10);
  --lx-glass-shadow-lens:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(28, 112, 79, 0.08),
    0 8px 20px rgba(19, 138, 88, 0.12);
  --lx-glass-control-border: rgba(255, 255, 255, 0.70);
  --lx-glass-control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(18, 126, 96, 0.07),
    0 8px 24px rgba(26, 69, 55, 0.10);
  --lx-glass-control-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(18, 126, 96, 0.08),
    0 14px 34px rgba(26, 69, 55, 0.16);

  /* Motion describes depth changes, never the blur kernel itself. */
  --lx-glass-motion-fast: 140ms;
  --lx-glass-motion-regular: 220ms;
  --lx-glass-ease: cubic-bezier(0.2, 0.78, 0.2, 1);

  /* Named layer tokens document intended depth without replacing module z-indexes. */
  --lx-glass-layer-base: 0;
  --lx-glass-layer-chrome: 10;
  --lx-glass-layer-float: 30;
  --lx-glass-layer-modal: 50;
  --lx-glass-layer-toast: 70;
  --lx-glass-z-ambient: 0;
  --lx-glass-z-content: 1;
  --lx-glass-z-lens: 0;
}

/* The enhancement's own hidden state always wins; legacy responsive visibility stays intact. */
.linxi-liquid-nav-lens[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Login: glass around identity and atmosphere; credentials remain opaque.
   -------------------------------------------------------------------------- */

.login-screen:not([hidden]) {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 16%, rgba(41, 178, 112, 0.18), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(62, 132, 203, 0.15), transparent 36%),
    linear-gradient(145deg, #edf7f2 0%, #f5f8fb 52%, #eaf2f7 100%);
}

.login-screen:not([hidden])::before,
.login-screen:not([hidden])::after {
  position: absolute;
  z-index: var(--lx-glass-z-ambient);
  content: "";
  pointer-events: none;
}

.login-screen:not([hidden])::before {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.34), transparent 42%),
    radial-gradient(circle at 50% -18%, rgba(255, 255, 255, 0.74), transparent 46%);
}

.login-screen:not([hidden])::after {
  inset: 8% 7%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.login-card {
  position: relative;
  z-index: var(--lx-glass-z-content);
  border-color: var(--lx-glass-edge-mid);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(243, 250, 247, 0.68)),
    var(--lx-glass-material-panel);
  box-shadow:
    inset 0 1px 0 var(--lx-glass-edge-light),
    var(--lx-glass-shadow-modal);
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-thick)) saturate(var(--lx-glass-saturate));
  backdrop-filter: blur(var(--lx-glass-blur-thick)) saturate(var(--lx-glass-saturate));
}

.login-field,
.login-options,
.login-title,
.login-copy,
.login-status,
.login-card > .button {
  position: relative;
  z-index: var(--lx-glass-z-content);
}

.login-input,
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
  border-color: rgba(61, 91, 81, 0.22);
  background: var(--lx-glass-material-solid);
  color: #13221d;
  -webkit-text-fill-color: #13221d;
  caret-color: #13221d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96), 0 5px 16px rgba(20, 55, 44, 0.06);
}

.login-input:focus,
.login-input:focus-visible {
  border-color: var(--lx-glass-field-focus-border);
  outline: none;
  box-shadow: 0 0 0 3px var(--lx-glass-field-focus-ring);
}

.login-check input {
  accent-color: var(--lx-glass-brand);
}

#loginButton {
  border-color: rgba(11, 111, 74, 0.58);
  background:
    radial-gradient(circle at 28% 0, rgba(255, 255, 255, 0.20), transparent 42%),
    linear-gradient(135deg, #159565, #0d7f57);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 24px rgba(13, 127, 87, 0.20);
  transition:
    transform var(--lx-glass-motion-fast) var(--lx-glass-ease),
    box-shadow var(--lx-glass-motion-fast) ease,
    background-color var(--lx-glass-motion-fast) ease;
}

#loginButton:hover:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 13px 28px rgba(13, 127, 87, 0.25);
  transform: translateY(-1px);
}

#loginButton:active:not(:disabled) {
  box-shadow:
    inset 0 2px 6px rgba(5, 67, 44, 0.24),
    0 5px 14px rgba(13, 127, 87, 0.18);
  transform: translateY(1px) scale(0.992);
}

@media (min-width: 1024px) {
  .login-card {
    /* The desktop credential side is deliberately an almost-opaque work surface. */
    background: #f9fcfa;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .desktop-login-brand {
    position: relative;
    isolation: isolate;
    background:
      radial-gradient(circle at 14% 12%, rgba(126, 245, 184, 0.34), transparent 30%),
      radial-gradient(circle at 92% 88%, rgba(116, 189, 245, 0.25), transparent 35%),
      linear-gradient(145deg, #0e9456 0%, #10765f 54%, #245e94 100%);
  }

  .desktop-login-brand::before,
  .desktop-login-brand::after {
    position: absolute;
    content: "";
    pointer-events: none;
  }

  .desktop-login-brand::before {
    inset: 0;
    z-index: var(--lx-glass-z-ambient);
    background:
      linear-gradient(118deg, rgba(255, 255, 255, 0.16), transparent 40%),
      radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.10), transparent 46%);
  }

  .desktop-login-brand::after {
    inset: 7%;
    z-index: var(--lx-glass-z-ambient);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
  }

  .desktop-login-brand > * {
    position: relative;
    z-index: var(--lx-glass-z-content);
  }

  .desktop-login-point {
    border-color: rgba(255, 255, 255, 0.28);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08)),
      rgba(255, 255, 255, 0.10);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.34),
      0 8px 24px rgba(4, 44, 32, 0.10);
    -webkit-backdrop-filter: blur(var(--lx-glass-blur-thin)) saturate(135%);
    backdrop-filter: blur(var(--lx-glass-blur-thin)) saturate(135%);
  }
}

/* --------------------------------------------------------------------------
   App shell and navigation chrome. Data grids, documents, chat transcripts,
   forms, signature canvases, and other evidence surfaces are not selected.
   -------------------------------------------------------------------------- */

.shell.wechat-mode:not([hidden]) .workspace-layout {
  border-color: var(--lx-glass-edge-mid);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(236, 246, 241, 0.30)),
    rgba(244, 249, 247, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 28px 80px rgba(15, 49, 38, 0.15);
}

.shell.wechat-mode:not([hidden]) .wechat-tabbar {
  position: relative;
  isolation: isolate;
  border-color: var(--lx-glass-separator);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.74), rgba(231, 245, 238, 0.56)),
    var(--lx-glass-material-chrome);
  box-shadow:
    inset 0 1px 0 var(--lx-glass-edge-light),
    var(--lx-glass-shadow-chrome);
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
  backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
}

.shell.wechat-mode:not([hidden]) .linxi-liquid-nav-lens {
  position: absolute;
  z-index: var(--lx-glass-layer-base);
  top: 0;
  left: 0;
  width: calc(var(--linxi-lens-width, 0px) - 14px);
  height: calc(var(--linxi-lens-height, 0px) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 5%, rgba(255, 255, 255, 0.96), transparent 44%),
    linear-gradient(145deg, rgba(226, 250, 239, 0.86), var(--lx-glass-brand-lens));
  box-shadow: var(--lx-glass-shadow-lens);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(
    calc(var(--linxi-lens-x, 0px) + 7px),
    calc(var(--linxi-lens-y, 0px) + 5px),
    0
  );
  transform-origin: center;
  transition:
    transform var(--lx-glass-motion-regular) var(--lx-glass-ease),
    width var(--lx-glass-motion-regular) var(--lx-glass-ease),
    height var(--lx-glass-motion-regular) var(--lx-glass-ease),
    opacity var(--lx-glass-motion-fast) ease;
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-thin)) saturate(145%);
  backdrop-filter: blur(var(--lx-glass-blur-thin)) saturate(145%);
}

.shell.wechat-mode:not([hidden]) .wechat-tabbar[data-glass-lens-ready="true"] .linxi-liquid-nav-lens {
  opacity: 1;
}

.shell.wechat-mode:not([hidden]) .wechat-tab-button {
  position: relative;
  z-index: var(--lx-glass-layer-chrome);
  isolation: isolate;
  transition:
    color var(--lx-glass-motion-fast) var(--lx-glass-ease),
    transform var(--lx-glass-motion-fast) var(--lx-glass-ease);
}

.shell.wechat-mode:not([hidden]) .wechat-tab-button::before {
  position: absolute;
  z-index: var(--lx-glass-z-lens);
  inset: 7px 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 10%, rgba(255, 255, 255, 0.92), transparent 46%),
    linear-gradient(145deg, rgba(224, 250, 238, 0.82), var(--lx-glass-brand-lens));
  box-shadow: var(--lx-glass-shadow-lens);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transform-origin: center;
  transition:
    opacity var(--lx-glass-motion-fast) var(--lx-glass-ease),
    transform var(--lx-glass-motion-regular) var(--lx-glass-ease),
    border-color var(--lx-glass-motion-fast) var(--lx-glass-ease),
    box-shadow var(--lx-glass-motion-regular) var(--lx-glass-ease);
}

.shell.wechat-mode:not([hidden]) .wechat-tab-button > * {
  position: relative;
  z-index: var(--lx-glass-z-content);
}

.shell.wechat-mode:not([hidden]) .wechat-tab-button.active::before {
  border-color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  transform: scale(1);
}

.shell.wechat-mode:not([hidden]) .wechat-tabbar[data-glass-lens-ready="true"] .wechat-tab-button::before {
  opacity: 0;
  transform: scale(0.96);
}

.shell.wechat-mode:not([hidden]) .wechat-tab-button.active {
  border-left-color: transparent;
  background: transparent;
  color: var(--lx-glass-brand-deep);
}

@media (min-width: 1024px) {
  .shell.wechat-mode:not([hidden]) .wechat-tabbar {
    background:
      linear-gradient(168deg, rgba(255, 255, 255, 0.76), rgba(225, 242, 233, 0.58)),
      var(--lx-glass-material-chrome);
    box-shadow:
      inset -1px 0 0 rgba(255, 255, 255, 0.68),
      12px 0 36px rgba(15, 49, 38, 0.08);
  }

  .shell.wechat-mode:not([hidden]) .wechat-tabbar::after {
    position: absolute;
    z-index: var(--lx-glass-layer-base);
    top: 0;
    right: 0;
    left: 0;
    height: var(--lx-glass-topbar-height);
    border-bottom: 1px solid var(--lx-glass-topbar-border);
    background: var(--lx-glass-topbar-surface);
    box-shadow: inset 0 1px 0 var(--lx-glass-edge-light);
    content: "";
    pointer-events: none;
  }

  .shell.wechat-mode:not([hidden]) .wechat-tabbar::before {
    position: relative;
    z-index: var(--lx-glass-z-content);
  }
}

@media (max-width: 1023px) {
  :root[data-ui-theme="linxi-liquid-glass"] {
    --lx-glass-blur-regular: 12px;
    --lx-glass-blur-thick: 14px;
  }

  .shell.wechat-mode:not([hidden]) .wechat-tabbar {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 248, 244, 0.88)),
      var(--lx-glass-material-chrome-strong);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.90),
      0 -12px 34px rgba(15, 49, 38, 0.10);
    -webkit-backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
    backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
  }

  .shell.wechat-mode:not([hidden]) .wechat-tab-button::before {
    inset: 5px 7px;
    border-radius: 14px;
  }
}

/* --------------------------------------------------------------------------
   Common top chrome. Only bars are translucent; their content panes stay as-is.
   -------------------------------------------------------------------------- */

.shell.wechat-mode:not([hidden]) :is(
  .wechat-panel-head,
  .assistant-head,
  .desktop-overview-head,
  .module-nav,
  .workbench-project-head,
  .me-workbench-head
),
:is(
  .paper-archive-module,
  .office-supplies-module,
  .contract-workflow-module,
  .contract-writing,
  .research-project-module,
  .ppr-module
) :is(
  .paper-archive-header,
  .office-supplies-header,
  .contract-workflow-header,
  .contract-writing-header,
  .research-project-header,
  .ppr-header,
  .ios-nav
) {
  border-color: var(--lx-glass-topbar-border);
  background: var(--lx-glass-topbar-surface);
  box-shadow: inset 0 1px 0 var(--lx-glass-edge-light);
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
  backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
}

.shell.wechat-mode:not([hidden]) :is(
  .wechat-panel-head,
  .assistant-head,
  .desktop-overview-head,
  .module-nav,
  .workbench-project-head,
  .me-workbench-head
).linxi-glass-scrolled {
  border-color: rgba(43, 91, 73, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(239, 248, 244, 0.78)),
    var(--lx-glass-material-chrome-strong);
  box-shadow:
    inset 0 1px 0 var(--lx-glass-edge-light),
    0 12px 28px rgba(15, 49, 38, 0.09);
}

@media (min-width: 901px) {
  .shell.wechat-mode:not([hidden]) .workspace-layout :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head
  ),
  .shell.wechat-mode:not([hidden]) .workspace-layout :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head
  ).linxi-glass-scrolled {
    box-sizing: border-box;
    border-color: var(--lx-glass-topbar-border);
    background: var(--lx-glass-topbar-surface);
    box-shadow: inset 0 1px 0 var(--lx-glass-edge-light);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

html.linxi-desktop-host .shell.wechat-mode:not([hidden]) .workspace-layout :is(
  .wechat-panel-head,
  .assistant-head,
  .desktop-overview-head
),
html.linxi-desktop-host .shell.module-shell:not([hidden]) .workspace-layout.module-open .workspace-main > .module-page:not([hidden]) > .module-nav {
  box-sizing: border-box;
  height: var(--lx-glass-topbar-height) !important;
  min-height: var(--lx-glass-topbar-height) !important;
  max-height: var(--lx-glass-topbar-height) !important;
  border-color: var(--lx-glass-topbar-border) !important;
  background: var(--lx-glass-topbar-surface) !important;
  box-shadow: inset 0 1px 0 var(--lx-glass-edge-light) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.linxi-desktop-host .shell.wechat-mode:not([hidden]) .workspace-layout :is(
  .wechat-panel-head,
  .assistant-head,
  .desktop-overview-head
).linxi-glass-scrolled,
html.linxi-desktop-host .shell.module-shell:not([hidden]) .workspace-layout.module-open .workspace-main > .module-page:not([hidden]) > .module-nav.linxi-glass-scrolled {
  border-color: var(--lx-glass-topbar-border) !important;
  background: var(--lx-glass-topbar-surface) !important;
  box-shadow: inset 0 1px 0 var(--lx-glass-edge-light) !important;
}

html.linxi-desktop-host .shell.module-shell:not([hidden]) {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* The Windows controls live inside the same 72px OA topbar. The host owns no
   surface of its own; it only gives native commands a stable place in the
   existing page chrome. */
html.linxi-desktop-host .workspace-layout {
  position: relative;
}

.linxi-desktop-chrome-host {
  display: none;
}

html.linxi-desktop-host .linxi-desktop-chrome-host:not([hidden]) {
  position: absolute;
  z-index: 120;
  top: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  height: var(--lx-glass-topbar-height);
  pointer-events: none;
}

html.linxi-desktop-host .linxi-desktop-chrome-host > #linxiDesktopShellControls {
  position: static !important;
  z-index: auto !important;
  top: auto !important;
  right: auto !important;
  box-sizing: border-box !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 6px 0 12px !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  pointer-events: auto;
}

html.linxi-desktop-host .linxi-desktop-chrome-host > #linxiDesktopShellControls::after {
  display: none !important;
  content: none !important;
}

html.linxi-desktop-host .linxi-desktop-chrome-host #linxiDesktopConnection {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.linxi-desktop-host.linxi-desktop-overlay-open .linxi-desktop-chrome-host {
  pointer-events: none;
}

html.linxi-desktop-host .workspace-layout.tab-workbench
  .workbench-panel > .wechat-panel-head .desktop-area-title,
html.linxi-desktop-host .workspace-layout.tab-me
  .wechat-me-panel > .wechat-panel-head .desktop-area-title,
html.linxi-desktop-host .desktop-overview-head,
html.linxi-desktop-host .workspace-layout.module-open
  .workspace-main > .module-page:not([hidden]) > .module-nav {
  padding-right: calc(
    var(--linxi-desktop-content-gutter, 28px)
    + var(--linxi-desktop-chrome-width, 0px)
    + 8px
  ) !important;
}

/* Compatibility contract for the login page and older clients before the OA
   shell is ready. Once authenticated, the page moves this same node into the
   integrated host above. */
html.linxi-desktop-host body > #linxiDesktopShellControls {
  box-sizing: border-box !important;
  height: var(--lx-glass-topbar-height) !important;
  min-height: var(--lx-glass-topbar-height) !important;
  border-left: 0 !important;
  border-bottom: 1px solid var(--lx-glass-topbar-border) !important;
  background: var(--lx-glass-topbar-surface) !important;
  box-shadow: inset 0 1px 0 var(--lx-glass-edge-light) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* --------------------------------------------------------------------------
   Workbench polish. The matte grey-green workspace is the environment; glass
   belongs to interactive controls. Business content, status, and layout stay
   untouched, and calendar cells never start their own blur sampling.
   -------------------------------------------------------------------------- */

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench #workbenchMainContent {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.50), transparent 36%),
    radial-gradient(circle at 92% 24%, rgba(178, 210, 196, 0.46), transparent 34%),
    radial-gradient(circle at 18% 92%, rgba(122, 158, 143, 0.16), transparent 38%),
    linear-gradient(148deg, #d7e4de 0%, #e7eeeb 54%, #cddfd6 100%);
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell {
  background: var(--personal-board-green-bright, #13a474);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 42px rgba(9, 82, 64, 0.16);
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
  > .compensation-home-calendar {
  background: var(--personal-board-green-bright, #13a474);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
  > :is(.compensation-home-metrics, .personal-workbench-today, .personal-dashboard-list-panel) {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(
      var(--personal-board-green-bright, #13a474),
      var(--personal-board-green-bright, #13a474)
    );
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard button.compensation-calendar-day:not(:disabled) {
  transform: translateZ(0);
  transform-origin: center;
  transition:
    transform 180ms var(--lx-glass-ease),
    border-color 180ms var(--lx-glass-ease),
    box-shadow 180ms var(--lx-glass-ease),
    color 140ms ease,
    opacity 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard button.compensation-calendar-day:not(:disabled):hover {
    z-index: var(--linxi-calendar-hover-z, 2);
    border-color: var(--linxi-calendar-hover-border, rgba(255, 255, 255, 0.70));
    box-shadow: var(
      --linxi-calendar-hover-shadow,
      inset 0 1px 0 rgba(255, 255, 255, 0.52),
      0 10px 20px rgba(2, 55, 42, 0.20)
    );
    transform: var(--linxi-calendar-hover-transform, translateY(-2px) scale(1.012));
  }

}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard button.compensation-calendar-day:not(:disabled):focus-visible {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 9px 20px rgba(2, 55, 42, 0.18);
  transform: translateY(-1px);
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard button.compensation-calendar-day:not(:disabled):active {
  z-index: 3;
  box-shadow:
    inset 0 2px 6px rgba(2, 65, 48, 0.18),
    0 3px 8px rgba(2, 55, 42, 0.14);
  transform: translateY(1px) scale(0.976);
  transition-duration: 90ms;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-workbench
  :is(.personal-workbench-stat, .personal-workbench-quick-action) {
  border-color: rgba(255, 255, 255, 0.30);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(1, 72, 52, 0.10),
    0 9px 20px rgba(3, 72, 56, 0.10);
  transition:
    transform 180ms var(--lx-glass-ease),
    border-color 180ms var(--lx-glass-ease),
    box-shadow 180ms var(--lx-glass-ease),
    opacity 140ms ease;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-workbench
  :is(.personal-workbench-stat, .personal-workbench-quick-action):hover,
.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-workbench
  :is(.personal-workbench-stat, .personal-workbench-quick-action):focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.31), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(1, 72, 52, 0.10),
    0 14px 28px rgba(3, 72, 56, 0.16);
  transform: translateY(-2px);
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-workbench
  :is(.personal-workbench-stat, .personal-workbench-quick-action):active {
  box-shadow:
    inset 0 2px 6px rgba(1, 67, 49, 0.20),
    0 3px 9px rgba(3, 72, 56, 0.12);
  transform: translateY(1px) scale(0.985);
  transition-duration: 90ms;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup {
  position: relative;
  isolation: isolate;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup::before {
  position: absolute;
  z-index: 0;
  inset: 20px -40px -42px;
  background:
    radial-gradient(ellipse 30% 96% at 7% 24%, rgba(84, 128, 109, 0.16), transparent 70%),
    radial-gradient(ellipse 32% 92% at 53% 84%, rgba(255, 255, 255, 0.28), transparent 72%),
    radial-gradient(ellipse 28% 100% at 96% 38%, rgba(91, 143, 121, 0.14), transparent 70%);
  content: "";
  filter: blur(18px);
  opacity: 0.88;
  pointer-events: none;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > * {
  position: relative;
  z-index: 1;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-list-card.workbench-glass-menu {
  gap: 12px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(1, 72, 52, 0.10),
    0 9px 20px rgba(3, 72, 56, 0.10);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    transform 180ms var(--lx-glass-ease),
    border-color 180ms var(--lx-glass-ease),
    box-shadow 180ms var(--lx-glass-ease),
    opacity 140ms ease;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu
    > .wechat-list-row:hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: rgba(255, 255, 255, 0.48);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.31), rgba(255, 255, 255, 0.12)),
      rgba(255, 255, 255, 0.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -1px 0 rgba(1, 72, 52, 0.10),
      0 14px 28px rgba(3, 72, 56, 0.16);
    transform: translateY(-2px) scale(1.008);
  }
}

@media (hover: none) {
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu
    > .wechat-list-row:hover:not(:disabled):not([aria-disabled="true"]) {
    border-color: rgba(255, 255, 255, 0.30);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
      rgba(255, 255, 255, 0.04);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(1, 72, 52, 0.10),
      0 9px 20px rgba(3, 72, 56, 0.10);
    transform: none;
  }
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row:focus-visible {
  border-color: var(--lx-glass-field-focus-border);
  box-shadow:
    0 0 0 3px var(--lx-glass-field-focus-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(1, 72, 52, 0.10),
    0 14px 28px rgba(3, 72, 56, 0.16);
  transform: translateY(-1px);
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu
  > .wechat-list-row:active:not(:disabled):not([aria-disabled="true"]) {
  box-shadow:
    inset 0 2px 6px rgba(1, 67, 49, 0.20),
    0 3px 9px rgba(3, 72, 56, 0.12);
  transform: translateY(1px) scale(0.985);
  transition-duration: 90ms;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row
  :is(.wechat-list-title, .wechat-list-arrow) {
  color: #173129;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row .wechat-list-arrow {
  color: rgba(39, 74, 62, 0.54);
}

@media (hover: hover) and (pointer: fine) {
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu
    > .wechat-list-row:hover:not(:disabled):not([aria-disabled="true"]) .wechat-list-arrow {
    color: #267c61;
    transform: translateX(3px);
  }
}

@media (max-width: 720px) {
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-list-card.workbench-glass-menu {
    gap: 8px;
    padding: 0;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row {
    min-height: 58px;
    padding: 0 13px;
    border-radius: 999px;
  }
}

/* Touch light originates at the press point; it is brief and never tracks the pointer. */
:is(
  .wechat-tab-button,
  .module-nav-back,
  .module-nav-action,
  .desktop-client-download,
  .mobile-client-download,
  #loginButton,
  #desktopPersonalDashboard button.compensation-calendar-day,
  #desktopPersonalDashboard .personal-workbench-quick-action,
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
  .preview-actions button,
  .name-actions button,
  .conflict-actions button
) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

:is(
  .wechat-tab-button,
  .module-nav-back,
  .module-nav-action,
  .desktop-client-download,
  .mobile-client-download,
  #loginButton,
  #desktopPersonalDashboard button.compensation-calendar-day,
  #desktopPersonalDashboard .personal-workbench-quick-action,
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
  .preview-actions button,
  .name-actions button,
  .conflict-actions button
)::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 58px at var(--linxi-touch-x, 50%) var(--linxi-touch-y, 50%),
    rgba(255, 255, 255, 0.72),
    rgba(199, 242, 222, 0.22) 46%,
    transparent 72%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
}

.shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu > .wechat-list-row::after {
  background: radial-gradient(
    circle 58px at var(--linxi-touch-x, 50%) var(--linxi-touch-y, 50%),
    rgba(255, 255, 255, 0.76),
    rgba(255, 255, 255, 0.18) 46%,
    transparent 72%
  );
}

:is(
  .wechat-tab-button,
  .module-nav-back,
  .module-nav-action,
  .desktop-client-download,
  .mobile-client-download,
  #loginButton,
  #desktopPersonalDashboard button.compensation-calendar-day,
  #desktopPersonalDashboard .personal-workbench-quick-action,
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
  .preview-actions button,
  .name-actions button,
  .conflict-actions button
).linxi-glass-touched::after {
  animation: linxi-glass-touch-light 260ms ease-out;
}

@keyframes linxi-glass-touch-light {
  0% { opacity: 0; transform: scale(0.82); }
  34% { opacity: 0.92; }
  100% { opacity: 0; transform: scale(1.08); }
}

/* --------------------------------------------------------------------------
   Modal backdrops and near-opaque dialog shells.
   -------------------------------------------------------------------------- */

:is(
  .preview-modal,
  .name-modal,
  .conflict-modal,
  .personal-time-dialog,
  .assistant-item-action-overlay,
  .permission-picker-backdrop,
  .strong-reminder-modal,
  .paper-archive-dialog,
  .office-supplies-dialog,
  .contract-workflow-dialog,
  .research-modal,
  .research-todo-layer,
  .ppr-modal,
  .ppr-lightbox,
  .sheet-screen
):not([hidden]) {
  background:
    radial-gradient(circle at 50% 12%, rgba(223, 246, 236, 0.16), transparent 38%),
    rgba(8, 25, 20, 0.44);
  -webkit-backdrop-filter: blur(4px) saturate(112%);
  backdrop-filter: blur(4px) saturate(112%);
}

:is(
  .preview-window,
  .name-window,
  .conflict-window,
  .personal-time-dialog-card,
  .assistant-item-action-dialog,
  .permission-picker-dialog,
  .paper-archive-dialog-card,
  .office-supplies-dialog-card,
  .contract-workflow-dialog-card,
  .research-modal-card,
  .research-todo-dialog,
  .ppr-modal-card,
  .ppr-lightbox-card,
  .sheet-card
) {
  border-color: var(--lx-glass-edge-mid);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 249, 0.91)),
    var(--lx-glass-material-modal);
  box-shadow:
    inset 0 1px 0 var(--lx-glass-edge-light),
    var(--lx-glass-shadow-modal);
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-thick)) saturate(132%);
  backdrop-filter: blur(var(--lx-glass-blur-thick)) saturate(132%);
}

:is(
  .preview-modal,
  .name-modal,
  .conflict-modal,
  .personal-time-dialog,
  .assistant-item-action-overlay,
  .permission-picker-backdrop,
  .strong-reminder-modal
):not([hidden]) > :is(
  .preview-window,
  .name-window,
  .conflict-window,
  .personal-time-dialog-card,
  .assistant-item-action-dialog,
  .permission-picker-dialog,
  .strong-reminder-window
) {
  animation: linxi-glass-dialog-enter var(--lx-glass-motion-regular) var(--lx-glass-ease) both;
  transform-origin: 50% 42%;
}

@keyframes linxi-glass-dialog-enter {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Popovers and floating utility shells.
   -------------------------------------------------------------------------- */

:is(
  .travel-calendar-popover,
  .me-todo-calendar-popover,
  .contact-profile-menu,
  .chat-attachment-panel,
  .preopen-float-card,
  .direct-assistant-dock,
  .direct-assistant-pip,
  .assistant-workflow-panel
):not([hidden]) {
  border-color: var(--lx-glass-edge-mid);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 255, 255, 0.90), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 247, 242, 0.80)),
    var(--lx-glass-material-float);
  box-shadow:
    inset 0 1px 0 var(--lx-glass-edge-light),
    var(--lx-glass-shadow-float);
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
  backdrop-filter: blur(var(--lx-glass-blur-regular)) saturate(var(--lx-glass-saturate));
}

/* --------------------------------------------------------------------------
   Toast shells retain semantic success/error colors at high contrast.
   -------------------------------------------------------------------------- */

:is(
  .app-toast,
  .paper-archive-toast,
  .office-supplies-toast,
  .contract-workflow-toast,
  .contract-writing-toast,
  .ppr-toast
):not([hidden]) {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), transparent 48%),
    var(--lx-glass-material-toast);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(4, 24, 18, 0.24);
  -webkit-backdrop-filter: blur(var(--lx-glass-blur-thin)) saturate(132%);
  backdrop-filter: blur(var(--lx-glass-blur-thin)) saturate(132%);
}

.app-toast:not([hidden]) {
  animation: linxi-glass-toast-enter var(--lx-glass-motion-regular) var(--lx-glass-ease) both;
}

@keyframes linxi-glass-toast-enter {
  from { opacity: 0; transform: translate3d(-50%, 8px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
}

:is(
  .app-toast.error,
  .paper-archive-toast.error,
  .office-supplies-toast.error,
  .contract-workflow-toast.error,
  .contract-writing-toast.error,
  .ppr-toast.is-error
):not([hidden]) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 48%),
    var(--lx-glass-material-danger);
}

/* --------------------------------------------------------------------------
   Keyboard focus: neutral location feedback. Brand green remains semantic.
   -------------------------------------------------------------------------- */

.shell.wechat-mode :is(button, a[href], [role="button"], input:is([type="button"], [type="submit"], [type="reset"])):focus-visible,
.login-card :is(button, a[href], [role="button"], input:is([type="button"], [type="submit"], [type="reset"])):focus-visible,
:is(
  .preview-window,
  .name-window,
  .conflict-window,
  .personal-time-dialog-card,
  .assistant-item-action-dialog,
  .permission-picker-dialog,
  .paper-archive-dialog-card,
  .office-supplies-dialog-card,
  .contract-workflow-dialog-card,
  .research-modal-card,
  .research-todo-dialog,
  .ppr-modal-card,
  .ppr-lightbox-card,
  .sheet-card
) :is(button, a[href], [role="button"], input:is([type="button"], [type="submit"], [type="reset"])):focus-visible {
  outline: 3px solid var(--lx-glass-focus);
  outline-offset: 2px;
}

.shell.wechat-mode .wechat-tab-button:focus-visible {
  outline: 3px solid var(--lx-glass-focus) !important;
  outline-offset: -3px;
}

/* The chat composer owns one focus ring on its outer shell, never two rings. */
.shell.wechat-mode .assistant-input-wrap:focus-within {
  outline: none;
  box-shadow:
    inset 0 0 0 1px var(--lx-glass-field-focus-border),
    0 0 0 3px var(--lx-glass-field-focus-ring);
}

.shell.wechat-mode input.assistant-input:focus,
.shell.wechat-mode input.assistant-input:focus-visible {
  border-color: transparent;
  outline: none;
  box-shadow: none;
}

/* Office-supplies dialogs used a semantic green ring for ordinary field focus. */
.office-supplies-module .office-supplies-dialog-card .office-supplies-field :is(input, select, textarea):focus,
.office-supplies-module .office-supplies-dialog-card .office-supplies-field :is(input, select, textarea):focus-visible {
  border-color: var(--lx-glass-field-focus-border);
  outline: none;
  box-shadow: 0 0 0 3px var(--lx-glass-field-focus-ring);
}

/* --------------------------------------------------------------------------
   Progressive enhancement and accessibility fallbacks.
   -------------------------------------------------------------------------- */

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .login-card,
  .shell.wechat-mode:not([hidden]) .workspace-layout,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar::after,
  .shell.wechat-mode:not([hidden]) :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head,
    .module-nav,
    .workbench-project-head,
    .me-workbench-head
  ) {
    background: #f4f9f6;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :is(
    .paper-archive-module,
    .office-supplies-module,
    .contract-workflow-module,
    .contract-writing,
    .research-project-module,
    .ppr-module
  ) :is(
    .paper-archive-header,
    .office-supplies-header,
    .contract-workflow-header,
    .contract-writing-header,
    .research-project-header,
    .ppr-header,
    .ios-nav
  ) {
    background: #f4f9f6;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :is(
    .preview-window,
    .name-window,
    .conflict-window,
    .personal-time-dialog-card,
    .assistant-item-action-dialog,
    .permission-picker-dialog,
    .paper-archive-dialog-card,
    .office-supplies-dialog-card,
    .contract-workflow-dialog-card,
    .research-modal-card,
    .research-todo-dialog,
    .ppr-modal-card,
    .ppr-lightbox-card,
    .sheet-card,
    .travel-calendar-popover,
    .me-todo-calendar-popover,
    .contact-profile-menu,
    .chat-attachment-panel,
    .preopen-float-card,
    .direct-assistant-dock,
    .direct-assistant-pip,
    .assistant-workflow-panel
  ) {
    background: #fbfdfc;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :is(
    .app-toast,
    .paper-archive-toast,
    .office-supplies-toast,
    .contract-workflow-toast,
    .contract-writing-toast,
    .ppr-toast
  ):not([hidden]) {
    background: #102f26;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench #workbenchMainContent {
    background: #e6eee9;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-list-card.workbench-glass-menu {
    background: transparent;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell.wechat-mode:not([hidden]) .wechat-tab-button,
  .shell.wechat-mode:not([hidden]) .wechat-tab-button::before,
  .shell.wechat-mode:not([hidden]) .linxi-liquid-nav-lens {
    transition-duration: 0.01ms;
  }

  :is(
    .wechat-tab-button,
    .module-nav-back,
    .module-nav-action,
    .desktop-client-download,
    .mobile-client-download,
    #loginButton,
    #desktopPersonalDashboard button.compensation-calendar-day,
    #desktopPersonalDashboard .personal-workbench-quick-action,
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
    .preview-actions button,
    .name-actions button,
    .conflict-actions button
  ).linxi-glass-touched::after,
  :is(
    .preview-modal,
    .name-modal,
    .conflict-modal,
    .personal-time-dialog,
    .assistant-item-action-overlay,
    .permission-picker-backdrop,
    .strong-reminder-modal
  ):not([hidden]) > *,
  .app-toast:not([hidden]) {
    animation: none;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard button.compensation-calendar-day,
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard .compensation-home-attendance.is-workbench
    :is(.personal-workbench-stat, .personal-workbench-quick-action),
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-arrow {
    transform: none !important;
    transition: none !important;
  }
}

html.linxi-reduce-motion .linxi-liquid-nav-lens {
  transition: none;
}

html.linxi-reduce-motion :is(
  .wechat-tab-button,
  .module-nav-back,
  .module-nav-action,
  .desktop-client-download,
  .mobile-client-download,
  #loginButton,
  #desktopPersonalDashboard button.compensation-calendar-day,
  #desktopPersonalDashboard .personal-workbench-quick-action,
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
  .preview-actions button,
  .name-actions button,
  .conflict-actions button
).linxi-glass-touched::after,
html.linxi-reduce-motion .app-toast:not([hidden]) {
  animation: none;
}

html.linxi-reduce-motion .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard button.compensation-calendar-day,
html.linxi-reduce-motion .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-workbench
  :is(.personal-workbench-stat, .personal-workbench-quick-action),
html.linxi-reduce-motion .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
html.linxi-reduce-motion .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-arrow {
  transform: none !important;
  transition: none !important;
}

html.linxi-reduce-transparency {
  --lx-glass-material-chrome: #f4f9f6;
  --lx-glass-material-chrome-strong: #f4f9f6;
  --lx-glass-material-panel: #ffffff;
  --lx-glass-material-control: #f8fbf9;
  --lx-glass-material-control-hover: #ffffff;
  --lx-glass-material-float: #fbfdfc;
  --lx-glass-material-modal: #ffffff;
  --lx-glass-blur-thin: 0px;
  --lx-glass-blur-regular: 0px;
  --lx-glass-blur-thick: 0px;
}

html.linxi-reduce-transparency :is(
  .preview-modal,
  .name-modal,
  .conflict-modal,
  .personal-time-dialog,
  .assistant-item-action-overlay,
  .permission-picker-backdrop,
  .strong-reminder-modal,
  .paper-archive-dialog,
  .office-supplies-dialog,
  .contract-workflow-dialog,
  .research-modal,
  .research-todo-layer,
  .ppr-modal,
  .ppr-lightbox,
  .sheet-screen
):not([hidden]) {
  background: rgba(8, 25, 20, 0.68);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.linxi-reduce-transparency .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #workbenchMainContent {
  background: #e6eee9;
}

html.linxi-reduce-transparency .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
  > :is(.compensation-home-calendar, .personal-workbench-today, .personal-dashboard-list-panel),
html.linxi-reduce-transparency .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.linxi-reduce-transparency .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
  > .compensation-home-calendar {
  background: var(--personal-board-green-bright, #13a474);
}

html.linxi-reduce-transparency .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
  #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
  > :is(.compensation-home-metrics, .personal-workbench-today, .personal-dashboard-list-panel) {
  background: var(--personal-board-green-bright, #13a474);
}

@media (prefers-reduced-transparency: reduce) {
  .login-card,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar::after,
  .shell.wechat-mode:not([hidden]) :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head,
    .module-nav,
    .workbench-project-head,
    .me-workbench-head
  ),
  :is(
    .travel-calendar-popover,
    .me-todo-calendar-popover,
    .contact-profile-menu,
    .chat-attachment-panel,
    .preopen-float-card,
    .direct-assistant-dock,
    .direct-assistant-pip,
    .assistant-workflow-panel
  ):not([hidden]) {
    background: #f4f9f6;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench #workbenchMainContent {
    background: #e6eee9;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
    > .compensation-home-calendar {
    background: var(--personal-board-green-bright, #13a474);
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard .compensation-home-attendance.is-dashboard-shell
    > :is(.compensation-home-metrics, .personal-workbench-today, .personal-dashboard-list-panel) {
    background: var(--personal-board-green-bright, #13a474);
  }

  :is(
    .preview-window,
    .name-window,
    .conflict-window,
    .personal-time-dialog-card,
    .assistant-item-action-dialog,
    .permission-picker-dialog,
    .paper-archive-dialog-card,
    .office-supplies-dialog-card,
    .contract-workflow-dialog-card,
    .research-modal-card,
    .research-todo-dialog,
    .ppr-modal-card,
    .ppr-lightbox-card,
    .sheet-card
  ) {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :is(
    .preview-modal,
    .name-modal,
    .conflict-modal,
    .personal-time-dialog,
    .assistant-item-action-overlay,
    .permission-picker-backdrop,
    .strong-reminder-modal,
    .paper-archive-dialog,
    .office-supplies-dialog,
    .contract-workflow-dialog,
    .research-modal,
    .research-todo-layer,
    .ppr-modal,
    .ppr-lightbox,
    .sheet-screen
  ):not([hidden]) {
    background: rgba(8, 25, 20, 0.68);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  :is(
    .app-toast,
    .paper-archive-toast,
    .office-supplies-toast,
    .contract-workflow-toast,
    .contract-writing-toast,
    .ppr-toast
  ):not([hidden]) {
    background: #102f26;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .login-card,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar,
  .shell.wechat-mode:not([hidden]) :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head,
    .module-nav,
    .workbench-project-head,
    .me-workbench-head
  ),
  :is(
    .preview-window,
    .name-window,
    .conflict-window,
    .personal-time-dialog-card,
    .assistant-item-action-dialog,
    .permission-picker-dialog,
    .paper-archive-dialog-card,
    .office-supplies-dialog-card,
    .contract-workflow-dialog-card,
    .research-modal-card,
    .research-todo-dialog,
    .ppr-modal-card,
    .ppr-lightbox-card,
    .sheet-card
  ) {
    border-color: rgba(19, 55, 44, 0.42);
    background: #ffffff;
  }

  .shell.wechat-mode:not([hidden]) .wechat-tab-button.active::before {
    border-color: var(--lx-glass-brand-deep);
  }

  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard button.compensation-calendar-day,
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row {
    border-color: rgba(19, 55, 44, 0.62);
  }
}

@media (forced-colors: active) {
  .login-screen:not([hidden]),
  .login-screen:not([hidden])::before,
  .login-screen:not([hidden])::after,
  .login-card,
  .desktop-login-brand,
  .desktop-login-brand::before,
  .desktop-login-brand::after,
  .desktop-login-point,
  .shell.wechat-mode:not([hidden]) .workspace-layout,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar,
  .shell.wechat-mode:not([hidden]) .wechat-tabbar::after,
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench #workbenchMainContent,
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #desktopPersonalDashboard button.compensation-calendar-day,
  .shell.wechat-mode:not([hidden]) .workspace-layout.tab-workbench
    #departmentWorkbenchModuleGroup > .workbench-glass-menu .wechat-list-row,
  .shell.wechat-mode:not([hidden]) :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head,
    .module-nav,
    .workbench-project-head,
    .me-workbench-head
  ),
  :is(
    .preview-window,
    .name-window,
    .conflict-window,
    .personal-time-dialog-card,
    .assistant-item-action-dialog,
    .permission-picker-dialog,
    .paper-archive-dialog-card,
    .office-supplies-dialog-card,
    .contract-workflow-dialog-card,
    .research-modal-card,
    .research-todo-dialog,
    .ppr-modal-card,
    .ppr-lightbox-card,
    .sheet-card,
    .travel-calendar-popover,
    .me-todo-calendar-popover,
    .contact-profile-menu,
    .chat-attachment-panel,
    .preopen-float-card,
    .direct-assistant-dock,
    .direct-assistant-pip,
    .assistant-workflow-panel,
    .app-toast,
    .paper-archive-toast,
    .office-supplies-toast,
    .contract-workflow-toast,
    .contract-writing-toast,
    .ppr-toast
  ) {
    border-color: ButtonText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .shell.wechat-mode:not([hidden]) .wechat-tab-button::before {
    border-color: ButtonText;
    background: Canvas;
    box-shadow: none;
  }

  .shell.wechat-mode:not([hidden]) .wechat-tab-button.active {
    color: HighlightText;
  }

  .shell.wechat-mode:not([hidden]) .wechat-tab-button.active::before {
    border-color: Highlight;
    background: Highlight;
  }

  .shell.wechat-mode :is(button, a[href], [role="button"], input, select, textarea):focus-visible,
  .login-card :is(button, a[href], [role="button"], input, select, textarea):focus-visible,
  .shell.wechat-mode .wechat-tab-button:focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 2px;
  }

  html.linxi-desktop-host #linxiDesktopShellControls,
  html.linxi-desktop-host .shell.wechat-mode:not([hidden]) .workspace-layout :is(
    .wechat-panel-head,
    .assistant-head,
    .desktop-overview-head
  ),
  html.linxi-desktop-host .shell.module-shell:not([hidden]) .workspace-layout.module-open .workspace-main > .module-page:not([hidden]) > .module-nav {
    border-color: ButtonText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
