/* Commercial UI layer ? Xingtu / Ocean Engine grade */

:root {
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

/* ?? Header ?? */
.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
}
.topbar-inner { min-height: 64px; }
.brand {
  gap: 0.65rem;
  font-size: 1.1rem;
}
.brand-mark {
  display: grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f6bff, #7c5cff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin: 1rem 0 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
}
.footer-contact a:hover {
  color: #fff;
}
.footer-qr {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footer-qr img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}
.footer-qr span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}
.nav {
  gap: 0.35rem;
  align-items: center;
}
.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.nav a.active {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.topbar-actions .nav-action,
.nav .nav-action {
  margin-left: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.topbar-actions .nav-action:hover,
.nav .nav-action:hover {
  background: var(--accent-deep);
  color: #fff !important;
}
.topbar-actions .nav-action-secondary {
  background: #fff !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}
.topbar-actions .nav-action-secondary:hover {
  background: var(--accent-soft) !important;
  color: var(--accent-deep) !important;
  border-color: var(--accent-deep);
}

/* ?? Page shell ?? */
.page-shell {
  padding: 2rem 0 4rem;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.86) 0%, rgba(247, 248, 251, 0.94) 100%),
    url('../assets/ui/page-bg.png') center top / cover no-repeat,
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(47, 107, 255, 0.08), transparent 50%),
    #f7f8fb;
}
.page-shell .page-title {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}
.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.page-toolbar .meta {
  color: var(--text-3);
  font-size: 0.92rem;
}
.team-page-toolbar {
  align-items: center;
}
.team-toolbar-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.75rem;
  margin-left: auto;
}
.team-toolbar-mentor {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.86rem;
}
.team-toolbar-mentor .mentor-name-link {
  font-weight: 650;
  color: var(--accent, #2f6bff);
  text-decoration: none;
}
.team-toolbar-mentor .mentor-name-link:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .team-page-toolbar {
    align-items: stretch;
  }
  .team-toolbar-aside {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}
/* ?????? Tab / ?????????????? page head? */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 1rem;
}
.list-toolbar .sort-tabs {
  margin: 0;
  flex: 1 1 auto;
}
.list-toolbar .cta-row {
  margin: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.list-toolbar > .muted {
  margin: 0;
  flex: 1 1 auto;
}
.dash-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
}
.dash-subnav a {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.dash-subnav a:hover {
  color: var(--accent-deep);
}
.dash-subnav a.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.sort-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.sort-tabs button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--text-3);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}
.sort-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ?? Discovery layout ?? */
.discover {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.15rem;
}
.filter-panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
}
.filter-panel-head h3 {
  margin: 0;
}
@media (min-width: 901px) {
  .filter-panel-head h3 {
    margin: 0 0 1rem;
  }
}
.filter-collapse-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  flex: 0 0 auto;
}
.filter-panel-body {
  min-width: 0;
}

