/* ==========================================================================
   星图任务工作台 · 九曜Agent 设计系统（浅灰画布 + 白色浮卡 + 系统蓝）
   ========================================================================== */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 4pt 间距网格与圆角规格 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --r-card: 12px;
  --r-ctl: 8px;
  --h-ctl: 32px;

  /* 九曜系统语义色（浅色默认） */
  --accent: #0a6cff;
  --accent-hover: #005ee6;
  --accent-soft: rgba(10, 108, 255, 0.1);
  --accent-line: rgba(10, 108, 255, 0.35);
  --green: #1f9d47;
  --green-dot: #34c759;
  --green-soft: rgba(52, 199, 89, 0.13);
  --orange: #c25e00;
  --orange-dot: #ff9500;
  --orange-soft: rgba(255, 149, 0, 0.14);
  --red: #d70015;
  --red-dot: #ff3b30;
  --red-soft: rgba(255, 59, 48, 0.1);
  --indigo: #5856d6;
  --indigo-soft: rgba(88, 86, 214, 0.11);
  --teal: #0f8fa8;
  --teal-soft: rgba(48, 176, 199, 0.13);

  --label: #1d1d1f;
  --label2: #6e6e73;
  --label3: #a1a1a6;
  --sep: rgba(0, 0, 0, 0.07);
  --sep-strong: rgba(0, 0, 0, 0.12);
  --canvas: #f5f5f7;
  --card: #ffffff;
  --rail: #fbfbfd;
  --well: #f7f7f9;
  --fill: rgba(0, 0, 0, 0.04);
  --fill-2: rgba(0, 0, 0, 0.065);
  --fill-3: rgba(0, 0, 0, 0.1);
  --ctl: #ffffff;
  --ctl-border: rgba(0, 0, 0, 0.13);
  --ctl-border-hover: rgba(0, 0, 0, 0.22);
  --ctl-bg-focus: #ffffff;
  --shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.035);
  --shadow-ctl: 0 0.5px 1px rgba(0, 0, 0, 0.08);
  --focus: 0 0 0 3px rgba(10, 108, 255, 0.3);

  /* 兼容既有业务语义令牌 */
  --ink: var(--label);
  --ink-2: var(--label);
  --muted: var(--label2);
  --subtle: var(--label3);
  --line: var(--sep-strong);
  --line-soft: var(--sep);
  --paper: var(--card);
  --bg: var(--canvas);
  --surface-tint: var(--well);
  --hover-row: var(--fill);

  --blue: var(--accent);
  --blue-hover: var(--accent-hover);
  --blue-soft: var(--accent-soft);
  --blue-ring: rgba(10, 108, 255, 0.25);

  --good-bg: var(--green-soft);
  --good-ink: var(--green);
  --good-border: transparent;
  --warn-bg: var(--orange-soft);
  --warn-ink: var(--orange);
  --warn-border: transparent;
  --ended-bg: var(--red-soft);
  --ended-ink: var(--red);
  --ended-border: transparent;
  --neutral-bg: var(--fill-2);
  --neutral-ink: var(--label2);
  --neutral-border: transparent;

  /* 排版与字号令牌 */
  --font-sans: var(--font);
  --text-xs: 12px;
  --text-th: 11px;
  --text-sm: 13px;
  --text-md: 13px;
  --text-base: 14px;
  --text-lg: 14px;
  --text-xl: 18px;
  --text-2xl: 22px;

  --tracking-tight: -0.02em;
  --tracking-body: 0;
  --tracking-th: 0;
  --tracking-code: 0.02em;

  --leading-tight: 1.28;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --radius-sm: var(--r-ctl);
  --radius: var(--r-card);
  --radius-lg: 14px;
  --shadow-xs: var(--shadow-ctl);
  --shadow-sm: var(--shadow);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font: 13px/1.5 var(--font);
  color: var(--label);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0a84ff;
    --accent-hover: #3d9bff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --accent-line: rgba(10, 132, 255, 0.45);
    --green: #32d74b;
    --green-soft: rgba(48, 209, 88, 0.16);
    --orange: #ffa53a;
    --orange-soft: rgba(255, 159, 10, 0.16);
    --red: #ff6961;
    --red-soft: rgba(255, 69, 58, 0.16);
    --indigo: #8e8cff;
    --indigo-soft: rgba(94, 92, 230, 0.2);
    --teal: #5ed3e8;
    --teal-soft: rgba(64, 200, 224, 0.16);

    --label: #f5f5f7;
    --label2: #a1a1a6;
    --label3: #6e6e73;
    --sep: rgba(255, 255, 255, 0.07);
    --sep-strong: rgba(255, 255, 255, 0.12);
    --canvas: #1c1c1e;
    --card: #2a2a2d;
    --rail: #222224;
    --well: #232325;
    --fill: rgba(255, 255, 255, 0.05);
    --fill-2: rgba(255, 255, 255, 0.08);
    --fill-3: rgba(255, 255, 255, 0.12);
    --ctl: rgba(255, 255, 255, 0.065);
    --ctl-border: rgba(255, 255, 255, 0.14);
    --ctl-border-hover: rgba(255, 255, 255, 0.24);
    --ctl-bg-focus: rgba(255, 255, 255, 0.1);
    --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.25);
    --focus: 0 0 0 3px rgba(10, 132, 255, 0.45);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.52);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--label);
  background: var(--canvas);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 0.12s var(--ease);
}

a:hover {
  text-decoration: underline;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.chart-bar:focus-visible,
.daily-trend-point:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

input,
select,
textarea {
  caret-color: var(--accent);
}

input[type="checkbox"] {
  accent-color: var(--accent);
  box-shadow: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--label);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  background: var(--fill-3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--label3);
}

::-webkit-scrollbar-track {
  background: transparent;
}

h1, h2, h3, h4, p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

h1 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--label);
}

h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--label);
}

h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--label);
}

h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--label2);
}

button svg {
  flex-shrink: 0;
}

small {
  font-size: 11px;
  letter-spacing: 0;
}

table {
  font-variant-numeric: tabular-nums;
}

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

.skip {
  position: fixed;
  top: -64px;
  left: 20px;
  z-index: 40;
  background: var(--card);
  border: 0.5px solid var(--sep-strong);
  border-radius: var(--r-ctl);
  padding: 8px 14px;
  box-shadow: var(--shadow);
}

.skip:focus {
  top: 14px;
}

/* ==========================================================================
   侧边栏与主框架（九曜Agent 浅色边栏 + 无顶栏浮卡工作台）
   ========================================================================== */

.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--rail);
  color: var(--label);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  z-index: 5;
  border-right: 0.5px solid var(--sep-strong);
}

.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  margin: 0 0 16px;
  color: var(--label);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), inset 0 0 0 0.5px rgba(255, 255, 255, 0.25);
}

.v4-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.sidebar nav {
  display: grid;
  gap: 2px;
  overflow-y: auto;
  padding-right: 2px;
}

.nav-section {
  display: grid;
}

.nav-section + .nav-section {
  margin-top: 6px;
}

.nav-group-toggle {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--label2);
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-ctl);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-group-toggle svg {
  width: 15px;
  height: 15px;
  color: var(--label3);
  flex: none;
}

.nav-group-toggle:hover {
  background: var(--fill);
  color: var(--label);
}

.nav-group-toggle.has-active {
  color: var(--label);
}

.nav-chevron {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--label3);
  border-bottom: 1.5px solid var(--label3);
  transform: rotate(45deg);
  transition: transform 0.16s var(--ease);
  flex: none;
}

.nav-section.collapsed .nav-chevron {
  transform: rotate(-45deg);
}

.nav-sub {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 2px;
  padding-left: 14px;
}

.nav-sub::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 6px;
  bottom: 6px;
  width: 0.5px;
  background: var(--sep-strong);
}

.nav-sub[hidden] {
  display: none;
}

.nav-sub .nav-item {
  height: 32px;
  padding: 0 10px;
}

.nav-item {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--label);
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-ctl);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.nav-item svg {
  width: 16px;
  height: 16px;
  color: var(--label2);
  flex: none;
  transition: color 0.12s var(--ease);
}

.nav-item:hover {
  background: var(--fill);
  color: var(--label);
}

.nav-item:active {
  transform: translateY(0.5px);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--accent);
}

.nav-count {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--label2);
  background: var(--fill-2);
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.nav-item.active .nav-count {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-foot {
  margin-top: auto;
  border-top: 0.5px solid var(--sep);
  padding: 10px 10px 2px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--label2);
  min-height: 36px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--label3);
  flex: none;
}

.dot.online {
  background: var(--green-dot);
}

.foot-user {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot .logout-button {
  margin-left: auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.sidebar-foot .logout-button:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: underline;
}

.sidebar-foot .logout-button:active:not(:disabled) {
  background: var(--fill-2);
}

.workspace {
  margin-left: 220px;
  min-width: 0;
}

.snapshot-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--label2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100vh;
}

main:focus {
  outline: none;
}

#content {
  display: grid;
  align-content: start;
  gap: var(--s4);
  min-width: 0;
}

#content > button {
  justify-self: start;
}

#people-content,
#account-bindings,
#account-publishing,
div#team-surface,
div#earnings-surface {
  display: grid;
  align-content: start;
  gap: var(--s4);
  min-width: 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  margin-bottom: 0;
}

.heading-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--label2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.pill:empty {
  display: none;
}

.pill.ok {
  background: var(--green-soft);
  color: var(--green);
}

.pill.blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.pill.err {
  background: var(--red-soft);
  color: var(--red);
}

.pill.gray {
  background: var(--fill-2);
  color: var(--label2);
}

.chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent);
}

.chip svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.chip.green {
  background: var(--green-soft);
  color: var(--green);
}

.chip.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.chip.indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.chip.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.section-heading {
  margin-bottom: 0;
}

.section-heading p,
.panel-heading p {
  color: var(--label2);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.5;
}

/* ==========================================================================
   通用控件：按钮、弹出选择器、分段选择器、文本按钮、表单输入
   ========================================================================== */

.button {
  border: 0.5px solid var(--ctl-border);
  background: var(--ctl);
  color: var(--label);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  border-radius: var(--r-ctl);
  padding: 0 var(--s3);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-ctl);
  transition: background-color 0.12s var(--ease), box-shadow 0.12s var(--ease), opacity 0.12s var(--ease);
}

.button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.button:hover:not(:disabled) {
  background: var(--fill);
}

.button:active:not(:disabled) {
  filter: brightness(0.95);
}

.button:disabled {
  box-shadow: none;
}

.button.selected {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  font-weight: 600;
}

.button.selected:hover:not(:disabled) {
  background: var(--accent-soft);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(10, 108, 255, 0.25);
}

.button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.button.primary:active:not(:disabled) {
  filter: brightness(0.94);
}

.button.subtle {
  background: var(--ctl);
  border: 0.5px solid var(--ctl-border);
  color: var(--label);
  box-shadow: var(--shadow-ctl);
}

.button.subtle:hover:not(:disabled) {
  background: var(--fill);
}

.button.subtle:active:not(:disabled) {
  filter: brightness(0.95);
}

.button.compact {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.text-button {
  background: none;
  border: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.text-button:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

table .text-button {
  text-align: center;
}

.text-button:active:not(:disabled) {
  background: var(--fill-2);
}

.text-button[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.text-button:is([data-binding-revoke], [data-binding-withdraw], [data-user-active][data-active="false"]) {
  color: var(--red);
}

.text-button:is([data-binding-revoke], [data-binding-withdraw], [data-user-active][data-active="false"]):hover:not(:disabled) {
  background: var(--red-soft);
  color: var(--red);
}

.text-button.strong,
.text-button.task-inline {
  padding: 0;
  margin: 0;
  border-radius: 4px;
}

.text-button.strong {
  color: var(--label);
  font-weight: 600;
  font-size: 13px;
}

.text-button.strong:hover:not(:disabled),
.text-button.task-inline:hover:not(:disabled) {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.segmented {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 2px;
  border-radius: 9px;
  background: var(--fill-2);
  border: 0.5px solid var(--sep);
  max-width: 100%;
  overflow: auto;
}

.segmented button {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 7px;
  padding: 0 var(--s3);
  height: 28px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.segmented button:hover:not(.selected) {
  color: var(--label);
}

.segmented button.selected {
  color: var(--label);
  font-weight: 600;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .segmented button.selected {
    background: rgba(10, 132, 255, 0.24);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(10, 132, 255, 0.55);
  }
}

.segmented.small button {
  height: 24px;
  min-height: 24px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* 原生 select 统一样式（无需 MutationObserver / .selectWrap 包装） */
select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  height: var(--h-ctl);
  min-width: 0;
  max-width: 100%;
  padding: 0 30px 0 var(--s3);
  border: 0.5px solid var(--ctl-border);
  border-radius: var(--r-ctl);
  box-shadow: var(--shadow-ctl);
  cursor: pointer;
  background: var(--ctl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 10l4-4 4 4M8 14l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--label);
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

select:hover {
  background-color: var(--fill);
  border-color: var(--ctl-border-hover);
}

select:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--focus);
  outline: none;
}

select:disabled {
  opacity: 0.45;
  cursor: default;
}

label > select,
.identity-dialog select {
  width: 100%;
}

.filterbar label > select,
.submission-sort > select,
.xingtu-log-filters label > select {
  width: auto;
}

:where(input:not([type]), input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"], textarea, select) {
  border: 0.5px solid var(--ctl-border);
  border-radius: var(--r-ctl);
  background: var(--ctl);
  color: var(--label);
  box-shadow: var(--shadow-ctl);
  font-size: 13px;
  transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease), background-color 0.12s var(--ease);
}

:where(input:not([type]), input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"], select) {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
}

:where(input:not([type]), input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"]) {
  padding: 0 12px;
}

:where(input[type="search"]) {
  -webkit-appearance: none;
  appearance: none;
}

:where(textarea) {
  padding: 8px 12px;
  min-height: 84px;
  line-height: 1.5;
  resize: vertical;
}

:where(input:not([type]), input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"], textarea, select):hover:not(:disabled):not(:focus) {
  border-color: var(--ctl-border-hover);
}

:where(input:not([type]), input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"], textarea, select):focus {
  border-color: var(--accent);
  background-color: var(--ctl-bg-focus);
  box-shadow: var(--focus);
  outline: none;
}

:where(input:not([type]), input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="tel"], input[type="number"], input[type="email"], input[type="url"], textarea, select):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="date"] {
  padding: 0 10px;
  width: 142px;
}

input::placeholder,
textarea::placeholder {
  color: var(--label3);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0 30px 0 var(--s3);
  background: var(--ctl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 10l4-4 4 4M8 14l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--label);
}

select::-ms-expand {
  display: none;
}

select::picker-icon {
  display: none;
}

.date-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

.control-label {
  color: var(--label2);
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
}

.date-dash {
  color: var(--label3);
  font-size: 12px;
}

/* ==========================================================================
   面板容器、筛选栏与数据表格（九曜Agent 纯白圆角卡片 + 极细分割线）
   ========================================================================== */

.chart-panel,
.day-panel,
.table-panel,
.task-detail,
.plain-panel,
.data-source {
  background: var(--card);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-heading {
  min-height: 52px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid var(--sep);
}

.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.filterbar {
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 0;
  border-bottom: 0.5px solid var(--sep);
  background: var(--well);
}

.filterbar > .button:last-child {
  margin-left: auto;
}

.filter-count {
  font-size: 12px;
  color: var(--label2);
  white-space: nowrap;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}

.search > svg {
  position: absolute;
  left: 10px;
  color: var(--label3);
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 0 12px 0 32px;
  font-size: 13px;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
}

.submission-actions,
.submission-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submission-sort > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
  white-space: nowrap;
}

.submission-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.list-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0;
}

