/* 测试主题专用（深色 test、浅色 test-light）。规则挂在这两个主题下，其它主题不读。
   拖放记号用 fixed 伪元素，所以这块本身不设 transform / filter / contain。
   深色用 macOS 深色系统色。浅色在文件末尾另写一套，结构规则两边共用。 */

html:is([data-theme="test"], [data-theme="test-light"]) {
  color-scheme: dark;
  --ph-ok: #ffffff;
  --ph-ok-soft: rgba(255, 255, 255, 0.22);
  --bg: #1c1c1e;
  --surface: #2c2c2e;
  --surface-2: #3a3a3c;
  --surface-3: #48484a;
  --text: #f5f5f7;
  --text-2: #aeaeb2;
  --text-3: #8e8e93;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.28);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, 0.16);
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, 0.16);
  --amber: #ff9f0a;
  --amber-soft: rgba(255, 159, 10, 0.16);
  --amber-strong: #ff9f0a;
  --purple: #bf5af2;
  --purple-soft: rgba(191, 90, 242, 0.16);
  --neutral: #98989d;
  --neutral-soft: rgba(152, 152, 157, 0.14);
  --orange: #ff9f0a;
  --orange-soft: rgba(255, 159, 10, 0.18);
  --sky: #64d2ff;
  --sky-soft: rgba(100, 210, 255, 0.18);
  --bd-done-bg: rgba(10, 132, 255, 0.34);
  --bd-done-fg: #eaf4ff;
  /* 程序坞顶到窗口底。页名在图标下面，悬浮时那行字还要露在窗口里，所以比 102 再抬一截。 */
  --test-dock-clear: 120px;
  --bd-done-bd: #7eb6ff;
  --memo-stroke: #f5f5f7;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}

html:is([data-theme="test"], [data-theme="test-light"]) body {
  font-family: var(--font);
  letter-spacing: -0.01em;
}

html:is([data-theme="test"], [data-theme="test-light"]) :is(h1, h2, h3, h4, .modal-header h2, .widget-box h3, .detail-section h4, .kpi-header h1) {
  letter-spacing: -0.022em;
  font-weight: 600;
}

html:is([data-theme="test"], [data-theme="test-light"]) .widget-box,
html:is([data-theme="test"], [data-theme="test-light"]) .detail-section,
html:is([data-theme="test"], [data-theme="test-light"]) .weekly-plan-card,
html:is([data-theme="test"], [data-theme="test-light"]) .okr-card,
html:is([data-theme="test"], [data-theme="test-light"]) .modal-content {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) .widget-box:hover,
html:is([data-theme="test"], [data-theme="test-light"]) .detail-section:hover {
  box-shadow: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) input,
html:is([data-theme="test"], [data-theme="test-light"]) textarea,
html:is([data-theme="test"], [data-theme="test-light"]) select,
html:is([data-theme="test"], [data-theme="test-light"]) .ipt {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
  border-radius: 8px;
}

html:is([data-theme="test"], [data-theme="test-light"]) .data-table,
html:is([data-theme="test"], [data-theme="test-light"]) table {
  font-size: 13px;
  line-height: 1.35;
}

html:is([data-theme="test"], [data-theme="test-light"]) .data-table th,
html:is([data-theme="test"], [data-theme="test-light"]) table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

html:is([data-theme="test"], [data-theme="test-light"]) #efficiencyPage {
  container: testeff / inline-size;
  background: var(--bg);
  min-height: 100%;
  padding-bottom: 0;
  box-sizing: border-box;
}

/* 桌面不再留左侧 400px 白条。品牌条浮在顶上，桌面从窗口左缘铺开。 */
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: max-content;
  height: auto;
  z-index: 96510;
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible !important;
  pointer-events: none;
  display: block !important;
}
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar-brand,
html:is([data-theme="test"], [data-theme="test-light"]) #notifTaskCenter {
  pointer-events: auto;
}
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar-brand {
  position: relative;
  z-index: 1;
  min-height: 56px;
  height: 56px;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(28, 28, 30, 0.86);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  display: flex !important;
  color: var(--text);
}
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar-brand .brand-row {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar-brand .brand-row .icon {
  color: var(--text);
}
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar-brand .brand-logo-mini {
  filter: brightness(2.6);
}
html:is([data-theme="test"], [data-theme="test-light"]) .brand-qbtn {
  background: transparent;
  border-color: transparent;
  color: var(--text);
  border-radius: 8px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .brand-qbtn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
}
html:is([data-theme="test"], [data-theme="test-light"]) .brand-qbtn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
html:is([data-theme="test"], [data-theme="test-light"]) #mainTopMask {
  left: 0;
  right: 0;
  z-index: 96500;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}
html:is([data-theme="test"], [data-theme="test-light"]) #efficiencyBanner,
html:is([data-theme="test"], [data-theme="test-light"]) #langSwitch,
html:is([data-theme="test"], [data-theme="test-light"]) #themeToggle {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em;
}
html:is([data-theme="test"], [data-theme="test-light"]) #topRightBar {
  z-index: 96520 !important;
}
/* 页面自己的吸顶条：滚动区已经从顶栏下沿开始，再留 56px 会空出一条。 */
html:is([data-theme="test"], [data-theme="test-light"]) .efficiency-banner,
html:is([data-theme="test"], [data-theme="test-light"]) .efficiency-banner.sticky-top {
  top: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) #efficiencyBanner {
  display: inline-flex !important;
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  z-index: 96520 !important;
}
body:has(#loginPage:not([style*="none"])) #efficiencyBanner {
  display: none !important;
}
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar > #sidebarQuad,
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar > #sidebarProjects,
html:is([data-theme="test"], [data-theme="test-light"]) .sidebar > #userCard {
  display: none;
}
/* 折叠的提醒中心不再压在图标上。点顶栏铃铛展开后，才在顶栏下面打开。 */
html:is([data-theme="test"], [data-theme="test-light"]) #notifTaskCenter:not(:empty) {
  display: none;
}
html:is([data-theme="test"], [data-theme="test-light"]) #notifTaskCenter:has(#ntcBodyWrap[style*="display:block"]),
html:is([data-theme="test"], [data-theme="test-light"]) #notifTaskCenter:has(#ntcBodyWrap[style*="display: block"]) {
  display: block;
  position: fixed;
  top: 60px;
  left: 12px;
  z-index: 96540;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 88px);
  margin: 0;
  overflow: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.18));
}
html:is([data-theme="test"], [data-theme="test-light"]) #mainPage {
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
}
/* 滚动区从顶栏下沿开始，到程序坞上沿结束。
   用内边距让位时，一滚动内容会穿进顶栏。顶栏为了露壁纸是透明的，穿进去就能看见。 */
