/*
 * 天下AI · Deep Emerald Mist Glass · UI-C v21 Phase 1
 * 隔离试验层：统一设计 Tokens + 公共视觉底座（背景 / Sidebar / Topbar / 通用组件）
 * 页面校准：仅「我的作品」0 作品状态。
 * 该文件是增量层（additive layer）：不改动业务 JS、不重建页面、不伪造数据。
 * 视觉母版：design.md v2.0 · MASTER_我的作品_用户最终确认_1728x900.png
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --tx-canvas: #0b2928;
  --tx-canvas-deep: #062e29;
  --tx-canvas-fallback: #0a2827;
  --tx-text: #f8f9f7;
  --tx-text-muted: #c5d1cf;
  --tx-text-subtle: #9eafaa;
  --tx-glass: rgba(173, 208, 207, 0.105);
  --tx-glass-raised: rgba(226, 244, 241, 0.105);
  --tx-glass-border: rgba(240, 255, 252, 0.14);
  --tx-glass-border-strong: rgba(231, 251, 242, 0.17);
  --tx-nav-active: rgba(135, 193, 170, 0.21);
  --tx-primary-bg: #e8f3ee;
  --tx-primary-fg: #17362c;
  --tx-accent: #b6e4ce;
  --tx-focus: #dceee2;
  --tx-credit-icon: #e1c779;
  --tx-danger: #f2b8b3;
  --tx-success: #9fe0bc;
  --tx-font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --tx-sidebar: 218px;
  --tx-sidebar-compact: 176px;
  --tx-topbar: 76px;
  --tx-content-max: 1375px;
  --tx-radius-panel: 29px;
  --tx-radius-card: 24px;
  --tx-radius-control: 16px;
  --tx-radius-pill: 999px;
  --tx-ease-fast: 160ms ease-out;
  --tx-ease-normal: 240ms ease-out;
}

/* 兼容既有 token 体系：让未迁移页面里的深色兜底与主题一致 */
:root {
  --tx-page-bg: #0b2928;
  --tx-sidebar-bg: #072b27;
  --tx-top-bg: #0b2928;
  --tx-surface: #113a35;
  --tx-surface-soft: #16423c;
  --tx-surface-hover: #1c4a43;
  --tx-text: #f8f9f7;
  --tx-text-secondary: rgba(248, 249, 247, 0.76);
  --tx-text-tertiary: rgba(248, 249, 247, 0.54);
  --tx-line: rgba(240, 255, 252, 0.13);
  --tx-line-soft: rgba(240, 255, 252, 0.07);
  --tx-sidebar-width: 218px;
  --tx-sidebar-width-compact: 176px;
}

html body {
  --pearl-sidebar-width: 218px;
  --pearl-topbar-height: 76px;
}

/* ---------------------------------------------------- base & environment */

html {
  color-scheme: dark;
}

html,
body {
  background: var(--tx-canvas) !important;
  color: var(--tx-text);
}

html::before {
  background: #072e29 !important;
}

body {
  background-image:
    radial-gradient(ellipse 96% 96% at 52% 44%, transparent 50%, rgba(2, 18, 16, 0.26) 100%),
    radial-gradient(ellipse 54% 42% at 10% -6%, rgba(62, 134, 116, 0.30), transparent 68%),
    radial-gradient(ellipse 46% 40% at 90% 8%, rgba(52, 116, 102, 0.26), transparent 70%),
    radial-gradient(ellipse 36% 34% at 78% 30%, rgba(60, 148, 122, 0.16), transparent 72%),
    radial-gradient(ellipse 40% 48% at 56% 61%, rgba(48, 134, 107, 0.30), transparent 72%),
    radial-gradient(ellipse 58% 44% at 74% 98%, rgba(26, 84, 68, 0.26), transparent 72%),
    linear-gradient(160deg, #0c322e 0%, #0b2928 48%, #092523 100%) !important;
  background-attachment: fixed !important;
  font-family: var(--tx-font-ui) !important;
  font-size: 15px;
  min-height: 100vh;
}

body::before {
  display: block !important;
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(ellipse 34% 28% at 6% 16%, rgba(116, 191, 168, 0.13), transparent 70%),
    radial-gradient(ellipse 30% 26% at 94% 22%, rgba(150, 202, 166, 0.10), transparent 72%),
    radial-gradient(ellipse 32% 38% at 56% 58%, rgba(92, 178, 148, 0.10), transparent 74%),
    radial-gradient(ellipse 38% 30% at 52% 104%, rgba(72, 145, 122, 0.12), transparent 74%) !important;
  filter: none;
}

body::after {
  display: none !important;
}

html,
body {
  overflow-x: clip;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--tx-focus) !important;
  outline-offset: 2px;
}

::selection {
  background: rgba(182, 228, 206, 0.32);
  color: #f8f9f7;
}

/* ----------------------------------------------------------- topbar */

html body #siteHeader#siteHeader.pearl-header {
  inset: 0 0 auto var(--tx-sidebar) !important;
  height: var(--tx-topbar) !important;
  padding: 0 34px !important;
  gap: 18px !important;
  background: linear-gradient(180deg, rgba(10, 42, 39, 0.62), rgba(8, 36, 34, 0.34) 78%, rgba(8, 34, 32, 0)) !important;
  border-left: 0 !important;
  border-bottom: 1px solid rgba(240, 255, 252, 0.07) !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

html body #siteHeader#siteHeader .pearl-brand {
  display: none !important;
}

html body #siteHeader#siteHeader .globalStudioSearch {
  position: absolute !important;
  left: calc(50% - 64px) !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 443px !important;
  max-width: min(443px, 36vw) !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: var(--tx-radius-pill) !important;
  background: rgba(226, 244, 241, 0.10) !important;
  box-shadow:
    0 10px 30px rgba(3, 26, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  color: var(--tx-text-muted) !important;
  transform: translate(-50%, -50%) !important;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background var(--tx-ease-fast), border-color var(--tx-ease-fast), box-shadow var(--tx-ease-fast) !important;
}

html body #siteHeader#siteHeader .globalStudioSearch svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  color: rgba(197, 209, 207, 0.82) !important;
}

html body #siteHeader#siteHeader .globalStudioSearch input {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--tx-text) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

html body #siteHeader#siteHeader .globalStudioSearch input::placeholder {
  color: rgba(158, 175, 170, 0.9) !important;
}

html body #siteHeader#siteHeader .globalStudioSearch:hover {
  border-color: rgba(231, 251, 242, 0.26) !important;
  background: rgba(226, 244, 241, 0.13) !important;
}

html body #siteHeader#siteHeader .globalStudioSearch:focus-within {
  border-color: rgba(182, 228, 206, 0.55) !important;
  background: rgba(226, 244, 241, 0.16) !important;
  box-shadow:
    0 0 0 3px rgba(182, 228, 206, 0.12),
    0 12px 32px rgba(3, 26, 24, 0.28) !important;
}

html body #siteHeader#siteHeader .account {
  min-width: 0 !important;
  gap: 9px !important;
  margin-left: auto !important;
}

html body #siteHeader#siteHeader .points-pill {
  border: 1px solid var(--tx-glass-border-strong) !important;
  background: rgba(226, 244, 241, 0.10) !important;
  color: var(--tx-text) !important;
  border-radius: var(--tx-radius-pill) !important;
  padding: 6px 13px !important;
  font-size: 13px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html body #siteHeader#siteHeader .points-pill i {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  border: 1.5px solid #e6cf8a !important;
  background: radial-gradient(circle at center, #e6cf8a 0 2px, rgba(225, 199, 121, 0.16) 2.5px 100%) !important;
  box-shadow: 0 0 8px rgba(225, 199, 121, 0.18) !important;
}

html body #siteHeader#siteHeader .points-pill strong {
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
}

html body #siteHeader#siteHeader .badge {
  max-width: 180px;
  border-radius: var(--tx-radius-pill);
  border: 1px solid var(--tx-glass-border);
  background: rgba(173, 208, 207, 0.10);
  color: var(--tx-text-muted);
  padding: 6px 13px;
  font-size: 13px;
}

html body #siteHeader#siteHeader .guestLoginButton {
  min-width: 64px !important;
  height: 38px !important;
  padding: 0 18px !important;
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: var(--tx-radius-pill) !important;
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  transition: filter var(--tx-ease-fast), transform var(--tx-ease-fast) !important;
}

html body #siteHeader#siteHeader .guestLoginButton:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

html body #siteHeader#siteHeader .notificationButton,
html body #siteHeader#siteHeader .profileTrigger {
  height: 38px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: var(--tx-radius-pill) !important;
  background: rgba(173, 208, 207, 0.10) !important;
  color: var(--tx-text-muted) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html body #siteHeader#siteHeader .notificationButton {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}

html body #siteHeader#siteHeader .notificationButton:hover,
html body #siteHeader#siteHeader .notificationButton[aria-expanded="true"],
html body #siteHeader#siteHeader .profileTrigger:hover {
  background: rgba(226, 244, 241, 0.16) !important;
  color: var(--tx-text) !important;
}

html body #siteHeader#siteHeader .notificationButton > span {
  background: var(--tx-credit-icon) !important;
  color: #17362c !important;
  font-weight: 800;
}

html body #siteHeader#siteHeader .profileTrigger {
  min-width: 92px !important;
  padding: 0 12px !important;
}

html body #siteHeader#siteHeader .accountAvatar {
  border: 1px solid rgba(231, 251, 242, 0.22);
  border-radius: 50% !important;
}

html body #siteHeader#siteHeader .profileTrigger > #userName {
  font-size: 13px !important;
  font-weight: 500 !important;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #siteHeader#siteHeader .menuToggle {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 12px !important;
  background: rgba(173, 208, 207, 0.10) !important;
  color: var(--tx-text-muted) !important;
  margin-left: -2px !important;
}

html body #siteHeader#siteHeader .account .link {
  color: var(--tx-text-subtle);
  font-size: 12px;
}

html body #siteHeader#siteHeader #notificationButton,
html body #siteHeader#siteHeader #profileTrigger {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(173, 208, 207, 0.10) !important;
  box-shadow: none !important;
  color: var(--tx-text-muted) !important;
}

html body #siteHeader#siteHeader #notificationButton {
  width: 40px !important;
  height: 40px !important;
  background: rgba(173, 208, 207, 0.12) !important;
}