.list-summary > .button:last-child {
  margin-left: auto;
}

.list-summary strong {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}

.list-summary > span {
  font-size: 12px;
  color: var(--label2);
  margin-left: 4px;
}

.results-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--label2);
  padding: 10px 20px;
  background: var(--card);
  border-bottom: 0.5px solid var(--sep);
}

.results-summary b {
  color: var(--label);
  font-weight: 600;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   全站统一数据表格与列表排版
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 38px;
  background: var(--card);
  border-bottom: 0.5px solid var(--sep);
  color: var(--label2);
  font-weight: 500;
  font-size: 11px;
  padding: 0 14px;
  text-align: center;
}

tbody td,
tbody th {
  padding: 13px 14px;
  border-bottom: 0.5px solid var(--sep);
  color: var(--label);
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
  text-align: center;
  transition: background-color 0.12s var(--ease);
}

thead th:first-child,
tbody td:first-child,
tbody th:first-child,
tfoot th:first-child,
tfoot td:first-child {
  padding-left: 20px;
}

thead th:last-child,
tbody td:last-child,
tbody th:last-child,
tfoot th:last-child,
tfoot td:last-child {
  padding-right: 20px;
}

tbody td > strong {
  color: var(--label);
  font-weight: 600;
  font-size: 13px;
}

tbody td small,
.cell-sub {
  display: block;
  margin-top: 3px;
  color: var(--label2);
  font-size: 11px;
  line-height: 1.4;
}

tfoot th,
tfoot td {
  padding: 12px 14px;
  background: var(--well);
  border-top: 0.5px solid var(--sep);
  font-weight: 600;
  color: var(--label);
  text-align: center;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody tr:hover td,
tbody tr:hover th {
  background: var(--fill);
}

.num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.money-ink {
  color: var(--label);
  font-weight: 600;
}

.selected-row td {
  background: var(--accent-soft);
}

.selected-row:hover td {
  background: var(--accent-soft);
}

.expanded-row > td {
  padding: 18px 22px;
  text-align: left;
  background: var(--well) !important;
  border-top: 0.5px solid var(--sep);
  border-bottom: 0.5px solid var(--sep) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

.date-link {
  font-variant-numeric: tabular-nums;
  color: var(--label);
}

.selected-row .date-link {
  color: var(--accent);
  font-weight: 600;
}

.table-foot {
  padding: 12px 20px;
  border-top: 0.5px solid var(--sep);
  background: var(--well);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--label2);
  font-size: 12px;
  line-height: 1.5;
  gap: 12px;
}

.table-foot > span:last-child {
  color: var(--label2);
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager > span {
  font-variant-numeric: tabular-nums;
  color: var(--label2);
  font-weight: 500;
  padding: 0 4px;
}

.pager .button,
.xingtu-log-pager .button {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* 排序表头 */
.sort-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 3px 6px;
  margin: -3px -6px;
  border-radius: 6px;
  font: inherit;
  color: inherit;
  white-space: nowrap;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.sort-heading:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.sort-heading.is-sorted {
  color: var(--accent);
  background: var(--accent-soft);
}

.sort-heading svg {
  flex-shrink: 0;
}

.sort-heading path {
  fill: none;
  stroke: var(--label3);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sort-heading path.sort-current {
  stroke: var(--accent);
  stroke-width: 2.2;
}

/* 状态徽章（对齐九曜无边框胶囊） */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 0;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.badge.good {
  background: var(--green-soft);
  color: var(--green);
}

.badge.ended {
  background: var(--red-soft);
  color: var(--red);
}

.badge.warn {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge.muted-badge {
  background: var(--fill-2);
  color: var(--label2);
}

.statuses .badge {
  display: inline-flex;
}

.statuses .badge + .badge {
  margin-top: 6px;
  display: flex;
  width: max-content;
}

/* ==========================================================================
   总览指标浮卡、趋势图与日对比（九曜Agent 风格）
   ========================================================================== */

.totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.totals > div {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s4) var(--s5);
}

.metric-label {
  color: var(--label2);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.overview-metric .metric-label > .partial-tag,
.member-income-overview .metric-label > span {
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin-left: auto;
}

.metric-value {
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: var(--s3) 0 var(--s1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--label);
}

.metric-value > span {
  font-size: 16px;
  margin-right: 3px;
  font-weight: 500;
}

.metric-value > small {
  font-size: 12px;
  color: var(--label2);
  margin-left: 4px;
  font-weight: 500;
}

.total-main .metric-value {
  color: var(--accent);
}

.metric-note {
  font-size: 11px;
  color: var(--label2);
}

.metric-value.metric-unavailable {
  font-size: 20px;
  line-height: 30px;
  color: var(--label3);
}

/* 近期发布视频收益与播放量：独立白色浮卡网格 */
.overview-periods {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: grid;
  gap: var(--s3);
  margin-bottom: 0;
}

.overview-periods-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  border: 0;
}

.overview-periods-heading h2 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  font-weight: 600;
}

.daily-capture-note {
  margin: 0;
  padding: 2px 2px 4px;
  color: var(--label2);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.daily-capture-note summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  width: fit-content;
}

.daily-capture-note p {
  margin-top: 6px;
  color: var(--label2);
}

.overview-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  padding: 0;
}

.overview-metric {
  min-width: 0;
  background: var(--card);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s4) var(--s5);
  display: grid;
  align-content: start;
  gap: 0;
  transition: box-shadow 0.14s var(--ease);
}

.overview-metric:hover {
  box-shadow: 0 0 0 0.5px var(--accent-line), var(--shadow);
}

.overview-metric .metric-value {
  margin: var(--s3) 0 0;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.overview-income .metric-value {
  color: var(--accent);
}

.overview-metric .overview-metric-unavailable {
  font-size: 20px;
  line-height: 30px;
  color: var(--label3);
  letter-spacing: 0;
}

.overview-lifetime {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 20px;
  background: var(--card);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  font-size: 12px;
  color: var(--label2);
}

.overview-lifetime strong {
  color: var(--label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}

/* 按发布日对比与趋势图 */
.comparison-controls {
  flex-wrap: wrap;
}

.comparison-error {
  font-size: 12px;
  color: var(--red);
}

.comparison-error:empty {
  display: none;
}

.daily-comparison-panel {
  margin-top: 0;
}

.daily-comparison-panel .panel-heading {
  padding: 12px 20px;
  border-bottom: 0;
}

.daily-comparison-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.daily-comparison-toolbar .date-controls {
  margin: 0;
}

.daily-comparison-scroll {
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.daily-comparison-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}

.daily-comparison-table th,
.daily-comparison-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.daily-comparison-table th:first-child,
.daily-comparison-table td:first-child {
  padding-left: 24px;
}

.daily-comparison-table th:last-child,
.daily-comparison-table td:last-child {
  padding-right: 24px;
}

.daily-comparison-table thead th {
  height: 40px;
  font-size: 11px;
  padding-block: 0;
  border-top: 0.5px solid var(--sep);
}

.daily-comparison-table th:nth-child(1),
.daily-comparison-table th:nth-child(2),
.daily-comparison-table th:nth-child(3) {
  width: 20%;
}

.daily-comparison-table th:nth-child(4),
.daily-comparison-table th:nth-child(5) {
  width: 15%;
}

.daily-comparison-table th:nth-child(6) {
  width: 10%;
}

.daily-comparison-table .daily-date {
  font-weight: 400;
}

.daily-date strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
}

.daily-date small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--label2);
  font-variant-numeric: tabular-nums;
}

.daily-number strong {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}

.daily-number[data-day-income] strong {
  color: var(--accent);
}

.daily-pending {
  color: var(--label3);
  font-size: 12px;
  font-weight: 400;
}

.daily-comparison-table .daily-today td,
.daily-comparison-table .daily-today th {
  background: var(--fill);
}

.daily-today .daily-date strong {
  color: var(--accent);
}

.daily-comparison-table .text-button:disabled {
  color: var(--label3);
  opacity: 0.45;
  cursor: default;
}

.daily-comparison-table tr.daily-trend-selected td,
.daily-comparison-table tr.daily-trend-selected th {
  background: var(--accent-soft);
}

.daily-comparison-foot {
  gap: 12px;
  flex-wrap: wrap;
}

.daily-trend {
  --trend-videos: #5856d6;
  --trend-bar-top: rgba(10, 108, 255, 0.26);
  --trend-bar-bottom: rgba(88, 86, 214, 0.08);
  --trend-bar-chosen-top: rgba(10, 108, 255, 0.5);
  --trend-bar-chosen-bottom: rgba(88, 86, 214, 0.18);
  --trend-videos-bar: rgba(10, 108, 255, 0.22);
  --trend-videos-bar-hover: rgba(10, 108, 255, 0.1);
  --trend-videos-bar-chosen: rgba(10, 108, 255, 0.34);
  --trend-videos-border: rgba(10, 108, 255, 0.34);
  --trend-videos-chosen-border: rgba(10, 108, 255, 0.78);
  padding: 0 20px 16px;
}

@media (prefers-color-scheme: dark) {
  .daily-trend {
    --trend-videos: #8e8cff;
    --trend-bar-top: rgba(10, 132, 255, 0.36);
    --trend-bar-bottom: rgba(142, 140, 255, 0.12);
    --trend-bar-chosen-top: rgba(10, 132, 255, 0.62);
    --trend-bar-chosen-bottom: rgba(142, 140, 255, 0.22);
    --trend-videos-border: rgba(10, 132, 255, 0.5);
    --trend-videos-chosen-border: rgba(10, 132, 255, 0.88);
  }
}

.daily-trend-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
  padding-top: 14px;
  border-top: 0.5px solid var(--sep);
}

.daily-trend-heading h3 {
  font-size: 13px;
  font-weight: 600;
}

.daily-trend-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 8px;
  color: var(--label2);
  font-size: 12px;
}

.daily-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.daily-trend-legend span::before {
  content: "";
  width: 18px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
}

.daily-trend-legend .trend-legend-videos::before {
  width: 12px;
  height: 11px;
  border: 1px solid var(--trend-videos-border);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--trend-bar-top), var(--trend-bar-bottom));
}

.daily-trend-stage {
  position: relative;
}

.daily-trend-scroll {
  overflow: hidden;
  background: var(--well);
  border: 0.5px solid var(--sep);
  border-radius: 10px;
  padding: 14px 12px 8px;
}

.daily-trend-svg {
  display: block;
  width: 100%;
  height: 228px;
  font-size: 11px;
  color: var(--label2);
  font-variant-numeric: tabular-nums;
  overflow: visible;
}

.daily-trend-svg text {
  fill: var(--label2);
  font-family: inherit;
}

.daily-trend-svg .trend-point-label {
  fill: var(--label);
  font-weight: 600;
}

.daily-trend-svg .trend-video-text {
  fill: var(--trend-videos);
}

.daily-trend-svg .trend-video-text.trend-point-label {
  fill: var(--trend-videos);
  font-weight: 600;
}

.daily-trend-svg .today-date {
  fill: var(--accent);
  font-weight: 600;
}

.trend-grid {
  stroke: var(--sep);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}

.trend-grid.trend-axis-base {
  stroke: var(--sep-strong);
  stroke-dasharray: none;
}