html:is([data-theme="test"], [data-theme="test-light"]) .main {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: var(--test-dock-clear);
  left: 0;
  z-index: 1;
  padding: 0;
  background: transparent;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  box-sizing: border-box;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard {
  position: relative;
  display: block;
  min-height: 100%;
  margin: 0;
  padding: 8px 20px 28px;
  box-sizing: border-box;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-hint {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  min-height: 22px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.55);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-hint p {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-reset {
  flex: none;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.62);
  min-block-size: 22px;
  padding-inline: 0;
  font-size: 12px;
  font-weight: 400;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-reset:hover {
  color: #f5f5f7;
  background: transparent;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card {
  min-inline-size: 0;
  min-block-size: 0;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  background: transparent;
  color: #f5f5f7;
  border: 0;
  border-radius: 22px;
  padding: 8px 6px;
  box-shadow: none;
  scroll-margin: 12px;
  overflow: visible;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) {
  position: absolute;
  z-index: 1;
  width: calc(var(--badge, 64px) + 12px);
  height: auto;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  inline-size: 100%;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8px / 3);
  inline-size: 100%;
  border: 0;
  background: transparent;
  color: #f5f5f7;
  cursor: grab;
  padding: 4px;
  font: inherit;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge,
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge {
  position: relative;
  isolation: isolate;
  border-radius: 22.37%;
  color: #fff;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -0.5px 0 rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.22);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge {
  inline-size: var(--badge, 64px);
  block-size: var(--badge, 64px);
  display: grid;
  place-items: center;
}
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) .test-badge {
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1.15);
  transform-origin: center bottom;
}
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full):not(.is-lifted):hover .test-badge,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full):not(.is-lifted):focus-within .test-badge {
  transform: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) .test-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) .test-badge > * {
  position: relative;
  z-index: 1;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge .icon,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge svg {
  inline-size: calc(var(--badge, 64px) * 0.46);
  block-size: calc(var(--badge, 64px) * 0.46);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* AI 助手徽章里放原来的大脑标志和 MindHub 字，不换成别的图标。 */
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge.test-badge-logo,
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge.test-badge-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #fff;
  overflow: hidden;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-badge-logo .studio-logo-brain {
  inline-size: 36px;
  block-size: 32px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-badge-logo .studio-logo-word {
  inline-size: 54px;
  block-size: 10px;
  background: #142033;
}
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge-logo .studio-logo-brain {
  inline-size: calc(var(--badge, 64px) * 0.56);
  block-size: calc(var(--badge, 64px) * 0.5);
}
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge-logo .studio-logo-word {
  inline-size: calc(var(--badge, 64px) * 0.84);
  block-size: calc(var(--badge, 64px) * 0.16);
}

/* 右下角仍可拖动改大小，白三角不画出来。 */
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-resize {
  position: absolute;
  right: 0;
  top: calc(var(--badge, 64px) - 2px);
  z-index: 4;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: nwse-resize;
  opacity: 0;
  touch-action: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) > :not(.test-card-bar) {
  display: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full {
  align-items: stretch;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-card-bar {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 0 0 10px;
  border-bottom: 0.5px solid var(--border);
  z-index: 2;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-face {
  flex-direction: row;
  inline-size: auto;
  gap: 8px;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-badge {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 22.37%;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-badge svg {
  inline-size: 16px;
  block-size: 16px;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-name {
  max-width: calc(var(--badge, 64px) + 24px);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  margin: calc(2px / 3) 0 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-handle,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-earlier,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-later,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-span,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-desk,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-reset {
  min-block-size: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  padding-inline: 8px;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-hint .test-reset {
  flex: none;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.62);
  min-block-size: 22px;
  padding-inline: 0;
  font-size: 12px;
  font-weight: 400;
  box-shadow: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) {
  position: absolute;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) .test-tools {
  position: absolute;
  top: 70px;
  left: 50%;
  z-index: 3;
  translate: -50% 0;
  padding: 2px;
  border-radius: 8px;
  background: transparent;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full):is(:hover, :focus-within) .test-tools {
  background: rgba(28, 28, 30, 0.9);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) :is(.test-handle, .test-earlier, .test-later, .test-span) {
  opacity: 0;
  min-block-size: 22px;
  padding-inline: 6px;
  font-size: 11px;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full):is(:hover, :focus-within) :is(.test-handle, .test-earlier, .test-later, .test-span) {
  opacity: 1;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-desk {
  display: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-handle {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  min-inline-size: 44px;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-handle:is(:hover, :focus-visible) {
  background: var(--surface, #fff);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:has(:focus-visible) {
  outline: 2px solid var(--accent, Highlight);
  outline-offset: 2px;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card.is-lifted {
  z-index: 5;
  opacity: 0.92;
}

html.test-dragging,
html.test-dragging * {
  cursor: grabbing;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard[data-drop]::before,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard[data-drop]::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 80;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard[data-drop]::before {
  left: calc(var(--drop-x) - var(--drop-ring));
  top: calc(var(--drop-y) + (var(--drop-h) / 2) - var(--drop-ring));
  inline-size: calc(var(--drop-ring) * 2);
  block-size: calc(var(--drop-ring) * 2);
  border: 2px solid var(--drop-marker-color);
  border-radius: 50%;
  background: transparent;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard[data-drop]::after {
  left: var(--drop-x);
  top: var(--drop-y);
  inline-size: var(--drop-w);
  block-size: var(--drop-h);
  background: var(--drop-marker-color);
}

html:is([data-theme="test"], [data-theme="test-light"]) #sidebarQuad:not(:has(.sb-quad-tile)) {
  display: none;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .sb-quad-tile {
  inline-size: 100%;
  box-sizing: border-box;
}

html:is([data-theme="test"], [data-theme="test-light"]) #efficiencyContent.test-composed {
  display: none;
}

/* 顶栏那一行要一直在。AI 入口改走桌面徽章，原来浮在卡片上的标志和顶栏输入条收起。 */
html:is([data-theme="test"], [data-theme="test-light"]) #askBar,
html:is([data-theme="test"], [data-theme="test-light"]) #studioOrb {
  display: none !important;
}

html:is([data-theme="test"], [data-theme="test-light"]) #studioBox-eff.studio-orb-win {
  position: fixed !important;
  inset: auto !important;
  top: 56px !important;
  right: 24px !important;
  bottom: var(--test-dock-clear) !important;
  left: 24px !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 90 !important;
  padding: 8px 0 0 !important;
  box-sizing: border-box !important;
  background: var(--bg) !important;
}

html:is([data-theme="test"], [data-theme="test-light"]) .test-live {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] .sidebar > :not(.sidebar-brand):not(#notifTaskCenter) {
  display: none !important;
}

/* 打开的小块要相对窗口定位。效率页的 container 会把 fixed 锁在内容区里。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #efficiencyPage {
  container: none;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard {
  display: block;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-hint,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card:not(.is-full) {
  display: none;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full {
  position: fixed !important;
  inset: auto !important;
  top: 56px !important;
  right: 24px !important;
  bottom: var(--test-dock-clear) !important;
  left: 24px !important;
  z-index: 90;
  width: auto !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 8px 0 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-name,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-open-btn {
  color: var(--text);
  text-shadow: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-resize {
  display: none;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full :is(.test-handle, .test-earlier, .test-later, .test-span, .test-desk) {
  border-color: var(--border, #d1d5db);
  background: var(--surface-2, #f8fafc);
  color: var(--text, #111);
  opacity: 1;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .test-desk {
  display: inline-flex;
  align-items: center;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full #sidebarProjects,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full > #userCard {
  width: auto;
  max-width: none;
  flex: 1;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full > #userCard {
  flex: 0 0 auto;
  width: min(440px, calc(100% - 32px));
  margin: 12px auto 24px;
  height: auto;
  overflow: visible;
  border-radius: 12px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard.uc-orb-home .uc-header {
  padding-right: 12px;
}

@container testeff (inline-size < 720px) {
  #testBoard {
    column-gap: 12px;
    padding-inline: 16px;
  }
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full) > [hidden] {
  display: none !important;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card[data-openable="1"] .test-card-bar {
  margin-block-end: 0;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-open-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: start;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #f5f5f7;
  margin-inline-end: auto;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-open-btn:hover,
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-open-btn:focus-visible {
  color: var(--accent, #2563eb);
  text-decoration: underline;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testOpen:is(:popover-open, .is-open) {
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 56px - var(--test-dock-clear));
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text, #111);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testOpen.is-open {
  display: block;
  position: fixed;
  inset: auto;
  top: 56px;
  left: 50%;
  translate: -50% 0;
  z-index: 80;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testOpen .test-open-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  position: sticky;
  top: 0;
  background: var(--surface, #fff);
}

html:is([data-theme="test"], [data-theme="test-light"]) #testOpen h2 {
  margin: 0;
  font-size: 16px;
}

html:is([data-theme="test"], [data-theme="test-light"]) #testOpen .test-open-close {
  min-block-size: 32px;
  border: 1px solid var(--border, #d1d5db);
  background: var(--surface-2, #f8fafc);
  color: var(--text, #111);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  padding-inline: 8px;
}

@media (forced-colors: active) {
  html:is([data-theme="test"], [data-theme="test-light"]) #testBoard {
    --drop-marker-color: Highlight;
  }
  html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:has(:focus-visible) {
    outline-color: Highlight;
  }
  html:is([data-theme="test"], [data-theme="test-light"]) #testOpen:is(:popover-open, .is-open) {
    border-color: CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card,
  html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-badge,
  html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn {
    transition: none;
  }
  html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full):hover .test-badge,
  html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-card:not(.is-full):focus-within .test-badge {
    transform: none;
  }
}

/* 底部程序坞，以及点开快捷方式后铺满窗口。只在测试主题里生效。 */
html:is([data-theme="test"], [data-theme="test-light"]) #testDock {
  position: fixed;
  left: 50%;
  bottom: 28px;
  /* 整页、弹窗、锁屏、阻塞层最高到庆祝层 100001。程序坞要留在这些页面层上面。 */
  z-index: 100002 !important;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 6px 8px 6px;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(40, 40, 42, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  transform: translateX(-50%);
  overflow: visible;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 var(--dock, 54px);
  width: var(--dock, 54px);
  height: auto;
  overflow: visible;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-fan .test-dock-slot {
  height: var(--dock, 54px);
  gap: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) #testDock.is-magnify .test-dock-cap,
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-fan .test-dock-cap {
  opacity: 0;
  pointer-events: none;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-fan .test-dock-cap {
  position: absolute;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-width: 54px;
  max-width: 54px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  flex: 0 0 54px;
  overflow: visible;
  transform-origin: center bottom;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge {
  --badge: 46px;
  inline-size: 46px;
  block-size: 46px;
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22.37%;
  pointer-events: none;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge .icon,
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge svg {
  inline-size: calc(var(--badge, 46px) * 0.46);
  block-size: calc(var(--badge, 46px) * 0.46);
  width: calc(var(--badge, 46px) * 0.46);
  height: calc(var(--badge, 46px) * 0.46);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge-wx svg {
  inline-size: calc(var(--badge, 46px) * 0.72);
  block-size: calc(var(--badge, 46px) * 0.72);
  width: calc(var(--badge, 46px) * 0.72);
  height: calc(var(--badge, 46px) * 0.72);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-tip {
  position: fixed;
  z-index: 100003 !important;
  transform: translate(-50%, 0);
  margin: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(28, 28, 30, 0.92);
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-badge img,
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge-logo .studio-logo-brain {
  inline-size: calc(var(--badge, 46px) * 0.56);
  block-size: calc(var(--badge, 46px) * 0.5);
  width: calc(var(--badge, 46px) * 0.56);
  height: calc(var(--badge, 46px) * 0.5);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge-logo .studio-logo-word {
  inline-size: calc(var(--badge, 46px) * 0.84);
  block-size: calc(var(--badge, 46px) * 0.16);
  width: calc(var(--badge, 46px) * 0.84);
  height: calc(var(--badge, 46px) * 0.16);
}
/* 挂在 .test-dock-btn 里面，跟着按钮的 scale 留在图标右上角。 */
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-x {
  position: absolute;
  top: -5px;
  right: -3px;
  z-index: 40;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 28, 30, 0.92);
  color: #f5f5f7;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-slot:hover .test-dock-x,
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-slot:focus-within .test-dock-x {
  opacity: 1;
  pointer-events: auto;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-ask {
  position: fixed;
  z-index: 100004;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: 240px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.96);
  color: #f5f5f7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-ask p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-ask div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-ask button {
  padding: 4px 10px;
  border-radius: 8px;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-ask-no {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-ask-yes {
  background: #ff453a;
  color: #fff;
}
html[data-theme="test-light"] .test-dock-ask {
  background: rgba(255, 255, 255, 0.96);
  color: #1d1d1f;
}
html[data-theme="test-light"] .test-dock-ask-no {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn.is-on {
  background: rgba(255, 255, 255, 0.16);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-home .test-dock-mark {
  display: grid;
  grid-template-columns: 14px 14px;
  gap: 3px;
  width: 31px;
  height: 31px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-mark span {
  border-radius: 4px;
  background: #fff;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-mark span:nth-child(1) { background: #5ac8fa; }
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-mark span:nth-child(2) { background: #ffcc00; }
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-mark span:nth-child(3) { background: #ff3b30; }
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-mark span:nth-child(4) { background: #34c759; }

html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .sidebar > :not(.sidebar-brand):not(#notifTaskCenter) {
  display: none !important;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .main { padding-bottom: 0; }

/* 发票、用户管理、商业洞察、公司库：主区整页铺满窗口，不再留在侧栏右边。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .sidebar > :not(.sidebar-brand):not(#notifTaskCenter) {
  display: none !important;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #efficiencyPage { display: none !important; }
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #mainTopMask {
  left: 0;
  right: 0;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #efficiencyBanner {
  left: 50% !important;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .main {
  position: fixed;
  inset: auto;
  top: 56px;
  right: 0;
  bottom: var(--test-dock-clear);
  left: 0;
  z-index: 80;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: auto;
  background: var(--bg, #f7f7f8);
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork {
  position: fixed;
  inset: auto;
  top: 56px;
  right: 24px;
  bottom: var(--test-dock-clear);
  left: 24px;
  z-index: 90;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px 0 0;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .tab-content.active,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .tab-content.active.quad-enter {
  animation: none;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #invoiceContent,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #userAdminContent,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #companyContent,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #tab-insight {
  width: 100%;
  max-width: none !important;
  margin: 0;
  box-sizing: border-box;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #userAdminContent [style*="max-width:900px"] {
  max-width: none !important;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #userAdminContent > .widget-box:first-child > div:first-child > div:first-child {
  flex: 1;
  min-width: 0;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #userAdminContent .data-table,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #invoiceContent .data-table,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #companyContent .data-table {
  width: 100%;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .widget-box > div:first-child:has(.inv-view-switch) {
  padding-right: 0;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.rside-full,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.as-side-panel,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.mini-full,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #bpWbModal.show {
  z-index: 96000 !important;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.rside-full.show,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.as-side-panel.show {
  left: 0 !important;
  top: 56px !important;
  right: 0 !important;
  bottom: var(--test-dock-clear) !important;
  width: auto !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden !important;
  background: var(--bg, #f7f7f8) !important;
  backdrop-filter: none !important;
}
/* 行内宽高会把窗口撑过这块裁切区，鼠标落在裁切层上就拖不动。窗口收缩到安全区，正文自己滚。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.rside-full .modal-content,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.as-side-panel .modal-content {
  flex: 1 1 auto;
  min-height: 0;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  border-radius: 0;
  resize: none;
  overflow: hidden;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.rside-full .modal-body,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.as-side-panel .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
html:is([data-theme="test"], [data-theme="test-light"]) #bdCenterModal .bd-block {
  resize: vertical;
  overflow: auto;
  min-height: 120px;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full > :not(.test-card-bar) {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full .kpi-col-title {
  position: sticky;
  top: 0;
  z-index: 4;
}
html:is([data-theme="test"], [data-theme="test-light"]) #bizModal .biz-block.biz-fullscreen {
  top: 56px !important;
  right: 24px !important;
  bottom: var(--test-dock-clear) !important;
  left: 24px !important;
}

html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] .test-card.is-full > .kpi-page {
  width: 100%;
  min-width: 0;
}

/* Pipeline / 今日待办走 mini-full，原来是窗口的 80%。测试主题里打开的功能区铺满。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.mini-full.show {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  top: 56px;
  right: 0;
  bottom: var(--test-dock-clear);
  left: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg, #f7f7f8);
  backdrop-filter: none;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.mini-full .modal-content {
  flex: 1 1 auto;
  min-height: 0;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  border-radius: 0;
  transform: none;
  resize: none;
  overflow: hidden;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .modal-overlay.mini-full .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

/* BP 考核工作台原来是居中 780px。测试主题里和其它功能区一样铺满。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #bpWbModal.show {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  top: 56px;
  right: 0;
  bottom: var(--test-dock-clear);
  left: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg, #f7f7f8);
  backdrop-filter: none;
}

/* 没写行内层级的普通弹窗落在 300。写了行内层级的弹窗最高到庆祝层，仍低于程序坞。 */
html:is([data-theme="test"], [data-theme="test-light"]) .modal-overlay.show:not(.rside-full):not(.as-side-panel):not(.mini-full) {
  z-index: 300;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #bpWbModal.show .modal-content {
  flex: 1 1 auto;
  min-height: 0;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  border-radius: 0;
  resize: none;
  overflow: hidden;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #bpWbModal.show .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

/* 项目页铺满窗口。页签、状态药丸、搜索和批量按钮保持一行，表格单元格也不折行。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork > *:not(.test-app-x) {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .project-header-layout {
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  width: 100%;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] .project-meta-rows .ml-vl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork .tab-nav,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork #progSummaryWrap > div,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork #progSelBar,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork #progressContent > div:has(#progSearchInput) {
  flex-wrap: nowrap !important;
  overflow-x: auto;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork #tab-progress .data-table {
  width: max-content;
  min-width: 100%;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork #tab-progress .data-table th,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-view="page"] #projectWork #tab-progress .data-table td {
  white-space: nowrap;
}

/* 浅色测试主题：同一套桌面，换成 macOS 浅色。上面的深色写死色在这里盖掉。 */
html[data-theme="test-light"] {
  color-scheme: light;
  --ph-ok: #1d1d1f;
  --ph-ok-soft: rgba(0, 0, 0, 0.1);
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --surface-3: #e5e5ea;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --accent: #007aff;
  --accent-hover: #0066d6;
  --accent-soft: rgba(0, 122, 255, 0.14);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.12);
  --green: #34c759;
  --green-soft: rgba(52, 199, 89, 0.14);
  --red: #ff3b30;
  --red-soft: rgba(255, 59, 48, 0.12);
  --amber: #ff9f0a;
  --amber-soft: rgba(255, 159, 10, 0.16);
  --amber-strong: #c93400;
  --purple: #af52de;
  --purple-soft: rgba(175, 82, 222, 0.14);
  --neutral: #8e8e93;
  --neutral-soft: rgba(142, 142, 147, 0.14);
  --orange: #ff9f0a;
  --orange-soft: rgba(255, 159, 10, 0.14);
  --sky: #32ade6;
  --sky-soft: rgba(50, 173, 230, 0.16);
  --bd-done-bg: rgba(0, 122, 255, 0.12);
  --bd-done-fg: #003d80;
  --bd-done-bd: #007aff;
  --memo-stroke: #1d1d1f;
}
html[data-theme="test-light"] .sidebar-brand {
  background: rgba(245, 245, 247, 0.86);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="test-light"] .sidebar-brand .brand-logo-mini {
  filter: none;
}
html[data-theme="test-light"] .brand-qbtn:hover {
  background: rgba(0, 0, 0, 0.06);
}
html[data-theme="test-light"] #mainTopMask {
  background: rgba(245, 245, 247, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="test-light"] #efficiencyBanner,
html[data-theme="test-light"] #langSwitch,
html[data-theme="test-light"] #themeToggle {
  background-color: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html[data-theme="test-light"] #testBoard .test-hint,
html[data-theme="test-light"] #testBoard .test-hint .test-reset,
html[data-theme="test-light"] #testBoard .test-reset {
  color: rgba(29, 29, 31, 0.62);
}
html[data-theme="test-light"] #testBoard .test-reset:hover {
  color: #1d1d1f;
}
html[data-theme="test-light"] #testBoard .test-card,
html[data-theme="test-light"] #testBoard .test-face,
html[data-theme="test-light"] #testBoard .test-name,
html[data-theme="test-light"] #testBoard .test-open-btn,
html[data-theme="test-light"] #testBoard :is(.test-handle, .test-earlier, .test-later, .test-span, .test-desk, .test-reset) {
  color: #1d1d1f;
}
html[data-theme="test-light"] #testBoard .test-name {
  text-shadow: none;
}
html[data-theme="test-light"] #testBoard :is(.test-handle, .test-earlier, .test-later, .test-span, .test-desk, .test-reset) {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.72);
}
html[data-theme="test-light"] #testBoard .test-card:not(.is-full):is(:hover, :focus-within) .test-tools {
  background: rgba(255, 255, 255, 0.92);
}
html[data-theme="test-light"] #testDock {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
html[data-theme="test-light"] .test-dock-tip {
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
html[data-theme="test-light"] .test-dock-btn.is-on {
  background: rgba(0, 0, 0, 0.06);
}

/* 顶部那两句说明和「恢复默认排列」不再显示。 */
html:is([data-theme="test"], [data-theme="test-light"]) #testBoard .test-hint {
  display: none !important;
}

/* 图标尺寸跟着 --dock 缩，超出窗口宽度时先变小，再折叠。 */
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn {
  width: var(--dock, 54px);
  height: var(--dock, 54px);
  min-width: var(--dock, 54px);
  max-width: var(--dock, 54px);
  flex-basis: var(--dock, 54px);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-btn .test-badge {
  --badge: calc(var(--dock, 54px) - 8px);
  inline-size: calc(var(--dock, 54px) - 8px);
  block-size: calc(var(--dock, 54px) - 8px);
  width: calc(var(--dock, 54px) - 8px);
  height: calc(var(--dock, 54px) - 8px);
  min-width: 0;
  max-width: none;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-fan {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(40, 40, 42, 0.92);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-stack.is-open .test-dock-fan {
  display: flex;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-more {
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}
html[data-theme="test-light"] .test-dock-fan {
  background: rgba(255, 255, 255, 0.94);
}
html[data-theme="test-light"] .test-dock-more {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.06);
}
/* 页名在图标下面，不在会放大的按钮里面。和图标的间距是原来 6px 的三分之一。放大时先藏起，改由浮层跟着当前图标。 */
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-cap {
  position: static;
  order: 1;
  z-index: 40;
  max-width: 100%;
  padding: 2px 4px;
  border-radius: 6px;
  background: rgba(28, 28, 30, 0.92);
  color: #f5f5f7;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity .12s linear;
}
html[data-theme="test-light"] .test-dock-cap {
  background: rgba(255, 255, 255, 0.94);
  color: #1d1d1f;
}

/* 便签条：测试主题铺满主区。其它主题从顶栏打开，盖住页面，顶栏留在上面。 */
#nbApp { display: none; }
html:is([data-theme="test"], [data-theme="test-light"]) #nbTopBtn { display: none !important; }
html:not([data-theme="test"]):not([data-theme="test-light"]) #nbApp.is-open {
  display: flex;
  position: fixed;
  z-index: 150;
  top: 52px;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  color: var(--text);
}
html:not([data-theme="test"]):not([data-theme="test-light"]) #nbTopBtn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--text);
}
html:is([data-theme="test"], [data-theme="test-light"]) #nbApp {
  display: none;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app="notebook"] #nbApp {
  display: flex;
  position: fixed;
  z-index: 96000;
  top: 56px;
  right: 0;
  bottom: var(--test-dock-clear);
  left: 0;
  background: var(--bg);
  color: var(--text);
}
html:is([data-theme="test"], [data-theme="test-light"]) #todayApp { display: none; }
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app="today"] #todayApp {
  display: flex;
  justify-content: center;
  position: fixed;
  z-index: 96000;
  top: 56px;
  right: 0;
  bottom: var(--test-dock-clear);
  left: 0;
  padding: 28px 28px 24px;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
}
html:is([data-theme="test"], [data-theme="test-light"]) #todayApp .today-board { width: min(1060px, 100%); }
html:is([data-theme="test"], [data-theme="test-light"]) #todayApp .welcome-card {
  width: 100%;
  max-height: none;
  box-shadow: var(--shadow-md);
}
#nbApp .nb-live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
#nbApp .nb-folders {
  width: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  min-height: 0;
}
#nbApp .nb-new { width: 100%; }
#nbApp .nb-folder-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: auto;
}
#nbApp .nb-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
#nbApp .nb-folder.is-on { background: var(--accent-soft); }
#nbApp .nb-count {
  flex: none;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
#nbApp .nb-col {
  width: 280px;
  flex: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
#nbApp .nb-cal {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: none;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
#nbApp .nb-day-btn {
  flex: 1;
  min-width: 112px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#nbApp .nb-cal-pop {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 8px;
  right: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
#nbApp .nb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 650;
}
#nbApp .nb-cal-week,
#nbApp .nb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
#nbApp .nb-cal-week span,
#nbApp .nb-cal-pad {
  font-size: 11px;
  line-height: 22px;
  color: var(--text-2);
}
#nbApp .nb-cal-day {
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
#nbApp .nb-cal-day.has-note {
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}
/* 过去有内容的日子用琥珀色，和今天的蓝色分开。 */
#nbApp .nb-cal-day.has-note.is-past {
  background: var(--amber);
  color: #1d1d1f;
}
#nbApp .nb-cal-day.is-on {
  box-shadow: inset 0 0 0 2px var(--text);
}
#nbApp .nb-cal-day.is-today:not(.has-note) {
  box-shadow: inset 0 0 0 1px var(--accent);
}
#nbApp .nb-day-step,
#nbApp #nbDayAll {
  padding: 2px 8px;
  font-size: 12px;
}
#nbApp .nb-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 16px;
}
#nbApp .nb-day {
  margin: 10px 16px 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
#nbApp .nb-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: calc(100% - 16px);
  margin: 0 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
#nbApp .nb-item.is-on { background: var(--surface-2); }
#nbApp .nb-item-t {
  font-size: 14px;
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#nbApp .nb-item-s {
  font-size: 12px;
  color: var(--text-3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#nbApp .nb-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}
#nbApp .nb-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 0;
}
#nbApp .nb-date {
  margin-left: auto;
  color: var(--text-3);
  font-size: 13px;
}
#nbApp .nb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 22px 0;
}
#nbApp .nb-links:empty { display: none; }
#nbApp .nb-chip {
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
#nbApp input:not([type="checkbox"]),
#nbApp select,
#nbApp textarea {
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
#nbApp #nbBody {
  flex: 1;
  min-height: 0;
  resize: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 28px 20px;
  font-size: 20px;
  line-height: 1.45;
}
#nbApp .nb-draft[hidden] { display: none; }
#nbApp .nb-draft {
  flex: none;
  max-height: 46%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
#nbApp .nb-draft-cap,
#nbApp .nb-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}
#nbApp .nb-lab { font-size: 12px; color: var(--text-3); }
#nbApp #nbSummary { width: 100%; min-height: 52px; resize: vertical; }
#nbApp .nb-make {
  align-self: flex-start;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
}
#nbApp .nb-items { display: flex; flex-direction: column; gap: 6px; }
#nbApp .nb-row { display: flex; gap: 8px; align-items: center; }
#nbApp .nb-task { flex: 1; min-width: 0; }
#nbApp .nb-due { flex: none; }

/* 本人上传的高清图只铺测试主题。用一层固定底，避免 background-attachment 在窗口里铺不出来。 */
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall body {
  background: transparent;
}
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000 var(--test-wall) center / cover no-repeat;
}
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall #efficiencyPage {
  position: relative;
  z-index: 1;
  background: transparent;
}
/* 高清图铺到窗口最上面。顶栏遮罩和品牌条改成透明，按钮自己还有底。 */
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall #mainTopMask,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall .sidebar-brand {
  background: transparent;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
/* 欢迎页整页是实心底，会把壁纸盖住。有图时只留欢迎卡自己的底。 */
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app="today"] #todayApp,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app="today"][data-test-view="page"] .main {
  background: transparent;
  background-color: transparent;
}
/* 两套测试主题：其它页面外边的纯色改成桌面同一张图。卡片和表格仍用各自的底色。 */
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-view="page"] .main,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-view="page"] #projectWork,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-full] #testBoard .test-card.is-full,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall #studioBox-eff.studio-orb-win,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.rside-full,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.as-side-panel,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.mini-full,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] #bpWbModal.show,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app="notebook"] #nbApp {
  background: transparent !important;
  background-color: transparent !important;
}
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.rside-full,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.as-side-panel,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.mini-full,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] #bpWbModal.show {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.rside-full .modal-content,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.as-side-panel .modal-content,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] .modal-overlay.mini-full .modal-content,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app] #bpWbModal.show .modal-content,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall[data-test-app="notebook"] #nbApp .nb-main {
  border-radius: 16px;
}
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall .tab-content,
html:is([data-theme="test"], [data-theme="test-light"]).has-test-wall .data-table {
  background: var(--surface);
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-cap {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-preview {
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #000;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-preview[hidden] { display: none; }
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-slot + .uc-wall-slot {
  margin-top: 12px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-sub {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-empty {
  height: 72px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface-2);
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
html:is([data-theme="test"], [data-theme="test-light"]) #userCard .uc-wall-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testBoard .test-card.is-full > #userCard.uc-collapsed .uc-wall {
  display: block !important;
}

/* ── Liquid glass(CSS 级,非 Orbit WebGL):先只做程序坞 + 功能区壳,不盖掉徽章原色 ── */
html:is([data-theme="test"], [data-theme="test-light"]) #testDock {
  border-radius: 22px;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: linear-gradient(180deg, rgba(40, 40, 44, 0.55), rgba(28, 28, 32, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.22);
}
html[data-theme="test-light"] #testDock {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28));
  border-color: rgba(0, 0, 0, 0.08);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-dock-cap,
html:is([data-theme="test"], [data-theme="test-light"]) .test-badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.18);
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-badge {
  border: 1px solid rgba(255, 255, 255, 0.28);
}
html:is([data-theme="test"], [data-theme="test-light"]) .liquid-glass,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-trend,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-todo-hero {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
}
/* 大块内容不再做毛玻璃。模糊要按底下整页重绘，打开 OKR / 待办时最容易卡。 */
html:is([data-theme="test"], [data-theme="test-light"]) .liquid-glass {
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
/* 页面已经铺满时，顶栏和程序坞底下是实心内容，模糊只增加打开和滚动的重绘。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #mainTopMask,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #mainTopMask,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] .sidebar-brand,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] .sidebar-brand,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #testDock,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testDock {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-app] #testDock,
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full] #testDock {
  background: rgba(28, 28, 32, 0.94);
}
html[data-theme="test-light"][data-test-app] #testDock,
html[data-theme="test-light"][data-test-full] #testDock {
  background: rgba(255, 255, 255, 0.94);
}
html[data-theme="test-light"] .liquid-glass,
html[data-theme="test-light"] .mh-okr-trend,
html[data-theme="test-light"] .mh-orbit-todo-hero {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  border-color: rgba(0, 0, 0, 0.08);
}

/* 这些格子只属于测试主题。别的主题没有对应排版，留着会把星期和数字拆成一列。 */
html:not([data-theme="test"]):not([data-theme="test-light"]) #mhOkrTrendHost,
html:not([data-theme="test"]):not([data-theme="test-light"]) #mhKpiOrbit,
html:not([data-theme="test"]):not([data-theme="test-light"]) .mh-orbit-todo-hero {
  display: none !important;
}

/* To Do Orbit 壳 */
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-todo-hero {
  padding: 12px 14px 10px;
  margin: 0 0 12px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-todo-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-stat {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
html[data-theme="test-light"] .mh-orbit-stat { background: rgba(0, 0, 0, 0.05); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-stat .n {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-stat .l {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-stat.streak .n { color: var(--amber); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-orbit-heat-cap {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0 0 8px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-chart {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  --mh-cell: 14px;
  --mh-gap: 3px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-wdays,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-week {
  display: grid;
  grid-template-rows: 13px repeat(7, var(--mh-cell));
  row-gap: var(--mh-gap);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-wdays {
  font-size: 9px;
  color: #aaabc1;
  line-height: var(--mh-cell);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-scroll {
  overflow-x: auto;
  min-width: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-grid {
  display: flex;
  width: max-content;
  column-gap: var(--mh-gap);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-month {
  font-size: 9px;
  color: #aaabc1;
  line-height: 13px;
  height: 13px;
  white-space: nowrap;
  overflow: visible;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-cell,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-scale i {
  box-sizing: border-box;
  width: var(--mh-cell);
  height: var(--mh-cell);
  border-radius: 2px;
  background: #252435;
  border: 1px solid rgba(215, 200, 255, 0.08);
  display: inline-block;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-cell.is-out { opacity: 0.2; }
html:is([data-theme="test"], [data-theme="test-light"]) :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="1"] { background: #49376a; }
html:is([data-theme="test"], [data-theme="test-light"]) :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="2"] { background: #7253a3; }
html:is([data-theme="test"], [data-theme="test-light"]) :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="3"] { background: #a383eb; }
html:is([data-theme="test"], [data-theme="test-light"]) :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="4"] { background: #d0b7ff; }
html[data-theme="test-light"] .mh-heat-cell,
html[data-theme="test-light"] .mh-heat-scale i { background: #ece8f4; }
html[data-theme="test-light"] :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="1"] { background: #cbb6ea; }
html[data-theme="test-light"] :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="2"] { background: #a884d8; }
html[data-theme="test-light"] :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="3"] { background: #8556c4; }
html[data-theme="test-light"] :is(.mh-heat-cell, .mh-heat-scale i)[data-intensity="4"] { background: #5b2d96; }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-foot {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-3);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-scale {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-scale i {
  width: 10px;
  height: 10px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(179, 168, 202, 0.2);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-stats div {
  text-align: center;
  min-width: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-stats dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-stats dt {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-2);
  font-weight: 400;
  white-space: normal;
}

html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-orbit {
  margin: 0 0 8px;
  padding: 12px 14px 10px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-kicker {
  font-size: 11px;
  color: var(--text-3);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-num span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 2px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-sub,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-delta {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-delta.up { color: var(--green); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-delta.down { color: var(--red); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-metric {
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
  text-align: center;
}
html[data-theme="test-light"] .mh-kpi-metric { background: rgba(0, 0, 0, 0.05); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-metric .n {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-heat {
  margin-top: 14px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-heat .mh-orbit-heat-cap {
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-band {
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0 4px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-together {
  width: max-content;
  max-width: 100%;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 18px;
  width: max-content;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-pair-col {
  flex: 0 0 auto;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-together .mh-heat-chart {
  grid-template-columns: 16px max-content;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-together .mh-heat-scroll {
  overflow: visible;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-app-x[hidden] {
  display: none !important;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-app-x,
html:is([data-theme="test"], [data-theme="test-light"]) #studioBox-eff.studio-orb-win .studio-float-x {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #f5f5f7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
html:is([data-theme="test"], [data-theme="test-light"]) .test-app-x:hover,
html:is([data-theme="test"], [data-theme="test-light"]) #studioBox-eff.studio-orb-win .studio-float-x:hover {
  background: rgba(255, 255, 255, 0.12);
}
html[data-theme="test-light"] .test-app-x:hover,
html[data-theme="test-light"] #studioBox-eff.studio-orb-win .studio-float-x:hover {
  background: rgba(0, 0, 0, 0.06);
}
html:is([data-theme="test"], [data-theme="test-light"]) #studioBox-eff.studio-orb-win > .studio-orb-bar {
  align-items: center;
  padding: 8px 8px 8px 16px;
}
/* 发票、洞察没有自己的标题栏叉。钉在页面框内右上角，不进顶栏，也不跟着正文滚走。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-x="1"] #projectWork > .test-app-x {
  position: fixed;
  top: 80px;
  right: 36px;
  z-index: 2;
  width: 32px;
  height: 32px;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-x="1"] #invoiceContent .inv-view-switch {
  margin-right: 52px;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-x="1"] #tab-insight > .widget-box:first-child > div:first-child {
  padding-right: 48px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #nbApp .nb-tools > .test-app-x {
  margin-left: 8px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-metric .l,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-kpi-metric .s {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 测试主题里今日 OKR 收成：大数字、触达、备注、设目标。进度条、待办三格、空目标提示留给待办页和下面的设目标。 */
html:is([data-theme="test"], [data-theme="test-light"]) #colOkr :is(.okr-daily-hint, .okr-progress, .okr-scale, .okr-todo-prog, .okr-no-target),
html:is([data-theme="test"], [data-theme="test-light"]) #okrSidebar :is(.okr-daily-hint, .okr-progress, .okr-scale, .okr-todo-prog, .okr-no-target) {
  display: none !important;
}
html:is([data-theme="test"], [data-theme="test-light"]) #colOkr .okr-hero,
html:is([data-theme="test"], [data-theme="test-light"]) #okrSidebar .okr-hero {
  margin: 0 0 2px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #colOkr .okr-hero-nums .ohd,
html:is([data-theme="test"], [data-theme="test-light"]) #okrSidebar .okr-hero-nums .ohd {
  font-size: 32px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #colOkr .okr-hero-nums .ohs,
html:is([data-theme="test"], [data-theme="test-light"]) #colOkr .okr-hero-nums .oht,
html:is([data-theme="test"], [data-theme="test-light"]) #okrSidebar .okr-hero-nums .ohs,
html:is([data-theme="test"], [data-theme="test-light"]) #okrSidebar .okr-hero-nums .oht {
  font-size: 18px;
}
html:is([data-theme="test"], [data-theme="test-light"]) #colOkr .okr-edit,
html:is([data-theme="test"], [data-theme="test-light"]) #okrSidebar .okr-edit {
  margin-top: 4px;
  padding-top: 6px;
}

/* OKR 30 天趋势 */
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-trend {
  margin: 0 0 8px;
  padding: 10px 12px 8px;
}
/* 打开今日 OKR 整页时：上午和下午并排，今日卡在右边。 */
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #testBoard .test-card.is-full > #colOkr {
  display: grid;
  grid-template-columns: max-content minmax(280px, 420px);
  justify-content: start;
  align-items: start;
  align-content: start;
  gap: 12px 16px;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > #mhOkrTrendHost {
  --mh-cell: 14px;
  --mh-gap: 3px;
  --mh-days: 30;
  grid-column: 1;
  grid-row: 1 / span 6;
  width: calc(var(--mh-days) * var(--mh-cell) + (var(--mh-days) - 1) * var(--mh-gap) + 26px) !important;
  max-width: none;
  margin: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-days {
  display: block;
  width: calc(var(--mh-days, 30) * var(--mh-cell) + (var(--mh-days, 30) - 1) * var(--mh-gap));
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-daymonths,
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-dayrow {
  display: grid;
  grid-template-columns: repeat(var(--mh-days, 30), var(--mh-cell));
  column-gap: var(--mh-gap);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-daymonths {
  height: 13px;
  margin-bottom: 3px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-heat-daymonths .mh-heat-month {
  overflow: visible;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > .kpi-col-title {
  grid-column: 2;
  grid-row: 1;
  position: static;
  width: 100% !important;
  margin: 0;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > .okr-card:not(.team-okr-card) {
  grid-column: 2;
  grid-row: 2;
  width: 100% !important;
  max-height: none;
  margin: 0 !important;
}
html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > .team-okr-card {
  grid-column: 1 / -1;
  width: min(860px, 100%) !important;
}
@media (max-width: 860px) {
  html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #testBoard .test-card.is-full > #colOkr {
    grid-template-columns: minmax(0, 1fr);
  }
  html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > #mhOkrTrendHost,
  html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > .kpi-col-title,
  html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > .okr-card:not(.team-okr-card) {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
  }
  html:is([data-theme="test"], [data-theme="test-light"])[data-test-full="colOkr"] #colOkr > #mhOkrTrendHost {
    width: 100% !important;
    overflow-x: auto;
  }
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-trend-title {
  font-size: 12px;
  font-weight: 600;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-trend-tog {
  display: inline-flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 2px;
}
html[data-theme="test-light"] .mh-okr-trend-tog { background: rgba(0, 0, 0, 0.06); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-mode {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-mode.on {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 72px;
  overflow-x: auto;
  padding-bottom: 2px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-col {
  flex: 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-bars {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  min-height: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-bars .bar {
  width: 4px;
  border-radius: 2px 2px 0 0;
  min-height: 0;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-bars .bar.target { background: rgba(10, 132, 255, 0.55); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-bars .bar.done { background: var(--green); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-bars .bar.rate { width: 6px; background: var(--amber); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-d {
  font-size: 8px;
  color: var(--text-3);
  line-height: 1;
  margin-top: 3px;
  transform: scale(0.9);
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-trend-sum {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.4;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-legend {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-legend .lg {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-legend .lg.target { background: rgba(10, 132, 255, 0.7); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-legend .lg.done { background: var(--green); }
html:is([data-theme="test"], [data-theme="test-light"]) .mh-okr-legend .lg.rate { background: var(--amber); }
