/* 团队工作台 · 对照原型 XCTeam，深空金 */

:root {
  --brand: #8a6d1f;
  --brand-deep: #6d5416;
  --brand-soft: rgba(138, 109, 31, 0.1);
  --brand-line: rgba(138, 109, 31, 0.38);
  --ink: #26211a;
  --ink2: #6b6456;
  --ink3: #a59d8a;
  --bg: #f4f1e9;
  --panel: rgba(255, 255, 255, 0.72);
  --line: rgba(28, 26, 23, 0.16);
  --line2: rgba(28, 26, 23, 0.08);
  --amber: #8a6d1f;
}

html.theme-dark,
html.studio-theme-dark {
  --brand: #f2e3ad;
  --brand-deep: #dcc899;
  --brand-soft: rgba(242, 227, 173, 0.12);
  --brand-line: rgba(242, 227, 173, 0.35);
  --ink: rgba(242, 241, 234, 0.92);
  --ink2: rgba(242, 241, 234, 0.6);
  --ink3: rgba(242, 241, 234, 0.38);
  --bg: #070708;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.11);
  --line2: rgba(255, 255, 255, 0.06);
  --amber: #f2e3ad;
}

body.tm-body.xc-team {
  background: #070708;
  color: var(--ink);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  position: relative;
}
html:not(.theme-dark):not(.studio-theme-dark) body.tm-body.xc-team { background: #f4f1e9; }

.xc-team-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/static/images/xc-nebula.jpg") center / cover no-repeat;
  opacity: 0.28;
}
.xc-team-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(5, 5, 8, 0.1) 0%, rgba(5, 5, 8, 0.72) 88%);
}

.xc-team .scene {
  position: relative;
  z-index: 1;
  width: min(var(--xc-page-w, 1360px), calc(100% - 56px)) !important;
  max-width: min(var(--xc-page-w, 1360px), calc(100% - 56px)) !important;
  margin: 0 auto !important;
  padding: 16px 0 48px;
  box-sizing: border-box;
}
.xc-team .track { display: none; }
.xc-team .tinfo .tn { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.xc-team .stat .sv { font-size: 17px; font-weight: 800; }
.xc-team .tm-create h2 { font-size: 17px; font-weight: 800; }
.xc-team .tm-create p { font-size: 12px; }

.xc-team .team-head,
.xc-team .stat,
.xc-team .card,
.xc-team .invite-box,
.xc-team .status-strip,
.xc-team .dialog {
  background: rgba(28, 26, 23, 0.045);
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 16px;
  box-shadow: none;
}
.xc-team .team-head,
.xc-team .stat,
.xc-team .card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.xc-team .team-head { padding: 18px 22px; }
.xc-team .stat { padding: 14px 16px; }
.xc-team .stat:hover,
.xc-team .card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.xc-team .tlogo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a2620, #14120e);
  border: 1px solid var(--brand-line);
}