/* 顶栏浮层：通知 / 个人菜单 */
html body .notificationPanel,
html body .profileMenu {
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(160deg, rgba(21, 58, 52, 0.97), rgba(11, 43, 39, 0.97)) !important;
  box-shadow: 0 24px 70px rgba(2, 20, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: var(--tx-text) !important;
}

html body .notificationPanel {
  top: 48px !important;
}

html body .notificationHead strong,
html body .profileMenuTop strong {
  color: var(--tx-text) !important;
}

html body .notificationHead button {
  color: var(--tx-text-subtle) !important;
}

html body .notificationItem {
  color: var(--tx-text-muted) !important;
}

html body .notificationItem:hover {
  background: rgba(226, 244, 241, 0.09) !important;
}

html body .notificationItem i[data-state="failed"] {
  background: var(--tx-danger) !important;
}

html body .notificationItem i[data-state="succeeded"],
html body .notificationItem i[data-state="completed"] {
  background: var(--tx-success) !important;
}

html body .profileMenuItem {
  color: var(--tx-text-muted) !important;
}

html body .profileMenuItem:hover {
  background: rgba(226, 244, 241, 0.09) !important;
  color: var(--tx-text) !important;
}

html body .profileMenuItem.danger {
  color: var(--tx-danger) !important;
}

html body .profileMenuTop small {
  color: var(--tx-text-subtle) !important;
}

/* ----------------------------------------------------------- sidebar */

html body #workspace#workspace.pearl-workspace.pearl-shell {
  min-height: 100vh !important;
  padding: var(--tx-topbar) 32px 72px var(--tx-sidebar) !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
  inset: 0 auto 0 0 !important;
  z-index: 84 !important;
  width: var(--tx-sidebar) !important;
  height: 100vh !important;
  padding: 20px 12px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  overflow: visible !important;
  border: 0 !important;
  border-right: 1px solid rgba(240, 255, 252, 0.08) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(174deg, rgba(7, 43, 39, 0.92), rgba(5, 38, 35, 0.84) 52%, rgba(6, 44, 40, 0.88)) !important;
  box-shadow:
    10px 0 34px rgba(2, 20, 18, 0.25),
    inset -1px 0 rgba(240, 255, 252, 0.05) !important;
  transform: none !important;
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation .pearl-sidebar-brand {
  position: relative !important;
  width: calc(100% - 8px) !important;
  height: 46px !important;
  margin: 0 4px 48px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  justify-content: flex-start !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation .pearl-sidebar-brand:hover {
  background: rgba(226, 244, 241, 0.07) !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation .pearl-sidebar-brand img,
html body #siteHeader#siteHeader .pearl-brand img,
html body .rechargeBrandLogo {
  filter: brightness(0) invert(0.96);
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation .pearl-sidebar-brand img {
  width: 128px !important;
  height: auto !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation .navTitle {
  padding: 4px 14px 18px !important;
  color: rgba(158, 175, 170, 0.92) !important;
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button:not(.pearl-sidebar-brand) {
  width: 100% !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: var(--tx-text-muted) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  gap: 12px !important;
  transition: background var(--tx-ease-fast), color var(--tx-ease-fast) !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button:not(.pearl-sidebar-brand) > svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button:not(.pearl-sidebar-brand):hover {
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-text) !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button[aria-current="page"]:not(.pearl-sidebar-brand) {
  background: rgba(30, 96, 80, 0.38) !important;
  color: #f4faf6 !important;
  box-shadow: inset 0 0 0 1px rgba(182, 228, 206, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button[aria-current="page"]:not(.pearl-sidebar-brand)::after {
  display: none !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button:not(.pearl-sidebar-brand) .navBadge,
html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation > button:not(.pearl-sidebar-brand) .navCount {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(173, 208, 207, 0.12) !important;
  color: var(--tx-text-subtle) !important;
  font-size: 10px !important;
}

/* 侧栏真实点数卡（由 shell JS 注入，数据来自 /api/state） */
.txv21-sidebar-credit {
  position: relative;
  margin-top: auto;
  margin-bottom: 0;
  min-height: 74px;
  padding: 12px 44px 12px 16px;
  border: 1px solid rgba(231, 251, 242, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(152deg, rgba(187, 227, 214, 0.10), rgba(116, 169, 151, 0.07) 58%, rgba(154, 199, 183, 0.06)) !important;
  box-shadow:
    0 12px 30px rgba(2, 20, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: background var(--tx-ease-fast), border-color var(--tx-ease-fast) !important;
}

.txv21-sidebar-credit:hover {
  border-color: rgba(231, 251, 242, 0.2);
  background: rgba(173, 208, 207, 0.12) !important;
}

.txv21-credit-label {
  display: block;
  color: var(--tx-text-muted);
  font-size: 12px;
}

.txv21-credit-value {
  display: block;
  margin-top: 4px;
  color: var(--tx-text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.txv21-credit-held {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.txv21-credit-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: rgba(197, 209, 207, 0.72);
}

/* --------------------------------------------------- reusable components */

.tx-glass-panel {
  background: linear-gradient(112deg,
    rgba(187, 227, 214, 0.17),
    rgba(154, 199, 183, 0.11) 46%,
    rgba(116, 169, 151, 0.15));
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: var(--tx-radius-panel);
  box-shadow: 0 24px 64px rgba(3, 26, 24, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  backdrop-filter: blur(30px) saturate(140%);
}

@supports not (backdrop-filter: blur(1px)) {
  .tx-glass-panel,
  .tx-glass-card {
    background: #16463e;
  }
}

.tx-glass-card {
  background: var(--tx-glass);
  border: 1px solid var(--tx-glass-border);
  border-radius: var(--tx-radius-card);
  box-shadow: 0 12px 32px rgba(3, 26, 24, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.tx-primary-button,
.txv21-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--tx-radius-pill);
  background: var(--tx-primary-bg);
  color: var(--tx-primary-fg);
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 14px 34px rgba(3, 26, 24, 0.35);
  transition: transform var(--tx-ease-fast), filter var(--tx-ease-fast), box-shadow var(--tx-ease-fast);
}

.tx-primary-button:hover:not(:disabled),
.txv21-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tx-primary-button:active:not(:disabled),
.txv21-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.tx-primary-button:disabled,
.txv21-primary:disabled {
  background: rgba(226, 244, 241, 0.18);
  color: rgba(158, 175, 170, 0.72);
  box-shadow: none;
  cursor: default;
}

.tx-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: var(--tx-radius-pill);
  background: rgba(226, 244, 241, 0.10);
  color: var(--tx-text);
  font-size: 14px;
  font-weight: 550;
  transition: background var(--tx-ease-fast);
}

.tx-secondary-button:hover {
  background: rgba(226, 244, 241, 0.17);
}

.tx-pill-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--tx-glass-border);
  border-radius: var(--tx-radius-pill);
  background: rgba(7, 43, 39, 0.42);
  width: max-content;
  max-width: 100%;
}

.tx-pill-tabs .tx-pill-tab {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--tx-radius-pill);
  background: transparent;
  color: var(--tx-text-subtle);
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
  transition: background var(--tx-ease-normal), color var(--tx-ease-normal), box-shadow var(--tx-ease-normal);
}

.tx-pill-tabs .tx-pill-tab:hover {
  color: var(--tx-text);
}

.tx-pill-tabs .tx-pill-tab[aria-pressed="true"] {
  background: var(--tx-primary-bg);
  color: var(--tx-primary-fg);
  box-shadow: 0 6px 18px rgba(3, 26, 24, 0.32);
}

.tx-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: var(--tx-radius-pill);
  background: rgba(226, 244, 241, 0.10);
  color: var(--tx-text-subtle);
  transition: background var(--tx-ease-fast), border-color var(--tx-ease-fast);
}

.tx-search-field:focus-within {
  border-color: rgba(182, 228, 206, 0.5);
  background: rgba(226, 244, 241, 0.15);
}

.tx-search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.tx-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tx-text);
  font-size: 14px;
}

.tx-search-field input::placeholder {
  color: rgba(158, 175, 170, 0.92);
}

.tx-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.tx-page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tx-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.tx-page-header .eyebrow:before {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182, 228, 206, 0.85));
}

.tx-page-header h1 {
  margin: 16px 0 0;
  color: var(--tx-text);
  font-size: clamp(32px, 2.43vw, 42px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

.tx-page-header .sub {
  margin: 14px 0 0;
  color: var(--tx-text-subtle);
  font-size: 15px;
}

.tx-page-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-top: 42px;
}

.tx-count-card {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 75px;
  padding: 14px 22px;
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: 18px;
  background: rgba(173, 208, 207, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tx-count-card strong {
  color: var(--tx-text);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tx-count-card span {
  color: var(--tx-text-muted);
  font-size: 13px;
}

.tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
}

.tx-badge[data-state="succeeded"],
.tx-badge[data-state="completed"] {
  background: rgba(159, 224, 188, 0.14);
  border: 1px solid rgba(159, 224, 188, 0.34);
  color: var(--tx-success);
}

.tx-badge[data-state="running"],
.tx-badge[data-state="processing"],
.tx-badge[data-state="queued"],
.tx-badge[data-state="pending"],
.tx-badge[data-state="submitted"] {
  background: rgba(182, 228, 206, 0.12);
  border: 1px solid rgba(182, 228, 206, 0.30);
  color: var(--tx-accent);
}

.tx-badge[data-state="failed"],
.tx-badge[data-state="canceled"] {
  background: rgba(242, 184, 179, 0.12);
  border: 1px solid rgba(242, 184, 179, 0.34);
  color: var(--tx-danger);
}

/* ------------------------------------------------- 我的作品 · 校准页 */

html body[data-page="library"] .library {
  max-width: var(--tx-content-max);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 生成服务状态不计入「我的作品」版式流，避免配置状态影响母版节奏 */
html body[data-page="library"] #museHint {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html body[data-page="library"] .library h1 {
  font-size: clamp(32px, 2.43vw, 42px);
  font-weight: 700;
}

html body[data-page="library"] .countCard {
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: 18px;
  background: rgba(173, 208, 207, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

html body[data-page="library"] .countCard strong {
  color: var(--tx-text);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

html body[data-page="library"] .countCard span,
html body[data-page="library"] .sectionHead .sub {
  color: var(--tx-text-subtle);
}

html body[data-page="library"] .sectionHead .sub {
  font-size: 14px;
}

/* 工具行：PillTabs + 私人搜索 */
html body[data-page="library"] .libraryToolsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}

html body[data-page="library"] .libraryTools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  margin-top: 0;
  border: 1px solid var(--tx-glass-border);
  border-radius: var(--tx-radius-pill);
  background: rgba(7, 43, 39, 0.42);
}

html body[data-page="library"] .libraryTools .filterBtn {
  min-height: 40px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--tx-radius-pill);
  background: transparent;
  color: var(--tx-text-subtle);
  font-size: 15px;
  font-weight: 550;
  transition: background var(--tx-ease-normal), color var(--tx-ease-normal), box-shadow var(--tx-ease-normal);
}

html body[data-page="library"] .libraryTools .filterBtn:hover {
  color: var(--tx-text);
}

html body[data-page="library"] .libraryTools .filterBtn[aria-pressed="true"] {
  background: var(--tx-primary-bg);
  color: var(--tx-primary-fg);
  box-shadow: 0 6px 18px rgba(3, 26, 24, 0.32);
}

html body[data-page="library"] .librarySearchWrap {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 282px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: var(--tx-radius-pill);
  background: rgba(226, 244, 241, 0.10);
  margin-left: 0;
  transition: background var(--tx-ease-fast), border-color var(--tx-ease-fast);
}

html body[data-page="library"] .librarySearchWrap:focus-within {
  border-color: rgba(182, 228, 206, 0.5);
  background: rgba(226, 244, 241, 0.15);
}

html body[data-page="library"] .librarySearchWrap svg {
  width: 16px;
  height: 16px;
  color: var(--tx-text-subtle);
  flex: 0 0 16px;
}

html body[data-page="library"] .librarySearch {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--tx-text);
  font-size: 14px;
  padding: 0;
}

html body[data-page="library"] .librarySearch::placeholder {
  color: rgba(158, 175, 170, 0.92);
}

/* 作品网格（仅视觉皮肤；布局与数据流不变） */
html body[data-page="library"] .jobs {
  margin-top: 0;
}

html body[data-page="library"] .jobCard {
  border: 1px solid var(--tx-glass-border);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(187, 227, 214, 0.12), rgba(154, 199, 183, 0.07));
  box-shadow: 0 14px 36px rgba(3, 26, 24, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html body[data-page="library"] .jobCard:hover {
  border-color: var(--tx-glass-border-strong);
}

html body[data-page="library"] .jobTop b {
  color: var(--tx-text);
}

html body[data-page="library"] .jobMeta,
html body[data-page="library"] .jobCard .sub {
  color: var(--tx-text-subtle);
}

html body[data-page="library"] .jobCover {
  background-color: rgba(4, 28, 25, 0.62);
  background-image: none !important;
}

html body[data-page="library"] .jobCover.wide {
  aspect-ratio: 16/9;
}

html body[data-page="library"] .jobCover.portrait {
  aspect-ratio: 3/4;
}

html body[data-page="library"] .jobTag,
html body[data-page="library"] .jobDuration {
  border: 1px solid var(--tx-glass-border);
  background: rgba(4, 28, 25, 0.72);
  color: var(--tx-text-muted);
}

html body[data-page="library"] .coverPlay {
  border: 1px solid rgba(231, 251, 242, 0.42);
  background: rgba(7, 43, 39, 0.72);
  color: var(--tx-text);
}

html body[data-page="library"] .jobAction {
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: 12px;
  background: rgba(226, 244, 241, 0.11);
  color: var(--tx-text);
  font-weight: 550;
}

html body[data-page="library"] .jobAction:hover {
  background: rgba(226, 244, 241, 0.18);
}

html body[data-page="library"] .status {
  border-radius: 999px;
}

html body[data-page="library"] .status[data-state="succeeded"],
html body[data-page="library"] .status[data-state="completed"] {
  background: rgba(159, 224, 188, 0.14);
  border-color: rgba(159, 224, 188, 0.34);
  color: var(--tx-success);
}

html body[data-page="library"] .status[data-state="failed"],
html body[data-page="library"] .status[data-state="canceled"] {
  background: rgba(242, 184, 179, 0.12);
  border-color: rgba(242, 184, 179, 0.34);
  color: var(--tx-danger);
}

html body[data-page="library"] .status[data-state="running"],
html body[data-page="library"] .status[data-state="processing"],
html body[data-page="library"] .status[data-state="queued"],
html body[data-page="library"] .status[data-state="pending"],
html body[data-page="library"] .status[data-state="submitted"] {
  background: rgba(182, 228, 206, 0.12);
  border-color: rgba(182, 228, 206, 0.30);
  color: var(--tx-accent);
}

html body[data-page="library"] .jobProgress {
  background: rgba(240, 255, 252, 0.09);
}

html body[data-page="library"] .jobProgress span {
  background: linear-gradient(90deg, #7fcfae, #b6e4ce);
}

html body[data-page="library"] .jobProgress span.failed {
  background: #d98f88;
}

/* 通用空态（搜索无结果 / 其他页面） */
html body[data-page="library"] .emptyState {
  grid-column: 1 / -1;
  min-height: 240px;
  border: 1px dashed rgba(231, 251, 242, 0.22);
  border-radius: 22px;
  background: rgba(173, 208, 207, 0.06);
  color: var(--tx-text-subtle);
}

html body[data-page="library"] .emptyState strong {
  color: var(--tx-text);
  font-size: 17px;
}

html body[data-page="library"] .emptyIcon {
  background: rgba(226, 244, 241, 0.10);
  border: 1px solid var(--tx-glass-border);
  color: var(--tx-accent);
}

/* 0 作品 · 母版空态 */
.tx-empty-state-zero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  min-height: 433px;
  margin-top: 22px;
  padding: 52px clamp(36px, 4.5vw, 62px);
  border: 1px solid rgba(226, 255, 244, 0.20);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 46% 54% at 18% 0%, rgba(190, 244, 220, 0.10), transparent 62%),
    radial-gradient(ellipse 58% 80% at 34% 42%, rgba(150, 224, 196, 0.12), transparent 72%),
    radial-gradient(ellipse 46% 62% at 82% 18%, rgba(96, 186, 156, 0.10), transparent 74%),
    linear-gradient(135deg,
      rgba(110, 190, 165, 0.26),
      rgba(56, 138, 114, 0.17) 48%,
      rgba(26, 96, 78, 0.19));
  box-shadow:
    0 26px 70px rgba(2, 20, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(128%);
  -webkit-backdrop-filter: blur(26px) saturate(128%);
  animation: txEmptyIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes txEmptyIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 左侧抽象玻璃胶片框（纯装饰，aria-hidden，无假播放/上传入口） */
.tx-empty-art {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  filter: drop-shadow(0 34px 54px rgba(2, 20, 18, 0.35));
}

.tx-film-frame {
  position: absolute;
  inset: 8% 4%;
  display: block;
  border-radius: 20px;
}

.tx-film-frame.tx-film-back {
  transform: rotate(-3deg) translate(12px, 12px);
  background: linear-gradient(150deg, rgba(226, 244, 241, 0.08), rgba(116, 169, 151, 0.05));
  border: 1px solid rgba(231, 251, 242, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tx-film-frame.tx-film-front {
  transform: rotate(-6deg);
  background:
    radial-gradient(ellipse 64% 46% at 28% 10%, rgba(170, 232, 208, 0.16), transparent 72%),
    radial-gradient(ellipse 58% 40% at 76% 88%, rgba(96, 176, 146, 0.16), transparent 74%),
    linear-gradient(156deg, rgba(207, 236, 226, 0.14), rgba(101, 163, 141, 0.09) 55%, rgba(59, 121, 102, 0.14));
  border: 1px solid rgba(231, 251, 242, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -24px 60px rgba(3, 26, 24, 0.14);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  overflow: hidden;
}

.tx-film-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(240, 255, 252, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(240, 255, 252, 0.075) 1px, transparent 1px);
  background-size: 56px 50px;
  mask-image: radial-gradient(ellipse at center, #000 34%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 34%, transparent 80%);
}

.tx-film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(240, 255, 252, 0.14);
  background: radial-gradient(circle at 42% 36%, rgba(240, 255, 252, 0.18), rgba(190, 235, 220, 0.06) 62%);
}

.tx-film-play:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-32%, -50%);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid rgba(248, 255, 252, 0.68);
}

.tx-film-spark {
  position: absolute;
  right: 24px;
  top: 20px;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  color: rgba(242, 255, 250, 0.82);
  text-shadow: 0 0 12px rgba(182, 228, 206, 0.55);
}

.tx-film-frame.tx-film-front small {
  position: absolute;
  left: 26px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(240, 255, 252, 0.52);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.tx-film-frame.tx-film-front small s {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(240, 255, 252, 0.48);
  border-radius: 2px;
  text-decoration: none;
}

.tx-empty-copy {
  max-width: 500px;
}

.tx-empty-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border: 1px solid rgba(231, 251, 242, 0.16);
  border-radius: 999px;
  background: rgba(226, 244, 241, 0.07);
  color: #cfe4dc;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

.tx-empty-copy h2 {
  margin: 18px 0 0;
  color: var(--tx-text);
  font-size: clamp(28px, 2.05vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.32;
}

.tx-empty-copy p {
  margin: 14px 0 0;
  max-width: 420px;
  color: var(--tx-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.tx-empty-copy .tx-primary-button {
  margin-top: 44px;
  width: 184px;
  min-height: 56px;
  padding: 0 22px 0 26px;
  justify-content: space-between;
  font-size: 15px;
}

.tx-empty-copy .tx-primary-button svg {
  width: 16px;
  height: 16px;
}

.tx-empty-note {
  display: block;
  margin-top: 16px;
  color: rgba(158, 175, 170, 0.9);
  font-size: 12px;
}

/* ------------------------------------------------------- 登录覆盖层 */

html body #auth.pearl-auth-overlay {
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(143, 217, 187, 0.12), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(92, 165, 137, 0.14), transparent 46%),
    linear-gradient(160deg, rgba(20, 57, 51, 0.98), rgba(10, 40, 36, 0.98)) !important;
  box-shadow: 0 40px 110px rgba(2, 20, 18, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--tx-text);
}

html body #auth .authVisual {
  background:
    linear-gradient(0deg, rgba(6, 34, 30, 0.72), rgba(6, 34, 30, 0.12) 55%, transparent),
    radial-gradient(ellipse 80% 52% at 30% 16%, rgba(143, 217, 187, 0.20), transparent 70%),
    radial-gradient(ellipse 60% 44% at 76% 90%, rgba(92, 165, 137, 0.22), transparent 74%) !important;
}

html body #auth #authTitle,
html body #auth .authLead,
html body #auth .authVisual h2,
html body #auth .authVisual p {
  color: var(--tx-text);
}

html body #auth .field {
  color: var(--tx-text-muted);
}

html body #auth .field input,
html body #auth .field select {
  border: 1px solid var(--tx-glass-border-strong);
  border-radius: 14px;
  background: rgba(226, 244, 241, 0.08);
  color: var(--tx-text);
}

html body #auth .field input::placeholder {
  color: var(--tx-text-subtle);
}

html body #auth #passwordActions .primary,
html body #auth #authForm #passwordActions .primary,
html body #auth #emailSubmit,
html body #auth .inviteSubmit {
  background: var(--tx-primary-bg);
  color: var(--tx-primary-fg);
  border-radius: 999px;
  font-weight: 650;
}

html body #auth .authProviderButton {
  border: 1px solid var(--tx-glass-border);
  border-radius: 12px;
  background: rgba(226, 244, 241, 0.08);
  color: var(--tx-text-muted);
}

html body #auth .authProviderButton:not(:disabled):hover {
  background: rgba(226, 244, 241, 0.15);
  color: var(--tx-text);
}

html body #auth .pearlAuthClose {
  color: var(--tx-text-subtle);
}

/* -------------------------------------------------- 未迁移页面过渡可读性 */

/* P0 防回归：首页只允许 pearl-home-v3 单一结构；旧首页节点永不渲染 */
html body #homeView > :not(.pearl-home-v3) {
  display: none !important;
}

html body #homeView {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

/* P0 防回归：所有搜索放大镜固定 16px，禁止被父级 / svg 默认尺寸放大 */
html body .globalStudioSearch svg,
html body .homePlazaSearch svg,
html body .pearl-search svg,
html body .pearl-plaza-search svg,
html body .pearl-curated-search svg,
html body .librarySearchWrap svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px !important;
}

html body #homeView .homePlazaSearch,
html body #homeView .homePlazaSearch svg,
html body .pearl-home-v3 {
  max-width: 100% !important;
}

/* 其他页面暂保持原珍珠浅色内页；仅对直接落在深色环境上的标题/正文补可读性 */
html[data-theme] .pearl-hero h2,
html[data-theme] .pearl-hero p,
html[data-theme] .pearl-kicker,
html[data-theme] .pearl-explore-head h1,
html[data-theme] .pearl-explore-head p,
html[data-theme] .pearl-explore-note,
html[data-theme] .shortfilmHero h1,
html[data-theme] .shortfilmHero p,
html[data-theme] .commerceSoon h1,
html[data-theme] .commerceSoon p,
html[data-theme] .commerceSoon .eyebrow {
  color: var(--tx-text);
}

html[data-theme] .shortfilmHero p,
html[data-theme] .commerceSoon p {
  color: var(--tx-text-muted);
}

html[data-theme] .intro h1 {
  -webkit-text-fill-color: var(--tx-text);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1360px) {
  html body #siteHeader#siteHeader .globalStudioSearch {
    width: 300px !important;
    max-width: 30vw !important;
  }
}