@media (max-width: 900px) {
  .page-shell > .container {
    width: calc(100% - 1.25rem);
    max-width: 100%;
  }
  .discover {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }
  .filter-panel {
    position: static;
    padding: 0.95rem 1rem;
  }
  .filter-panel-head {
    margin-bottom: 0;
  }
  .filter-panel-head h3 {
    margin: 0;
  }
  .filter-collapse-btn {
    display: inline-flex;
    align-items: center;
  }
  .filter-panel:not(.is-open) .filter-panel-body {
    display: none;
  }
  .filter-panel.is-open .filter-panel-head h3 {
    margin: 0 0 1rem;
  }
  .page-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
  }
  .page-toolbar .page-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }
  .page-toolbar .sort-tabs {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-toolbar .sort-tabs::-webkit-scrollbar {
    display: none;
  }
  .page-toolbar .sort-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .creator-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .creator-card .creator-foot,
  .creator-foot {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .page-shell .page-title {
    font-size: 1.45rem;
  }
  .creator-actions {
    width: 100%;
  }
  .creator-actions .btn {
    flex: 1 1 auto;
  }
}
.filter-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.filter-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.filter-block label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.search-box:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.search-box svg { flex: 0 0 auto; opacity: 0.45; }
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 0.92rem;
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: rgba(47, 107, 255, 0.35); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip.platform-xhs.active { background: #ff2442; border-color: #ff2442; }
.chip.platform-douyin.active { background: #161823; border-color: #161823; }
.chip.platform-channels.active { background: #07c160; border-color: #07c160; }
.chip.platform-youtube.active { background: #ff0033; border-color: #ff0033; }
.chip.platform-tiktok.active { background: #111; border-color: #111; }

/* ?? Creator cards (enhance base styles.css) ?? */
.creator-card {
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}
.creator-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 107, 255, 0.18);
}
.creator-cover {
  height: 92px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(247, 248, 251, 0.35)),
    url('../assets/ui/page-banner.png') center / cover no-repeat;
}
.creator-cover-lg {
  height: 140px;
}
.back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.back:hover {
  border-color: rgba(47, 107, 255, 0.35);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.creator-stats.cols-6 {
  grid-template-columns: repeat(6, 1fr);
}
.creator-stats.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.creator-stats.cols-4,
.surface-card .creator-stats {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .surface-card .creator-stats { grid-template-columns: repeat(2, 1fr); }
}
.account-pill b {
  font-weight: 600;
  color: var(--text);
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: 999px;
  min-height: 34px;
}
.btn.btn-ghost,
.btn.btn-primary,
.btn.btn-accent {
  border-radius: 999px;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 160px;
  height: 40px;
  line-height: 40px;
  padding: 0 2.2rem 0 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    right 1rem center / 12px no-repeat;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  box-sizing: border-box;
}
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.task-select {
  position: relative;
  flex: 0 1 auto;
  min-width: 200px;
  max-width: min(360px, 100%);
}
.task-select-trigger {
  width: 100%;
  max-width: 360px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 2.4rem;
}
.task-select.is-open .task-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.task-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: min(360px, 86vw);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  box-sizing: border-box;
}
.task-select-search {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 0 0.75rem;
  font: inherit;
  color: var(--text);
  background: #f8fafc;
  box-sizing: border-box;
  margin-bottom: 0.45rem;
}
.task-select-search:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.task-select-options {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 2px;
}
.task-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.task-select-option:hover {
  background: rgba(47, 107, 255, 0.06);
}
.task-select-option.is-active {
  background: rgba(47, 107, 255, 0.1);
  color: var(--accent-deep);
  font-weight: 600;
}
.task-select-option-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-select-option .muted {
  flex-shrink: 0;
  font-size: 0.82rem;
}
@media (max-width: 720px) {
  .task-select,
  .task-select-trigger {
    max-width: none;
    width: 100%;
  }
  .task-select-panel {
    width: 100%;
  }
}
.head .filter-select { align-self: center; }
/* ???????????????????? */
.field .filter-select,
.modal-body .filter-select,
.modal-card .filter-select {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  line-height: 1.45;
  padding: 0.7rem 2.4rem 0.7rem 0.85rem;
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
}
.lead-list {
  display: grid;
  gap: 0.65rem;
}
.lead-row {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.lead-row-main {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
}
.lead-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.lead-main { flex: 1; min-width: 0; }
.lead-main h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}
.lead-main .muted { margin: 0.35rem 0 0; }
.lead-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 5.5rem;
  padding-top: 0.15rem;
  gap: 0.15rem;
}
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
.lead-actions .btn { border-radius: 999px; }
.item.lead-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: auto;
  box-sizing: border-box;
}
/* ??????????????????????????? */
body:has(.dash) .modal-mask,
html:has(.dash) .modal-mask {
  left: 240px;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
}
@media (max-width: 900px) {
  body:has(.dash) .modal-mask,
  html:has(.dash) .modal-mask {
    left: 0;
  }
}
.modal-mask > .modal-card {
  margin: auto;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  left: 0;
  right: 0;
}

/* ???????????? */
.pay-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0.75rem 0 0.25rem;
  box-sizing: border-box;
}
.pay-qr-box .pay-qr-img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  object-fit: contain;
}
.pay-qr-box .pay-qr-tip {
  margin: 0.85rem 0 0;
  text-align: center;
  width: 100%;
}
.pay-qr-box .pay-qr-status {
  margin: 0.5rem 0 0;
  color: var(--accent-deep);
  font-weight: 600;
  text-align: center;
  width: 100%;
}
.pay-qr-actions {
  justify-content: center !important;
}
.buy-cap-modal .pkg-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}
.buy-cap-modal .pkg-meta strong {
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.buy-cap-modal .pkg-card {
  min-height: 148px;
  align-items: flex-start;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: #1e293b;
  background-image:
    linear-gradient(155deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.42)),
    var(--pkg-bg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  color: #fff;
}
.buy-cap-modal .pkg-card.pkg-tier-basic {
  --pkg-bg: url('/assets/pkg/tier-basic.svg');
}
.buy-cap-modal .pkg-card.pkg-tier-standard {
  --pkg-bg: url('/assets/pkg/tier-standard.svg');
}
.buy-cap-modal .pkg-card.pkg-tier-pro {
  --pkg-bg: url('/assets/pkg/tier-pro.svg');
}
.buy-cap-modal .pkg-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background-image:
    linear-gradient(155deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.32)),
    var(--pkg-bg);
  transform: translateY(-1px);
}
.buy-cap-modal .pkg-card:has(input:checked) {
  border-color: #fff;
  box-shadow:
    0 0 0 2px rgba(47, 107, 255, 0.55),
    0 14px 28px rgba(15, 23, 42, 0.2);
  background-image:
    linear-gradient(155deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.28)),
    var(--pkg-bg);
}
.buy-cap-modal .pkg-card::before {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
  margin-top: 0.15rem;
}
.buy-cap-modal .pkg-card:has(input[type='radio']:checked)::before {
  background: radial-gradient(circle at center, #fff 0 35%, #2f6bff 36%);
  border-color: #fff;
}
.buy-cap-modal .pkg-card .opt-card-title {
  color: #fff;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}
.buy-cap-modal .pkg-card .opt-level {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.buy-cap-modal .pkg-card .pkg-desc {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}
.buy-cap-modal .opt-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .buy-cap-modal .opt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.modal-mask[hidden] {
  display: none !important;
}
.modal-card {
  width: min(520px, 100%);
  max-height: min(92vh, 780px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.4rem 1.45rem;
  isolation: isolate;
}
.modal-card.modal-xl {
  width: min(920px, 96vw);
  max-height: min(92vh, 920px);
  background: #fff;
}
.create .grid-2,
.create .grid-3,
.modal-card .grid-2,
.modal-card .grid-3 {
  gap: 0.75rem 1rem;
}
.modal-card.modal-lg {
  width: min(760px, 100%);
  max-height: min(92vh, 900px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.finance-refund-modal.modal-card:has(.modal-body) {
  width: min(720px, 100%);
  max-height: min(92vh, 880px);
  height: auto;
}
.finance-refund-modal .refund-block-box .data-table {
  font-size: 0.82rem;
}
.finance-refund-modal .refund-block-box .table-wrap {
  max-height: none;
}
.finance-refund-modal .modal-body {
  max-height: none;
}
.finance-refund-modal .modal-foot.finance-modal-actions {
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.6rem 1.25rem;
}
.finance-refund-modal .modal-foot.finance-modal-actions .btn {
  min-width: 104px;
  margin: 0;
}
.modal-card.modal-xl.audit-modal-wide {
  width: min(1180px, 96vw);
  max-width: 96vw;
}
.merge-review-table .reject-reason {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #909399;
  line-height: 1.35;
  word-break: break-word;
}
.modal-close-x {
  width: 36px;
  height: 36px;
  padding: 0 !important;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 10px;
  color: #64748b;
}
.modal-close-x:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.modal-card .create {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.modal-card .field {
  margin-bottom: 0.85rem;
}
.modal-card textarea {
  min-height: 120px;
}
.field-label-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.views-ladders {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.views-ladder-row {
  align-items: end;
}
.views-ladder-ops .btn {
  width: 100%;
}
.views-ladder-ops .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.link-action {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-action:hover {
  color: var(--accent);
}

/* ??????? / ?? / ?????? */
.option-panel {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 48%);
}
.node-field-picker .node-field-head,
.node-field-picker .node-field-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1.2fr) 4.2rem minmax(8rem, 1.8fr);
  gap: 0.45rem 0.65rem;
  align-items: center;
}
.node-field-picker .node-field-head {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
}
.node-field-picker .node-field-row {
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.node-field-picker .node-field-type,
.node-field-picker .node-field-req {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.86rem;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}
.node-field-picker .node-field-ph {
  width: 100%;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  font-size: 0.82rem;
}
.node-field-picker .node-field-ph:disabled {
  opacity: 0.55;
  background: #f8fafc;
}
.opt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.opt-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.opt-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt-chip:hover {
  border-color: rgba(47, 107, 255, 0.35);
  transform: translateY(-1px);
}
.opt-chip:has(input:checked) {
  color: #fff;
  border-color: transparent;
  background: var(--accent, #2f6bff);
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.18);
}
.opt-chip:has(input:checked) span {
  color: inherit;
}
.opt-chip-xhs:has(input:checked) { background: linear-gradient(135deg, #ff2442, #ff6b81); }
.opt-chip-dy:has(input:checked) { background: linear-gradient(135deg, #111827, #374151); }
.opt-chip-ch:has(input:checked) { background: linear-gradient(135deg, #07c160, #34d399); }
.opt-chip-yt:has(input:checked) { background: linear-gradient(135deg, #ff0033, #ff6b6b); }
.opt-chip-tt:has(input:checked) {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  color: #0f172a;
}
.opt-chip-ks:has(input:checked) { background: linear-gradient(135deg, #ff4906, #ff8a00); }
.opt-chip-bi:has(input:checked) { background: linear-gradient(135deg, #fb7299, #00a1d6); }
.opt-chip-xy:has(input:checked) { background: linear-gradient(135deg, #ffe60f, #ffb800); color: #0f172a; }
.opt-chip-def:has(input:checked) { background: var(--accent, #2f6bff); }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.opt-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.opt-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.opt-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt-card::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 5px;
  border: 1.5px solid #94a3b8;
  background: #fff;
  box-sizing: border-box;
}
.opt-card:has(input[type="radio"])::before {
  border-radius: 999px;
}
.opt-card:hover {
  border-color: rgba(47, 107, 255, 0.35);
  background: #f8fbff;
}
.opt-card:has(input:checked) {
  border-color: rgba(47, 107, 255, 0.45);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.12);
}
.opt-card:has(input:checked)::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.opt-card:has(input[type="radio"]:checked)::before {
  background: radial-gradient(circle at center, #fff 0 35%, var(--accent) 36%);
  border-color: var(--accent);
}
.opt-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}
.opt-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.opt-level {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}
.opt-level.is-must {
  background: #fff1f2;
  color: #be123c;
}
.opt-level.is-opt {
  background: #eff6ff;
  color: #1d4ed8;
}
@media (max-width: 720px) {
  .opt-grid,
  .opt-grid-2 {
    grid-template-columns: 1fr;
  }
}
/* ????????????????? */
.modal-card:has(.modal-body) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.modal-card:has(.modal-body) > .modal-head {
  flex-shrink: 0;
  margin: 0;
  padding: 1.2rem 1.35rem 0.85rem;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 1.35rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.modal-foot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  position: relative;
  z-index: 3;
  isolation: isolate;
}
.modal-foot .btn { border-radius: 999px; }
.upload-zone {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 88px;
  padding: 0.95rem;
  margin-bottom: 0.85rem;
  border: 1.5px dashed rgba(47, 107, 255, 0.35);
  border-radius: 16px;
  background: rgba(47, 107, 255, 0.04);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:hover,
.upload-zone.is-active {
  border-color: var(--accent);
  background: rgba(47, 107, 255, 0.08);
}
.upload-zone strong {
  color: var(--accent-deep);
  font-weight: 600;
}
.upload-zone input[type='file'] {
  display: none;
}
.upload-file-name {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-2);
  word-break: break-all;
}

/* 素材管理：田字格上传 */
.mm-upload-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}
.mm-upload-tile {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px dashed rgba(47, 107, 255, 0.4);
  background: rgba(47, 107, 255, 0.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 96px;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  user-select: none;
}
.mm-upload-tile:hover {
  border-color: var(--accent);
  background: rgba(47, 107, 255, 0.1);
}
.mm-upload-tile.is-busy {
  pointer-events: none;
  opacity: 0.7;
}
.mm-upload-tile.is-done {
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  cursor: default;
}
.mm-upload-plus {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  color: var(--accent-deep, #1d4ed8);
  text-align: center;
  line-height: 1.2;
}
.mm-upload-plus .mm-plus-icon {
  width: 36px;
  height: 36px;
  display: block;
}
.mm-upload-plus em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--text-3);
}
.mm-upload-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-upload-tile .mm-video-mark {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  padding: 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-2);
  word-break: break-all;
}
.mm-upload-tile .mm-video-mark strong {
  font-size: 1.35rem;
  line-height: 1;
}
.mm-upload-tile .mm-tile-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
}
.mm-upload-tile .mm-tile-del:hover {
  background: #dc2626;
}
.mm-upload-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.mm-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.mm-hub.mm-hub-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .mm-hub.mm-hub-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .mm-hub,
  .mm-hub.mm-hub-4 {
    grid-template-columns: 1fr;
  }
}
.mm-wx-rules {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #334155;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}
.kol-wx-agree-card {
  width: min(920px, 96vw);
  max-width: 920px;
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
}
.kol-wx-agree-card .modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.kol-wx-agree-rules {
  max-height: min(52vh, 480px) !important;
  min-height: 280px;
  font-size: 0.92rem;
}
.mm-wx-rules li {
  margin: 0.35rem 0;
}
.mm-wx-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
}
.amt-income {
  color: #16a34a !important;
  font-variant-numeric: tabular-nums;
}
.amt-expense {
  color: #dc2626 !important;
  font-variant-numeric: tabular-nums;
}
.amt-zero {
  color: #ca8a04 !important;
  font-variant-numeric: tabular-nums;
}
.settle-detail-meta {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.settle-detail-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.settle-detail-meta .muted {
  font-size: 0.82rem;
}
.settle-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.settle-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.9rem;
}
.settle-detail-list li:last-child {
  border-bottom: 0;
}
.mm-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.mm-hub-card:hover {
  border-color: rgba(47, 107, 255, 0.45);
  background: rgba(47, 107, 255, 0.06);
  transform: translateY(-1px);
}
.mm-hub-card strong {
  font-size: 1.05rem;
  color: var(--text);
}
.mm-hub-card span {
  font-size: 0.82rem;
  color: var(--text-3);
}
.mm-hub-card.is-on {
  border-color: rgba(47, 107, 255, 0.5);
  background: rgba(47, 107, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.15);
}
.mm-hub-card.is-on strong {
  color: var(--accent-deep, #1d4ed8);
}
.mm-panel {
  margin-top: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.85rem;
  min-height: 180px;
}
.mm-panel-empty {
  display: grid;
  place-items: center;
  min-height: 140px;
  font-size: 0.88rem;
}
.mm-panel-section + .mm-panel-section {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}
.mm-panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.mm-panel-section-head strong {
  font-size: 0.9rem;
}
.mm-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mm-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.mm-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 220px;
  overflow: auto;
}
.mm-recent-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
}
.mm-recent-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: #eef2ff;
}
.mm-recent-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 600;
}
.mm-recent-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mm-recent-main strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-recent-main .muted {
  font-size: 0.75rem;
}
.mm-recent-empty {
  padding: 0.85rem 0.4rem;
  text-align: center;
  font-size: 0.82rem;
}
.mm-copy-bulk {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.55;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
}
.mm-pack-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .mm-pack-split {
    grid-template-columns: 1fr;
  }
}
.mm-pack-pane {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  padding: 0.75rem 0.85rem 0.9rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.mm-pack-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.mm-pack-pane-head strong {
  font-size: 0.92rem;
}
.mm-pack-pane-head .muted {
  font-size: 0.78rem;
}
.mm-copy-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  max-height: 280px;
  overflow: auto;
  margin-bottom: 0.55rem;
}
.mm-copy-item {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 0.35rem;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
}
.mm-copy-item .mm-copy-idx {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--accent-deep, #1d4ed8);
  font-size: 0.72rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.mm-copy-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.mm-copy-item .mm-copy-del {
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 2px;
}
.mm-copy-item .mm-copy-del:hover {
  color: #dc2626;
}
.mm-copy-empty {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-3);
  font-size: 0.82rem;
  padding: 1.2rem 0.5rem;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  margin-bottom: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}
.mm-copy-add {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}
.mm-copy-add textarea {
  min-height: 72px;
  resize: vertical;
}
.mm-pack-meta {
  margin-top: 0.75rem;
}
.material-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.material-type-tabs.material-type-tabs-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.material-type-tabs.material-type-tabs-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .material-type-tabs.material-type-tabs-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .material-type-tabs.material-type-tabs-3,
  .material-type-tabs.material-type-tabs-4 {
    grid-template-columns: 1fr;
  }
}
.upload-wx-phone-box {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.material-type-tab {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.material-type-tab strong {
  font-size: 1rem;
  color: var(--text);
}
.material-type-tab span {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.4;
}
.material-type-tab.active {
  border-color: var(--accent);
  background: rgba(47, 107, 255, 0.06);
}
.material-type-tab.active strong {
  color: var(--accent-deep);
}
.upload-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  justify-content: center;
}
.upload-chip {
  max-width: 160px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.78rem;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-unit-row {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
}
.material-unit-row .unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.material-unit-row .unit-head strong {
  font-size: 0.92rem;
}
/* ??????? Tab???????? */
.sort-tabs.filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sort-tabs.filter-scroll button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1rem;
}
.list-controls-top {
  justify-content: flex-end;
}
.list-controls-top .list-search {
  flex: 0 1 280px;
  width: 280px;
  max-width: 280px;
  margin-left: auto;
}
/* 任务中心：状态 Tab 靠左，与右侧搜索/新建同一行 */
.list-controls-top.task-list-controls {
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}
.list-controls-top.task-list-controls .sort-tabs {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  margin-right: auto;
}
.list-controls-top.task-list-controls .list-search {
  flex: 0 1 240px;
  width: 240px;
  max-width: 240px;
  margin-left: 0;
}
@media (max-width: 900px) {
  .list-controls-top.task-list-controls {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .list-controls-top.task-list-controls .sort-tabs {
    flex: 1 1 100%;
    order: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .list-controls-top.task-list-controls .sort-tabs::-webkit-scrollbar {
    display: none;
  }
  .list-controls-top.task-list-controls .list-search {
    flex: 1 1 calc(100% - 7.5rem);
    width: auto;
    min-width: 0;
    max-width: none;
    order: 2;
    margin-left: 0;
  }
  .list-controls-top.task-list-controls .cta-row {
    order: 3;
    flex: 0 0 auto;
  }
  .list-controls-top.task-list-controls .cta-row .btn {
    white-space: nowrap;
  }
}
/* ???????/?????????? */
.list-controls-top .list-pager {
  display: none !important;
}
.list-controls-bottom {
  justify-content: flex-end;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #eef3ff;
  border: 1px solid #d9e4ff;
}
.list-controls-bottom .list-pager {
  margin-left: 0;
}
.list-controls-bottom .list-pager .muted {
  color: #3c50e0;
  font-weight: 600;
}
.list-controls.is-compact {
  flex-wrap: nowrap;
  gap: 0.5rem;
}
.list-controls .sort-tabs {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.list-controls .list-search {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: 260px;
}
.list-controls.is-compact .list-search {
  flex: 1 1 auto;
  max-width: none;
}
.list-controls .list-pager {
  flex: 0 0 auto;
  margin-left: auto;
}
.list-controls .cta-row {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.list-toolbar .list-controls {
  width: 100%;
}
.toolbar-actions {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.toolbar-actions .btn {
  min-width: 88px;
  justify-content: center;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .list-controls.is-compact {
    flex-wrap: wrap;
  }
  .list-controls .list-pager {
    margin-left: 0;
  }
  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.list-search {
  flex: 1 1 220px;
  min-width: 180px;
  height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}
.list-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
/* ?????????? + ?????????? */
.public-list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.public-list-bar .list-search {
  flex: 1 1 220px;
  min-width: 160px;
  max-width: 360px;
  margin: 0;
}
.public-list-bar .filter-select {
  flex: 0 1 auto;
  min-width: 120px;
}
.public-list-bar .chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}
.public-list-bar .chip-group .chip,
.public-list-bar .course-filters button {
  border: 1px solid var(--line, #e5e7eb);
  background: #fff;
  color: var(--text-2, #475569);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.public-list-bar .chip-group .chip.active,
.public-list-bar .course-filters button.active {
  background: var(--accent, #2f6bff);
  border-color: var(--accent, #2f6bff);
  color: #fff;
}
.public-list-bar .cta-row {
  margin: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.public-list-meta {
  margin: 0 0 0.85rem;
  color: var(--text-3, #64748b);
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .public-list-bar .list-search {
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
  }
  .public-list-bar .cta-row {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.list-pager .btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ???? / ??? */
.account-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.account-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.85rem;
}
.account-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.account-card-meta h3 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  word-break: break-all;
}
.account-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(247, 248, 251, 0.95);
}
.account-card-stats small {
  display: block;
  color: var(--text-3);
  font-size: 0.75rem;
}
.account-card-stats strong {
  font-size: 0.95rem;
}
.account-card-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.account-shots {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.account-shots a {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.account-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-upload .shot-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.shot-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}
.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.shot-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 76px;
  padding: 0 0.75rem;
  border: 1.5px dashed rgba(47, 107, 255, 0.4);
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.04);
  color: #2f6bff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.shot-add:hover {
  background: rgba(47, 107, 255, 0.08);
}
.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-sm);
}
.profile-hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--bg-soft);
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.profile-hero-main {
  flex: 1 1 180px;
  min-width: 0;
}
.profile-hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.25rem;
}
.profile-hero-main h2 {
  margin: 0;
  font-size: 1.25rem;
}
.profile-hero-actions {
  align-self: flex-start;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.profile-hero-actions .profile-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}
.profile-hero-actions .profile-hero-btn:hover {
  border-color: rgba(47, 107, 255, 0.35);
  background: #f8fafc;
  color: #0f172a;
}
.profile-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-feed-layout {
    grid-template-columns: 1fr;
  }
}
.profile-feed-main,
.profile-feed-side {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.profile-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}
.profile-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profile-feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.profile-feed-item:hover {
  border-color: rgba(47, 107, 255, 0.28);
  background: #f1f5ff;
}
.profile-feed-body {
  min-width: 0;
}
.profile-feed-body strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.profile-feed-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.profile-feed-item time {
  font-size: 0.75rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}
.feed-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  background: #e2e8f0;
  color: #334155;
}
.feed-tag-blue { background: #dbeafe; color: #1d4ed8; }
.feed-tag-green { background: #dcfce7; color: #15803d; }
.feed-tag-orange { background: #ffedd5; color: #c2410c; }
.feed-tag-purple { background: #ede9fe; color: #6d28d9; }
.feed-tag-teal { background: #ccfbf1; color: #0f766e; }
.profile-feed-empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  text-align: center;
}
.profile-push-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profile-push-card {
  display: flex;
  gap: 0.7rem;
  align-items: stretch;
  width: 100%;
  text-align: left;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.profile-push-card:hover {
  border-color: rgba(47, 107, 255, 0.28);
  background: #f1f5ff;
}
.profile-push-cover {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.profile-push-cover.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}
.profile-push-meta {
  min-width: 0;
}
.profile-push-meta strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-push-meta p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-modal-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}
.article-modal-content {
  line-height: 1.7;
  font-size: 0.95rem;
  word-break: break-word;
}
.article-modal-content img {
  max-width: 100%;
  height: auto;
}
.level-summary-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.16);
}
.level-summary-card > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.level-summary-card strong {
  text-align: right;
  font-weight: 650;
  color: #9a3412;
}
.level-progress {
  margin-top: 0.85rem;
}
.level-progress-text {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 0.4rem;
}
.level-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.level-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb923c, #ea580c);
}
.level-ladder {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.level-ladder li {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}
.level-ladder li.is-current {
  border-color: rgba(234, 88, 12, 0.35);
  background: #fff7ed;
}
.level-ladder li.is-done {
  opacity: 0.85;
}
.level-ladder-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.level-rule-list {
  margin: 0;
}
.profile-vip-chip {
  text-decoration: none;
  vertical-align: middle;
}
button.profile-vip-chip.is-off,
a.profile-vip-chip.is-off {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(47, 107, 255, 0.28);
  border-radius: 999px;
  background: #fff;
  color: #2f6bff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
button.profile-vip-chip.is-off:hover,
a.profile-vip-chip.is-off:hover {
  background: rgba(47, 107, 255, 0.08);
  color: var(--accent-deep, #1d4ed8);
}

/* ??????????=????????=?? */
.profile-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.22rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(47, 107, 255, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.profile-id-chip:hover {
  background: #2563eb;
  box-shadow: 0 2px 6px rgba(47, 107, 255, 0.28);
}
.profile-id-chip:active {
  transform: translateY(1px);
}
.profile-id-chip .chip-hint {
  opacity: 0.92;
  font-weight: 500;
}
.profile-id-chip.is-ready {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: none;
}
.profile-id-chip.is-ready:hover {
  background: rgba(16, 185, 129, 0.16);
}
.identity-mask-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}
.identity-rule-tip {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.18);
  color: #1e3a5f;
  font-size: 0.86rem;
  line-height: 1.55;
}

/* 所在地区：大陆/境外 + 省市区 */
.field-region #regionBox {
  width: 100%;
}
.region-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}
.region-select select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 0.72rem 0.75rem;
  background: #f4f6fa;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  box-sizing: border-box;
  min-height: 44px;
}
.region-select select:focus {
  outline: none;
  border-color: rgba(47, 107, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
  background: #fff;
}
.region-select select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (min-width: 720px) {
  .region-select {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.settings-form .form-section-title {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.settings-form .form-foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* ???????? */
.perm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.85rem;
}
.perm-toolbar .perm-toolbar-actions {
  display: inline-flex;
  gap: 0.45rem;
}

/* ?????????????? */
.chip.chip-perm {
  cursor: default;
  font-weight: 500;
  border: 1px solid transparent;
}
.chip.chip-perm-task {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(47, 107, 255, 0.22);
}
.chip.chip-perm-material {
  background: var(--c-violet-soft);
  color: #5b3fd4;
  border-color: rgba(124, 92, 255, 0.22);
}
.chip.chip-perm-finance {
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}
.chip.chip-perm-lead {
  background: var(--c-cyan-soft);
  color: #0f766e;
  border-color: rgba(20, 184, 166, 0.25);
}
.chip.chip-perm-demand {
  background: var(--c-amber-soft);
  color: #b45309;
  border-color: rgba(245, 165, 36, 0.3);
}
.chip.chip-perm-training {
  background: #fdf2f8;
  color: #be185d;
  border-color: rgba(219, 39, 119, 0.2);
}
.chip.chip-perm-staff {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(100, 116, 139, 0.25);
}
.chip.chip-status-on {
  cursor: default;
  background: #ecfdf5;
  color: #047857;
  border-color: rgba(16, 185, 129, 0.28);
  font-weight: 600;
}
.chip.chip-status-off {
  cursor: default;
  background: #fff1f2;
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.22);
  font-weight: 600;
}

.emp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 4.8rem;
}
.emp-actions .btn-edit {
  background: var(--accent-soft);
  border-color: rgba(47, 107, 255, 0.28);
  color: var(--accent-deep);
  font-weight: 600;
}
.emp-actions .btn-edit:hover {
  background: #dbe6ff;
  border-color: var(--accent);
  color: var(--accent-deep);
}
.emp-actions .btn-del {
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.22);
  color: #be123c;
  font-weight: 600;
}
.emp-actions .btn-del:hover {
  background: #ffe4e6;
  border-color: var(--danger);
  color: #9f1239;
}

/* ?????????? */
.finance-stat .finance-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.finance-stat .finance-stat-row > strong {
  flex: 1;
  min-width: 0;
}
.finance-stat-btns {
  display: inline-flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.pay-channel-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pay-channel-item {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #f8fafc;
}
.pay-channel-item:has(input:checked) {
  border-color: rgba(47, 107, 255, 0.35);
  background: var(--accent-soft);
}

/* ???????? */
.perm-group[data-group="??"] { background: linear-gradient(180deg, #f5f8ff 0%, #f8fafc 100%); border-color: rgba(47, 107, 255, 0.16); }
.perm-group[data-group="??"] { background: linear-gradient(180deg, #f8f5ff 0%, #f8fafc 100%); border-color: rgba(124, 92, 255, 0.16); }
.perm-group[data-group="??"] { background: linear-gradient(180deg, #f0fdf8 0%, #f8fafc 100%); border-color: rgba(16, 185, 129, 0.16); }
.perm-group[data-group="??"] { background: linear-gradient(180deg, #f0fafa 0%, #f8fafc 100%); border-color: rgba(20, 184, 166, 0.16); }
.perm-group[data-group="??"] { background: linear-gradient(180deg, #fffaf0 0%, #f8fafc 100%); border-color: rgba(245, 165, 36, 0.2); }
.perm-group[data-group="??"] { background: linear-gradient(180deg, #fff5f9 0%, #f8fafc 100%); border-color: rgba(219, 39, 119, 0.14); }
.perm-group[data-group="??"] { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); border-color: rgba(100, 116, 139, 0.18); }
.perm-group[data-group="??"] .perm-group-title { color: var(--accent-deep); }
.perm-group[data-group="??"] .perm-group-title { color: #5b3fd4; }
.perm-group[data-group="??"] .perm-group-title { color: #047857; }
.perm-group[data-group="??"] .perm-group-title { color: #0f766e; }
.perm-group[data-group="??"] .perm-group-title { color: #b45309; }
.perm-group[data-group="??"] .perm-group-title { color: #be185d; }
.perm-group[data-group="??"] .perm-group-title { color: #334155; }

.perm-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.perm-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  box-sizing: border-box;
}
.perm-group-title {
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #334155;
  line-height: 1.2;
}
.perm-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}
.perm-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.perm-item:hover {
  border-color: rgba(47, 107, 255, 0.35);
  background: #f5f8ff;
}
.perm-item:has(input:checked),
.perm-item.is-on {
  border-color: rgba(47, 107, 255, 0.45);
  background: #eaf0ff;
  color: #1f4fd6;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.08);
}
.perm-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  pointer-events: none;
}
.perm-item span {
  display: inline;
  white-space: nowrap;
  word-break: keep-all;
}
.perm-item::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1.5px solid #94a3b8;
  background: #fff;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}
.perm-item:has(input:checked)::before,
.perm-item.is-on::before {
  border-color: #2f6bff;
  background-color: #2f6bff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4 4.6-4.8'/%3E%3C/svg%3E");
}
@media (max-width: 720px) {
  .perm-panel {
    grid-template-columns: 1fr;
  }
}
.platform-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.55;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.platform-check input { display: none; }
.platform-check .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.platform-check.is-on {
  opacity: 1;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.todo-list {
  display: grid;
  gap: 0.65rem;
}
.todo-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
}
.todo-item.is-done {
  border-color: rgba(22, 163, 74, 0.2);
  background: rgba(240, 253, 244, 0.9);
}
.todo-item.is-locked {
  opacity: 0.55;
}
.todo-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}
.chapter-editor {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.chapter-card {
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.95);
}
.content-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  margin-top: 0.55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, 0.1);
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 600;
}
.membership-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.95);
}
.membership-status.is-active {
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(47, 107, 255, 0.06));
}
.membership-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.membership-plan {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
}
.membership-plan.is-hot {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.08);
}
.membership-price {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.membership-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-3);
}
.membership-plan ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  font-size: 0.9rem;
}
.guide-box {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: rgba(255, 247, 237, 0.95);
}
.guide-box strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: #b45309;
}
.guide-box p {
  margin: 0;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre-wrap;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal-head > .btn,
.modal-head > .btn-sm {
  border-radius: 8px;
  min-width: 0;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  flex: none;
  padding: 0.4rem 0.85rem;
  min-height: 32px;
}
.claim-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(280px, 36vh);
  overflow: auto;
  padding-right: 0.2rem;
  margin-bottom: 0.25rem;
}
.claim-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}
.claim-item-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.claim-item-top a.claim-kol {
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.claim-item-top a.claim-kol:hover {
  text-decoration: underline;
}
.claim-item-meta {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.claim-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}
.claim-link:hover {
  text-decoration: underline;
}
.claim-time {
  font-size: 0.82rem;
  color: var(--text-3);
}
.claim-item .status-dot {
  flex-shrink: 0;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.lead-modal-profile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.lead-modal-profile .lead-avatar { width: 56px; height: 56px; }
.lead-modal-profile > div { flex: 1; min-width: 0; }

/* ?? Shared commercial surfaces ?? */
.surface-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.35rem 1.5rem;
  backdrop-filter: blur(8px);
}
.list-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.35rem;
  margin-bottom: 0.85rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #2f6bff, #14b8a6);
  opacity: 0.75;
}
.list-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(47, 107, 255, 0.18);
}
.item.list-card {
  border-bottom: 0;
  padding: 1.25rem 1.35rem;
}
.field input,
.field select,
.field textarea,
.toolbar select {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  background: #f4f6fa;
  color: var(--text);
  box-sizing: border-box;
  line-height: 1.45;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.field input[type="checkbox"],
.field input[type="radio"],
.field .check input,
.checks input[type="checkbox"],
.checks input[type="radio"] {
  width: auto;
  min-width: 15px;
  height: auto;
  padding: 0;
  border: initial;
  border-radius: 0;
  background: initial;
  box-shadow: none;
  line-height: normal;
}
.field select {
  min-height: 44px;
  height: auto;
  overflow: visible;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(47, 107, 255, 0.35);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
  outline: none;
}
.modal-card .field > label:first-child {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #334155;
  font-weight: 600;
}
.modal-card .form-section-title {
  margin: 1.15rem 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.08), transparent 70%);
  border-left: 3px solid var(--accent);
  color: #1e293b;
  font-size: 0.95rem;
}
.modal-card .form-section-title:first-child {
  margin-top: 0.25rem;
}
.modal-card .checks {
  gap: 0.55rem;
}
.modal-card .checks > .check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  white-space: normal;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.modal-card .checks > .check:hover {
  border-color: rgba(47, 107, 255, 0.3);
  background: #fff;
}
.modal-card .checks > .check:has(input:checked) {
  border-color: rgba(47, 107, 255, 0.4);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.12);
}
.modal-card .lead-actions {
  position: sticky;
  bottom: 0;
  margin: 1.1rem -1.4rem -1.45rem;
  padding: 0.9rem 1.4rem 1.1rem;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -10px 24px rgba(255, 255, 255, 0.92);
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  z-index: 6;
  isolation: isolate;
}
.modal-card .modal-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.modal-card #financeHint,
.modal-card .muted a {
  color: var(--accent-deep);
}
.login-card.surface-card,
.login-page .login-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.role-btn {
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.role-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dash {
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.9), rgba(247, 248, 251, 0.96)),
    url('../assets/ui/page-bg.png') center / cover no-repeat,
    radial-gradient(ellipse 50% 30% at 0% 0%, rgba(47, 107, 255, 0.08), transparent 50%),
    #f7f8fb;
}
.side {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95)),
    #fff;
  box-shadow: none;
}
.dash-tech-strip {
  margin: 0 0 1.1rem;
  min-height: 84px;
}
.dash-tech-strip > div { min-height: 84px; }
.content .stat,
.content .block,
.content .item,
.content .create {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.35rem;
  border-bottom: 0;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(6px);
}
.content .entry {
  margin-bottom: 0;
}
.content .stat strong { margin-top: 0.4rem; }
.content .grid-3 .stat,
.content .grid-4 .stat { margin-bottom: 0; }
.content .grid-2,
.content .grid-3,
.content .grid-4 { gap: 0.85rem; margin-bottom: 0.85rem; }
.content .grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.content .stat.stat-clickable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.content .stat.stat-clickable:hover {
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.12);
  transform: translateY(-1px);
}
.content .stat .stat-sub {
  font-size: 0.72em;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.15rem;
}
.content .stat .stat-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

/* ?? Task detail meta / settle cards ?? */
.content .task-detail-meta .stat strong {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-top: 0.55rem;
}
.content .task-detail-brief {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.content .task-brief-product {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
}
.content .task-brief-product strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.content .settle-box {
  margin-top: 0.15rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.content .settle-box .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0 !important;
}
.content .settle-box ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.85;
  color: var(--text-2);
}
.content .settle-box.settle-empty {
  color: var(--text-3);
  text-align: center;
  padding: 1.35rem 1rem;
}
.content .settle-earn-panel {
  position: relative;
  margin-top: 0.85rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 64, 175, 0.55)),
    url('../assets/ui/page-banner.png') center / cover no-repeat;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.content .settle-earn-panel-inner {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.25rem 1.2rem;
  color: #f8fafc;
}
.content .settle-earn-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.55rem;
}
.content .settle-earn-line {
  margin: 0.35rem 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
  color: #fff;
}
.content .settle-earn-line:first-of-type {
  margin-top: 0;
}
.content .settle-earn-line strong {
  color: #fde68a;
  font-weight: 700;
  font-size: 1.12em;
}
.content .settle-earn-note {
  margin-left: 0.25rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.82);
}
.content .settle-earn-panel .settle-rule-cards {
  margin-top: 0;
}
.content .settle-rule-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.content .settle-rule-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
  backdrop-filter: blur(6px);
}
.content .settle-earn-panel .settle-rule-card {
  background: rgba(255, 255, 255, 0.94);
}
.content .settle-rule-card small {
  display: block;
  color: var(--text-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.content .settle-rule-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--text);
}
.content .settle-rule-card p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
}
.content .node-req-list {
  display: grid;
  gap: 0.65rem;
}
.content .node-req-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 1rem;
}
.content .node-req-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.content .node-req-title .tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}
.content .settle-common-rules {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}
.content .settle-common-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.content .settle-common-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 0.88rem;
  color: var(--text-2);
  font-family: inherit;
}
.content .meta-nodes {
  gap: 0.85rem;
}
.content .meta-nodes .node {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.content .meta-nodes .node small {
  color: var(--text-3);
}
.content .task-detail-head {
  margin-bottom: 0.85rem;
  align-items: flex-start;
}
.content .task-detail-head .page-desc {
  display: none;
}
.content .task-detail-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.45;
  max-width: 52rem;
}
.content .task-detail-inline-meta span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content .task-detail-inline-meta em {
  font-style: normal;
  color: var(--text-3);
  margin-right: 0.35rem;
  font-size: 0.78rem;
}
.content .task-detail-head-actions {
  flex-shrink: 0;
}
.content .task-records-block {
  margin-top: 0;
  padding-top: 1rem;
}
.content .task-records-block .table-wrap.surface-card {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.content .task-records-block .review-table {
  width: 100%;
}
@media (max-width: 900px) {
  .content .settle-rule-cards {
    grid-template-columns: 1fr;
  }
}
.cap-banner {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 1rem;
}
.cap-section {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.cap-section + .cap-section {
  margin-top: 1rem;
}
.cap-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cap-section-head h3 {
  margin: 0;
  font-size: 1rem;
}
.cap-mat-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(42vh, 360px);
  overflow: auto;
  margin: 0;
}
.cap-mat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.cap-mat-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 56px;
  background: #e8edf5;
}
.cap-mat-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  padding: 0.2rem;
  line-height: 1.2;
}
.cap-mat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cap-mat-title {
  margin: 0;
  font-size: 0.92rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cap-mat-main .muted {
  margin: 0;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cap-mat-ops {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.btn-danger-text {
  color: #be123c !important;
}
.btn-danger-text:hover {
  background: #fff1f2 !important;
}
@media (max-width: 1100px) {
  .content .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .content > .grid-3,
  .content > .grid-4 {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }
}
@media (max-width: 560px) {
  .content .grid-4 {
    grid-template-columns: 1fr;
  }
}
.page-shell .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.filter-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.65);
  border-top: 0;
}
.footer-brand strong,
.footer-col h4 { color: #fff; }
.footer-col a { color: rgba(255, 255, 255, 0.65); }
.footer-col a:hover { color: #8eb0ff; }
.footer-grid { border-bottom-color: rgba(255, 255, 255, 0.1); }
.footer-copy { color: rgba(255, 255, 255, 0.45); }
.footer-visit { color: rgba(255, 255, 255, 0.5); }

.hero .search {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.hero .search input { padding: 0.75rem 0.5rem; }
.hero .search .btn {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
}
.below { padding-top: 0.5rem; }
.feature {
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.empty.surface-card {
  padding: 3.5rem 1.5rem;
}

/* ?? Dash boot / skeleton ?? */
.page-skeleton {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.25rem;
}
.sk-line,
.sk-card {
  background: linear-gradient(90deg, #eceff3 0%, #f7f8fa 45%, #eceff3 90%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
  border-radius: 12px;
}
.sk-line { height: 16px; }
.sk-w40 { width: 40%; }
.sk-card { height: 148px; border-radius: 18px; }
@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ?? Task visual cards ?? */
.task-list-main,
.list.task-list-kol {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.task-vcard-list {
  display: grid;
  gap: 1rem;
}
.task-vcard {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
  min-height: 156px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.task-vcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.12);
}
.task-vcard-media {
  position: relative;
  display: block;
  min-height: 156px;
  align-self: stretch;
  overflow: hidden;
  background: #f1f5f9;
}
.task-vcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.task-vcard-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(12, 18, 28, 0.72);
  backdrop-filter: blur(6px);
}
.task-vcard-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  padding: 1.05rem 1.15rem 1.05rem 1.2rem;
  background:
    linear-gradient(135deg, var(--tone-soft) 0%, #ffffff 42%, #ffffff 100%);
  min-width: 0;
}
.task-vcard.tone-coral { --tone: #c45c26; --tone-soft: #fff4ec; }
.task-vcard.tone-teal { --tone: #0f766e; --tone-soft: #edf8f6; }
.task-vcard.tone-amber { --tone: #b45309; --tone-soft: #fff7eb; }
.task-vcard.tone-ink { --tone: #1e3a5f; --tone-soft: #eef3f9; }
.task-vcard.tone-coral .task-vcard-media { box-shadow: inset 4px 0 0 #c45c26; }
.task-vcard.tone-teal .task-vcard-media { box-shadow: inset 4px 0 0 #0f766e; }
.task-vcard.tone-amber .task-vcard-media { box-shadow: inset 4px 0 0 #b45309; }
.task-vcard.tone-ink .task-vcard-media { box-shadow: inset 4px 0 0 #1e3a5f; }
.task-vcard-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.task-vcard-top {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}
.task-vcard-title-wrap { min-width: 0; flex: 1; }
.task-vcard-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.5rem;
  flex: 0 0 auto;
  width: auto;
  min-width: 5.5rem;
  max-width: 38%;
  text-align: right;
}
.task-vcard-aside .status-dot {
  align-self: flex-end;
}
.task-vcard-pay {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid rgba(234, 88, 12, 0.18);
  box-sizing: border-box;
  text-align: left;
}
.task-vcard-pay.is-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(15, 23, 42, 0.1);
}
.task-vcard-pay.is-locked strong {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}
.task-vcard-pay.is-locked:hover {
  border-color: var(--accent, #2f6bff);
}
.task-vcard-pay.is-locked:hover strong {
  color: var(--accent, #2f6bff);
}
.task-vcard-pay.is-empty {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.06);
}
.task-vcard-pay > small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c2410c;
  margin: 0 0 0.2rem;
  text-align: left;
}
.task-vcard-pay.is-empty > small { color: #94a3b8; }
.task-vcard-pay-main,
.task-vcard-pay-sub {
  text-align: left;
}
.task-vcard-pay-sub { margin-top: 0.18rem; }
.task-vcard-pay.is-empty strong { color: #94a3b8; }
.task-vcard-pay-main strong,
.task-vcard-pay-sub strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: #c2410c;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.task-vcard-pay-main strong {
  font-size: 0.88rem;
  font-weight: 700;
}
.task-vcard h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 650;
  color: #152033;
}
.task-vcard h3 a:hover { color: var(--tone); }
.task-vcard-meta {
  margin: 0.4rem 0 0;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.task-vcard-mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  min-width: 0;
  width: 100%;
}
/* 佣金挪到左侧数据提报旁：紧凑胶囊样式 */
.task-vcard-pay.is-inline {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
}
.task-vcard-pay.is-inline > small {
  display: none;
}
.task-vcard-pay.is-inline .task-vcard-pay-main,
.task-vcard-pay.is-inline .task-vcard-pay-sub {
  display: inline;
}
.task-vcard-pay.is-inline .task-vcard-pay-sub {
  margin-top: 0;
  margin-left: 0.45rem;
}
.task-vcard-pay.is-inline .task-vcard-pay-main strong,
.task-vcard-pay.is-inline .task-vcard-pay-sub strong {
  display: inline;
  font-size: 0.82rem;
  white-space: nowrap;
}
.task-vcard-pay.is-inline.is-locked {
  min-height: auto;
  padding: 0.28rem 0.65rem;
}
.task-vcard-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  min-width: 0;
  width: 100%;
}
.task-vcard-tags .chip,
.task-vcard-tags .account-pill,
.task-vcard-tags .tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 26px;
  min-height: 26px;
  padding: 0 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: middle;
}
.task-vcard-tags .tag {
  background: #f3f5f9;
  color: #475569;
}
/* 卡片内去掉「·」分隔，统一用间距对齐 */
.task-vcard-tags .tag + .tag::before {
  content: none !important;
  margin: 0 !important;
  display: none !important;
}
.task-vcard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.15rem;
  min-width: 0;
  width: 100%;
}
.task-vcard-foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  min-width: 0;
  width: 100%;
}
.task-vcard-footnote {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
}
.task-vcard-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.35rem;
}
/* 商家等多按钮：整行展示并可换行，避免窄栏挤压重叠 */
.task-vcard-actions.is-rich {
  flex: 1 1 100%;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.task-vcard-actions.is-rich .btn {
  flex: 0 0 auto;
  min-width: auto;
  justify-content: center;
  white-space: nowrap;
}
/* 达人端仅 1～2 个按钮：右侧栏内并排均分 */
.task-vcard-aside .task-vcard-actions:not(.is-rich) .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}
.task-vcard-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 34px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.2;
  box-sizing: border-box;
}
.task-vcard-actions .btn-ghost {
  background: #fff;
  color: #152033;
  border: 1px solid rgba(15, 23, 42, 0.14);
}
.task-vcard-actions .btn-ghost:hover {
  border-color: var(--accent, #2f6bff);
  color: var(--accent, #2f6bff);
}
.mat-manage-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 240px;
  overflow: auto;
}
.mat-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #f4f6fa;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.mat-manage-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 48px;
  background: #e8edf5;
}
.mat-manage-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: var(--text-3);
  text-align: center;
  padding: 0.2rem;
}

/* 任务参考管理 / 达人展示 */
.tr-list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.tr-manage-list { display: flex; flex-direction: column; gap: 0.55rem; max-height: 240px; overflow: auto; }
.tr-manage-list-full { max-height: min(52vh, 420px); }
/* 子弹层须高于 .modal-mask(1000)，否则「认领设置」等会叠在底层看起来像点了没反应 */
.tr-sub-mask,
.mm-sub-mask {
  z-index: 1100;
}
.tr-manage-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; border-radius: 12px;
  background: #f4f6fa; border: 1px solid rgba(15, 23, 42, 0.06);
}
.tr-manage-thumb {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 48px; background: #e8edf5;
}
.tr-manage-thumb-empty {
  display: grid; place-items: center; font-size: 0.68rem; color: var(--text-3); text-align: center;
}
.tr-manage-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.tr-manage-main strong { font-size: 0.92rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.tr-manage-main .muted { font-size: 0.78rem; }
.tr-manage-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 0 0 auto; }
.tr-manage-item.is-off { opacity: 0.72; }
.tr-off-tag {
  font-style: normal; font-size: 0.68rem; font-weight: 600;
  padding: 0.1rem 0.4rem; border-radius: 999px;
  background: #fee4e2; color: #b42318;
}

.tr-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 0.85rem;
}
.tr-feed-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #111;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: #fff;
}
.tr-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
.tr-feed-card img,
.tr-feed-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tr-feed-card .tr-feed-grad {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 0.7rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
}
.tr-feed-card .tr-feed-badge {
  position: absolute; top: 0.55rem; left: 0.55rem;
  padding: 0.18rem 0.45rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.tr-feed-card.tr-style-xhs .tr-feed-badge { background: rgba(255, 36, 66, 0.92); color: #fff; }
.tr-feed-card.tr-style-douyin .tr-feed-badge { background: rgba(0, 0, 0, 0.7); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.tr-feed-card .tr-feed-title {
  margin: 0; font-size: 0.82rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-feed-card .tr-feed-meta {
  margin: 0.3rem 0 0; font-size: 0.72rem; opacity: 0.88;
}
.tr-feed-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #334155 0%, #0f172a 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.mat-claim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0.35rem;
}
.mat-claim-bar-text { flex: 1; min-width: 0; }
.mat-claim-bar-text strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.mat-claim-bar-text p { margin: 0; font-size: 0.84rem; }
.mat-claim-bar-text b { color: var(--brand, #e85d04); }

.tr-preview-mask { z-index: 120; }
.tr-preview-card {
  position: relative;
  width: min(380px, 94vw);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
.tr-preview-card.tr-style-douyin { background: #0f0f12; color: #f8fafc; }
.tr-preview-close {
  position: absolute; top: 0.55rem; right: 0.55rem; z-index: 2;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: rgba(15, 23, 42, 0.55); color: #fff; font-size: 1.25rem; cursor: pointer; line-height: 1;
}
.tr-preview-platform {
  padding: 0.85rem 1rem 0.35rem; font-size: 0.78rem; font-weight: 600; color: #94a3b8;
}
.tr-preview-card.tr-style-xhs .tr-preview-platform { color: #ff2442; }
.tr-preview-media,
.tr-preview-images img,
.tr-preview-slide-img {
  width: 100%; display: block; max-height: 52vh; object-fit: contain; background: #000;
}
.tr-preview-images { display: grid; gap: 0.35rem; background: #000; }
.tr-preview-slider {
  position: relative;
  background: #000;
  user-select: none;
}
.tr-preview-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 999px;
  background: rgba(15, 23, 42, 0.45); color: #fff; font-size: 1.4rem;
  line-height: 1; cursor: pointer; z-index: 2;
  display: grid; place-items: center; padding: 0;
}
.tr-preview-nav:hover { background: rgba(15, 23, 42, 0.7); }
.tr-preview-prev { left: 0.55rem; }
.tr-preview-next { right: 0.55rem; }
.tr-preview-counter {
  position: absolute; top: 0.55rem; left: 0.55rem;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  background: rgba(15, 23, 42, 0.55); color: #fff;
  font-size: 0.72rem; font-weight: 600; z-index: 2;
}
.tr-preview-dots {
  position: absolute; left: 0; right: 0; bottom: 0.55rem;
  display: flex; justify-content: center; gap: 0.35rem; z-index: 2;
}
.tr-preview-dot {
  width: 7px; height: 7px; border: 0; border-radius: 999px;
  padding: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.tr-preview-dot.is-on { background: #fff; transform: scale(1.15); }
.tr-preview-body { padding: 0.95rem 1.05rem 1.2rem; }
.tr-preview-copy-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin: 0 0 0.4rem;
}
.tr-preview-copy-head span {
  font-size: 0.78rem; font-weight: 600; color: #94a3b8;
}
.tr-preview-desc {
  margin: 0; line-height: 1.7; white-space: pre-wrap;
  color: #475569; font-size: 0.9rem;
}
.tr-preview-warn,
.tr-list-warn {
  margin: 0.95rem 0 0; padding: 0.65rem 0.75rem;
  border-radius: 10px; background: #fff7ed; border: 1px solid #ffedd5;
  color: #c2410c; font-size: 0.78rem; line-height: 1.55;
}
.tr-list-warn {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  font-weight: 500;
}
.tr-preview-author {
  display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem;
}
.tr-avatar {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff8a9b, #ff2442); color: #fff; font-weight: 700;
}
.tr-preview-card.tr-style-douyin .tr-avatar {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
}
.tr-preview-author strong { display: block; font-size: 0.92rem; }
.tr-preview-author em { font-style: normal; font-size: 0.78rem; color: #94a3b8; }
.tr-preview-body h3 { margin: 0 0 0.45rem; font-size: 1.02rem; }
.tr-preview-body p { margin: 0; line-height: 1.7; white-space: pre-wrap; color: #475569; font-size: 0.9rem; }
.tr-preview-card.tr-style-douyin .tr-preview-body p { color: #cbd5e1; }
.mat-manage-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.mat-manage-item-main strong {
  font-size: 0.92rem;
}
.mat-manage-item-main .muted {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mat-cap-box {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f4f6fa;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.mat-cap-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: #475569;
}
.mat-cap-ok { color: #047857; font-weight: 600; }
.mat-cap-danger { color: #b91c1c; font-weight: 600; }
.mat-cap-bar {
  margin-top: 0.55rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.mat-cap-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f6bff, #60a5fa);
  border-radius: inherit;
}
.task-vcard-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  min-width: 0;
  flex: 1 1 auto;
  color: #64748b;
  font-size: 0.84rem;
}
.task-vcard-stats > span,
.task-vcard-stats > a.task-vcard-stat-pay {
  white-space: nowrap;
}
.task-vcard-stats b {
  color: var(--tone);
  font-weight: 700;
  margin-right: 0.2rem;
}
/* 佣金项：与达人/提报/线索同一行，红色加粗突出 */
.task-vcard-stats .task-vcard-stat-pay {
  color: #dc2626;
  font-size: inherit;
  font-weight: 700;
  text-decoration: none;
}
.task-vcard-stats .task-vcard-stat-pay.is-empty {
  color: #f87171;
  font-weight: 600;
}
.task-vcard-stats a.task-vcard-stat-pay.is-locked {
  color: #ef4444;
}
.task-vcard-stats a.task-vcard-stat-pay.is-locked:hover {
  color: #b91c1c;
}
.task-vcard .btn-primary {
  background: var(--accent, #2f6bff);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
}
.task-vcard .btn-primary:hover {
  background: var(--accent-deep, #1f4fd6);
  filter: none;
  opacity: 1;
}
.task-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(30, 58, 95, 0.94), rgba(15, 118, 110, 0.88)),
    #1e3a5f;
  color: #fff;
}
.task-page-hero p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  max-width: 36rem;
}
.task-page-hero h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
}
.task-page-hero .btn-primary {
  background: #fff;
  color: #1e3a5f;
  border-radius: 10px;
}
.task-page-hero .btn-primary:hover {
  background: #f3f6fb;
  opacity: 1;
}
@media (max-width: 900px) {
  .task-vcard {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .task-vcard:hover {
    transform: none;
  }
  .task-vcard-media {
    width: 100%;
    min-height: 120px;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
  }
  .task-vcard-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
  }
  .task-vcard-body {
    flex-direction: column;
    padding: 0.9rem 0.95rem 1rem;
    gap: 0.65rem;
    min-width: 0;
  }
  .task-vcard-main {
    width: 100%;
  }
  .task-vcard-aside {
    align-items: stretch;
    min-width: 0;
    max-width: none;
    width: 100%;
    text-align: left;
  }
  .task-vcard-aside .status-dot {
    align-self: flex-start;
  }
  .task-vcard-pay {
    width: 100%;
  }
  .task-vcard-pay-main strong,
  .task-vcard-pay-sub strong {
    font-size: 0.84rem;
  }
  .task-vcard h3 {
    font-size: 1rem;
  }
  .task-vcard-meta {
    font-size: 0.8rem;
    word-break: break-word;
  }
  .task-vcard-mid {
    width: 100%;
  }
  .task-vcard-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    width: 100%;
  }
  .task-vcard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.25rem;
  }
  .task-vcard-actions.is-rich {
    flex: 1 1 100%;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0.55rem;
  }
  .task-vcard-aside .task-vcard-actions:not(.is-rich) .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
  .task-vcard-actions.is-rich .btn {
    flex: 0 0 auto;
    min-width: auto;
  }
  .task-list-main,
  .list.task-list-kol,
  .task-vcard-list {
    min-width: 0;
    max-width: 100%;
  }
  .dash .main .content {
    min-width: 0;
    overflow-x: hidden;
  }
  .nav .nav-action { margin-left: 0; }
}

/* ??????????????? */
table.data.data-grid {
  width: 100%;
  min-width: 880px;
  font-size: 0.9rem;
}
table.data.data-grid th,
table.data.data-grid td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #ebeef5;
  white-space: nowrap;
  vertical-align: middle;
  color: #303133;
}
table.data.data-grid th {
  background: #f8f8f9;
  color: #515a6e;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
}
table.data.data-grid td.td-wrap {
  white-space: normal;
  text-align: left;
  max-width: 320px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}
table.data.data-grid td.td-break {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 240px;
  line-height: 1.45;
}
table.data.data-grid td.td-break a,
.review-table td.td-break a,
.merge-review-table td.td-break a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}
table.data.data-grid th.th-actions,
table.data.data-grid td.td-actions {
  text-align: right;
  white-space: nowrap;
}
table.data.data-grid tbody tr:hover {
  background: #fafafa;
}
/* ???? + ??/??????????????????????? */
.table-wrap.surface-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm);
  background: #fff;
  overflow: hidden;
  padding: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.table-wrap.surface-card > .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap.surface-card table.data {
  border-collapse: separate;
  border-spacing: 0;
}
.table-wrap.surface-card table.data th,
.table-wrap.surface-card table.data td {
  padding-left: 1rem;
  padding-right: 0.85rem;
}
.table-wrap.surface-card table.data th:last-child,
.table-wrap.surface-card table.data td:last-child {
  padding-right: 1rem;
}

/* ?? ??????? / ????? / ???? ?? */
.content > .page-toolbar {
  margin-bottom: 1rem;
}
.content .page-toolbar .page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.content .page-toolbar .page-desc {
  margin: 0.35rem 0 0;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.5;
}
.content .block > h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.content .stat small {
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
}
.content .stat strong {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.content .stat strong.stat-ok { color: var(--ok); }
.content .stat strong.stat-warn { color: var(--warn); }
.content .stat strong.stat-muted { color: var(--text); }

.invite-share {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.invite-share.invite-share-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.invite-share-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.invite-share .invite-meta {
  margin: 0;
  color: var(--text-3);
  font-size: 0.9rem;
}
.invite-share .invite-meta strong {
  color: var(--text);
  font-weight: 600;
}
.invite-link-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.invite-link-row .field {
  flex: 1 1 220px;
  margin: 0;
  min-width: 0;
}
.invite-link-row .field input {
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-2);
}
.invite-link-row .cta-row {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.invite-link-row .cta-row .btn {
  white-space: nowrap;
  min-height: 44px;
}
.poster-preview {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem;
  border-radius: 14px;
  background: #f6f8fc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
  width: min(100%, 280px);
}
.poster-preview canvas {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  display: block;
}
.poster-preview .btn {
  width: 100%;
  max-width: 240px;
  white-space: nowrap;
}
.invite-modal .modal-body {
  padding-top: 0.35rem;
}
.invite-modal .invite-share-split {
  align-items: stretch;
}
.task-rank-table tr.is-mine td {
  background: rgba(47, 107, 255, 0.06);
}
.task-rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.task-rank-no.rank-1 { color: #b45309; }
.task-rank-no.rank-2 { color: #64748b; }
.task-rank-no.rank-3 { color: #c2410c; }
.task-rank-day input[type='date'] {
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.85rem;
}
.mentor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.mentor-row > p {
  margin: 0;
  flex: 1 1 220px;
}
.mentor-row .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.mentor-name-link {
  color: #1d4ed8;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed rgba(29, 78, 216, 0.35);
}
.mentor-name-link:hover {
  color: #1e40af;
  border-bottom-color: #1e40af;
}
.mentor-pm-list {
  display: grid;
  gap: 0.65rem;
  max-height: min(42vh, 360px);
  overflow: auto;
  margin: 0 0 0.85rem;
  padding-right: 0.15rem;
}
.mentor-pm-item {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #f8fafc;
}
.mentor-pm-item.mine {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.15);
}
.mentor-pm-item strong {
  display: block;
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
  color: #0f172a;
}
.mentor-pm-item p {
  margin: 0;
  line-height: 1.55;
  color: #475569;
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.mentor-pm-item .pm-at {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.mentor-pm-compose {
  display: grid;
  gap: 0.55rem;
}
.mentor-pm-compose textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  line-height: 1.5;
}
.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.45rem;
}
.member-meta span {
  font-size: 0.82rem;
  color: var(--text-3);
}
.member-meta strong {
  color: var(--text);
  font-weight: 600;
}

.node-setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.node-setup-card {
  display: block;
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: default;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.node-setup-card.on {
  border-color: rgba(47, 107, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.08);
}
.node-setup-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.node-setup-head input {
  width: 1rem;
  height: 1rem;
  accent-color: #2f6bff;
}
.node-setup-card .field label {
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .invite-share.invite-share-split {
    grid-template-columns: 1fr;
  }
  .poster-preview {
    width: 100%;
    align-items: center;
  }
}
@media (max-width: 720px) {
  .invite-link-row .cta-row {
    width: 100%;
  }
  .invite-link-row .cta-row .btn {
    flex: 1;
  }
}

/* ?????????? */
.review-list {
  display: flex;
  flex-direction: column;
}
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.review-row:last-child {
  border-bottom: none;
}
.review-row-main {
  flex: 1;
  min-width: 0;
}
.review-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.review-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .review-row {
    flex-direction: column;
    align-items: stretch;
  }
  .review-row-actions {
    justify-content: flex-end;
  }
}

/* 任务记录表格 */
.review-table td.td-actions {
  white-space: normal;
  vertical-align: top;
}
.review-table td.td-actions .btn {
  margin: 0;
}
.review-table td.td-wrap {
  max-width: 320px;
  word-break: break-word;
}
.review-table .linkish {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent, #1a6cff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ?????????? */
.detail-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  overflow: hidden;
}
.detail-kv-table th,
.detail-kv-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #ebeef5;
  text-align: left;
  vertical-align: middle;
  line-height: 1.45;
}
.detail-kv-table tr:last-child th,
.detail-kv-table tr:last-child td {
  border-bottom: none;
}
.detail-kv-table th {
  width: 96px;
  color: #909399;
  font-weight: 500;
  background: #fafafa;
  white-space: nowrap;
}
.detail-kv-table td {
  color: #303133;
  word-break: break-word;
}
.detail-kv-table td.td-break {
  word-break: break-all;
}
.detail-kv-table a {
  color: var(--accent, #1a6cff);
}

.type-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.type-tab {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #606266;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.86rem;
  cursor: pointer;
  line-height: 1.4;
}
.type-tab:hover {
  border-color: rgba(26, 108, 255, 0.35);
  color: #1a6cff;
}
.type-tab.is-active {
  background: rgba(26, 108, 255, 0.08);
  border-color: rgba(26, 108, 255, 0.35);
  color: #1a6cff;
  font-weight: 600;
}
.type-pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.25rem;
  vertical-align: middle;
  background: #f0f2f5;
  color: #606266;
  white-space: nowrap;
}
.type-pill-post {
  background: rgba(26, 108, 255, 0.1);
  color: #1a6cff;
}
.type-pill-lead {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.type-pill-proof {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.review-table .td-actions-stack {
  padding-right: 1.1rem;
  vertical-align: middle;
  min-width: 160px;
}
.review-table .record-ops-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}
.review-table td.td-actions {
  white-space: normal;
  vertical-align: top;
  min-width: 118px;
}
.review-table .record-ops {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 108px;
}
.review-table .record-ops .btn {
  margin: 0;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.review-table .record-ops-sub {
  font-size: 0.78rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
.review-table td.content-cell {
  vertical-align: top;
  max-width: 280px;
}
.review-table td.td-img {
  vertical-align: top;
  width: 108px;
}
.review-table td.td-lead-count {
  vertical-align: top;
  text-align: center;
  white-space: nowrap;
}
.review-table .content-imgs-col {
  flex-direction: column;
  align-items: flex-start;
}
.review-table .record-lead-count {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 40px;
  padding: 0.25rem 0.55rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.15;
}
.review-table .record-lead-count small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #b45309;
}
.review-table th,
.review-table td {
  vertical-align: top;
}
.review-table thead th {
  vertical-align: middle;
}
.record-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.task-records-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.record-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  border-radius: 12px;
}
.record-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  padding-bottom: 0;
}
.record-toolbar-actions .btn {
  height: 40px;
  margin: 0;
}
.record-filter-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0;
  min-width: 156px;
}
.record-filter-label {
  display: block;
  height: 1.2rem;
  line-height: 1.2rem;
  font-size: 0.8rem;
  font-weight: 560;
  color: #64748b;
  white-space: nowrap;
}
.record-filter-control {
  box-sizing: border-box;
  width: 100%;
  min-width: 156px;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 38px;
  box-shadow: none;
  cursor: pointer;
}
.record-filter-item select.record-filter-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px;
}
.record-filter-item input[type='date'].record-filter-control {
  appearance: auto;
  -webkit-appearance: auto;
  line-height: normal;
  padding-right: 0.65rem;
}
.record-filter-control:focus {
  outline: none;
  border-color: var(--accent, #1a6cff);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.record-filter-actions {
  min-width: auto;
}
.record-filter-actions .btn {
  height: 40px;
  margin: 0;
  padding-left: 1rem;
  padding-right: 1rem;
}
.record-filter-item .filter-select {
  min-width: 148px;
}
.content-cell .content-text {
  display: block;
  word-break: break-word;
  line-height: 1.45;
  color: #1f2937;
  font-size: 0.88rem;
}
.content-cell .content-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0;
}
.content-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}
.content-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.content-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}
.content-img-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}
.content-img-btn img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.content-img-btn:hover {
  border-color: rgba(26, 108, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(26, 108, 255, 0.12);
}
.img-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}
.img-preview-card {
  position: relative;
  max-width: min(920px, 96vw);
  max-height: 92vh;
  background: #111;
  border-radius: 12px;
  padding: 2.5rem 1rem 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.img-preview-card img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3.5rem);
  margin: 0 auto;
  object-fit: contain;
}
.img-preview-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.review-table .record-post-ops {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.review-table .record-lead-ops {
  margin-top: 0.25rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.16);
  max-width: 260px;
}
.review-table .record-lead-ops-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  margin-bottom: 0.35rem;
}
.review-table .record-lead-ops-item + .record-lead-ops-item {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}
.review-table .record-lead-ops-meta {
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  word-break: break-all;
}
.review-table .record-lead-ops-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.review-table .record-lead-ops-btns .btn {
  margin: 0;
}

/* 素材开放接口文档（浅色可读） */
.api-doc-simple {
  display: grid;
  gap: 1rem;
}
.api-doc-row label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #0f172a;
}
.api-doc-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.api-doc-token-row .filter-select {
  flex: 1;
  min-width: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: #0f172a;
  background: #fff;
}
.api-doc-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}
.api-doc-url {
  flex: 1;
  display: block;
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0f172a;
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-all;
}
.api-doc-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.api-doc-warn {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 560;
}
.api-doc-hint code {
  font-size: 0.9em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
}
.api-doc-code-wrap {
  position: relative;
  margin: 0;
}
.api-doc-code {
  margin: 0;
  padding: 0.85rem 1rem;
  padding-right: 4.2rem;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  max-height: 280px;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
  word-break: normal;
}
.api-doc-code-wrap .api-doc-copy {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.api-doc-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.api-doc-card h4 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #0f172a;
}
.api-doc-sub {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.api-doc-card .api-doc-code {
  max-height: 200px;
}
#apiDocsBody {
  max-height: min(72vh, 760px);
  overflow: auto;
}

/* 我的课程：信息在左，操作按钮右侧竖排 */
.content .item.course-mine-card,
.course-mine-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
}
.course-mine-main {
  flex: 1;
  min-width: 0;
}
.course-mine-main h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text, #0f172a);
}
.course-mine-meta {
  margin: 0.45rem 0 0;
}
.course-mine-summary {
  margin: 0.85rem 0 0;
  line-height: 1.7;
}
.course-mine-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.55rem;
  flex: none;
  width: 8.75rem;
}
.course-mine-side .status-dot {
  align-self: flex-end;
  margin: 0 0 0.15rem;
}
.course-mine-side .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
@media (max-width: 640px) {
  .content .item.course-mine-card,
  .course-mine-card {
    flex-direction: column;
  }
  .course-mine-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .course-mine-side .status-dot {
    width: 100%;
    align-self: flex-start;
  }
  .course-mine-side .btn {
    flex: 1;
    min-width: 7.5rem;
  }
}