.daily-trend-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-trend-video-bar {
  fill: url(#trend-bar-fill);
  stroke: none;
  transition: fill 0.14s var(--ease), stroke 0.14s var(--ease), opacity 0.14s var(--ease);
}

.daily-trend-video-bar.hovered {
  fill: url(#trend-bar-chosen-fill);
  stroke: var(--trend-videos-border);
  stroke-width: 1;
}

.daily-trend-video-bar.chosen {
  fill: url(#trend-bar-chosen-fill);
  stroke: var(--trend-videos-chosen-border);
  stroke-width: 1.25;
}

.daily-trend-point {
  cursor: pointer;
  outline: none;
}

.trend-col-hit,
.trend-point-hit,
.trend-bar-hit,
.trend-bar-hit-pad {
  fill: transparent;
}

.trend-guide-line {
  stroke: var(--accent-line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s var(--ease);
}

.daily-trend-point:is(:hover, :focus-visible, .chosen) .trend-guide-line {
  opacity: 1;
}

.daily-trend-point:hover .trend-col-hit,
.daily-trend-point:focus-visible .trend-col-hit {
  fill: var(--fill);
}

.trend-point-dot {
  fill: var(--card);
  stroke: var(--accent);
  stroke-width: 2.5;
  transition: fill 0.14s var(--ease), stroke-width 0.14s var(--ease);
}

.daily-trend-point:hover .trend-point-dot,
.daily-trend-point:focus-visible .trend-point-dot {
  stroke-width: 3;
}

.daily-trend-point:hover .trend-point-hit,
.daily-trend-point:focus-visible .trend-point-hit {
  fill: var(--accent-soft);
}

.daily-trend-point.chosen .trend-point-hit {
  fill: var(--accent-soft);
}

.daily-trend-point:hover .trend-bar-hit,
.daily-trend-point:focus-visible .trend-bar-hit {
  fill: var(--trend-videos-bar-hover);
}

.daily-trend-point.chosen .trend-bar-hit {
  fill: transparent;
}

.daily-trend-point.chosen .trend-point-dot {
  fill: var(--accent);
}

.daily-trend-tooltip {
  position: absolute;
  top: 12px;
  z-index: 6;
  pointer-events: none;
  min-width: 136px;
  padding: 8px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--sep-strong);
  box-shadow: var(--shadow), 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--label);
  font-size: 12px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.daily-trend-tooltip[hidden] {
  display: none;
}

.daily-trend-tooltip strong {
  display: block;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 2px;
}

.daily-trend-tooltip span {
  display: block;
  color: var(--label2);
}

#publication-detail {
  margin-top: 0;
}

/* ==========================================================================
   业务表格专项排版：任务、投稿、账号、绑定审核、人员、接取、热门榜
   ========================================================================== */

.task-filterbar {
  flex-wrap: wrap;
}

.task-table th,
.task-table td {
  padding: 12px 10px;
}

.task-table thead th {
  height: 38px;
  padding-block: 0;
}

.task-table th:first-child,
.task-table td:first-child {
  padding-left: 16px;
}

.task-table th:last-child,
.task-table td:last-child {
  padding-right: 16px;
}

.task-table .drama-name {
  min-width: 145px;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.task-table .task-drama-trigger {
  text-align: center;
  white-space: normal;
  line-height: 1.45;
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 600;
}

.task-table .task-drama-trigger:hover {
  color: var(--blue);
}

.task-table .task-accepted-time {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

.task-table .num {
  text-align: center;
}

.task-row-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.inventory-value {
  min-width: 48px;
  min-height: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.inventory-inline {
  width: 136px;
  margin-inline: auto;
  display: grid;
  gap: 8px;
}

.inventory-inline input {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  text-align: center;
  background: var(--ctl);
}

.inventory-inline > div {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.inventory-inline p {
  white-space: normal;
  font-size: var(--text-xs);
  color: var(--ended-ink);
  line-height: 1.5;
  text-align: left;
}

.inventory-inline p:empty,
.inventory-inline [hidden] {
  display: none;
}

.back {
  margin: 0;
}

.task-detail {
  padding: 20px;
  margin-bottom: 0;
}

.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}

.detail-title h2 {
  font-size: var(--text-xl);
}

.detail-title p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 14px;
}

.fields {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  white-space: normal;
}

.fields > div {
  min-width: 0;
}

.fields dt {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.015em;
  margin-bottom: 4px;
}

.fields dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.5;
}

.author-cell {
  min-width: 150px;
  white-space: normal;
}

.author-cell strong {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
  display: block;
  white-space: normal;
  line-height: 1.4;
}

.author-cell small {
  color: var(--muted);
  font-size: var(--text-xs);
  display: block;
  margin-top: 2px;
  letter-spacing: var(--tracking-code);
}

.task-name {
  min-width: 170px;
  max-width: 245px;
  white-space: normal;
}

.task-name button {
  display: inline-block;
  max-width: 235px;
  margin-inline: auto;
  text-align: center;
  line-height: 1.45;
}

.task-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.task-inline {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
}

.period {
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.period small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: var(--text-xs);
}

.row-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  font-size: var(--text-sm);
}

.row-actions button {
  font-size: var(--text-sm);
}

.video-table {
  min-width: 900px;
}

.video-table th,
.video-table td {
  padding: 12px 14px;
}

.video-table thead th {
  height: 38px;
  padding-block: 0;
}

.video-table th:first-child,
.video-table td:first-child {
  padding-left: 18px;
}

.video-table th:last-child,
.video-table td:last-child {
  padding-right: 18px;
}

/* 账号管理 & 发布情况 */
.account-view-tabs {
  justify-self: start;
  width: fit-content;
  margin: 0;
}

#account-publishing,
#account-bindings,
#people-content {
  display: grid;
  align-content: start;
  gap: var(--s4);
  min-width: 0;
}

.account-table {
  min-width: 960px;
}

.account-table th,
.account-table td {
  padding: 12px;
}

.account-table thead th {
  height: 38px;
  padding-block: 0;
}

.account-table th:first-child,
.account-table td:first-child {
  padding-left: 18px;
}

.account-table th:last-child,
.account-table td:last-child {
  padding-right: 18px;
}

.account-table .author-cell {
  min-width: 150px;
}

.account-table .num {
  white-space: nowrap;
}

.account-table .account-owner {
  min-width: 108px;
  max-width: 155px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.account-owner-error {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  color: var(--ended-ink);
  background: var(--ended-bg);
  font-size: var(--text-sm);
}

.system-time-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--muted);
}

.publication-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.publication-controls label,
#account-publishing .filterbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
  white-space: nowrap;
}

.publication-controls > .button:last-child {
  margin-left: auto;
}

#account-publishing .filterbar .search {
  min-width: 220px;
}

#account-publishing input {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px;
}

#account-publishing .filterbar .search input {
  padding: 0 12px 0 32px;
}

#account-publishing .selectWrap,
#account-publishing select {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
}

.publication-updated {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.publication-updated:empty {
  display: none;
}

.publication-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
  margin: 0;
}

.publication-metric {
  appearance: none;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--label);
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
  font: inherit;
  transition: box-shadow 0.14s var(--ease), background-color 0.14s var(--ease);
}

.publication-metric span,
.publication-metric strong,
.publication-metric small {
  display: block;
}

.publication-metric span,
.publication-metric small {
  font-size: 12px;
  color: var(--label2);
}

.publication-metric strong {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 2px;
  font-weight: 600;
}

.publication-metric:not(:disabled):hover {
  background: var(--card);
  box-shadow: 0 0 0 0.5px var(--accent-line), var(--shadow);
}

.publication-metric:not(:disabled):active {
  filter: brightness(0.97);
}

.publication-metric[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--card));
  box-shadow: 0 0 0 1.5px var(--accent), var(--shadow);
}

.publication-metric[aria-pressed="true"] strong {
  color: var(--accent);
}

.publication-metric:disabled {
  cursor: default;
  opacity: 0.65;
  background: var(--well);
}

.publication-metric:disabled strong {
  font-size: 20px;
  color: var(--label3);
}

.publication-search {
  min-width: 240px;
}

.publication-table {
  min-width: 820px;
  width: 100%;
}

.publication-table th,
.publication-table td {
  padding: 12px 14px;
}

.publication-table th:first-child,
.publication-table td:first-child {
  padding-left: 18px;
}

.publication-table th:last-child,
.publication-table td:last-child {
  padding-right: 18px;
}

.publication-table small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.publication-table td {
  font-variant-numeric: tabular-nums;
}

.publication-dialog {
  width: min(1000px, calc(100vw - 40px));
  max-width: 1000px;
  max-height: 85vh;
  overflow: auto;
}

.publication-dialog h2 {
  font-size: var(--text-lg);
  margin: 0;
}

#account-publishing > .help-text {
  font-size: var(--text-xs);
  line-height: 1.65;
  color: var(--muted);
  margin-top: 14px;
}

/* 绑定审核 & 人员管理 */
#account-bindings .filterbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--label2);
  white-space: nowrap;
}

#account-bindings .filterbar .search {
  min-width: 220px;
}

#account-bindings .filterbar .search input {
  width: 100%;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px 0 32px;
}

#account-bindings .filterbar .selectWrap,
#account-bindings .filterbar select {
  min-width: 130px;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
}

#account-bindings .list-summary {
  margin: 0;
}

.review-table {
  min-width: 860px;
}

.review-table th,
.review-table td {
  padding: 14px;
}

.review-table th:first-child,
.review-table td:first-child {
  padding-left: 18px;
}

.review-table th:last-child,
.review-table td:last-child {
  padding-right: 18px;
}

.review-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 340px;
  margin-inline: auto;
}

.review-form input {
  flex-basis: 100%;
  min-width: 180px;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px;
  font-size: var(--text-sm);
}

.review-form .form-error {
  flex-basis: 100%;
}

.review-form button[value="approved"] {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 108, 255, 0.25);
}

.review-form button[value="approved"]:hover:not(:disabled) {
  background: var(--accent-hover);
}

.review-form button[value="rejected"] {
  color: var(--red);
  border: 0.5px solid var(--ctl-border);
  background: var(--ctl);
}

.review-form button[value="rejected"]:hover:not(:disabled) {
  background: var(--red-soft);
  border-color: var(--red);
}

.people-table {
  margin-top: 0;
}

.people-table table {
  min-width: 960px;
}

.people-table th,
.people-table td {
  padding: 12px;
}

.people-table th:first-child,
.people-table td:first-child {
  padding-left: 18px;
}

.people-table th:last-child,
.people-table td:last-child {
  padding-right: 18px;
}

.people-table .filterbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--label2);
  white-space: nowrap;
}

.people-table .filterbar .search {
  min-width: 210px;
}

.people-table .filterbar .search input {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px 0 32px;
  width: 100%;
}

.people-actions {
  display: flex;
  justify-content: center;
  gap: 6px 10px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 320px;
  margin-inline: auto;
}

.people-actions button {
  min-height: 26px;
  font-size: 12px;
  padding: 1px 0;
  margin: 0;
  white-space: nowrap;
}

/* 热门任务榜单 */
.hot-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.hot-notice p {
  margin: 0;
  line-height: 1.6;
}

.hot-notice .badge {
  flex-shrink: 0;
}

.hot-table {
  min-width: 880px;
}

.hot-table th,
.hot-table td {
  padding: 12px 14px;
}

.hot-table th:first-child,
.hot-table td:first-child {
  padding-left: 18px;
}

.hot-table th:last-child,
.hot-table td:last-child {
  padding-right: 18px;
}

.hot-rank {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
}

.hot-leading {
  color: var(--accent);
}

.hot-table .task-name {
  min-width: 210px;
}

.hot-table td.num {
  white-space: nowrap;
}

/* 接取记录（管理员 & 成员端共用基础 + 各自精细控制） */
.claims-notice {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 72ch;
}

.claim-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

.claim-context p {
  line-height: 1.6;
}

.claim-context button {
  flex-shrink: 0;
  min-height: 36px;
}

.claim-button {
  min-height: 36px;
}

body[data-role="admin"] .claims-notice {
  max-width: none;
  margin-bottom: 0;
}

body[data-role="admin"] .claims-panel .panel-heading {
  padding: 16px 20px;
}

body[data-role="admin"] .claims-panel .filterbar {
  padding: 12px 20px;
}

.admin-claims-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.admin-claims-table th,
.admin-claims-table td {
  padding: 13px 12px;
  vertical-align: middle;
  line-height: 1.5;
}

.admin-claims-table thead th {
  height: 38px;
  padding-block: 0;
}

.admin-claims-table th:first-child,
.admin-claims-table td:first-child {
  padding-left: 18px;
}

.admin-claims-table th:last-child,
.admin-claims-table td:last-child {
  padding-right: 18px;
}

.admin-claims-table th,
.admin-claims-table .admin-claim-summary > td {
  text-align: center;
}

.admin-claims-table th:not(:first-child),
.admin-claims-table .admin-claim-summary > td:not(:first-child) {
  white-space: nowrap;
}

.admin-claims-table .claim-record-heading {
  display: block;
  min-width: 0;
}

.admin-claims-table .claim-record-heading h3 {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
}