@media (min-width: 1700px) {
  html body[data-page="library"] .library {
    width: 1327px !important;
    max-width: 1327px !important;
    margin-left: 58px !important;
    margin-right: auto !important;
  }
}

/* ================================================================
 * 阶段 2A · 首页 + 短片创作 · Deep Emerald Mist Glass
 * 仅视觉层；保持全部真实节点、API、表单与响应式逻辑。
 * ================================================================ */

/* 顶部服务提示由各页真实状态徽标承载，避免游离在页面最上方 */
html body[data-page="home"] #museHint,
html body[data-page="shortfilm"] #museHint {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* ---------------------------------------------------------- 首页 */

html body[data-page="home"] {
  background-color: var(--tx-canvas) !important;
  background-image:
    radial-gradient(ellipse 54% 42% at 10% -6%, rgba(62, 134, 116, 0.30), transparent 68%),
    radial-gradient(ellipse 46% 40% at 90% 8%, rgba(52, 116, 102, 0.26), transparent 70%),
    radial-gradient(ellipse 36% 34% at 78% 30%, rgba(60, 148, 122, 0.16), transparent 72%),
    radial-gradient(ellipse 40% 48% at 56% 61%, rgba(48, 134, 107, 0.30), transparent 72%),
    radial-gradient(ellipse 58% 44% at 74% 98%, rgba(26, 84, 68, 0.26), transparent 72%),
    linear-gradient(160deg, #0c322e 0%, #0b2928 48%, #092523 100%) !important;
  background-attachment: fixed !important;
}

html body[data-page="home"] #homeView,
html body[data-page="home"] .pearl-home-v3 {
  color: var(--tx-text) !important;
}

html body[data-page="home"] .pearl-home-v3::before {
  width: 620px !important;
  height: 430px !important;
  right: -180px !important;
  top: 540px !important;
  background: rgba(58, 156, 126, 0.16) !important;
  filter: blur(60px) !important;
}

html body[data-page="home"] .pearl-home-v3::after {
  width: 560px !important;
  height: 420px !important;
  left: -190px !important;
  top: 190px !important;
  background: rgba(64, 138, 122, 0.12) !important;
  filter: blur(64px) !important;
}

html body[data-page="home"] .pearl-home-inner {
  width: min(1180px, calc(100% - 40px)) !important;
  padding-bottom: 72px !important;
}

html body[data-page="home"] .pearl-hero {
  height: 250px !important;
  gap: 12px !important;
}

html body[data-page="home"] .pearl-kicker {
  min-height: 28px !important;
  padding: 4px 16px !important;
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(226, 244, 241, 0.08) !important;
  box-shadow: none !important;
  color: var(--tx-accent) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html body[data-page="home"] .pearl-hero h2 {
  color: var(--tx-text) !important;
  background: none !important;
  -webkit-text-fill-color: var(--tx-text) !important;
  font-size: clamp(36px, 3.2vw, 52px) !important;
  font-weight: 650 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em !important;
}

html body[data-page="home"] .pearl-hero p {
  color: var(--tx-text-muted) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

html body[data-page="home"] .pearl-composer {
  width: min(1020px, 100%) !important;
  padding: 22px 24px !important;
  gap: 14px !important;
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(ellipse 52% 60% at 14% 0%, rgba(190, 244, 220, 0.08), transparent 62%),
    linear-gradient(138deg,
      rgba(187, 227, 214, 0.15),
      rgba(150, 199, 183, 0.09) 48%,
      rgba(116, 169, 151, 0.12)) !important;
  box-shadow:
    0 26px 64px rgba(2, 20, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(26px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(130%) !important;
}

html body[data-page="home"] .pearl-composer::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html body[data-page="home"] .pearl-mode-switch {
  gap: 4px !important;
  padding: 4px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(7, 43, 39, 0.42) !important;
}

html body[data-page="home"] .pearl-mode-switch button {
  min-width: 112px !important;
  height: 38px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tx-text-subtle) !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
}

html body[data-page="home"] .pearl-mode-switch button[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  box-shadow: 0 6px 18px rgba(3, 26, 24, 0.3) !important;
  font-weight: 650 !important;
}

html body[data-page="home"] .pearl-guest-hint {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="home"] .pearl-prompt-shell {
  min-height: 124px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 16px !important;
  background: rgba(4, 30, 27, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

html body[data-page="home"] .pearl-prompt-shell textarea {
  color: var(--tx-text) !important;
  font-size: 16px !important;
  text-align: left !important;
}

html body[data-page="home"] .pearl-prompt-title {
  color: var(--tx-accent) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

html body[data-page="home"] .pearl-prompt-shell textarea::placeholder {
  color: rgba(158, 175, 170, 0.9) !important;
}

html body[data-page="home"] .pearl-prompt-shell small {
  color: var(--tx-text-subtle) !important;
  text-align: left !important;
}

html body[data-page="home"] .pearl-prompt-shell:focus-within {
  border-color: rgba(182, 228, 206, 0.46) !important;
  box-shadow: 0 0 0 3px rgba(182, 228, 206, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body[data-page="home"] .pearl-composer-controls {
  min-height: 48px !important;
  padding: 4px !important;
  gap: 8px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 14px !important;
  background: rgba(7, 43, 39, 0.34) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

html body[data-page="home"] .pearl-control {
  height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 12px !important;
  background: rgba(226, 244, 241, 0.08) !important;
  box-shadow: none !important;
  color: var(--tx-text-muted) !important;
  font-size: 13px !important;
}

html body[data-page="home"] .pearl-control:hover:not(:disabled) {
  background: rgba(226, 244, 241, 0.14) !important;
  transform: none !important;
}

html body[data-page="home"] .pearl-control:disabled {
  color: rgba(158, 175, 170, 0.62) !important;
}

html body[data-page="home"] .pearl-count-options {
  height: 38px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 12px !important;
  background: rgba(4, 30, 27, 0.42) !important;
  box-shadow: none !important;
}

html body[data-page="home"] .pearl-count-option {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="home"] .pearl-count-option[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  font-weight: 700 !important;
}

html body[data-page="home"] .pearl-count-option:hover {
  background: rgba(226, 244, 241, 0.12) !important;
  color: var(--tx-text) !important;
}

html body[data-page="home"] .pearl-cost {
  height: 34px !important;
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-text) !important;
  box-shadow: none !important;
}

html body[data-page="home"] .pearl-cost::before {
  color: var(--tx-credit-icon) !important;
}

html body[data-page="home"] .pearl-cta {
  min-width: 156px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  box-shadow: 0 10px 26px rgba(3, 26, 24, 0.32) !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
}

html body[data-page="home"] .pearl-cta:disabled {
  background: rgba(226, 244, 241, 0.16) !important;
  color: rgba(158, 175, 170, 0.7) !important;
  box-shadow: none !important;
}

html body[data-page="home"] .pearl-reference-zone {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(4, 30, 27, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html body[data-page="home"] .pearl-reference-copy strong {
  color: var(--tx-text) !important;
}

html body[data-page="home"] .pearl-reference-copy small,
html body[data-page="home"] .pearl-reference-preview span,
html body[data-page="home"] .pearl-reference-preview small {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="home"] .pearl-reference-preview {
  border-color: rgba(182, 228, 206, 0.3) !important;
  background: rgba(226, 244, 241, 0.06) !important;
}

html body[data-page="home"] .pearl-reference-remove {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-danger) !important;
}

html body[data-page="home"] .pearl-composer-message {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="home"] .pearl-curated {
  padding-top: 26px !important;
}

html body[data-page="home"] .pearl-curated-head h2 {
  color: var(--tx-text) !important;
  font-size: 22px !important;
  font-weight: 650 !important;
}

html body[data-page="home"] .pearl-curated-line {
  background: linear-gradient(90deg, rgba(240, 255, 252, 0.16), rgba(240, 255, 252, 0.03)) !important;
}

html body[data-page="home"] .pearl-curated-more {
  color: var(--tx-accent) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body[data-page="home"] .pearl-guest-collection {
  min-height: 214px !important;
  padding: 30px 28px !important;
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(ellipse 48% 70% at 50% 0%, rgba(160, 232, 204, 0.08), transparent 64%),
    linear-gradient(145deg, rgba(187, 227, 214, 0.13), rgba(116, 169, 151, 0.08)) !important;
  box-shadow: 0 18px 48px rgba(2, 20, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

html body[data-page="home"] .pearl-guest-collection::before {
  background: rgba(226, 244, 241, 0.1) !important;
  border: 1px solid var(--tx-glass-border) !important;
  box-shadow: none !important;
  color: var(--tx-accent) !important;
}

html body[data-page="home"] .pearl-guest-collection strong {
  color: var(--tx-text) !important;
}

html body[data-page="home"] .pearl-guest-collection p {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="home"] .pearl-guest-collection button {
  height: 42px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  box-shadow: 0 10px 24px rgba(3, 26, 24, 0.3) !important;
  font-weight: 650 !important;
}

html body[data-page="home"] .pearl-curated-grid .communityBody > strong {
  color: var(--tx-text) !important;
}

html body[data-page="home"] .pearl-curated-grid .communityMeta {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="home"] .pearl-curated-grid .communityMedia {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(4, 30, 27, 0.4) !important;
  box-shadow: 0 14px 34px rgba(2, 20, 18, 0.22) !important;
}

/* ------------------------------------------------------ 短片创作 */

html body[data-page="shortfilm"] #shortfilmView {
  color: var(--tx-text) !important;
}

html body[data-page="shortfilm"] .shortfilmShell {
  width: 100% !important;
  max-width: 1327px !important;
  margin: 0 auto !important;
  padding: 8px 0 72px !important;
}

html body[data-page="shortfilm"] .pearl-shortfilm-head {
  min-height: 66px !important;
  align-items: flex-start !important;
}

html body[data-page="shortfilm"] .pearl-shortfilm-title h1 {
  color: var(--tx-text) !important;
  font-size: clamp(34px, 2.6vw, 42px) !important;
  font-weight: 650 !important;
  letter-spacing: -0.025em !important;
}

html body[data-page="shortfilm"] .pearl-shortfilm-title p {
  color: var(--tx-text-subtle) !important;
  font-size: 14px !important;
}

html body[data-page="shortfilm"] .pearl-sf-queue-chip,
html body[data-page="shortfilm"] .pearl-sf-points {
  height: 40px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(226, 244, 241, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  color: var(--tx-text-muted) !important;
  font-size: 12px !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

html body[data-page="shortfilm"] .pearl-sf-queue-chip b,
html body[data-page="shortfilm"] .pearl-sf-points b {
  color: var(--tx-accent) !important;
  font-size: 13px !important;
}

html body[data-page="shortfilm"] .pearl-sf-points {
  color: var(--tx-text) !important;
}

html body[data-page="shortfilm"] .pearl-sf-points:hover {
  border-color: rgba(182, 228, 206, 0.4) !important;
  background: rgba(226, 244, 241, 0.14) !important;
}

html body[data-page="shortfilm"] .pearl-sf-stats {
  margin: 18px 0 !important;
  gap: 14px !important;
}

html body[data-page="shortfilm"] .pearl-sf-stat {
  height: 74px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 18px !important;
  background: rgba(173, 208, 207, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

html body[data-page="shortfilm"] .pearl-sf-stat span {
  color: var(--tx-text-subtle) !important;
  font-size: 12px !important;
}

html body[data-page="shortfilm"] .pearl-sf-stat strong {
  color: var(--tx-text) !important;
  font-size: 26px !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums;
}

html body[data-page="shortfilm"] .shortfilmEmpty {
  min-height: 220px !important;
  border: 1px dashed rgba(231, 251, 242, 0.2) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(ellipse 52% 72% at 50% 0%, rgba(160, 232, 204, 0.08), transparent 64%),
    linear-gradient(145deg, rgba(187, 227, 214, 0.12), rgba(116, 169, 151, 0.07)) !important;
  box-shadow: 0 18px 48px rgba(2, 20, 18, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html body[data-page="shortfilm"] .shortfilmEmpty::before {
  background: rgba(226, 244, 241, 0.1) !important;
  border: 1px solid var(--tx-glass-border) !important;
  box-shadow: none !important;
  color: var(--tx-accent) !important;
}

html body[data-page="shortfilm"] .shortfilmEmpty strong {
  color: var(--tx-text) !important;
  font-size: 18px !important;
}

html body[data-page="shortfilm"] .shortfilmEmpty span {
  color: var(--tx-text-subtle) !important;
  font-size: 13px !important;
}

html body[data-page="shortfilm"] .shortfilmComposer {
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(ellipse 52% 66% at 12% 0%, rgba(190, 244, 220, 0.07), transparent 62%),
    linear-gradient(150deg,
      rgba(187, 227, 214, 0.14),
      rgba(150, 199, 183, 0.08) 48%,
      rgba(116, 169, 151, 0.11)) !important;
  box-shadow:
    0 26px 64px rgba(2, 20, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(130%) !important;
}

html body[data-page="shortfilm"] .sfModeBar {
  gap: 4px !important;
  padding: 4px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(7, 43, 39, 0.4) !important;
}

html body[data-page="shortfilm"] .sfModeBar button {
  min-width: 108px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tx-text-subtle) !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
}

html body[data-page="shortfilm"] .sfModeBar button[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  box-shadow: 0 6px 18px rgba(3, 26, 24, 0.3) !important;
  font-weight: 650 !important;
}

html body[data-page="shortfilm"] .sfUpload {
  border: 1px dashed rgba(182, 228, 206, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(226, 244, 241, 0.06) !important;
  color: var(--tx-text-subtle) !important;
}

html body[data-page="shortfilm"] .sfPromptWrap {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 15px !important;
  background: rgba(4, 30, 27, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html body[data-page="shortfilm"] .sfPromptWrap:focus-within {
  border-color: rgba(182, 228, 206, 0.46) !important;
  box-shadow: 0 0 0 3px rgba(182, 228, 206, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body[data-page="shortfilm"] .sfPromptWrap textarea {
  color: var(--tx-text) !important;
  font-size: 16px !important;
}

html body[data-page="shortfilm"] .sfPromptWrap textarea::placeholder {
  color: rgba(158, 175, 170, 0.9) !important;
}

html body[data-page="shortfilm"] .sfPromptMeta,
html body[data-page="shortfilm"] .sfPromptMeta b {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="shortfilm"] .sfToolRow {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 14px !important;
  background: rgba(7, 43, 39, 0.34) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

html body[data-page="shortfilm"] .sfOptimize,
html body[data-page="shortfilm"] .sfSettingGroup,
html body[data-page="shortfilm"] .sfDuration,
html body[data-page="shortfilm"] .sfChannel,
html body[data-page="shortfilm"] .sfCostBadge {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(226, 244, 241, 0.08) !important;
  box-shadow: none !important;
  color: var(--tx-text-muted) !important;
}

html body[data-page="shortfilm"] .sfSettingGroup button {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="shortfilm"] .sfSettingGroup button[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
}

html body[data-page="shortfilm"] .sfChannel.ready {
  color: var(--tx-success) !important;
}

html body[data-page="shortfilm"] .sfChannel.offline {
  color: var(--tx-danger) !important;
}

html body[data-page="shortfilm"] .sfCostBadge::before {
  color: var(--tx-credit-icon) !important;
}

html body[data-page="shortfilm"] .sfGenerate {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  box-shadow: 0 10px 26px rgba(3, 26, 24, 0.3) !important;
  font-weight: 650 !important;
}

html body[data-page="shortfilm"] .sfGenerate:disabled {
  background: rgba(226, 244, 241, 0.16) !important;
  color: rgba(158, 175, 170, 0.7) !important;
  box-shadow: none !important;
}

html body[data-page="shortfilm"] .sfSafety {
  color: var(--tx-text-subtle) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

/* 短片移动端：三块统计全部保留、表单单列、可完整滚动 */
@media (max-width: 860px) {
  html body[data-page="home"] .pearl-home-inner {
    width: calc(100% - 32px) !important;
  }

  html body[data-page="home"] .pearl-hero {
    height: 190px !important;
    gap: 10px !important;
  }

  html body[data-page="home"] .pearl-hero h2 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  html body[data-page="home"] .pearl-hero p {
    font-size: 14px !important;
  }

  html body[data-page="home"] .pearl-composer {
    padding: 16px !important;
    gap: 12px !important;
    border-radius: 22px !important;
  }

  html body[data-page="home"] .pearl-composer-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  html body[data-page="home"] .pearl-mode-switch {
    width: 100% !important;
  }

  html body[data-page="home"] .pearl-mode-switch button {
    flex: 1 !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
  }

  html body[data-page="home"] .pearl-prompt-shell {
    min-height: 116px !important;
    padding: 14px !important;
  }

  html body[data-page="home"] .pearl-composer-controls {
    gap: 6px !important;
  }

  html body[data-page="home"] .pearl-control {
    padding-inline: 11px !important;
    font-size: 12px !important;
  }

  html body[data-page="home"] .pearl-count-option {
    width: 27px !important;
  }

  html body[data-page="home"] .pearl-cta {
    min-width: 132px !important;
    padding-inline: 14px !important;
  }

  html body[data-page="home"] .pearl-curated-head h2 {
    font-size: 18px !important;
  }

  html body[data-page="shortfilm"] .shortfilmShell {
    width: calc(100% - 32px) !important;
    padding: 6px 0 56px !important;
  }

  html body[data-page="shortfilm"] .pearl-shortfilm-head {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
  }

  html body[data-page="shortfilm"] .pearl-shortfilm-title h1 {
    font-size: 30px !important;
  }

  html body[data-page="shortfilm"] .pearl-sf-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 14px 0 !important;
  }

  html body[data-page="shortfilm"] .pearl-sf-stat {
    display: flex !important;
    height: 62px !important;
    padding: 6px 8px !important;
    flex-direction: column !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: rgba(173, 208, 207, 0.09) !important;
  }

  html body[data-page="shortfilm"] .pearl-sf-stat:not(:first-child) {
    display: flex !important;
  }

  html body[data-page="shortfilm"] .pearl-sf-stat span {
    color: var(--tx-text-subtle) !important;
    font-size: 10.5px !important;
  }

  html body[data-page="shortfilm"] .pearl-sf-stat strong {
    color: var(--tx-text) !important;
    font-size: 20px !important;
  }

  html body[data-page="shortfilm"] .shortfilmEmpty {
    min-height: 190px !important;
    padding: 26px 18px !important;
  }

  html body[data-page="shortfilm"] .shortfilmComposer {
    padding: 14px !important;
    border-radius: 22px !important;
    gap: 10px !important;
  }

  html body[data-page="shortfilm"] .sfModeBar {
    width: 100% !important;
  }

  html body[data-page="shortfilm"] .sfModeBar button {
    flex: 1 !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
  }

  html body[data-page="shortfilm"] .sfUpload {
    width: 62px !important;
    min-height: 88px !important;
  }

  html body[data-page="shortfilm"] .sfPromptWrap {
    min-height: 88px !important;
    padding: 10px 12px !important;
  }

  html body[data-page="shortfilm"] .sfToolRow {
    gap: 7px !important;
  }

  html body[data-page="shortfilm"] .sfGenerate {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 520px) {
  html body[data-page="home"] .pearl-home-inner {
    width: calc(100% - 24px) !important;
  }

  html body[data-page="home"] .pearl-hero h2 {
    font-size: 30px !important;
  }

  html body[data-page="home"] .pearl-composer {
    padding: 13px !important;
  }

  html body[data-page="home"] .pearl-control {
    height: 36px !important;
  }

  html body[data-page="home"] .pearl-cta {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  html body[data-page="shortfilm"] .shortfilmShell {
    width: calc(100% - 24px) !important;
  }

  html body[data-page="shortfilm"] .sfToolRow {
    align-items: stretch !important;
  }

  html body[data-page="shortfilm"] .sfOptimize {
    width: 100% !important;
  }

  html body[data-page="shortfilm"] .sfCount {
    width: 100% !important;
    justify-content: center !important;
  }

  html body[data-page="shortfilm"] .sfSafety {
    font-size: 10px !important;
  }
}

/* ================================================================
 * 迭代 2 · 短片批次网格、播放底栏、社区详情
 * ================================================================ */

html body[data-page="shortfilm"] .shortfilmGroup {
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(ellipse 46% 60% at 12% 0%, rgba(190, 244, 220, 0.06), transparent 62%),
    linear-gradient(145deg, rgba(187, 227, 214, 0.13), rgba(116, 169, 151, 0.07)) !important;
  box-shadow: 0 18px 48px rgba(2, 20, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: 20px !important;
}

html body[data-page="shortfilm"] .shortfilmGroupHead h2 { color: var(--tx-text) !important; }
html body[data-page="shortfilm"] .shortfilmGroupHead p { color: var(--tx-text-subtle) !important; }
html body[data-page="shortfilm"] .shortfilmGroupMeta > span {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-text-subtle) !important;
}

html body[data-page="shortfilm"] .sfDownloadAll {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(226, 244, 241, 0.09) !important;
  color: var(--tx-text) !important;
}

html body[data-page="shortfilm"] .shortfilmGrid {
  display: grid !important;
  gap: 16px !important;
  align-items: start !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="1"] {
  grid-template-columns: minmax(0, 280px) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 280px)) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 250px)) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 220px)) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 300px)) !important;
}

html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count="1"] {
  grid-template-columns: minmax(0, 640px) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count="3"],
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count="4"],
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count="5"],
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count="1"] {
  grid-template-columns: minmax(0, 420px) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count="3"],
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count="4"],
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count="5"],
html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html body[data-page="shortfilm"] .shortfilmResult {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 16px !important;
  background: rgba(4, 30, 27, 0.42) !important;
  box-shadow: 0 12px 30px rgba(2, 20, 18, 0.18) !important;
}

html body[data-page="shortfilm"] .sfResultMedia {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #031411 !important;
  aspect-ratio: 9 / 16 !important;
}

html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"] .sfResultMedia {
  aspect-ratio: 16 / 9 !important;
}

html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"] .sfResultMedia {
  aspect-ratio: 4 / 3 !important;
}

html body[data-page="shortfilm"] .sfResultMedia > img,
html body[data-page="shortfilm"] .sfResultMedia > video,
html body[data-page="shortfilm"] .sfResultMedia .playerPanel video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #031411 !important;
}

html body[data-page="shortfilm"] .sfResultPoster {
  object-fit: contain !important;
}

html body[data-page="shortfilm"] .sfResultProgress {
  position: absolute !important;
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 2 !important;
}

html body[data-page="shortfilm"] .sfResultFooter {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px 12px 12px !important;
  border-top: 1px solid var(--tx-glass-border) !important;
  background: rgba(7, 43, 39, 0.56) !important;
}

html body[data-page="shortfilm"] .sfResultInfo {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}

html body[data-page="shortfilm"] .sfResultStatus {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--tx-text) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html body[data-page="shortfilm"] .sfResultStatus[data-state="succeeded"],
html body[data-page="shortfilm"] .sfResultStatus[data-state="completed"] {
  color: var(--tx-success) !important;
}

html body[data-page="shortfilm"] .sfResultStatus[data-state="failed"],
html body[data-page="shortfilm"] .sfResultStatus[data-state="canceled"] {
  color: var(--tx-danger) !important;
}

html body[data-page="shortfilm"] .sfResultMeta {
  flex: none !important;
  color: var(--tx-text-subtle) !important;
  font-size: 10.5px !important;
  font-variant-numeric: tabular-nums;
}

html body[data-page="shortfilm"] .sfResultActions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-height: 30px !important;
}

html body[data-page="shortfilm"] .sfCardButton {
  height: 30px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 8px !important;
  background: rgba(226, 244, 241, 0.08) !important;
  box-shadow: none !important;
  color: var(--tx-text-muted) !important;
  font-size: 11px !important;
  font-weight: 550 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

html body[data-page="shortfilm"] .sfCardButton:hover:not(:disabled) {
  background: rgba(226, 244, 241, 0.15) !important;
  color: var(--tx-text) !important;
}

html body[data-page="shortfilm"] .sfCardButton.primary {
  border-color: transparent !important;
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  font-weight: 650 !important;
}

html body[data-page="shortfilm"] .sfCardButton:disabled {
  opacity: 0.55 !important;
  cursor: default !important;
}

html body[data-page="shortfilm"] .sfResultError {
  margin: 0 !important;
  padding: 0 12px 12px !important;
  color: var(--tx-danger) !important;
  font-size: 10.5px !important;
}

/* 播放器：视频在上，操作固定底栏；不再叠加在视频上 */
html body .playerPanel {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  background: #031411 !important;
}

html body .playerPanel > video {
  display: block !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #030c0b !important;
}

html body .playerBottomBar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 8px 10px !important;
  border-top: 1px solid var(--tx-glass-border) !important;
  background: rgba(7, 43, 39, 0.82) !important;
}

html body .playerBarButton {
  height: 30px !important;
  padding: 0 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 8px !important;
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-text) !important;
  font-size: 11px !important;
  text-decoration: none !important;
}

html body .shortfilmResult .playerPanel,
html body .jobCard .playerPanel {
  position: absolute !important;
  inset: 0 !important;
}

html body .playerPanel:fullscreen {
  display: flex !important;
  flex-direction: column !important;
  background: #020807 !important;
}

html body .playerPanel:fullscreen > video {
  max-height: calc(100vh - 48px) !important;
}

/* 社区详情：媒体与信息独立，站内操作在视频下方固定栏 */
html body .communityDetail {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  align-items: stretch !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body .communityDetailVideo {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: #031411 !important;
}

html body .communityDetailVideo > video {
  flex: 1 1 auto !important;
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  max-height: min(70vh, 680px) !important;
  object-fit: contain !important;
  background: #030c0b !important;
}

html body .communityMediaBar {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-top: 1px solid var(--tx-glass-border) !important;
  background: rgba(7, 43, 39, 0.82) !important;
}

html body .communityBarButton {
  height: 32px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 8px !important;
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-text) !important;
  font-size: 11px !important;
  text-decoration: none !important;
}

html body .communityDetailInfo {
  min-width: 0 !important;
  overflow: auto !important;
}

@media (max-width: 1050px) {
  html body .communityDetail {
    grid-template-columns: 1fr !important;
  }
  html body .communityDetailVideo > video {
    max-height: 52vh !important;
  }
}

@media (max-width: 700px) {
  html body[data-page="shortfilm"] .shortfilmGroup {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="1"] {
    grid-template-columns: minmax(0, 260px) !important;
  }
  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="2"],
  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="3"],
  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="4"],
  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="5"],
  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="portrait"][data-count="6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="landscape"][data-count],
  html body[data-page="shortfilm"] .shortfilmGrid[data-layout="mixed"][data-count] {
    grid-template-columns: 1fr !important;
  }

  html body .communityDetailVideo > video {
    max-height: 46vh !important;
  }
}

/* 主播放舞台 + 缩略胶片条 */
html body[data-page="shortfilm"] .sfBatchStage {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) !important;
  grid-template-rows: auto auto !important;
  gap: 16px !important;
  padding: 16px !important;
  margin: 0 0 18px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 18px !important;
  background: rgba(4, 30, 27, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html body[data-page="shortfilm"] .sfStageMedia {
  position: relative !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 14px !important;
  background: #031411 !important;
  min-height: 0 !important;
}

html body[data-page="shortfilm"] .sfStageMedia[data-stage-aspect="9:16"] {
  width: auto !important;
  height: min(56vh, 560px) !important;
  max-width: 100% !important;
  aspect-ratio: 9 / 16 !important;
}

html body[data-page="shortfilm"] .sfStageMedia[data-stage-aspect="16:9"] {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
}

html body[data-page="shortfilm"] .sfStageMedia[data-stage-aspect="mixed"] {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
}

html body[data-page="shortfilm"] .sfBatchStage[data-state="failed"] .sfStageMedia,
html body[data-page="shortfilm"] .sfBatchStage[data-state="canceled"] .sfStageMedia,
html body[data-page="shortfilm"] .sfBatchStage[data-state="queued"] .sfStageMedia {
  width: 100% !important;
  height: auto !important;
  max-height: 300px !important;
  aspect-ratio: 16 / 9 !important;
}

html body[data-page="shortfilm"] .sfStageEmpty {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  color: rgba(182, 228, 206, 0.5) !important;
  font-size: 42px !important;
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(182, 228, 206, 0.08), transparent 70%),
    #031411 !important;
}

html body[data-page="shortfilm"] .sfStageInfo .sfResultError {
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

html body[data-page="shortfilm"] .sfStageMedia > img,
html body[data-page="shortfilm"] .sfStageMedia > video,
html body[data-page="shortfilm"] .sfStageMedia .playerPanel video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  background: #031411 !important;
}

html body[data-page="shortfilm"] .sfStageInfo {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  align-self: center !important;
  padding: 8px 4px !important;
}

html body[data-page="shortfilm"] .sfStageKicker {
  color: var(--tx-accent) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

html body[data-page="shortfilm"] .sfStageInfo h3 {
  margin: 9px 0 0 !important;
  color: var(--tx-text) !important;
  font-size: 20px !important;
  font-weight: 650 !important;
}

html body[data-page="shortfilm"] .sfStageMeta {
  margin: 7px 0 0 !important;
  color: var(--tx-text-subtle) !important;
  font-size: 12px !important;
}

html body[data-page="shortfilm"] .sfStagePrompt {
  display: -webkit-box !important;
  overflow: hidden !important;
  margin: 14px 0 0 !important;
  color: var(--tx-text-muted) !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

html body[data-page="shortfilm"] .sfStageProgress {
  height: 4px !important;
  margin-top: 16px !important;
  overflow: hidden !important;
  border-radius: 99px !important;
  background: rgba(240, 255, 252, 0.09) !important;
}

html body[data-page="shortfilm"] .sfStageProgress span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #7fcfae, #b6e4ce) !important;
}

html body[data-page="shortfilm"] .sfStageBar {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--tx-glass-border) !important;
}

html body[data-page="shortfilm"] .sfStageActions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

html body[data-page="shortfilm"] .sfFilmStrip {
  margin-top: 0 !important;
}

html body[data-page="shortfilm"] .sfThumb {
  padding: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  appearance: none !important;
  color: var(--tx-text) !important;
}

html body[data-page="shortfilm"] .sfThumb:hover {
  border-color: rgba(182, 228, 206, 0.34) !important;
}

html body[data-page="shortfilm"] .sfThumb.selected {
  border-color: rgba(182, 228, 206, 0.72) !important;
  box-shadow: 0 0 0 1px rgba(182, 228, 206, 0.35), 0 12px 30px rgba(2, 20, 18, 0.22) !important;
}

html body[data-page="shortfilm"] .sfThumb .sfResultFooter {
  padding: 7px 9px 8px !important;
  gap: 2px !important;
}

html body[data-page="shortfilm"] .sfThumb .sfResultStatus {
  font-size: 11px !important;
}

html body[data-page="shortfilm"] .sfThumb .sfResultMeta {
  font-size: 9.5px !important;
}

@media (max-width: 900px) {
  html body[data-page="shortfilm"] .sfBatchStage {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  html body[data-page="shortfilm"] .sfStageMedia {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 54vh !important;
  }

  html body[data-page="shortfilm"] .sfStageMedia[data-stage-aspect="9:16"] {
    width: auto !important;
    height: min(48vh, 460px) !important;
    max-width: 100% !important;
  }

  html body[data-page="shortfilm"] .sfStageInfo {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 0 2px !important;
  }

  html body[data-page="shortfilm"] .sfStageBar {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-content: flex-start !important;
  }
}

/* 我的作品：懒加载海报、真实画幅与单播放器 */
html body .jobCover.portrait {
  aspect-ratio: 9 / 16 !important;
}

html body .jobCover.wide {
  aspect-ratio: 16 / 9 !important;
}

html body .jobCover.playerCover.portrait {
  aspect-ratio: 9 / 16 !important;
}

html body .jobCover.playerCover.wide {
  aspect-ratio: 16 / 9 !important;
}

html body .jobCover .jobPoster {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #031411 !important;
}

html body .jobCover .jobTag,
html body .jobCover .jobDuration {
  z-index: 2 !important;
}

html body .jobCover .coverPlay {
  z-index: 3 !important;
}

/* 提示与焦点：柔和翡翠，不使用白色硬描边 */
html,
body {
  overscroll-behavior-x: none;
}

html body .pearl-composer-message:not(:empty),
html body #msg:not(:empty) {
  padding: 8px 12px !important;
  border: 1px solid rgba(182, 228, 206, 0.24) !important;
  border-radius: 12px !important;
  background: rgba(12, 58, 50, 0.62) !important;
  color: var(--tx-text) !important;
  box-shadow: 0 10px 26px rgba(2, 20, 18, 0.18) !important;
}

html body .pearl-composer-message:empty,
html body #msg:empty {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html body .txFocusPulse {
  animation: txFocusPulse 1.6s ease-out 1;
}

@keyframes txFocusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 228, 206, 0.38);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(182, 228, 206, 0);
  }
}