.xc-team .tinfo .tn { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.xc-team .tinfo .tn .own,
.xc-team .own {
  color: #14100a !important;
  background: linear-gradient(135deg, #f2e3ad, #dcc899) !important;
  font-weight: 800;
}
.xc-team .tinfo .ts .mono { color: var(--brand); }

.xc-team .av {
  background: linear-gradient(135deg, #6b5d3f, #c9b88f);
  color: #0c0b08;
  border-color: var(--brand-line);
}
.xc-team .av.own { box-shadow: 0 0 0 1.5px var(--brand); }

.xc-team .btn-pri {
  background: linear-gradient(135deg, #ecd9a0, #d3ba82);
  color: #14100a;
  box-shadow: none;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
}
.xc-team .btn-pri:hover { filter: brightness(1.04); background: linear-gradient(135deg, #ecd9a0, #d3ba82); }
.xc-team .btn-ghost {
  background: rgba(255, 253, 246, 0.7);
  border: 1px solid rgba(28, 26, 23, 0.16);
  color: #6b6456;
  border-radius: 999px;
}
.xc-team .btn-ghost:hover { border-color: rgba(138, 109, 31, 0.38); color: #8a6d1f; }

.xc-team .tabs {
  gap: 6px;
  border-bottom: 0;
  margin-top: 16px;
}
.xc-team .tab {
  border: 1px solid rgba(28, 26, 23, 0.16);
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.035);
  padding: 8px 16px;
  color: #6b6456;
}
.xc-team .tab.on {
  color: #8a6d1f;
  background: rgba(138, 109, 31, 0.1);
  border-color: rgba(138, 109, 31, 0.38);
  font-weight: 800;
}
.xc-team .tab.on .cnt { background: rgba(138, 109, 31, 0.12); color: #8a6d1f; }
.xc-team .tab .newflag {
  background: #8a6d1f;
  color: #fffaf0;
}

.xc-team .stat .sv { color: var(--brand); font-size: 17px; font-weight: 800; }
.xc-team .stat a,
.xc-team .link { color: var(--brand); }

.xc-team .icode {
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 10px;
}

.xc-team .tm-input,
.xc-team .tm-select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
}

.xc-team .mask { background: rgba(3, 3, 5, 0.72); }

.xc-team .xc-pool-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 15px 20px;
  background: var(--panel);
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.xc-team .xc-pool-title { font-size: 13px; font-weight: 800; }
.xc-team .xc-pool-hint { font-size: 11.5px; color: var(--ink2); margin-top: 4px; }

/* 黑夜模式：规则卡 / 次级文案提对比度 */
html.theme-dark .xc-team,
html.studio-theme-dark .xc-team {
  --ink2: rgba(242, 241, 234, 0.78);
  --ink3: rgba(242, 241, 234, 0.58);
}
html.theme-dark .xc-team .rulebox,
html.studio-theme-dark .xc-team .rulebox {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(242, 241, 234, 0.9);
}
html.theme-dark .xc-team .rulebox .rl,
html.studio-theme-dark .xc-team .rulebox .rl {
  color: rgba(242, 241, 234, 0.94);
}
html.theme-dark .xc-team .kv,
html.studio-theme-dark .xc-team .kv {
  color: rgba(242, 241, 234, 0.82);
}
html.theme-dark .xc-team .kv b,
html.theme-dark .xc-team .kv .mono,
html.studio-theme-dark .xc-team .kv b,
html.studio-theme-dark .xc-team .kv .mono {
  color: rgba(242, 241, 234, 0.94);
}
html.theme-dark .xc-team .stat .sl,
html.theme-dark .xc-team .stat .sx,
html.theme-dark .xc-team .stat .sv small,
html.theme-dark .xc-team .nlist th,
html.theme-dark .xc-team .feeditem,
html.theme-dark .xc-team .gcard .gm,
html.theme-dark .xc-team .nd .meta,
html.studio-theme-dark .xc-team .stat .sl,
html.studio-theme-dark .xc-team .stat .sx,
html.studio-theme-dark .xc-team .stat .sv small,
html.studio-theme-dark .xc-team .nlist th,
html.studio-theme-dark .xc-team .feeditem,
html.studio-theme-dark .xc-team .gcard .gm,
html.studio-theme-dark .xc-team .nd .meta {
  color: rgba(242, 241, 234, 0.64);
}

.xc-team .share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.xc-team .share-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.xc-team .share-cover { height: 88px; }
.xc-team .share-body { padding: 12px 13px 14px; }
.xc-team .share-body .sn { font-size: 13px; font-weight: 800; }
.xc-team .share-body .sm { font-size: 11px; color: var(--ink3); margin-top: 5px; }
.xc-team .share-acts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.xc-team .tm-mute {
  border: 0;
  background: none;
  color: #c9b88f;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline dotted;
  padding: 0 0 0 6px;
}
.xc-team .nlist .nm { font-weight: 700; }

html.theme-dark .xc-team-bg,
html.studio-theme-dark .xc-team-bg {
  opacity: 0.28 !important;
}
html.theme-dark .xc-team-bg::after,
html.studio-theme-dark .xc-team-bg::after {
  inset: 0;
  height: auto;
  background: radial-gradient(ellipse at 50% 0%, rgba(5, 5, 8, 0.1) 0%, rgba(5, 5, 8, 0.72) 88%) !important;
}
html.theme-dark .xc-team .team-head,
html.studio-theme-dark .xc-team .team-head,
html.theme-dark .xc-team .stat,
html.studio-theme-dark .xc-team .stat,
html.theme-dark .xc-team .card,
html.studio-theme-dark .xc-team .card,
html.theme-dark .xc-team .invite-box,
html.studio-theme-dark .xc-team .invite-box,
html.theme-dark .xc-team .status-strip,
html.studio-theme-dark .xc-team .status-strip {
  background: rgba(18, 16, 14, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none;
}

/* 字号 / 纸金框 · 对照活动中心 + XCTeam */
.xc-team .tabs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.xc-team .tabs-row .tabs { margin-top: 0; flex: 1; }
.xc-team .tab { font-size: 13.5px; font-weight: 700; padding: 8px 16px; }
.xc-team .tinfo .tn {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: -0.015em;
}
.xc-team .tinfo .ts { font-size: 12.5px; color: var(--ink2); }
.xc-team .stat .sl { font-size: 12.5px; }
.xc-team .stat .sv { font-size: 26px !important; font-weight: 900 !important; letter-spacing: -0.02em; }
.xc-team .stat .sx { font-size: 12px; }
.xc-team .ch h3 { font-size: 14px; font-weight: 800; }
.xc-team .member-name,
.xc-team .share-body .sn { font-size: 14px !important; font-weight: 800; }
.xc-team .nlist { font-size: 12.5px; }
.xc-team .nlist th { font-size: 11.5px; font-weight: 700; }
.xc-team .btn,
.xc-team .btn-pri,
.xc-team .btn-ghost { font-size: 13px; }
.xc-team .tm-create h2 { font-size: 26px !important; font-weight: 900 !important; }
.xc-team .tm-create p { font-size: 12.5px !important; }

.xc-pool-tools {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}
.xc-pool-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink2);
}
.xc-pool-switch + .xc-pool-switch {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.xc-pool-switch.is-locked .xc-pool-seg button {
  cursor: default;
}
.xc-pool-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
}
.xc-pool-seg button {
  border: 0;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  cursor: pointer;
}
.xc-pool-seg button.on {
  background: linear-gradient(135deg, #ecd9a0, #d3ba82);
  color: #14100a;
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-team .team-head,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .stat,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .card,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .invite-box,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .status-strip,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .xc-pool-bar,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .share-card,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .tm-asset-card,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .tm-create,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .dialog {
  background: rgba(28, 26, 23, 0.045) !important;
  border: 1px solid rgba(28, 26, 23, 0.1) !important;
  box-shadow: none;
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .tab:not(.on) {
  background: rgba(28, 26, 23, 0.035);
  border-color: rgba(28, 26, 23, 0.16);
  color: #6b6456;
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .tab.on {
  color: #8a6d1f !important;
  background: rgba(138, 109, 31, 0.1) !important;
  border-color: rgba(138, 109, 31, 0.38) !important;
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .btn-pri {
  background: linear-gradient(135deg, #ecd9a0, #d3ba82) !important;
  color: #14100a !important;
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .btn-ghost {
  background: rgba(255, 253, 246, 0.55) !important;
  border-color: rgba(28, 26, 23, 0.16) !important;
  color: #6b6456 !important;
}

/* 框内底：去掉旧青绿，统一纸金 / 深空玻璃 */
.xc-team .rulebox,
.xc-team .gcard .gic,
.xc-team .nd .ic,
.xc-team .tm-create,
.xc-team .dialog,
.xc-team .member-row,
.xc-team .share-card,
.xc-team .tm-asset-card {
  background: var(--panel);
}
.xc-team .rulebox {
  border: 1px solid var(--line);
  border-radius: 12px;
}
.xc-team .gcard .gic,
.xc-team .nd .ic,
.xc-team .tlogo {
  background: linear-gradient(135deg, #6b5d3f, #c9b88f) !important;
  color: #14100a;
  border-color: var(--brand-line);
}
.xc-team .switch { background: rgba(28, 26, 23, 0.14); }
.xc-team .switch.on { background: var(--brand); }
.xc-team .pbar i { background: linear-gradient(90deg, #d3ba82, var(--brand)); }
.xc-team .nlist tr:hover td { background: rgba(138, 109, 31, 0.06); }
.xc-team .mask { background: rgba(40, 34, 24, 0.42); }
.xc-team .team-error {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(192, 122, 18, 0.35);
  background: rgba(253, 243, 225, 0.92);
  color: #6b5416;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

html:not(.theme-dark):not(.studio-theme-dark) .xc-team .rulebox {
  background: rgba(28, 26, 23, 0.035) !important;
  border: 1px solid rgba(28, 26, 23, 0.08) !important;
  box-shadow: none;
}
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .gcard .gic,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .nd .ic,
html:not(.theme-dark):not(.studio-theme-dark) .xc-team .tlogo {
  background: linear-gradient(135deg, #ecd9a0, #d3ba82) !important;
  color: #14100a;
}

html.theme-dark .xc-team .rulebox,
html.studio-theme-dark .xc-team .rulebox,
html.theme-dark .xc-team .tm-create,
html.studio-theme-dark .xc-team .tm-create,
html.theme-dark .xc-team .dialog,
html.studio-theme-dark .xc-team .dialog {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
}
html.theme-dark .xc-team .nlist tr:hover td,
html.studio-theme-dark .xc-team .nlist tr:hover td {
  background: rgba(242, 227, 173, 0.08) !important;
}
html.theme-dark .xc-team .switch,
html.studio-theme-dark .xc-team .switch {
  background: rgba(255, 255, 255, 0.16);
}
html.theme-dark .xc-team .mask,
html.studio-theme-dark .xc-team .mask {
  background: rgba(3, 3, 5, 0.72);
}
html.theme-dark .xc-team .team-error,
html.studio-theme-dark .xc-team .team-error {
  background: rgba(232, 180, 74, 0.12);
  border-color: rgba(242, 227, 173, 0.35);
  color: #f2e3ad;
}
html.theme-dark .xc-team .tab,
html.studio-theme-dark .xc-team .tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(242, 241, 234, 0.6);
}
html.theme-dark .xc-team .tab.on,
html.studio-theme-dark .xc-team .tab.on {
  background: rgba(242, 227, 173, 0.1) !important;
  border-color: rgba(242, 227, 173, 0.35) !important;
  color: #f2e3ad !important;
}
html.theme-dark .xc-team .btn-ghost,
html.studio-theme-dark .xc-team .btn-ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: rgba(242, 241, 234, 0.7) !important;
}

.xc-team .tm-asset-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 14px 12px;
}
.xc-team .tm-asset-tools .tm-input {
  flex: 1;
  min-width: 160px;
}
.xc-team .tm-asset-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.xc-team .tm-asset-tools .chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.xc-team .tm-asset-tools .chip.on {
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.xc-team #panel-assets.is-drop {
  outline: 2px dashed var(--brand-line);
  outline-offset: -8px;
  border-radius: 16px;
}
.xc-team .tm-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.xc-team .tm-asset-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.xc-team .tm-asset-pick {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(12, 11, 9, 0.62);
  display: grid;
  place-items: center;
}
.xc-team .tm-asset-pick input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #c9b88f;
}
.xc-team .tm-asset-cover {
  position: relative;
  height: 128px;
  background: linear-gradient(135deg, rgba(201, 184, 143, 0.28), rgba(20, 18, 14, 0.55));
  overflow: hidden;
}
.xc-team .tm-asset-cover img,
.xc-team .tm-asset-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.xc-team .tm-asset-ph {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.xc-team .tm-asset-kind {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(12, 11, 9, 0.55);
  color: #f2e3ad;
}
.xc-team .tm-asset-body {
  padding: 11px 12px 12px;
}
.xc-team .tm-asset-body .sn {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xc-team .tm-asset-body .sm {
  font-size: 11px;
  color: var(--ink3);
  margin-top: 5px;
}
.xc-team .tm-asset-lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 6, 8, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
}
.xc-team .tm-asset-lb[hidden] { display: none !important; }
.xc-team .tm-asset-lb-media img,
.xc-team .tm-asset-lb-media video {
  max-width: min(92vw, 960px);
  max-height: min(78vh, 720px);
  border-radius: 12px;
  background: #111;
}
.xc-team .tm-asset-lb-name {
  color: #f2e3ad;
  font-size: 13px;
  font-weight: 700;
}
.xc-team .tm-asset-lb-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