.admin-claims-table .claim-record-heading p {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-claims-table small {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 3px;
}

.admin-claims-table .claim-time,
.admin-claims-table .claim-id {
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
}

.admin-claims-table .text-button {
  min-height: 30px;
}

.admin-claims-table tr[hidden] {
  display: none;
}

.admin-claims-table .admin-claim-expanded > td {
  padding: 20px 24px;
  text-align: left;
  background: var(--well);
  white-space: normal;
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-claim-details h3 {
  font-size: var(--text-base);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-claim-context,
.admin-claim-empty {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  margin-top: 6px;
}

.admin-claim-details dl {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin: 14px 0;
}

.admin-claim-details dt {
  font-size: var(--text-xs);
  color: var(--muted);
}

.admin-claim-details dd {
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.admin-claim-details .claim-followup,
.claim-followup {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0 0;
}

.admin-claim-details h4 {
  margin: 16px 0 10px;
  font-size: var(--text-sm);
}

.claim-material-status {
  margin: 12px 0;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}

.claim-material-status p {
  margin: 0 0 8px;
  line-height: 1.6;
  font-size: var(--text-sm);
}

.claim-material-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   数据管理、同步配置与执行日志
   ========================================================================== */

.data-source {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 0;
}

.source-icon {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.source-icon svg {
  width: 20px;
  height: 20px;
}

.data-source p {
  font-size: var(--text-sm);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.data-source > .snapshot-label,
.data-source-meta {
  margin-left: auto;
}

.data-source-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.data-source-meta .import-facts {
  padding: 0;
  margin-top: 0;
  border-top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.data-source-meta .import-facts > div {
  padding: 0;
  gap: 8px;
}

.muted {
  color: var(--muted);
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.plain-panel {
  padding: 20px;
}

.plain-panel > p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 10px 0 16px;
  line-height: 1.7;
}

.plain-panel > p.help-text,
.help-text {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.65;
}

.import-facts {
  padding: 14px 0 4px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.import-facts > div {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: 7px 0;
  gap: 12px;
}

.import-facts span {
  color: var(--muted);
}

.import-facts strong {
  font-weight: 600;
}

.definitions {
  margin: 14px 0 0;
}

.definitions dt {
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 600;
  margin-top: 14px;
}

.definitions dd {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.65;
}

.operations-panel {
  margin-top: 0;
}

.operations-note {
  padding: 11px 20px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.6;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line-soft);
}

.operations-feedback {
  padding: 0 20px;
  margin: 10px 0 0;
}

.operations-feedback:empty {
  display: none;
}

.operations-table {
  min-width: 920px;
}

.operations-table th,
.operations-table td {
  padding: 12px 14px;
}

.operations-table th:first-child,
.operations-table td:first-child {
  padding-left: 18px;
}

.operations-table th:last-child,
.operations-table td:last-child {
  padding-right: 18px;
}

.operations-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.operations-table td:nth-child(4) {
  max-width: 430px;
}

.operations-table small,
.claim-record-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.operations-panel input {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px;
}

.operations-panel input[type="search"] {
  width: 240px;
}

.operations-panel .selectWrap,
.operations-panel select {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
}

.operations-panel [hidden] {
  display: none;
}

.xingtu-connection {
  padding: 20px;
  border-bottom: 0.5px solid var(--sep);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.xingtu-heading,
.xingtu-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.xingtu-heading h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.xingtu-connection p {
  margin: 8px 0;
}

.xingtu-help {
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 82ch;
}

.xingtu-progress {
  font-variant-numeric: tabular-nums;
}

.xingtu-connection details {
  margin: 14px 0;
}

.xingtu-connection summary {
  cursor: pointer;
  font-weight: 600;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.xingtu-connection summary::-webkit-details-marker {
  display: none;
}

.xingtu-connection summary::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.6px solid var(--label3);
  border-bottom: 1.6px solid var(--label3);
  transform: rotate(-45deg);
  transition: transform 0.15s var(--ease);
  margin: 0 2px;
  flex: none;
}

.xingtu-connection details[open] > summary::before {
  transform: rotate(45deg);
}

.xingtu-secrets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

.xingtu-connection label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
  min-width: 0;
}

.xingtu-connection input {
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: var(--text-sm);
}

.xingtu-settings-row {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.xingtu-advanced {
  margin-top: 12px;
  padding: 10px 14px;
  border: 0.5px solid var(--sep);
  border-radius: var(--r-ctl);
  background: var(--well);
}

.xingtu-advanced summary {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

.xingtu-form-actions {
  margin-top: 14px;
}

.xingtu-form-actions > .button {
  height: 36px;
  min-height: 36px;
}

.xingtu-settings-row label {
  width: 160px;
}

.xingtu-settings-row .xingtu-unlimited {
  display: flex;
  align-items: center;
  min-height: 36px;
  width: auto;
}

.xingtu-unlimited input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
}

.xingtu-connection .form-error {
  font-size: var(--text-sm);
  min-height: 0;
}

.xingtu-connection .table-scroll {
  margin-top: 14px;
}

.xingtu-connection .operations-table {
  min-width: 760px;
}

.xingtu-logs {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 0.5px solid var(--sep);
}

.xingtu-logs h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.xingtu-log-filters,
.xingtu-log-pager {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.xingtu-log-filters {
  margin-top: 12px;
}

.xingtu-log-filters .selectWrap,
.xingtu-log-filters select {
  max-width: 100%;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
}

.xingtu-log-filters label:first-child {
  flex: 1;
  min-width: 240px;
  max-width: 540px;
}

.xingtu-log-pager {
  align-items: center;
  margin-top: 16px;
  font-size: var(--text-sm);
}

.xingtu-log-pager span {
  flex: 1;
  color: var(--muted);
}

.xingtu-log-table td {
  vertical-align: top;
}

.xingtu-log-table th:first-child {
  width: 170px;
}

.xingtu-log-table th:last-child,
.xingtu-log-table td:last-child {
  text-align: left;
}

.xt-log-batch {
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
  max-width: 200px;
}

.xt-log-detail {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.xt-log-error {
  background: var(--ended-bg);
  color: var(--ended-ink);
  border-color: var(--ended-border);
}

.xt-log-warning {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-border);
}

/* ==========================================================================
   空状态、登录页、弹窗、操作记录与 Toast
   ========================================================================== */

.empty {
  min-height: 180px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: center;
  white-space: normal;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.chart-empty {
  height: 220px;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: var(--subtle);
}

.initial {
  max-width: 600px;
  margin: 22vh auto;
  padding: 32px;
  text-align: center;
}

.initial p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.workspace,
.login-shell {
  animation: xtdr-enter 0.22s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

@keyframes xtdr-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.plain-panel[role="status"],
.empty[role="status"],
.profile-income-loading[role="status"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  color: var(--muted);
}

.plain-panel[role="status"]::before,
.empty[role="status"]::before,
.profile-income-loading[role="status"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-top-color: var(--accent);
  flex: none;
  animation: xtdr-spin 0.75s linear infinite;
}

@keyframes xtdr-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .workspace,
  .login-shell,
  .plain-panel[role="status"]::before,
  .empty[role="status"]::before,
  .profile-income-loading[role="status"]::before {
    animation: none;
  }
}

#toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -10px);
  opacity: 0;
  pointer-events: none;
  background: var(--card);
  color: var(--label);
  border: 1px solid var(--sep-strong);
  padding: 12px 18px;
  border-radius: var(--r-card);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  z-index: 99;
  min-width: 240px;
  max-width: min(440px, 90vw);
  cursor: pointer;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

#toast[data-tone="success"] {
  border-color: rgba(31, 157, 71, 0.48);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 3px var(--green-soft);
}

#toast[data-tone="error"] {
  border-color: rgba(215, 0, 21, 0.55);
  color: var(--red);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--red-soft);
}

#toast[data-tone="info"] {
  border-color: var(--accent-line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 3px var(--accent-soft);
}

#toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* 登录页（桌面双栏展示卡 + 手机自适应卡片） */
.login-shell {
  max-width: none;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 48%),
    var(--canvas);
}

.login-card {
  width: min(860px, 100%);
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--card);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow), 0 24px 64px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.login-showcase {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent-soft) 68%, var(--rail)) 0%, var(--rail) 64%, var(--card) 100%);
  border-right: 0.5px solid var(--sep);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--label);
}

.login-brand .brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.login-brand .v4-tag {
  margin-left: 0;
}

.login-brand .pill {
  margin-left: auto;
}

.login-showcase-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--label);
}

.login-showcase-copy p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--label2);
}

.login-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-features .chip {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}

.login-features li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.login-features strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
}

.login-features span {
  font-size: 12px;
  color: var(--label2);
  line-height: 1.4;
}

.login-mobile-brand {
  display: none;
}

.login-mobile-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.login-mobile-brand > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.login-mobile-brand b {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--label);
}

.login-mobile-brand span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--label2);
}

.login-mobile-brand .pill {
  margin-left: auto;
}

.login-panel {
  width: 100%;
  background: var(--card);
  padding: 36px 34px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

@media (prefers-color-scheme: dark) {
  .login-card {
    box-shadow: var(--shadow), 0 24px 64px rgba(0, 0, 0, 0.45);
  }
  .login-showcase {
    background: linear-gradient(155deg, rgba(10, 132, 255, 0.16) 0%, var(--rail) 64%, var(--card) 100%);
  }
}

.login-panel h1 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.login-tabs button {
  height: 32px;
  min-height: 32px;
}

.login-panel p {
  line-height: 1.55;
  font-size: 12px;
}

.login-panel form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.identity-grid form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.login-panel label,
.identity-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
}

.login-panel input {
  padding: 0 12px;
  height: 38px;
  min-height: 38px;
  width: 100%;
  font-size: 13px;
  color: var(--label);
}

.identity-grid input {
  padding: 0 12px;
  height: 36px;
  min-height: 36px;
  width: 100%;
  font-size: 13px;
  color: var(--label);
}

.identity-grid form > button[type="submit"] {
  height: 36px;
  min-height: 36px;
}

.login-panel button[type="submit"] {
  width: 100%;
  height: 40px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.form-error {
  color: var(--red);
  font-size: 12px;
  min-height: 16px;
  margin: 0;
}

.form-error:empty {
  display: none;
  min-height: 0;
}

.auth-switch {
  margin-top: 12px;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 弹窗 & 身份对话框 */
.identity-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: 86vh;
  overflow: auto;
  padding: 20px 24px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--label);
  box-shadow: var(--shadow-lg);
}

.identity-dialog[open] {
  animation: popIn 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.identity-dialog::backdrop {
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.identity-dialog p {
  line-height: 1.6;
  margin: 10px 0 14px;
  color: var(--label2);
  font-size: 13px;
}

.identity-dialog form {
  display: grid;
  gap: 14px;
}

.identity-dialog label {
  display: grid;
  gap: 6px;
  color: var(--label2);
  font-size: 12px;
  font-weight: 500;
}

.identity-dialog input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--label);
}

.identity-dialog textarea {
  width: 100%;
  min-height: 84px;
  padding: 8px 12px;
  line-height: 1.5;
  color: var(--label);
}