html body .pearl-curated-status {
  flex: none !important;
  color: var(--tx-text-subtle) !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

html body .pearl-curated-loadmore {
  flex: none !important;
  height: 30px !important;
  padding: 0 12px !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 999px !important;
  background: rgba(226, 244, 241, 0.08) !important;
  color: var(--tx-text-muted) !important;
  font-size: 11px !important;
}

html body .pearl-curated-loadmore:hover {
  background: rgba(226, 244, 241, 0.15) !important;
  color: var(--tx-text) !important;
}

html body .communityPoster {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background: #031411 !important;
}

@media (max-width: 1024px) {
  html body {
    --pearl-sidebar-width: var(--tx-sidebar-compact);
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell {
    padding-left: var(--tx-sidebar-compact) !important;
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
    width: var(--tx-sidebar-compact) !important;
    padding-inline: 10px !important;
  }

  html body #siteHeader#siteHeader.pearl-header {
    inset: 0 0 auto var(--tx-sidebar-compact) !important;
    padding: 0 24px !important;
  }

  html body #siteHeader#siteHeader .globalStudioSearch {
    max-width: 30vw !important;
  }
}

@media (max-width: 860px) {
  html body {
    --pearl-sidebar-width: 0px;
    --pearl-topbar-height: 60px;
  }

  html body #siteHeader#siteHeader.pearl-header {
    inset: 0 0 auto !important;
    height: 60px !important;
    padding: 0 13px !important;
    gap: 8px !important;
    background: linear-gradient(180deg, rgba(10, 42, 39, 0.88), rgba(8, 36, 34, 0.72)) !important;
    border-bottom: 1px solid rgba(240, 255, 252, 0.07) !important;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
  }

  html body #siteHeader#siteHeader .pearl-brand {
    display: inline-flex !important;
    min-width: 118px !important;
    height: 26px !important;
    flex: 0 0 118px !important;
  }

  html body #siteHeader#siteHeader .pearl-brand img {
    width: 118px !important;
    height: auto !important;
  }

  html body #siteHeader#siteHeader .globalStudioSearch {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 40px !important;
    height: 36px !important;
    flex: 1 1 auto !important;
    padding: 0 12px !important;
    gap: 7px !important;
    border-radius: 999px !important;
    transform: none !important;
    background: rgba(226, 244, 241, 0.10) !important;
  }

  html body #siteHeader#siteHeader .globalStudioSearch:focus-within {
    position: absolute !important;
    z-index: 88 !important;
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto !important;
    height: 38px !important;
    background: rgba(226, 244, 241, 0.16) !important;
  }

  html body #siteHeader#siteHeader .account {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  html body #siteHeader#siteHeader .points-pill {
    padding: 5px 9px !important;
    font-size: 12px !important;
  }

  html body #siteHeader#siteHeader .menuToggle {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell {
    padding: 60px 0 0 !important;
  }

  /* 移动抽屉（沿用现有 data-nav-open 机制，仅换翡翠材质） */
  html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
    display: none !important;
    z-index: 104 !important;
    inset: 60px auto auto 0 !important;
    width: min(292px, calc(100vw - 28px)) !important;
    height: calc(100vh - 60px) !important;
    max-height: none !important;
    padding: 16px 12px 22px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    overflow: auto !important;
    border-right: 1px solid rgba(240, 255, 252, 0.09) !important;
    border-bottom: 0 !important;
    border-radius: 0 20px 20px 0 !important;
    background:
      linear-gradient(168deg, rgba(10, 48, 43, 0.98), rgba(7, 40, 36, 0.96) 52%, rgba(8, 45, 40, 0.97)) !important;
    box-shadow: 24px 0 70px rgba(2, 20, 18, 0.55) !important;
    backdrop-filter: blur(26px) saturate(125%);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
  }

  html body[data-nav-open="true"] #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
    display: flex !important;
  }

  html body[data-page="library"] .library {
    padding: 0 16px 64px;
    margin-top: 20px !important;
  }

  html body[data-page="library"] .tx-page-header,
  html body[data-page="library"] .sectionHead {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  html body[data-page="library"] .tx-page-header-tools {
    width: 100%;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  html body[data-page="library"] .libraryToolsRow {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }

  html body[data-page="library"] .libraryTools {
    flex-wrap: nowrap !important;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html body[data-page="library"] .libraryTools::-webkit-scrollbar {
    display: none;
  }

  html body[data-page="library"] .libraryTools .filterBtn {
    flex: 0 0 auto;
  }

  html body[data-page="library"] .librarySearchWrap {
    width: 100%;
    margin-left: 0;
  }

  html body[data-page="library"] .librarySearch {
    width: 100%;
  }

  .tx-empty-state-zero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 44px 24px 48px;
    text-align: center;
  }

  .tx-empty-art {
    width: min(250px, 64vw);
  }

  .tx-empty-copy {
    max-width: 100%;
  }

  .tx-empty-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  html body #siteHeader#siteHeader .notificationButton {
    display: none !important;
  }

  html body #siteHeader#siteHeader .pearl-brand {
    min-width: 104px !important;
    flex: 0 0 104px !important;
  }

  html body #siteHeader#siteHeader .pearl-brand img {
    width: 104px !important;
  }

  html body #siteHeader#siteHeader .points-pill {
    display: none !important;
  }

  html body #siteHeader#siteHeader .badge {
    display: none !important;
  }

  html body #siteHeader#siteHeader .profileTrigger {
    min-width: 40px !important;
    width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  html body[data-page="library"] .countCard {
    padding: 8px 14px;
  }

  html body[data-page="library"] .countCard strong {
    font-size: 22px;
  }

  /* 320/390：筛选三等分紧凑布局，三项必须完整落在容器内 */
  html body[data-page="library"] .libraryTools {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 4px !important;
    overflow: visible !important;
  }

  html body[data-page="library"] .libraryTools .filterBtn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .tx-empty-state-zero {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- */
/* 翡翠校准层（important）：覆盖 pearl-glass-v3 中对「我的作品」的浅色 !important 规则。
 * 仅改视觉，不改任何布局数据流与交互。 */

html body[data-page="library"] .library {
  max-width: 1327px !important;
  margin: 42px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body[data-page="library"] .library h1,
html body[data-page="library"] .sectionHead h2 {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .sectionHead .eyebrow {
  color: var(--tx-accent) !important;
  font-size: 12px !important;
  letter-spacing: 0.16em !important;
}

html body[data-page="library"] .countCard {
  border: 1px solid var(--tx-glass-border-strong) !important;
  background: rgba(173, 208, 207, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  min-height: 75px !important;
  padding: 10px 26px !important;
}

html body[data-page="library"] .countCard strong {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .countCard span,
html body[data-page="library"] .sectionHead .sub {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="library"] .countCard span {
  font-size: 13px !important;
}

html body[data-page="library"] .sectionHead .sub {
  font-size: 15px !important;
}

html body[data-page="library"] .libraryTools {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: var(--tx-radius-pill) !important;
  background: rgba(7, 43, 39, 0.42) !important;
  backdrop-filter: none !important;
  min-height: 50px !important;
  gap: 4px !important;
}

html body[data-page="library"] .libraryTools .filterBtn {
  border: 0 !important;
  border-radius: var(--tx-radius-pill) !important;
  background: transparent !important;
  color: var(--tx-text-subtle) !important;
  backdrop-filter: none !important;
  font-size: 15px !important;
  min-height: 40px !important;
  padding: 0 28px !important;
}

html body[data-page="library"] .libraryTools .filterBtn:hover {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .libraryTools .filterBtn[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(3, 26, 24, 0.32) !important;
}

html body[data-page="library"] .librarySearch {
  border: 0 !important;
  background: transparent !important;
  color: var(--tx-text) !important;
  font-size: 14px !important;
}

html body[data-page="library"] .librarySearchWrap {
  width: 282px !important;
  min-height: 48px !important;
  margin-left: 0 !important;
}

html body[data-page="library"] .librarySearch::placeholder {
  color: rgba(158, 175, 170, 0.92) !important;
}

html body[data-page="library"] .jobs {
  margin-top: 0 !important;
}

html body[data-page="library"] .jobCard {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(150deg, rgba(187, 227, 214, 0.12), rgba(154, 199, 183, 0.07)) !important;
  box-shadow: 0 14px 36px rgba(3, 26, 24, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body[data-page="library"] .jobCard:hover {
  border-color: var(--tx-glass-border-strong) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(3, 26, 24, 0.26) !important;
}

html body[data-page="library"] .jobCover {
  background-color: rgba(4, 28, 25, 0.62) !important;
  background-image: none !important;
}

html body[data-page="library"] .jobCover.failed {
  background-color: rgba(38, 28, 30, 0.55) !important;
  background-image: none !important;
}

html body[data-page="library"] .jobCover.failed::before {
  border: 1px solid rgba(242, 184, 179, 0.38) !important;
  background: rgba(31, 28, 27, 0.72) !important;
  color: var(--tx-danger) !important;
}

html body[data-page="library"] .jobTag,
html body[data-page="library"] .jobDuration {
  border-color: var(--tx-glass-border) !important;
  background: rgba(4, 28, 25, 0.72) !important;
  color: var(--tx-text-muted) !important;
}

html body[data-page="library"] .coverPlay {
  border: 1px solid rgba(231, 251, 242, 0.42) !important;
  background: rgba(7, 43, 39, 0.78) !important;
  color: var(--tx-text) !important;
  box-shadow: 0 8px 22px rgba(3, 26, 24, 0.4) !important;
}

html body[data-page="library"] .jobTop b {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .jobBody .status {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(173, 208, 207, 0.10) !important;
  color: var(--tx-text-muted) !important;
  box-shadow: none !important;
}

html body[data-page="library"] .jobBody .status[data-state="running"],
html body[data-page="library"] .jobBody .status[data-state="processing"],
html body[data-page="library"] .jobBody .status[data-state="queued"],
html body[data-page="library"] .jobBody .status[data-state="pending"],
html body[data-page="library"] .jobBody .status[data-state="submitted"] {
  color: var(--tx-accent) !important;
}

html body[data-page="library"] .jobBody .status[data-state="failed"],
html body[data-page="library"] .jobBody .status[data-state="canceled"] {
  color: var(--tx-danger) !important;
}

html body[data-page="library"] .jobBody .status[data-state="succeeded"],
html body[data-page="library"] .jobBody .status[data-state="completed"] {
  color: var(--tx-success) !important;
}

html body[data-page="library"] .jobMeta {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="library"] .jobAction {
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 12px !important;
  background: rgba(226, 244, 241, 0.11) !important;
  color: var(--tx-text) !important;
}

html body[data-page="library"] .jobAction:hover {
  background: rgba(226, 244, 241, 0.18) !important;
}

html body[data-page="library"] .jobProgress {
  background: rgba(240, 255, 252, 0.09) !important;
}

html body[data-page="library"] .jobProgress span {
  background: linear-gradient(90deg, #7fcfae, #b6e4ce) !important;
}

html body[data-page="library"] .jobProgress span.failed {
  background: #d98f88 !important;
}

html body[data-page="library"] .emptyState {
  border-color: rgba(231, 251, 242, 0.22) !important;
  background: rgba(173, 208, 207, 0.06) !important;
  color: var(--tx-text-subtle) !important;
}

html body[data-page="library"] .emptyState strong {
  color: var(--tx-text) !important;
}

/* 1728 母版精确横向几何（内容左 310 / 右 1637） */
@media (min-width: 1700px) {
  html body[data-page="library"] .library {
    width: 1327px !important;
    max-width: 1327px !important;
    margin-left: 58px !important;
    margin-right: auto !important;
  }
}

/* ---------------------------------------------------------- 认证弹窗 */
/* 覆盖珍珠浅色表单背景，保证邮箱注册/登录在深翡翠壳内可读。 */

html body #auth.premiumAuth,
html body #auth.pearl-auth-overlay {
  background-color: rgba(10, 40, 36, 0.98) !important;
  background-image:
    radial-gradient(circle at 82% 12%, rgba(143, 217, 187, 0.12), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(92, 165, 137, 0.14), transparent 46%),
    linear-gradient(160deg, rgba(20, 57, 51, 0.99), rgba(8, 35, 32, 0.99)) !important;
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 24px !important;
  color: var(--tx-text) !important;
  box-shadow: 0 40px 110px rgba(2, 20, 18, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body #auth #authForm {
  background: transparent !important;
  background-image: none !important;
  color: var(--tx-text) !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body #auth #authForm::after {
  display: none !important;
}

html body #auth #authTitle,
html body #auth h1,
html body #auth h2,
html body #auth .authVisual h2 {
  color: var(--tx-text) !important;
}

html body #auth .authLead,
html body #auth .authVisual p,
html body #auth .field,
html body #auth .authFootnote,
html body #auth .authProviders,
html body #auth .emailMsg {
  color: var(--tx-text-muted) !important;
}

html body #auth .authFootnote {
  border-top-color: rgba(240, 255, 252, 0.09) !important;
}

html body #auth .authDivider {
  color: var(--tx-text-subtle) !important;
}

html body #auth .authDivider::before,
html body #auth .authDivider::after {
  background: rgba(240, 255, 252, 0.1) !important;
}

html body #auth .field input,
html body #auth .field select {
  background-color: rgba(4, 30, 27, 0.55) !important;
  background-image: none !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 14px !important;
  color: var(--tx-text) !important;
}

html body #auth .field input::placeholder {
  color: rgba(158, 175, 170, 0.82) !important;
}

html body #auth .emailPanel {
  background: rgba(4, 30, 27, 0.38) !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 16px !important;
  padding: 16px !important;
}

html body #auth .emailTabs {
  background: rgba(7, 43, 39, 0.5) !important;
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 10px !important;
}

html body #auth .emailTabs button {
  color: var(--tx-text-subtle) !important;
  border-radius: 7px !important;
}