.identity-dialog .selectWrap,
.identity-dialog select {
  width: 100%;
  height: 36px;
  min-height: 36px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.temporary-password {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  user-select: all;
  overflow-wrap: anywhere;
}

.team-history {
  margin: 16px 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.team-history li {
  line-height: 1.6;
  font-size: var(--text-sm);
}

.team-history p {
  margin: 4px 0 0;
}

/* 操作记录弹窗列表 */
.audit-dialog {
  width: min(640px, calc(100vw - 36px));
}

.audit-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.audit-dialog-head span {
  font-size: var(--text-xs);
}

.audit-list {
  max-height: 58vh;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audit-item {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.audit-item:last-child {
  border-bottom: 0;
}

.audit-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-actor {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.audit-time {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.audit-item-meta {
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.audit-reason {
  margin: 6px 0 0 !important;
  font-size: var(--text-sm) !important;
  color: var(--ink-2) !important;
  line-height: 1.6 !important;
}

.audit-pager-info {
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: auto;
}

/* 素材弹窗 */
.materials-dialog {
  max-width: 480px;
  max-height: 85vh;
  overflow: auto;
  font-size: var(--text-sm);
}

.materials-dialog h2 {
  font-size: var(--text-lg);
}

.materials-dialog h3 {
  font-size: var(--text-base);
  margin-top: 20px;
}

.materials-heading {
  position: sticky;
  top: -20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

.materials-heading h2 {
  margin: 0;
}

.materials-dialog .materials-heading [data-close] {
  margin: 0;
  flex-shrink: 0;
}

.material-hint {
  padding: 11px 14px;
  background: var(--surface-tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--ink-2) !important;
}

.material-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.material-balances > div {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.material-balances strong,
.material-balances small {
  display: block;
}

.material-balances strong {
  font-size: 18px;
  margin-top: 4px;
  color: var(--ink);
}

.material-record {
  scroll-margin-top: 68px;
  overflow-wrap: anywhere;
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.material-form-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
}

.material-form-row label {
  min-width: 0;
}

.material-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

.material-confirm input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 3px 0 0;
}

.materials-dialog details {
  margin: 16px 0;
  line-height: 1.7;
  font-size: var(--text-xs);
  color: var(--muted);
}

.materials-dialog [data-close] {
  margin-top: 12px;
}

/* ==========================================================================
   管理员身份 / 团队视图专属排版
   ========================================================================== */

.profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 16px;
}

.profile-summary > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-summary p {
  margin-top: 4px;
  color: var(--muted);
}

.profile-logout {
  flex-shrink: 0;
}

.invitation-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
  align-items: flex-start;
}

.invitation-summary > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invitation-summary h3 {
  font-size: var(--text-sm);
  color: var(--muted);
}

.invitation-summary p {
  margin-top: 4px;
}

.invitation-summary h3 + p + h3 {
  margin-top: 12px;
}

.invitation-summary small.muted {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

.invitation-code {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  margin: 6px 0 4px;
  color: var(--accent);
}

.identity-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--s4);
  align-items: stretch;
}

.identity-grid table {
  min-width: 550px;
}

.password-panel {
  margin-top: 0;
}

.password-panel form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px 16px;
  align-items: end;
  margin-top: 16px;
}

.password-panel label {
  display: grid;
  gap: 6px;
  color: var(--label2);
  font-size: 12px;
  font-weight: 500;
}

.password-panel input {
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
}

.password-panel form > button.primary {
  height: 36px;
  min-height: 36px;
}

.password-panel .form-error {
  grid-column: 1 / -1;
}

.team-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
}

.team-intro p {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 6px;
  font-size: var(--text-sm);
}

.team-invite {
  flex-shrink: 0;
  text-align: right;
  color: var(--muted);
  font-size: var(--text-sm);
}

.team-invite strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.team-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.team-toolbar .segmented button {
  height: 28px;
  min-height: 28px;
  font-size: 12px;
}

.team-filter-shell {
  container-type: inline-size;
}

.team-filters {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(130px, 180px) 210px 300px auto;
  align-items: end;
  justify-content: start;
  gap: 14px 12px;
  padding: 14px 20px;
  background: var(--well);
  border-bottom: 0.5px solid var(--sep);
}

.team-filters label,
.team-date-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.team-filters input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px;
  font-size: var(--text-sm);
}

.team-filters .selectWrap,
.team-filters select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  font-size: var(--text-sm);
}

.team-search-input {
  position: relative;
  display: block;
  min-width: 0;
}

.team-search-input svg {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 14px;
  height: 14px;
  color: var(--subtle);
  pointer-events: none;
}

.team-search-input input {
  padding-left: 32px;
}

.team-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: center;
  height: var(--h-ctl);
  border: 0.5px solid var(--ctl-border);
  border-radius: var(--r-ctl);
  background: var(--ctl);
  box-shadow: var(--shadow-ctl);
  transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.team-date-range:hover {
  border-color: var(--ctl-border-hover);
}

.team-date-range > span {
  text-align: center;
  font-size: var(--text-xs);
}

.team-date-range input {
  height: calc(var(--h-ctl) - 2px);
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0 8px;
  min-width: 0;
  box-shadow: none !important;
}

.team-date-range input:hover,
.team-date-range input:focus {
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.team-date-range:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.team-filter-reset {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  min-width: 68px;
  padding: 0 14px;
}

.team-filter-error {
  grid-column: 1 / -1;
}

.team-filter-error:empty {
  display: none;
}

.team-filters-members {
  grid-template-columns: minmax(220px, 340px) auto;
}

.team-filters-owner {
  grid-template-columns: minmax(200px, 1fr) minmax(130px, 160px) minmax(130px, 160px) 200px 280px auto;
}

.team-filters-members.team-filters-owner {
  grid-template-columns: minmax(220px, 340px) minmax(140px, 200px) auto;
}

.team-results {
  gap: 8px 24px;
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.team-videos {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-videos > li {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.team-videos > li:last-child {
  border-bottom: 0;
}

.team-record-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.team-record-heading h3 {
  font-size: var(--text-base);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.team-record-heading .badge {
  flex-shrink: 0;
}

.team-record-heading p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.team-video-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 16px 0 0;
}

.team-video-metrics dt,
.team-details dt {
  font-size: var(--text-xs);
  color: var(--muted);
}

.team-video-metrics dd,
.team-details dd {
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.team-record-link {
  margin-top: 12px;
  font-size: var(--text-sm);
}

.team-details summary {
  min-height: 40px;
  display: list-item;
  padding: 8px 0;
  color: var(--blue);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
}

.team-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.team-member-table {
  width: 100%;
  min-width: 900px;
  table-layout: auto;
}

.team-member-table th,
.team-member-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.team-member-table th:first-child,
.team-member-table td:first-child {
  padding-left: 18px;
}

.team-member-table th:last-child,
.team-member-table td:last-child {
  padding-right: 18px;
}

.team-member-table .member-identity {
  min-width: 180px;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.member-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.member-name-line > strong {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
}

.team-member-table .member-owner {
  min-width: 160px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.member-owner strong {
  font-weight: 500;
  color: var(--ink);
}

.member-owner small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.team-member-table .member-code,
.team-member-table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.team-member-table .member-open {
  width: 112px;
}

.member-cell-label {
  display: none;
}

.team-pagination {
  gap: 14px;
  flex-wrap: wrap;
}

.team-source {
  margin-top: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.7;
}

.team-empty {
  min-height: 200px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@container (max-width: 1100px) {
  .team-filters-posts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .team-filters-posts .team-search,
  .team-filters-posts .team-date-field,
  .team-filters-owner .team-owner-field {
    grid-column: span 2;
  }
  .team-filters-posts .team-filter-reset {
    justify-self: start;
  }
}

@container (max-width: 650px) {
  .team-filters,
  .team-filters-members.team-filters-owner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    gap: 12px 10px;
  }
  .team-filters .team-search,
  .team-filters .team-date-field,
  .team-filters .team-owner-field {
    grid-column: 1 / -1;
  }
  .team-filters .team-filter-reset {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* ==========================================================================
   管理员响应式断点（独立于达人/团长端）
   ========================================================================== */

@media (max-width: 1500px) {
  .daily-comparison-table th:not(:first-child):not(:last-child),
  .daily-comparison-table td:not(:first-child):not(:last-child) {
    padding-inline: 16px;
  }
}

@media (max-width: 1220px) {
  .sidebar {
    width: 196px;
    padding-inline: 10px;
  }
  .workspace {
    margin-left: 196px;
  }
  main {
    padding: 20px 24px 48px;
  }
  .totals > div {
    padding: 14px 16px;
  }
  .fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .password-panel form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .revenue-group-columns,
  .revenue-day > summary {
    gap: 12px;
    padding: 12px 16px;
    grid-template-columns: minmax(100px, 1fr) minmax(70px, 0.7fr) minmax(110px, 1fr) 80px;
  }
  .revenue-groups-team .revenue-group-columns,
  .revenue-groups-team .revenue-day > summary {
    grid-template-columns: minmax(100px, 1fr) minmax(60px, 0.7fr) minmax(110px, 1fr) minmax(60px, 0.7fr) 80px;
  }
}

@media (max-width: 1000px) {
  .publication-metric {
    padding: var(--s4);
  }
  .publication-metric strong {
    font-size: 22px;
  }
  .publication-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .xingtu-secrets {
    grid-template-columns: 1fr;
  }
  .xingtu-settings-row label {
    flex: 1 1 140px;
  }
}

@media (max-width: 980px) {
  body[data-role="admin"] .sidebar {
    width: 72px;
    padding: 16px 10px;
  }
  body[data-role="admin"] .brand {
    justify-content: center;
    padding: 0;
    margin: 0 0 18px;
  }
  body[data-role="admin"] .brand > :not(.brand-logo),
  body[data-role="admin"] .nav-group-toggle,
  body[data-role="admin"] .nav-item > span,
  body[data-role="admin"] .sidebar-foot {
    display: none;
  }
  body[data-role="admin"] .nav-sub,
  body[data-role="admin"] .nav-sub[hidden] {
    display: grid;
    padding-left: 0;
  }
  body[data-role="admin"] .nav-sub::before {
    display: none;
  }
  body[data-role="admin"] .nav-item {
    justify-content: center;
    padding: 0;
  }
  body[data-role="admin"] .workspace {
    margin-left: 72px;
  }
  .totals {
    grid-template-columns: 1fr 1fr;
  }
  .overview-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main {
    padding: 18px 16px 48px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .detail-title {
    flex-direction: column;
    gap: 12px;
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .password-panel form {
    grid-template-columns: 1fr;
  }
  .data-source {
    flex-wrap: wrap;
    padding: 18px 16px;
  }
  .data-source-meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .plain-panel {
    padding: 18px 16px;
  }
  .overview-metric-grid {
    grid-template-columns: 1fr;
  }
  .overview-metric {
    padding: var(--s4);
  }
  .overview-metric .metric-value {
    font-size: 22px;
    line-height: 26px;
  }
  .overview-metric .overview-metric-unavailable {
    font-size: 18px;
  }
  .overview-lifetime {
    padding: 12px 16px;
  }
  .daily-comparison-panel .panel-heading {
    padding: 12px 16px;
  }
  .daily-comparison-toolbar {
    padding: 12px 16px;
  }
  .daily-trend {
    padding-inline: 16px;
  }
}

/* ==========================================================================
   达人 & 团长角色（桌面端 + 移动端完整适配）
   ========================================================================== */

body:is([data-role="creator"], [data-role="leader"]) :is(#content, #team-surface, #earnings-surface) {
  min-width: 0;
}

.hot-mobile-list,
.binding-date-label {
  display: none;
}

/* 成员端桌面侧边栏与主布局 */
@media (min-width: 801px) {
  body:is([data-role="creator"], [data-role="leader"]) {
    --member-sidebar: 220px;
  }
  body:is([data-role="creator"], [data-role="leader"]) #app {
    width: 100%;
    min-height: 100svh;
    background: var(--canvas);
  }
  body:is([data-role="creator"], [data-role="leader"]) .sidebar {
    width: var(--member-sidebar);
    height: 100dvh;
  }
  body:is([data-role="creator"], [data-role="leader"]) .workspace {
    margin-left: var(--member-sidebar);
  }
  body:is([data-role="creator"], [data-role="leader"]) main {
    max-width: 1360px;
    padding: 24px 32px 64px;
  }
  body:is([data-role="creator"], [data-role="leader"])[data-view="hot"] .page-heading {
    display: none;
  }
  .member-discover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    column-gap: 28px;
  }
  .member-catalog-heading {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 16px;
  }
  .member-catalog-heading h2 {
    font-size: var(--text-2xl);
  }
  .member-searchbar {
    grid-column: 2;
    grid-row: 1;
  }
  .member-discover > :not(.member-catalog-heading):not(.member-searchbar) {
    grid-column: 1 / -1;
  }
  .member-task-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 22px 18px;
  }
  .task-tile-name {
    font-size: 14px;
    margin-top: 10px;
  }
  .task-tile-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .task-poster-category {
    font-size: 11px;
    padding: 4px 8px;
    bottom: 10px;
    left: 10px;
  }
  .task-tile-share {
    font-size: 11px;
  }
  .member-categories {
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    margin: 0 0 10px;
  }
  .member-list-controls {
    padding: 8px 0 16px;
    font-size: var(--text-sm);
  }
  .member-binding-hint {
    padding: 4px 16px;
    margin-bottom: 18px;
    font-size: var(--text-sm);
  }
  .member-catalog-note {
    max-width: 75ch;
  }
}

@media (min-width: 801px) and (max-width: 1220px) {
  body:is([data-role="creator"], [data-role="leader"]) {
    --member-sidebar: 196px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .sidebar {
    padding-inline: 10px;
  }
  body:is([data-role="creator"], [data-role="leader"]) main {
    padding: 20px 24px 48px;
  }
  .member-discover {
    display: block;
  }
  .member-catalog-heading {
    margin-bottom: 14px;
  }
  .member-searchbar {
    max-width: 460px;
    margin-bottom: 14px;
  }
  .member-task-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 18px 14px;
  }
}

/* 成员端：热门任务网格 */
.member-discover {
  min-width: 0;
}

.member-catalog-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.member-catalog-heading h2 {
  font-size: 22px;
  font-weight: 700;
}

.member-catalog-heading > .button {
  margin-left: auto;
}

.member-searchbar .search {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.member-searchbar .search input {
  height: 36px;
  min-height: 36px;
  font-size: 14px;
}

.member-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 12px -2px 0;
  padding: 2px;
}

.member-categories::-webkit-scrollbar {
  display: none;
}

.member-categories button {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.1s var(--ease);
}

.member-categories button:hover {
  background: var(--fill);
}

.member-categories button:active {
  transform: scale(0.97);
}

.member-categories button.selected {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.member-list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0 12px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.member-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-list-controls .selectWrap,
.member-list-controls select {
  max-width: 230px;
  border: 0;
  background-color: transparent;
  box-shadow: none;
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  font-size: var(--text-sm);
  color: var(--label);
}

.member-list-controls .selectWrap:hover,
.member-list-controls select:hover {
  background-color: var(--fill);
}

.member-binding-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 0.5px solid var(--accent-line);
  color: var(--accent);
  padding: 4px 12px 4px 14px;
  margin-bottom: 14px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.member-binding-hint button {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  margin-right: -4px;
  border-radius: 8px;
  min-height: 34px;
  white-space: nowrap;
  font-size: var(--text-sm);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.1s var(--ease);
}

.member-binding-hint button:hover {
  background: var(--fill);
}

.member-binding-hint button:active {
  background: var(--fill-2);
  transform: translateY(0.5px);
}

.member-binding-hint svg {
  width: 16px;
  height: 16px;
}

.member-task-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
  align-items: start;
}

.member-task-grid > .empty {
  grid-column: 1 / -1;
}

.member-task-card {
  min-width: 0;
}

.task-tile {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: left;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.18s var(--ease), opacity 0.16s var(--ease);
}

.task-tile:hover {
  transform: translateY(-2px);
}

.task-tile:active {
  opacity: 0.85;
  transform: translateY(0);
}

.task-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--fill) 0%, var(--fill-2) 100%);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.task-poster-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  color: var(--muted);
}

.task-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s var(--ease);
}

.task-tile:hover .task-poster img {
  transform: scale(1.03);
}

.task-poster-category {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--label);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.task-tile-name {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 9px;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
}

.task-tile-number {
  flex-shrink: 0;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.task-tile-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-tile-share {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  border: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

.member-catalog-note {
  margin: 20px 0 12px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.8;
}

.member-catalog-note summary {
  min-height: 40px;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 500;
}

.member-catalog-note p + p {
  margin-top: 6px;
}

/* ==========================================================================
   全屏任务详情页（桌面端双栏 / 移动端全屏沉浸式）
   ========================================================================== */

body.task-detail-open {
  overflow: hidden;
}

body.task-detail-open #app {
  visibility: hidden;
}

#hot-task-detail.member-task-detail {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  z-index: 200;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  outline: none;
  padding: 0 0 calc(100px + env(safe-area-inset-bottom));
  scroll-padding-top: 72px;
}

.accept-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 10px 18px;
  margin-bottom: -60px;
  color: #fff;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.accept-nav > span {
  opacity: 0;
  font-size: 15px;
  font-weight: 600;
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accept-nav .accept-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  color: inherit;
  padding: 0;
  transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.1s var(--ease);
}

.accept-nav .accept-icon:hover {
  background: rgba(0, 0, 0, 0.65);
}

.accept-nav .accept-icon:active {
  transform: scale(0.95);
}

.accept-nav .accept-bookmark[aria-pressed="true"] svg {
  fill: var(--orange-dot);
  color: var(--orange-dot);
}

.is-scrolled .accept-nav .accept-bookmark[aria-pressed="true"] svg {
  fill: var(--accent);
  color: var(--accent);
}

.is-scrolled .accept-nav {
  background: color-mix(in srgb, var(--card) 96%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--label);
  border-bottom: 0.5px solid var(--sep);
}

.is-scrolled .accept-nav > span {
  opacity: 1;
}

.is-scrolled .accept-nav .accept-icon {
  background: var(--fill);
  border-color: transparent;
}

.is-scrolled .accept-nav .accept-icon:hover {
  background: var(--fill-2);
}

.accept-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: #1c1c1e;
  color: #fff;
  overflow: hidden;
}

.accept-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  z-index: -3;
}

.accept-cover-missing {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-sm);
  z-index: -1;
}

.accept-cover-missing[hidden] {
  display: none;
}

.accept-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.92) 92%);
  z-index: -2;
}

.accept-hero-content {
  width: 100%;
  padding: 168px 22px 24px;
}

.accept-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#hot-task-detail .accept-title h1 {
  margin: 0;
  min-width: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.accept-subtitle {
  margin: 10px 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-base);
}

.accept-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.accept-tags span {
  padding: 4px 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
}

.accept-dates {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-xs);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.accept-sections {
  display: grid;
  gap: 12px;
  padding: 12px 0 0;
}

.accept-panel {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 20px;
  border: 0;
  box-shadow: var(--shadow);
}

#hot-task-detail .accept-panel h2 {
  font-size: 16px;
  color: var(--label);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 16px;
}

.accept-share-head {
  display: flex;
  justify-content: space-between;
  color: var(--label2);
  font-size: var(--text-sm);
  margin-bottom: 12px;
}

.accept-share {
  display: grid;
  gap: 14px;
  margin: 0;
}

.accept-share > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.accept-share dt {
  font-size: 14px;
  font-weight: 600;
}

.accept-share dd {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-align: right;
  color: var(--accent);
}

.accept-info dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.accept-info dl > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.accept-info dt {
  color: var(--label2);
  font-size: var(--text-sm);
}

.accept-info dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}

.accept-note {
  font-size: var(--text-xs);
  color: var(--label2);
  line-height: 1.8;
  margin: 4px 20px 16px;
}

#hot-task-detail .accept-footer {
  position: fixed;
  z-index: 6;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 96%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 0.5px solid var(--sep-strong);
}

#hot-task-detail .task-detail-action {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#hot-task-detail .task-detail-action button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  white-space: normal;
  line-height: 1.35;
}

.accept-footer .accept-claim {
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 108, 255, 0.25);
  transition: background-color 0.14s var(--ease), transform 0.1s var(--ease), filter 0.14s var(--ease);
}

.accept-footer .accept-claim:hover:not(:disabled) {
  background: var(--accent-hover);
}

.accept-footer .accept-claim:active:not(:disabled) {
  filter: brightness(0.94);
  transform: translateY(1px);
  box-shadow: none;
}

.accept-footer .accept-claim:disabled {
  background: var(--fill-2);
  color: var(--label3);
  box-shadow: none;
  cursor: default;
}

.accept-material {
  border: 0.5px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  transition: background-color 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.1s var(--ease);
}

.accept-material:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.accept-material:active:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(1px);
}

.accept-material:disabled {
  color: var(--label3);
  background: var(--well);
  border-color: var(--sep);
}

.accept-feedback {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  max-width: min(88vw, 420px);
  background: var(--card);
  color: var(--label);
  border: 0.5px solid var(--sep-strong);
  border-radius: var(--r-card);
  font-size: var(--text-sm);
  text-align: center;
  line-height: 1.55;
  padding: 10px 16px;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.accept-feedback:empty {
  display: none;
}

@media (min-width: 801px) {
  #hot-task-detail.member-task-detail {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 700px);
    justify-content: center;
    align-content: start;
    gap: 24px;
    width: 100%;
    max-width: none;
    padding: 88px 32px 124px;
    scroll-padding-top: 88px;
    background: var(--canvas);
  }
  #hot-task-detail .accept-nav {
    position: fixed;
    inset: 0 0 auto;
    height: 60px;
    margin: 0;
    padding: 10px max(32px, calc((100vw - 1084px) / 2));
    background: color-mix(in srgb, var(--card) 96%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--label);
    border-bottom: 0.5px solid var(--sep);
  }
  #hot-task-detail .accept-nav > span {
    opacity: 1;
  }
  #hot-task-detail .accept-nav .accept-icon {
    background: var(--fill);
    border-color: transparent;
  }
  #hot-task-detail .accept-bookmark[aria-pressed="true"] svg {
    fill: var(--orange);
    color: var(--orange);
  }
  #hot-task-detail .accept-hero {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 480px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }
  #hot-task-detail .accept-hero-content {
    padding: 270px 24px 28px;
  }
  #hot-task-detail .accept-sections {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    gap: 16px;
    min-width: 0;
  }
  #hot-task-detail .accept-panel {
    padding: 24px 28px;
  }
  #hot-task-detail .accept-footer {
    display: block;
    max-width: none;
    left: 0;
    right: 0;
    transform: none;
    padding: 14px max(32px, calc((100vw - 1084px) / 2));
  }
  #hot-task-detail .task-detail-action {
    max-width: 700px;
    margin-left: auto;
  }
}

/* ==========================================================================
   成员端 & 团长端：我的任务、我的收益、团队管理、个人中心
   ========================================================================== */

body:is([data-role="creator"], [data-role="leader"]) .member-claims-scroll-note {
  margin: 0;
  padding: 9px 20px;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line-soft);
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  max-width: 100%;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table {
  display: table;
  table-layout: fixed;
  min-width: 720px;
  width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table th,
body:is([data-role="creator"], [data-role="leader"]) .member-claims-table td {
  display: table-cell;
  vertical-align: middle;
  padding: 13px 14px;
  font-size: var(--text-sm);
  line-height: 1.55;
  letter-spacing: var(--tracking-body);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  text-align: center;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table th:first-child,
body:is([data-role="creator"], [data-role="leader"]) .member-claims-table td:first-child {
  padding-left: 18px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table th:last-child,
body:is([data-role="creator"], [data-role="leader"]) .member-claims-table td:last-child {
  padding-right: 18px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table th {
  height: 38px;
  padding-block: 0;
  font-size: var(--text-th);
  font-weight: 600;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .claim-record-heading {
  display: block;
  min-width: 0;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .claim-record-heading h3 {
  font-size: var(--text-md);
  line-height: 1.5;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  color: var(--ink);
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .claim-record-heading p,
body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .claim-scope {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  margin: 4px 0 0;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .claim-nickname {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .text-button {
  min-width: 44px;
  min-height: 32px;
  font-size: var(--text-sm);
  text-align: center;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table tr[hidden] {
  display: none;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .member-claim-expanded > td {
  padding: 18px 20px;
  text-align: left;
  white-space: normal;
  background: var(--well);
  box-shadow: inset 3px 0 0 var(--accent);
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-details {
  max-width: min(100%, 760px);
  white-space: normal;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-details h3 {
  font-size: var(--text-base);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-details dl {
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-details dt {
  font-size: var(--text-xs);
  color: var(--muted);
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-details dd {
  font-size: var(--text-sm);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-details h4 {
  font-size: var(--text-sm);
  margin: 16px 0 10px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-claim-empty {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 10px;
}

/* 团长端团队列表（保留横向可滑列，修复文字高度拥挤） */
body[data-role="leader"] #team-surface .team-list-panel {
  min-width: 0;
}

body[data-role="leader"] #team-surface .team-toolbar {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 0.5px solid var(--sep);
  gap: 12px;
  justify-content: space-between;
}

body[data-role="leader"] #team-surface .team-toolbar .segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--fill-2);
  border: 0.5px solid var(--sep);
  gap: 0;
}

body[data-role="leader"] #team-surface .team-toolbar .segmented button {
  height: 28px;
  min-height: 28px;
  padding: 0 var(--s3);
  border-radius: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

body[data-role="leader"] #team-surface .team-toolbar .segmented button:hover:not(.selected) {
  background: transparent;
  color: var(--label);
}

body[data-role="leader"] #team-surface .team-toolbar .segmented button.selected {
  background: var(--card);
  color: var(--label);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  body[data-role="leader"] #team-surface .team-toolbar .segmented button.selected {
    background: rgba(10, 132, 255, 0.24);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(10, 132, 255, 0.55);
  }
}

body[data-role="leader"] #team-surface .team-compact-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  align-items: center;
  background: var(--well);
  border-bottom: 0.5px solid var(--sep);
}

body[data-role="leader"] #team-surface .team-compact-filters label {
  flex: 0 0 auto;
  min-width: 0;
}

body[data-role="leader"] #team-surface .team-compact-filters input {
  height: var(--h-ctl);
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  font-size: 13px;
}

body[data-role="leader"] #team-surface .team-compact-filters input[type="search"] {
  width: 240px;
}

body[data-role="leader"] #team-surface .team-compact-filters .selectWrap,
body[data-role="leader"] #team-surface .team-compact-filters select {
  width: 144px;
  height: var(--h-ctl);
  min-width: 0;
  max-width: 100%;
}

body[data-role="leader"] #team-surface .team-compact-filters .team-compact-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--label2);
}

body[data-role="leader"] #team-surface .team-compact-filters input[type="date"] {
  width: 144px;
}

body[data-role="leader"] #team-surface .team-ledger-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

body[data-role="leader"] #team-surface .team-ledger-table {
  display: table;
  table-layout: auto;
  min-width: 880px;
  width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
}

body[data-role="leader"] #team-surface .team-ledger-table th,
body[data-role="leader"] #team-surface .team-ledger-table td {
  padding: 12px 14px;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  border-bottom: 0.5px solid var(--sep);
  text-align: center;
}

body[data-role="leader"] #team-surface .team-ledger-table th:first-child,
body[data-role="leader"] #team-surface .team-ledger-table td:first-child {
  padding-left: 18px;
}

body[data-role="leader"] #team-surface .team-ledger-table th:last-child,
body[data-role="leader"] #team-surface .team-ledger-table td:last-child {
  padding-right: 18px;
}

body[data-role="leader"] #team-surface .team-ledger-table th {
  height: 38px;
  padding-block: 0;
  font-size: 11px;
  font-weight: 500;
}

body[data-role="leader"] #team-surface .team-ledger-table .num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

body[data-role="leader"] #team-surface .team-ledger-table .team-post-title {
  min-width: 170px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-role="leader"] #team-surface .team-ledger-table .team-post-title > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--label);
  font-weight: 600;
}

body[data-role="leader"] #team-surface .team-ledger-table tr[hidden] {
  display: none;
}

body[data-role="leader"] #team-surface .team-expanded-record > td {
  white-space: normal;
  padding: 18px 20px;
  text-align: left;
  background: var(--well);
  box-shadow: inset 3px 0 0 var(--accent);
}

body[data-role="leader"] #team-surface .team-expanded-record .team-details {
  max-width: min(100%, 760px);
}

body[data-role="leader"] #team-surface .team-expanded-record h3 {
  font-size: var(--text-sm);
  margin-bottom: 8px;
}