html body #auth .emailTabs button[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  font-weight: 650 !important;
}

html body #auth .codeRow button,
html body #auth .authProviderButton {
  background: rgba(226, 244, 241, 0.08) !important;
  border: 1px solid var(--tx-glass-border) !important;
  color: var(--tx-text-muted) !important;
}

html body #auth .authProviderButton:disabled {
  color: rgba(158, 175, 170, 0.6) !important;
}

html body #auth #emailSubmit,
html body #auth #passwordActions .primary,
html body #auth .inviteSubmit {
  background: var(--tx-primary-bg) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--tx-primary-fg) !important;
  font-weight: 650 !important;
}

html body #auth .emailBack {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--tx-accent) !important;
  font-weight: 550 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html body #auth .pearlAuthClose,
html body #auth .modalClose {
  color: var(--tx-text-subtle) !important;
  border-color: var(--tx-glass-border) !important;
  background: rgba(226, 244, 241, 0.08) !important;
}

html body #auth .authModalBrand img {
  filter: brightness(0) invert(0.96);
}

html body #auth .authModalBrand strong {
  color: var(--tx-text) !important;
}

html body #auth #authForm #passwordActions .primary,
html body #auth #authForm #emailSubmit {
  background: var(--tx-primary-bg) !important;
  background-image: none !important;
  border: 0 !important;
  color: var(--tx-primary-fg) !important;
}