body[data-role="leader"] #team-surface .team-scroll-note {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* 成员端收益概览与按日折叠明细 */
body:is([data-role="creator"], [data-role="leader"]) .member-income-overview {
  margin-bottom: 0;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-periods-heading {
  padding: 18px 24px 4px;
  justify-content: flex-start;
  gap: 10px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-overview h2 {
  font-size: var(--text-lg);
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-scope {
  font-size: var(--text-xs);
  color: var(--muted);
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-periods-heading button {
  margin-left: auto;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-metric-grid {
  padding: 18px 0 20px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-metric {
  padding-inline: 22px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-lifetime {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 14px 24px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-total > strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: var(--text-sm);
}

body:is([data-role="creator"], [data-role="leader"]) .member-income-counts strong {
  font-size: var(--text-sm);
  margin-left: 5px;
}

.earnings-back {
  margin: 0;
  justify-self: start;
}

.earnings-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: end;
  padding: 14px 20px;
  background: var(--well);
  border-top: 0;
  border-bottom: 0.5px solid var(--sep);
}

.earnings-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--label2);
}

.earnings-search {
  flex: 1 1 240px;
  max-width: 380px;
  min-width: 0 !important;
}

.earnings-filters input {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  padding: 0 12px;
  max-width: 100%;
  font-size: 13px;
}

.earnings-filters .selectWrap,
.earnings-filters select {
  height: var(--h-ctl);
  min-height: var(--h-ctl);
  max-width: 100%;
  font-size: 13px;
}

.member-more-filters {
  flex: 1 1 520px;
  width: auto;
  min-width: 0;
}

.member-more-filters > summary {
  font-size: var(--text-xs);
  color: var(--label2);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.member-more-filters > summary::-webkit-details-marker {
  display: none;
}

.member-more-filters > summary::before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.6px solid var(--label3);
  border-bottom: 1.6px solid var(--label3);
  transform: rotate(-45deg);
  transition: transform 0.15s var(--ease);
  margin: 0 2px;
  flex: none;
}

.member-more-filters[open] > summary::before {
  transform: rotate(45deg);
}

.member-more-fields {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(135px, 1fr) minmax(170px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}

.earnings-filter-error {
  flex-basis: 100%;
}

.earnings-filter-error:empty {
  display: none;
}

.earnings-table {
  min-width: 760px;
  width: 100%;
}

.earnings-table th,
.earnings-table td {
  padding: 12px 16px;
}

.earnings-table th:first-child,
.earnings-table td:first-child {
  padding-left: 20px;
}

.earnings-table th:last-child,
.earnings-table td:last-child {
  padding-right: 20px;
}

.earnings-task {
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.earnings-task strong,
.earnings-task small {
  display: block;
}

.earnings-task strong {
  color: var(--ink);
  font-weight: 600;
}

.earnings-task small {
  margin-top: 4px;
  color: var(--muted);
}

.earnings-cell-label {
  display: none;
}

.commission-daily {
  margin-bottom: 0;
}

.commission-daily table th,
.commission-daily table td {
  padding: 13px 16px;
}

.commission-daily table th:first-child,
.commission-daily table td:first-child {
  padding-left: 22px;
}

.commission-daily table th:last-child,
.commission-daily table td:last-child {
  padding-right: 22px;
}

.commission-daily-scroll {
  max-height: 420px;
  overflow: auto;
}

.revenue-group-columns,
.revenue-day > summary {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(100px, 1fr) minmax(150px, 1.2fr) 108px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
}

.revenue-groups-team .revenue-group-columns,
.revenue-groups-team .revenue-day > summary {
  grid-template-columns: minmax(130px, 1.2fr) minmax(90px, 0.8fr) minmax(150px, 1.2fr) minmax(90px, 0.8fr) 108px;
}

.revenue-group-columns {
  background: var(--well);
  color: var(--label2);
  font-size: 11px;
  font-weight: 500;
  padding: 10px 20px;
  min-height: 38px;
}

.revenue-day {
  border-top: 1px solid var(--line-soft);
}

.revenue-day > summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
  min-height: 56px;
  transition: background-color 0.15s var(--ease);
}

.revenue-day > summary::-webkit-details-marker {
  display: none;
}

.revenue-day > summary:hover {
  background: var(--hover-row);
}

.revenue-day[open] > summary {
  background: var(--blue-soft);
}

.revenue-group-columns > span,
.revenue-day > summary > span {
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.revenue-day-date {
  font-weight: 600;
  color: var(--ink);
}

.revenue-day-toggle {
  color: var(--accent);
  font-weight: 500;
}

.revenue-close-label,
.revenue-cell-label {
  display: none;
}

.revenue-day[open] .revenue-open-label {
  display: none;
}

.revenue-day[open] .revenue-close-label {
  display: inline;
}

.revenue-day-records {
  border-top: 1px solid var(--line);
  max-height: 540px;
  overflow: auto;
  background: var(--paper);
}

/* 个人中心（桌面与卡片弹窗） */
.profile-home {
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
}

.profile-person {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 2px 6px;
}

.profile-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  border: 2px solid var(--card);
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 600;
}

.profile-person-text {
  min-width: 0;
  flex: 1;
}

.profile-name {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-name h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.profile-name > span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.profile-phone,
.profile-registered {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.profile-code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  font-size: var(--text-xs);
  color: var(--ink-2);
  margin-top: 2px;
}

.profile-code button {
  min-height: 28px;
  padding: 2px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--accent);
  font-weight: 500;
  font-size: var(--text-xs);
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease);
}

.profile-code button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-code button:active {
  background: var(--fill-2);
  transform: translateY(0.5px);
}

.profile-copy-status {
  display: block;
  font-size: var(--text-xs);
  color: var(--green);
  min-height: 16px;
}

.profile-copy-status:empty {
  display: none;
}

.profile-income {
  border-radius: var(--radius);
  overflow: visible;
  background: transparent;
  min-width: 0;
}

.profile-income .member-income-overview {
  margin-bottom: 0;
}

.profile-income-loading,
.profile-income-error {
  padding: 20px;
  font-size: var(--text-sm);
  color: var(--label2);
  background: var(--card);
  border: 0;
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.profile-income-error button {
  margin-top: 10px;
}

.profile-settings {
  border-radius: var(--r-card);
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-setting-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  background: var(--card);
  color: var(--label);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.14s var(--ease);
}

.profile-setting-button + .profile-setting-button {
  border-top: 0.5px solid var(--sep);
}

.profile-setting-button .chip {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.profile-setting-button .chip svg {
  width: 15px;
  height: 15px;
}

.profile-setting-button > small {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--label2);
  margin-left: auto;
}

.profile-setting-button:after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--label3);
  border-bottom: 1.5px solid var(--label3);
  transform: rotate(-45deg);
  margin-left: auto;
  flex: none;
}

.profile-setting-button:has(small):after {
  margin-left: 4px;
}

.profile-setting-button:hover {
  background: var(--fill);
}

.profile-setting-button:active {
  background: var(--fill-2);
}

.profile-exit {
  width: 100%;
  background: var(--card);
  border: 0;
  box-shadow: var(--shadow);
  min-height: 44px;
  border-radius: var(--r-card);
  color: var(--label2);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.14s var(--ease), color 0.14s var(--ease), transform 0.1s var(--ease);
}

.profile-exit:hover {
  background: var(--red-soft);
  color: var(--red);
}

.profile-exit:active {
  background: var(--red-soft);
  transform: translateY(1px);
}

body:has(.profile-modal[open]) {
  overflow: hidden;
}

.profile-modal {
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: min(88dvh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--label);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.profile-modal[open] {
  display: flex;
  flex-direction: column;
  animation: popIn 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.profile-modal::backdrop {
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  padding: 12px 14px 12px 20px;
  border-bottom: 0.5px solid var(--sep);
}

.profile-modal-header h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  outline: none;
}

.profile-modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--r-ctl);
  color: var(--label2);
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}

.profile-modal-close:hover {
  background: var(--fill);
  color: var(--label);
}

.profile-modal-close:active {
  background: var(--fill-2);
  transform: scale(0.95);
}

.profile-modal-body {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

.profile-modal .plain-panel,
.profile-modal .table-panel {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.profile-modal .identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.profile-modal .plain-panel > h3 {
  font-size: var(--text-base);
  margin: 0 0 8px;
}

.profile-modal .plain-panel > p,
.profile-modal .panel-heading p {
  font-size: var(--text-xs);
  line-height: 1.7;
  margin: 0 0 16px;
}

.profile-modal .panel-heading {
  padding: 0 0 12px;
}

.profile-modal form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
}

.profile-modal form > .button {
  width: 100%;
  min-height: 44px;
}

.profile-modal .invitation-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.binding-records .account-entry-time {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  margin-top: 4px;
}

@media (min-width: 801px) {
  .profile-home {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px 28px;
    align-items: start;
  }
  .profile-person {
    grid-column: 1;
    grid-row: 1;
    padding: 4px 0;
  }
  .profile-income {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
  }
  .profile-settings {
    grid-column: 1;
    grid-row: 2;
  }
  body:is([data-role="creator"], [data-role="leader"]) .profile-exit {
    grid-column: 1;
    grid-row: 3;
  }
  .profile-home > .password-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
  .profile-home:has(> .password-panel) .profile-settings {
    grid-row: 3;
  }
  .profile-home:has(> .password-panel) .profile-exit {
    grid-row: 4;
  }
  #profile-account-dialog {
    max-width: 900px;
  }
  #profile-account-dialog .identity-grid {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
  }
  #profile-account-dialog table {
    min-width: 420px;
  }
}

@media (min-width: 801px) and (max-width: 1220px) {
  .profile-home {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-person,
  .profile-income,
  .profile-settings,
  body:is([data-role="creator"], [data-role="leader"]) .profile-exit {
    grid-column: 1;
    grid-row: auto;
  }
  .profile-settings,
  body:is([data-role="creator"], [data-role="leader"]) .profile-exit {
    max-width: 560px;
  }
}

@media (min-width: 1400px) {
  body:is([data-role="creator"], [data-role="leader"]) :is(#team-surface, #earnings-surface) .member-income-overview .overview-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ==========================================================================
   管理端移动端专属适配（<= 768px）
   ========================================================================== */

@media (max-width: 768px) {
  body[data-role="admin"] .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 100%;
    height: auto;
    padding: 8px 12px 10px;
    background: color-mix(in srgb, var(--rail) 96%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-right: 0;
    border-bottom: 0.5px solid var(--sep-strong);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    z-index: 15;
  }
  body[data-role="admin"] .sidebar .brand {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    height: 28px;
  }
  body[data-role="admin"] .sidebar .brand > b {
    display: inline;
  }
  body[data-role="admin"] .sidebar .brand .v4-tag {
    display: inline-flex;
    margin-left: 0;
  }
  body[data-role="admin"] .sidebar .sidebar-foot {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 28px;
    gap: 6px;
    min-width: 0;
  }
  body[data-role="admin"] .sidebar .sidebar-foot .logout-button {
    margin-left: 0;
  }
  body[data-role="admin"] .sidebar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 2px 0 0;
    scrollbar-width: none;
  }
  body[data-role="admin"] .sidebar nav::-webkit-scrollbar {
    display: none;
  }
  body[data-role="admin"] .nav-group-toggle {
    display: none;
  }
  body[data-role="admin"] .nav-section,
  body[data-role="admin"] .nav-sub,
  body[data-role="admin"] .nav-sub[hidden] {
    display: contents !important;
  }
  body[data-role="admin"] .nav-item {
    display: inline-flex;
    flex: none;
    height: 32px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 999px;
    font-size: 12px;
  }
  body[data-role="admin"] .nav-item > span {
    display: inline;
  }
  body[data-role="admin"] .nav-item > .nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
  }
  body[data-role="admin"] .workspace {
    margin-left: 0;
  }
  body[data-role="admin"] main {
    padding: 14px 12px 48px;
    gap: 12px;
  }
  body[data-role="admin"] .page-heading h1 {
    font-size: 20px;
  }
  body[data-role="admin"] .account-view-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body[data-role="admin"] .publication-controls {
    gap: 8px;
  }
  body[data-role="admin"] .publication-controls .pub-date-field {
    flex: 1 1 180px;
  }
  body[data-role="admin"] .publication-controls > .button:last-child {
    margin-left: 0;
  }
  body[data-role="admin"] .overview-metric-grid,
  body[data-role="admin"] .publication-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body[data-role="admin"] .overview-metric,
  body[data-role="admin"] .publication-metric {
    padding: 12px 14px;
  }
  body[data-role="admin"] .overview-metric .metric-value,
  body[data-role="admin"] .publication-metric strong {
    font-size: 20px;
  }
  body[data-role="admin"] .overview-metric .metric-label,
  body[data-role="admin"] .publication-metric span {
    font-size: 12px;
  }
  body[data-role="admin"] .overview-metric .chip,
  body[data-role="admin"] .publication-metric .chip {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }
  body[data-role="admin"] .overview-metric .chip svg,
  body[data-role="admin"] .publication-metric .chip svg {
    width: 12px;
    height: 12px;
  }
  body[data-role="admin"] .filterbar {
    padding: 12px 14px;
    gap: 8px;
  }
  body[data-role="admin"] .search {
    min-width: 100%;
    max-width: none;
  }
  body[data-role="admin"] input:not([type="checkbox"]):not([type="radio"]) {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }
  body[data-role="admin"] .selectWrap,
  body[data-role="admin"] select {
    height: 40px;
    min-height: 40px;
    font-size: 15px;
  }
  body[data-role="admin"] .daily-comparison-toolbar {
    padding: 12px 14px;
    gap: 10px;
  }
  body[data-role="admin"] .date-controls {
    flex: 1 1 100%;
  }
  body[data-role="admin"] .date-controls input[type="date"] {
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
  }
  body[data-role="admin"] .daily-trend {
    padding: 0 12px 12px;
  }
  body[data-role="admin"] .daily-trend-scroll {
    padding: 10px 8px 6px;
  }
  body[data-role="admin"] .panel-heading,
  body[data-role="admin"] .table-foot {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  body[data-role="admin"] thead th {
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }
  body[data-role="admin"] tbody td,
  body[data-role="admin"] tbody th {
    padding: 10px;
    font-size: 13px;
  }
  body[data-role="admin"] thead th:first-child,
  body[data-role="admin"] tbody td:first-child,
  body[data-role="admin"] tbody th:first-child {
    padding-left: 14px;
  }
  body[data-role="admin"] thead th:last-child,
  body[data-role="admin"] tbody td:last-child,
  body[data-role="admin"] tbody th:last-child {
    padding-right: 14px;
  }
  body[data-role="admin"] .daily-comparison-table {
    min-width: 640px;
  }
  .identity-grid,
  body[data-role="admin"] .xingtu-secrets,
  body[data-role="admin"] .data-grid,
  body[data-role="admin"] .password-panel form {
    grid-template-columns: 1fr;
  }
  body[data-role="admin"] .team-filters {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .identity-dialog,
  .publication-dialog {
    width: calc(100vw - 24px);
    padding: 18px 16px;
  }
}

/* ==========================================================================
   登录页移动端 / 窄平板专属适配（<= 839px，单栏手机体验）
   ========================================================================== */

@media (max-width: 839px) {
  body[data-role="guest"] .login-shell {
    min-height: 100svh;
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  body[data-role="guest"] .login-card {
    width: min(420px, 100%);
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
    box-shadow: var(--shadow), 0 12px 32px rgba(0, 0, 0, 0.06);
  }
  body[data-role="guest"] .login-showcase {
    display: none;
  }
  body[data-role="guest"] .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--sep);
  }
  body[data-role="guest"] .login-panel {
    padding: 24px 20px;
    gap: 14px;
  }
  body[data-role="guest"] .login-panel input {
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    border-radius: 10px;
  }
  body[data-role="guest"] .login-panel button[type="submit"] {
    height: 46px;
    min-height: 46px;
    font-size: 15px;
    border-radius: 10px;
  }
  body[data-role="guest"] .login-tabs button {
    height: 36px;
    min-height: 36px;
    font-size: 13px;
  }
}

/* ==========================================================================
   移动端专属适配（<= 800px，保留桌面所有数据、功能与权限契约）
   ========================================================================== */

@media (max-width: 800px) {
  /* 成员端底部导航壳 */
  body:is([data-role="creator"], [data-role="leader"]) .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    min-height: 62px;
    padding: 5px max(12px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--card) 96%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 0.5px solid var(--sep-strong);
    border-right: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    display: block;
    z-index: 12;
  }
  body:is([data-role="creator"], [data-role="leader"]) .sidebar .brand,
  body:is([data-role="creator"], [data-role="leader"]) .sidebar-foot {
    display: none;
  }
  body[data-role="creator"] .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 0;
    overflow: visible;
  }
  body[data-role="leader"] .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 0;
    overflow: visible;
  }
  body:is([data-role="creator"], [data-role="leader"]) .nav-item {
    min-height: 50px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 10px;
    color: var(--label2);
    background: transparent;
  }
  body:is([data-role="creator"], [data-role="leader"]) .nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: none;
  }
  body:is([data-role="creator"], [data-role="leader"]) .nav-item.active svg {
    color: var(--accent);
  }
  body:is([data-role="creator"], [data-role="leader"]) .nav-item > span {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }
  body:is([data-role="creator"], [data-role="leader"]) .nav-item svg {
    width: 20px;
    height: 20px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .workspace {
    margin: 0;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  body:is([data-role="creator"], [data-role="leader"]) main {
    padding: 16px max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    min-height: calc(100svh - 80px);
  }
  body:is([data-role="creator"], [data-role="leader"]) h1 {
    font-size: 20px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .page-heading {
    margin-bottom: 0;
  }
  body:is([data-role="creator"], [data-role="leader"]) #toast {
    top: max(14px, env(safe-area-inset-top));
    bottom: auto;
    max-width: calc(100vw - 28px);
  }
  body:is([data-role="creator"], [data-role="leader"])[data-view="hot"] .page-heading {
    display: none;
  }
  body:is([data-role="creator"], [data-role="leader"])[data-view="hot"] main {
    padding-top: 12px;
  }
  body:is([data-role="creator"], [data-role="leader"])[data-view="profile"] #app {
    background: var(--canvas);
  }
  body:is([data-role="creator"], [data-role="leader"]) #hot-task-detail .accept-sections {
    padding: 12px;
    gap: 12px;
  }

  /* 成员端移动端筛选、列表与收益卡片 */
  body:is([data-role="creator"], [data-role="leader"]) .panel-heading {
    padding: 14px 16px;
    gap: 10px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .filterbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px 16px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .search input,
  body:is([data-role="creator"], [data-role="leader"]) .profile-modal form input,
  body:is([data-role="creator"], [data-role="leader"]) .identity-grid input,
  body:is([data-role="creator"], [data-role="leader"]) .earnings-filters input {
    height: 40px;
    min-height: 40px;
    font-size: 16px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .selectWrap,
  body:is([data-role="creator"], [data-role="leader"]) select {
    height: 40px;
    min-height: 40px;
    font-size: 15px;
    width: 100%;
  }
  body:is([data-role="creator"], [data-role="leader"]) .selectWrap > select {
    height: 100%;
    min-height: 0;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-list-controls .selectWrap,
  body:is([data-role="creator"], [data-role="leader"]) .member-list-controls select {
    width: auto;
    height: 34px;
    min-height: 34px;
    font-size: 13px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .submission-sort {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  body:is([data-role="creator"], [data-role="leader"]) .table-foot {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 成员端收益概览卡片自适应 */
  body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-periods-heading {
    padding: 12px 14px 4px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-metric-grid {
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-metric {
    padding: 12px 14px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .metric-label {
    font-size: 12px;
    min-height: 0;
    align-items: center;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .metric-value {
    font-size: 20px;
    line-height: 24px;
    margin: 8px 0 0;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-overview .overview-lifetime {
    display: block;
    padding: 12px 14px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-total {
    justify-content: space-between;
    margin-bottom: 8px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-income-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 12px;
  }

  /* 成员端我的任务表格与详情 */
  body:is([data-role="creator"], [data-role="leader"]) .member-claims-scroll-note {
    padding: 8px 14px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-claims-table :is(th, td) {
    padding: 11px 10px;
    font-size: 13px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-claims-table .text-button {
    min-height: 38px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-claim-details {
    position: sticky;
    left: 12px;
    width: calc(100vw - 60px);
    max-width: 440px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-claim-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* 成员端收益筛选与折叠列表 */
  body:is([data-role="creator"], [data-role="leader"]) .earnings-filters {
    padding: 10px 14px 12px;
    gap: 8px 10px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .earnings-search {
    flex: 1 1 100%;
    max-width: none;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-more-filters {
    flex: 1 1 100%;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-more-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-more-fields > .earnings-order {
    grid-column: 1 / -1;
    padding-right: 60px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .member-more-fields > .earnings-reset {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
  }
  .revenue-group-columns {
    display: none;
  }
  .revenue-day > summary,
  .revenue-groups-team .revenue-day > summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px 14px;
    min-height: 0;
  }
  .revenue-day-date {
    grid-column: 1 / -1;
  }
  .revenue-cell-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
  }
  .revenue-day > summary > span {
    text-align: left;
  }
  .revenue-day > summary .revenue-day-toggle {
    text-align: right;
    align-self: end;
  }
  .earnings-scroll {
    overflow: visible;
  }
  .earnings-table {
    display: block;
    min-width: 0;
  }
  .earnings-table thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .earnings-table tbody {
    display: block;
  }
  .earnings-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px;
    border-top: 1px solid var(--line-soft);
  }
  .earnings-table td {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .earnings-table .earnings-task {
    grid-column: 1 / -1;
  }
  .earnings-cell-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
  }

  /* 团长端移动端保持横向列表 */
  body[data-role="leader"] #team-surface .team-toolbar {
    padding: 6px 12px;
  }
  body[data-role="leader"] #team-surface .team-compact-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 12px;
    gap: 8px;
  }
  body[data-role="leader"] #team-surface .team-compact-filters .selectWrap,
  body[data-role="leader"] #team-surface .team-compact-filters select,
  body[data-role="leader"] #team-surface .team-compact-filters input {
    height: 36px;
    min-height: 36px;
    font-size: 14px;
    flex: none;
  }
  body[data-role="leader"] #team-surface .team-compact-filters .selectWrap,
  body[data-role="leader"] #team-surface .team-compact-filters select {
    width: auto;
  }
  body[data-role="leader"] #team-surface .team-compact-filters input[type="search"] {
    width: 185px;
  }
  body[data-role="leader"] #team-surface .team-ledger-table th,
  body[data-role="leader"] #team-surface .team-ledger-table td {
    padding: 10px;
    font-size: 13px;
  }
  body[data-role="leader"] #team-surface .team-expanded-record .team-details {
    position: sticky;
    left: 12px;
    width: calc(100vw - 60px);
    max-width: 440px;
  }
  body[data-role="leader"] #team-surface .team-expanded-record dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* 个人中心移动端绑定记录卡片化 */
  body:is([data-role="creator"], [data-role="leader"]) .binding-records {
    overflow: visible;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records table {
    display: block;
    min-width: 0;
    white-space: normal;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records thead {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records tbody {
    display: block;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 0;
    gap: 8px 10px;
    border-top: 1px solid var(--line-soft);
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records td {
    padding: 0;
    border: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records .binding-date {
    grid-column: 1 / -1;
    font-size: var(--text-xs);
    color: var(--muted);
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-date-label {
    display: inline;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-date button {
    display: block;
    margin-top: 6px;
  }
  body:is([data-role="creator"], [data-role="leader"]) .binding-records td[colspan] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .materials-dialog {
    width: calc(100% - 24px);
    padding: 18px;
  }
  .materials-heading {
    top: -18px;
  }
}

@media (max-width: 420px) {
  body[data-role="admin"] .sidebar .brand .v4-tag {
    display: none;
  }
}

@media (max-width: 380px) {
  body[data-role="guest"] .login-panel {
    padding: 20px 16px;
  }
}

@media (max-width: 360px) {
  .member-task-grid {
    gap: 14px 8px;
  }
  .accept-hero-content {
    padding-inline: 16px;
  }
  .accept-panel {
    padding-inline: 16px;
  }
}

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

/* 投稿身份信息与状态列：表格单元格保持正常布局，标签整体居中。 */
.video-table .video-status-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.video-table .video-status-stack .badge{display:inline-flex;margin:0;width:max-content;max-width:100%;white-space:nowrap}
.video-table .video-leader{min-width:110px;white-space:nowrap}
.video-table .video-author-name{cursor:help}
.video-table .video-author-name:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:3px}

.account-management-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* Four personal publication metrics; team overview retains its own layout. */
body:is([data-role="creator"], [data-role="leader"]) .member-personal-overview .overview-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cross-task package import: review task ownership before saving. */
.material-import-dialog { width: min(1160px, calc(100vw - 32px)); }
.material-import-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.material-import-heading h2 { margin:0; font-size:20px; }
.material-import-table { margin:16px 0; max-height:50vh; overflow:auto; border:1px solid var(--sep-strong); border-radius:8px; }
.material-import-table table { min-width:850px; width:100%; table-layout:fixed; }
.material-import-table th:first-child { width:56px; }
.material-import-table th:nth-child(2) { width:25%; }
.material-import-table th:nth-child(3) { width:16%; }
.material-import-table th:nth-child(4) { width:32%; }
.material-import-table td, .material-import-table th { padding:12px; text-align:left; overflow-wrap:anywhere; }
.material-import-table th { position:sticky; top:0; z-index:1; background:var(--card); }
.material-import-table td { vertical-align:top; white-space:normal; }
.material-import-table label + label { margin-top:6px; }
.material-import-table small { display:block; margin-top:6px; color:var(--label2); }
.material-import-table input[type="checkbox"] { width:18px; height:18px; accent-color:var(--blue); }
.material-import-url { word-break:break-all; }
.material-import-footer { border-top:1px solid var(--sep-strong); padding-top:12px; }
.material-import-footer .dialog-actions { justify-content:flex-end; flex-wrap:wrap; }

/* Xingtu extension pairing follows existing connection controls. */
.xingtu-extension { padding:16px 0; }
.xingtu-extension h4 { font-size:15px; margin:0 0 8px; }
.xingtu-extension-steps { padding-left:22px; line-height:1.8; color:var(--label2); }
.xingtu-extension [data-xt-pair-result] { max-width:720px; margin-top:12px; }
.xingtu-extension textarea { width:100%; overflow-wrap:anywhere; resize:vertical; }
.xingtu-manual { margin:12px 0; }

.task-qrcode { padding: 24px 26px; margin-top: 20px; }
.accept-panel.task-qrcode { margin-top: 0; padding: 22px; }
.task-qrcode h2 { font-size: 16px; margin: 0 0 16px; }
.task-qrcode-content { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.task-qrcode-image { display: block; width: 220px; height: 220px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.task-qrcode-upload { position: relative; cursor: pointer; overflow: hidden; }
.task-qrcode-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.task-qrcode-upload:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.task-qrcode .muted { font-size: 13px; line-height: 1.7; }
.task-qrcode-status { color: var(--ink); font-size: 13px; }
@media(max-width:600px){ .task-qrcode { padding: 18px 16px; } .task-qrcode-content { flex-direction: column; align-items: flex-start; gap: 14px; } .task-qrcode-image { width: min(220px,100%); height: auto; aspect-ratio: 1; } }