html body #auth .auth-actions .link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--tx-accent) !important;
}

html body #auth #authForm #passwordActions #switchMode,
html body #auth #authForm #passwordActions #forgotPassword {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--tx-accent) !important;
}

html body #auth {
  overscroll-behavior: contain !important;
}

html body #auth input,
html body #auth textarea {
  -webkit-user-select: text !important;
  user-select: text !important;
  touch-action: pan-y !important;
}

@media (max-width: 1024px) {
  html body {
    --pearl-sidebar-width: var(--tx-sidebar-compact);
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell {
    padding-left: var(--tx-sidebar-compact) !important;
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
    width: var(--tx-sidebar-compact) !important;
    padding-inline: 10px !important;
  }

  html body #siteHeader#siteHeader.pearl-header {
    inset: 0 0 auto var(--tx-sidebar-compact) !important;
    padding: 0 24px !important;
  }

  html body #siteHeader#siteHeader .globalStudioSearch {
    max-width: 30vw !important;
  }
}

@media (max-width: 860px) {
  html body {
    --pearl-sidebar-width: 0px;
    --pearl-topbar-height: 60px;
  }

  html body #siteHeader#siteHeader.pearl-header {
    inset: 0 0 auto !important;
    height: 60px !important;
    padding: 0 13px !important;
    gap: 8px !important;
    background: linear-gradient(180deg, rgba(10, 42, 39, 0.88), rgba(8, 36, 34, 0.72)) !important;
    border-bottom: 1px solid rgba(240, 255, 252, 0.07) !important;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
  }

  html body #siteHeader#siteHeader .pearl-brand {
    display: inline-flex !important;
    min-width: 118px !important;
    height: 26px !important;
    flex: 0 0 118px !important;
  }

  html body #siteHeader#siteHeader .pearl-brand img {
    width: 118px !important;
    height: auto !important;
  }

  html body #siteHeader#siteHeader .globalStudioSearch {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 40px !important;
    height: 36px !important;
    flex: 1 1 auto !important;
    padding: 0 12px !important;
    gap: 7px !important;
    border-radius: 999px !important;
    transform: none !important;
    background: rgba(226, 244, 241, 0.10) !important;
  }

  html body #siteHeader#siteHeader .globalStudioSearch:focus-within {
    position: absolute !important;
    z-index: 88 !important;
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    width: auto !important;
    height: 38px !important;
    background: rgba(226, 244, 241, 0.16) !important;
  }

  html body #siteHeader#siteHeader .account {
    flex: 0 0 auto !important;
    gap: 6px !important;
  }

  html body #siteHeader#siteHeader .points-pill {
    padding: 5px 9px !important;
    font-size: 12px !important;
  }

  html body #siteHeader#siteHeader .menuToggle {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell {
    padding: 60px 0 0 !important;
  }

  /* 移动抽屉（沿用现有 data-nav-open 机制，仅换翡翠材质） */
  html body #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
    display: none !important;
    z-index: 104 !important;
    inset: 60px auto auto 0 !important;
    width: min(292px, calc(100vw - 28px)) !important;
    height: calc(100vh - 60px) !important;
    max-height: none !important;
    padding: 16px 12px 22px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    overflow: auto !important;
    border-right: 1px solid rgba(240, 255, 252, 0.09) !important;
    border-bottom: 0 !important;
    border-radius: 0 20px 20px 0 !important;
    background:
      linear-gradient(168deg, rgba(10, 48, 43, 0.98), rgba(7, 40, 36, 0.96) 52%, rgba(8, 45, 40, 0.97)) !important;
    box-shadow: 24px 0 70px rgba(2, 20, 18, 0.55) !important;
    backdrop-filter: blur(26px) saturate(125%);
    -webkit-backdrop-filter: blur(26px) saturate(125%);
  }

  html body[data-nav-open="true"] #workspace#workspace.pearl-workspace.pearl-shell > nav#primaryNavigation {
    display: flex !important;
  }

  html body[data-page="library"] .library {
    padding: 0 16px 64px;
    margin-top: 20px !important;
  }

  html body[data-page="library"] .tx-page-header,
  html body[data-page="library"] .sectionHead {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  html body[data-page="library"] .tx-page-header-tools {
    width: 100%;
    flex-wrap: wrap;
    margin-top: 16px;
  }

  html body[data-page="library"] .libraryToolsRow {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }

  html body[data-page="library"] .libraryTools {
    flex-wrap: nowrap !important;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html body[data-page="library"] .libraryTools::-webkit-scrollbar {
    display: none;
  }

  html body[data-page="library"] .libraryTools .filterBtn {
    flex: 0 0 auto;
  }

  html body[data-page="library"] .librarySearchWrap {
    width: 100%;
    margin-left: 0;
  }

  html body[data-page="library"] .librarySearch {
    width: 100%;
  }

  .tx-empty-state-zero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 44px 24px 48px;
    text-align: center;
  }

  .tx-empty-art {
    width: min(250px, 64vw);
  }

  .tx-empty-copy {
    max-width: 100%;
  }

  .tx-empty-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  html body #siteHeader#siteHeader .notificationButton {
    display: none !important;
  }

  html body #siteHeader#siteHeader .pearl-brand {
    min-width: 104px !important;
    flex: 0 0 104px !important;
  }

  html body #siteHeader#siteHeader .pearl-brand img {
    width: 104px !important;
  }

  html body #siteHeader#siteHeader .points-pill {
    display: none !important;
  }

  html body #siteHeader#siteHeader .badge {
    display: none !important;
  }

  html body #siteHeader#siteHeader .profileTrigger {
    min-width: 40px !important;
    width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  html body[data-page="library"] .countCard {
    padding: 8px 14px;
  }

  html body[data-page="library"] .countCard strong {
    font-size: 22px;
  }

  /* 320/390：筛选三等分紧凑布局，三项必须完整落在容器内 */
  html body[data-page="library"] .libraryTools {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 4px !important;
    overflow: visible !important;
  }

  html body[data-page="library"] .libraryTools .filterBtn {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 4px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .tx-empty-state-zero {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- */
/* 翡翠校准层（important）：覆盖 pearl-glass-v3 中对「我的作品」的浅色 !important 规则。
 * 仅改视觉，不改任何布局数据流与交互。 */

html body[data-page="library"] .library {
  max-width: 1327px !important;
  margin: 42px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body[data-page="library"] .library h1,
html body[data-page="library"] .sectionHead h2 {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .sectionHead .eyebrow {
  color: var(--tx-accent) !important;
  font-size: 12px !important;
  letter-spacing: 0.16em !important;
}

html body[data-page="library"] .countCard {
  border: 1px solid var(--tx-glass-border-strong) !important;
  background: rgba(173, 208, 207, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  min-height: 75px !important;
  padding: 10px 26px !important;
}

html body[data-page="library"] .countCard strong {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .countCard span,
html body[data-page="library"] .sectionHead .sub {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="library"] .countCard span {
  font-size: 13px !important;
}

html body[data-page="library"] .sectionHead .sub {
  font-size: 15px !important;
}

html body[data-page="library"] .libraryTools {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: var(--tx-radius-pill) !important;
  background: rgba(7, 43, 39, 0.42) !important;
  backdrop-filter: none !important;
  min-height: 50px !important;
  gap: 4px !important;
}

html body[data-page="library"] .libraryTools .filterBtn {
  border: 0 !important;
  border-radius: var(--tx-radius-pill) !important;
  background: transparent !important;
  color: var(--tx-text-subtle) !important;
  backdrop-filter: none !important;
  font-size: 15px !important;
  min-height: 40px !important;
  padding: 0 28px !important;
}

html body[data-page="library"] .libraryTools .filterBtn:hover {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .libraryTools .filterBtn[aria-pressed="true"] {
  background: var(--tx-primary-bg) !important;
  color: var(--tx-primary-fg) !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(3, 26, 24, 0.32) !important;
}

html body[data-page="library"] .librarySearch {
  border: 0 !important;
  background: transparent !important;
  color: var(--tx-text) !important;
  font-size: 14px !important;
}

html body[data-page="library"] .librarySearchWrap {
  width: 282px !important;
  min-height: 48px !important;
  margin-left: 0 !important;
}

html body[data-page="library"] .librarySearch::placeholder {
  color: rgba(158, 175, 170, 0.92) !important;
}

html body[data-page="library"] .jobs {
  margin-top: 0 !important;
}

html body[data-page="library"] .jobCard {
  border: 1px solid var(--tx-glass-border) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(150deg, rgba(187, 227, 214, 0.12), rgba(154, 199, 183, 0.07)) !important;
  box-shadow: 0 14px 36px rgba(3, 26, 24, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html body[data-page="library"] .jobCard:hover {
  border-color: var(--tx-glass-border-strong) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(3, 26, 24, 0.26) !important;
}

html body[data-page="library"] .jobCover {
  background-color: rgba(4, 28, 25, 0.62) !important;
  background-image: none !important;
}

html body[data-page="library"] .jobCover.failed {
  background-color: rgba(38, 28, 30, 0.55) !important;
  background-image: none !important;
}

html body[data-page="library"] .jobCover.failed::before {
  border: 1px solid rgba(242, 184, 179, 0.38) !important;
  background: rgba(31, 28, 27, 0.72) !important;
  color: var(--tx-danger) !important;
}

html body[data-page="library"] .jobTag,
html body[data-page="library"] .jobDuration {
  border-color: var(--tx-glass-border) !important;
  background: rgba(4, 28, 25, 0.72) !important;
  color: var(--tx-text-muted) !important;
}

html body[data-page="library"] .coverPlay {
  border: 1px solid rgba(231, 251, 242, 0.42) !important;
  background: rgba(7, 43, 39, 0.78) !important;
  color: var(--tx-text) !important;
  box-shadow: 0 8px 22px rgba(3, 26, 24, 0.4) !important;
}

html body[data-page="library"] .jobTop b {
  color: var(--tx-text) !important;
}

html body[data-page="library"] .jobBody .status {
  border: 1px solid var(--tx-glass-border) !important;
  background: rgba(173, 208, 207, 0.10) !important;
  color: var(--tx-text-muted) !important;
  box-shadow: none !important;
}

html body[data-page="library"] .jobBody .status[data-state="running"],
html body[data-page="library"] .jobBody .status[data-state="processing"],
html body[data-page="library"] .jobBody .status[data-state="queued"],
html body[data-page="library"] .jobBody .status[data-state="pending"],
html body[data-page="library"] .jobBody .status[data-state="submitted"] {
  color: var(--tx-accent) !important;
}

html body[data-page="library"] .jobBody .status[data-state="failed"],
html body[data-page="library"] .jobBody .status[data-state="canceled"] {
  color: var(--tx-danger) !important;
}

html body[data-page="library"] .jobBody .status[data-state="succeeded"],
html body[data-page="library"] .jobBody .status[data-state="completed"] {
  color: var(--tx-success) !important;
}

html body[data-page="library"] .jobMeta {
  color: var(--tx-text-subtle) !important;
}

html body[data-page="library"] .jobAction {
  border: 1px solid var(--tx-glass-border-strong) !important;
  border-radius: 12px !important;
  background: rgba(226, 244, 241, 0.11) !important;
  color: var(--tx-text) !important;
}

html body[data-page="library"] .jobAction:hover {
  background: rgba(226, 244, 241, 0.18) !important;
}

html body[data-page="library"] .jobProgress {
  background: rgba(240, 255, 252, 0.09) !important;
}

html body[data-page="library"] .jobProgress span {
  background: linear-gradient(90deg, #7fcfae, #b6e4ce) !important;
}

html body[data-page="library"] .jobProgress span.failed {
  background: #d98f88 !important;
}

html body[data-page="library"] .emptyState {
  border-color: rgba(231, 251, 242, 0.22) !important;
  background: rgba(173, 208, 207, 0.06) !important;
  color: var(--tx-text-subtle) !important;
}

html body[data-page="library"] .emptyState strong {
  color: var(--tx-text) !important;
}

/* 1728 母版精确横向几何（内容左 310 / 右 1637） */
@media (min-width: 1700px) {
  html body[data-page="library"] .library {
    width: 1327px !important;
    max-width: 1327px !important;
    margin-left: 58px !important;
    margin-right: auto !important;
  }
}

