/* Team workbench v1: the canvas's neutral surfaces, scoped to this page. */
body.tm-body.xc-team.tm-workbench {
  --bg: #f3f1ed; --panel: #fcfbf9; --ink: #29292d; --ink2: #69696f; --ink3: #818188;
  --brand: #906820; --brand-deep: #79551b; --brand-soft: rgba(144,104,32,.09); --brand-line: rgba(144,104,32,.3);
  --line: #deddd9; --line2: #e9e8e4; --tm-inset: #f1f0ed;
  --tm-surface: linear-gradient(180deg,rgba(255,255,255,.3),rgba(0,0,0,.018)),#fcfbf9;
  --tm-shadow: 0 8px 24px rgba(29,29,32,.035); --tm-active: #e7e5e0;
  background: var(--xc-bg) !important; color: var(--ink); min-height: 100dvh;
  font-size: 14px; line-height: 1.55; font-family: "Space Grotesk","PingFang SC","Microsoft YaHei",sans-serif;
}
html:is(.theme-dark,.studio-theme-dark) body.tm-body.xc-team.tm-workbench {
  --bg: #141416; --panel: #222224; --ink: #f2f2f3; --ink2: #b8b8c0; --ink3: #93939d;
  --brand: #edc581; --brand-deep: #edc581; --brand-soft: rgba(237,197,129,.09); --brand-line: rgba(237,197,129,.28);
  --line: #3b3b40; --line2: #303034; --tm-inset: #1b1b1e;
  --tm-surface: linear-gradient(180deg,rgba(255,255,255,.025),rgba(0,0,0,.075)),linear-gradient(135deg,#27272a,#1d1d20);
  --tm-shadow: 0 8px 24px rgba(0,0,0,.12); --tm-active: #38383d;
}
/* Team and group pages use .xc-page-bg; content surfaces stay opaque. */
body.tm-body.xc-team.tm-workbench .scene { padding-top: 28px; padding-bottom: 48px; }
body.tm-body.xc-team.tm-workbench :is(button,input,select) { font-family: inherit; }
body.tm-body.xc-team.tm-workbench :is(button,a,input,select):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
body.tm-body.xc-team.tm-workbench svg { width: 18px; height: 18px; flex-shrink: 0; }
body.tm-body.xc-team.tm-workbench button > :is(i,svg) { pointer-events: none; }
body.tm-body.xc-team.tm-workbench .tm-page-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
body.tm-body.xc-team.tm-workbench .tm-eyebrow { font-size: 11px; color: var(--ink3); letter-spacing: .15em; margin-bottom: 5px; }
body.tm-body.xc-team.tm-workbench .tm-page-intro h1 { font-size: 30px !important; font-weight: 650 !important; letter-spacing: -.035em; line-height: 1.3; margin: 0; }
body.tm-body.xc-team.tm-workbench .tm-page-intro p { margin: 8px 0 0; font-size: 14px; color: var(--ink2); }
body.tm-body.xc-team.tm-workbench .tm-intro-mark { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-size: 12px; }
body.tm-body.xc-team.tm-workbench :is(.team-head,.card,.invite-box,.status-strip,.dialog,.tm-create,.xc-pool-bar,.tm-asset-card,.share-card) {
  background: var(--tm-surface) !important; border: 1px solid var(--line) !important;
  border-radius: 14px; box-shadow: var(--tm-shadow); transform: none;
}
body.tm-body.xc-team.tm-workbench :is(.card,.stat):hover { transform: none; box-shadow: var(--tm-shadow); border-color: var(--line); }
body.tm-body.xc-team.tm-workbench .team-head { padding: 24px; gap: 18px; }
body.tm-body.xc-team.tm-workbench .tlogo {
  width: 54px; height: 54px; border-radius: 14px; font-size: 24px; font-weight: 600;
  background: var(--tm-active) !important; color: var(--ink) !important; border: 1px solid var(--line) !important;
}
body.tm-body.xc-team.tm-workbench .tinfo { flex: 1 1 250px; }
body.tm-body.xc-team.tm-workbench .tinfo .tn { font-size: 23px !important; font-weight: 650; letter-spacing: -.025em; flex-wrap: wrap; }
body.tm-body.xc-team.tm-workbench #teamTitle { overflow-wrap: anywhere; }
body.tm-body.xc-team.tm-workbench .tinfo .ts { margin-top: 7px; font-size: 12px; color: var(--ink3); gap: 8px; }
body.tm-body.xc-team.tm-workbench .tinfo .ts .mono { color: var(--ink2); }
body.tm-body.xc-team.tm-workbench .tinfo .tn .own { background: var(--brand-soft) !important; color: var(--brand) !important; border: 1px solid var(--brand-line); font-size: 11px; padding: 3px 9px; font-weight: 500; }
body.tm-body.xc-team.tm-workbench .av { background: var(--tm-active) !important; color: var(--ink) !important; border-color: var(--line); font-size: 12px; }
body.tm-body.xc-team.tm-workbench .avst .av { width: 32px; height: 32px; border: 2px solid var(--panel); }
body.tm-body.xc-team.tm-workbench .av.own { box-shadow: 0 0 0 1px var(--brand-line); }
body.tm-body.xc-team.tm-workbench .av.add { background: transparent !important; color: var(--ink3) !important; }
body.tm-body.xc-team.tm-workbench .th-actions { margin-left: 8px; gap: 8px; }
body.tm-body.xc-team.tm-workbench :is(.btn,.btn-pri,.btn-ghost) { min-height: 38px; padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 550; box-shadow: none; transition: transform 140ms ease,opacity 140ms ease; }
body.tm-body.xc-team.tm-workbench .btn-pri { background: var(--brand) !important; color: var(--bg) !important; border: 1px solid transparent; }
body.tm-body.xc-team.tm-workbench .btn-pri:hover { filter: none; opacity: .9; }
body.tm-body.xc-team.tm-workbench .btn-ghost { background: var(--tm-inset) !important; border: 1px solid var(--line) !important; color: var(--ink2) !important; }
body.tm-body.xc-team.tm-workbench .btn-ghost:hover { color: var(--ink) !important; border-color: var(--ink3) !important; }
body.tm-body.xc-team.tm-workbench .btn-danger { border: 1px solid color-mix(in srgb,var(--err) 25%,transparent); background: var(--err-soft); color: var(--err); }
body.tm-body.xc-team.tm-workbench .btn-sm { min-height: 34px; padding: 6px 11px; font-size: 12px; }
body.tm-body.xc-team.tm-workbench .tm-workspace { display: grid; grid-template-columns: 202px minmax(0,1fr); gap: 28px; align-items: start; margin-top: 26px; }
body.tm-body.xc-team.tm-workbench .tm-workspace-nav { display: flex; flex-direction: column; align-items: stretch; min-width: 0; gap: 0; margin: 0; }
body.tm-body.xc-team.tm-workbench .xc-pool-tools[hidden] { display: none !important; }
body.tm-body.xc-team.tm-workbench .tm-nav-label { padding: 0 13px 12px; font-size: 11px; color: var(--ink3); letter-spacing: .08em; }
body.tm-body.xc-team.tm-workbench .tabs { display: flex; flex-direction: column; gap: 5px; border: 0; margin: 0; padding: 0; }
body.tm-body.xc-team.tm-workbench .tab {
  width: 100%; justify-content: flex-start; min-height: 44px; padding: 11px 13px; gap: 10px;
  border: 1px solid transparent !important; border-radius: 9px; background: transparent !important; color: var(--ink2) !important;
  font-size: 13px; font-weight: 500; transition: opacity 140ms ease,transform 140ms ease;
}
body.tm-body.xc-team.tm-workbench .tab:hover { background: var(--tm-inset) !important; color: var(--ink) !important; }
body.tm-body.xc-team.tm-workbench .tab.on { background: var(--tm-active) !important; border-color: var(--line) !important; color: var(--ink) !important; font-weight: 600; box-shadow: inset 0 1px rgba(255,255,255,.04); }
body.tm-body.xc-team.tm-workbench .tab.on > svg { color: var(--brand); }
body.tm-body.xc-team.tm-workbench .tab .cnt { margin-left: auto; color: var(--ink2) !important; background: var(--line2) !important; font-size: 11px; padding: 1px 6px; }
body.tm-body.xc-team.tm-workbench .tm-nav-caption { display: flex; align-items: flex-start; gap: 10px; margin: 32px 12px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; color: var(--ink3); }
body.tm-body.xc-team.tm-workbench .tm-workspace-content { min-width: 0; }
body.tm-body.xc-team.tm-workbench .tm-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; min-height: 32px; }
body.tm-body.xc-team.tm-workbench .tm-panel-heading h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
body.tm-body.xc-team.tm-workbench .tm-panel-heading > span { font-size: 12px; color: var(--ink3); }
body.tm-body.xc-team.tm-workbench .tpanel { padding-top: 0; animation: none; }
body.tm-body.xc-team.tm-workbench #panel-overview > .stat-grid { background: var(--tm-surface); border: 1px solid var(--line); border-radius: 14px; gap: 0; grid-template-columns: 1.3fr repeat(3,minmax(0,1fr)); box-shadow: var(--tm-shadow); }
body.tm-body.xc-team.tm-workbench #panel-overview .stat { border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent !important; padding: 25px 22px; min-width: 0; }
body.tm-body.xc-team.tm-workbench #panel-overview .stat:last-child { border-right: 0; }
body.tm-body.xc-team.tm-workbench .stat .sl { font-size: 12px; color: var(--ink2); gap: 8px; }
body.tm-body.xc-team.tm-workbench .stat .sl svg { width: 16px; height: 16px; color: var(--ink3); }
body.tm-body.xc-team.tm-workbench .stat .sv { font-size: 32px !important; line-height: 1.2; font-weight: 600 !important; color: var(--ink); margin-top: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
body.tm-body.xc-team.tm-workbench .stat-balance .sv { color: var(--brand); font-size: 38px !important; }
body.tm-body.xc-team.tm-workbench .stat .sx { font-size: 12px; margin-top: 12px; line-height: 1.6; }
body.tm-body.xc-team.tm-workbench .stat.warn-t .sv { color: var(--err); }
body.tm-body.xc-team.tm-workbench .grid2 { gap: 18px; margin-top: 20px; }
body.tm-body.xc-team.tm-workbench .card .ch { padding: 19px 22px 0; flex-wrap: wrap; gap: 8px; }
body.tm-body.xc-team.tm-workbench .card .ch h3 { font-size: 15px; font-weight: 600; }
body.tm-body.xc-team.tm-workbench .card .ch .cnt { font-size: 11px; padding: 2px 8px; }
body.tm-body.xc-team.tm-workbench .card .cb { padding: 16px 22px 22px; }
body.tm-body.xc-team.tm-workbench :is(.link,.card .ch a.link) { font-size: 12px; font-weight: 500; }
body.tm-body.xc-team.tm-workbench #recentAlerts { min-height: 260px; }
body.tm-body.xc-team.tm-workbench .gcard { gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line2) !important; }
body.tm-body.xc-team.tm-workbench .gcard:last-child { border-bottom: 0 !important; }
body.tm-body.xc-team.tm-workbench .gcard > .link { white-space: nowrap; flex-shrink: 0; }
body.tm-body.xc-team.tm-workbench :is(.gic,.nd .ic) { background: var(--tm-active) !important; color: var(--ink2) !important; border-color: var(--line) !important; }
body.tm-body.xc-team.tm-workbench .gcard .gn { font-size: 14px; font-weight: 550; }
body.tm-body.xc-team.tm-workbench .gcard .gm { font-size: 12px; margin-top: 6px; line-height: 1.6; }
body.tm-body.xc-team.tm-workbench .gbadge { font-size: 10px; font-weight: 500; }
body.tm-body.xc-team.tm-workbench .rulebox { background: var(--tm-inset) !important; border: 1px solid var(--line2) !important; border-radius: 10px; padding: 15px; }
body.tm-body.xc-team.tm-workbench .rulebox .rl { font-size: 13px; font-weight: 500; }
body.tm-body.xc-team.tm-workbench .rulebox .kv { font-size: 12px; padding-top: 6px; }
body.tm-body.xc-team.tm-workbench .switch { background: var(--line) !important; }
body.tm-body.xc-team.tm-workbench .switch.on { background: var(--brand) !important; }
body.tm-body.xc-team.tm-workbench .xc-pool-bar { margin-top: 18px; padding: 18px 22px; gap: 10px; flex-wrap: wrap; }
body.tm-body.xc-team.tm-workbench .xc-pool-bar > div { flex: 1 1 250px; }
body.tm-body.xc-team.tm-workbench .xc-pool-title { font-size: 14px; font-weight: 600; }
body.tm-body.xc-team.tm-workbench .xc-pool-hint { font-size: 12px; color: var(--ink2); margin-top: 5px; }
body.tm-body.xc-team.tm-workbench :is(.tm-input,.tm-select) { background: var(--tm-inset) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 9px; min-height: 38px; font-size: 13px; }
body.tm-body.xc-team.tm-workbench .tm-input::placeholder { color: var(--ink3); }
body.tm-body.xc-team.tm-workbench .member-row { padding: 19px 0; gap: 15px; border-bottom: 1px solid var(--line2) !important; }
body.tm-body.xc-team.tm-workbench .member-row:last-child { border-bottom: 0 !important; }
body.tm-body.xc-team.tm-workbench .member-row .av { width: 42px; height: 42px; font-size: 16px; }
body.tm-body.xc-team.tm-workbench .member-row .who { font-size: 15px; font-weight: 550; }
body.tm-body.xc-team.tm-workbench .member-row .meta { font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
body.tm-body.xc-team.tm-workbench .member-credits { min-width: 125px; }
body.tm-body.xc-team.tm-workbench .member-credits b { font-size: 18px; }
body.tm-body.xc-team.tm-workbench .member-credits span { display: block; font-size: 11px; margin-top: 5px; }
body.tm-body.xc-team.tm-workbench .member-foot-tip { font-size: 12px; border-top-style: solid; margin-top: 18px; padding-top: 14px; }
body.tm-body.xc-team.tm-workbench .member-list-head { flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; }
.member-list-head .member-search { width: min(250px, 100%); margin-inline-start: auto; }
@media (max-width: 600px) {
  .member-list-head .member-search { order: 1; flex: 1 0 100%; }
}
body.tm-body.xc-team.tm-workbench .invite-box { padding: 22px; }
body.tm-body.xc-team.tm-workbench .icode { display: inline-block; font-size: 26px; padding: 8px 12px; margin: 12px 0; }
body.tm-body.xc-team.tm-workbench .invite-box .il { font-size: 13px; color: var(--ink2); }
body.tm-body.xc-team.tm-workbench .more-menu { background: var(--tm-surface); border-color: var(--line); padding: 6px; box-shadow: var(--tm-shadow); }
body.tm-body.xc-team.tm-workbench .more-menu button { font-size: 13px; padding: 9px 12px; }
body.tm-body.xc-team.tm-workbench .more-menu button:hover { background: var(--tm-active); }
body.tm-body.xc-team.tm-workbench .nlist { font-size: 13px; }
body.tm-body.xc-team.tm-workbench .nlist th { font-size: 11px; padding: 12px; }
body.tm-body.xc-team.tm-workbench .nlist td { padding: 14px 12px; }
body.tm-body.xc-team.tm-workbench .nlist tr:hover td { background: var(--tm-inset) !important; }
body.tm-body.xc-team.tm-workbench #panel-credits .stat { background: var(--tm-surface) !important; border-color: var(--line) !important; padding: 22px; }
body.tm-body.xc-team.tm-workbench .tm-muted { color: var(--ink2); }
body.tm-body.xc-team.tm-workbench .empty-note { font-size: 13px; padding: 35px 10px; }
body.tm-body.xc-team.tm-workbench .status-strip { padding: 17px 22px; margin-bottom: 18px; }
body.tm-body.xc-team.tm-workbench .status-strip .it { font-size: 13px; }
body.tm-body.xc-team.tm-workbench .status-strip .it .lab { font-size: 12px; }
body.tm-body.xc-team.tm-workbench .tm-asset-tools { gap: 10px; padding: 17px 22px; border-bottom: 1px solid var(--line2); }
body.tm-body.xc-team.tm-workbench .tm-asset-tools .chip { min-height: 32px; padding: 5px 10px; background: transparent; color: var(--ink2); border-color: var(--line); }
body.tm-body.xc-team.tm-workbench .tm-asset-tools .chip.on { background: var(--tm-active); color: var(--ink); border-color: var(--ink3); }
body.tm-body.xc-team.tm-workbench .tm-asset-grid { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 16px; }
body.tm-body.xc-team.tm-workbench .tm-asset-body .sn { font-size: 14px; }
body.tm-body.xc-team.tm-workbench .tm-asset-body .sm { font-size: 12px; }
body.tm-body.xc-team.tm-workbench .mask { background: rgba(0,0,0,.65) !important; padding: 16px; }
body.tm-body.xc-team.tm-workbench .dialog { width: min(460px,100%); padding: 26px; max-height: calc(100dvh - 32px); overflow: auto; }
body.tm-body.xc-team.tm-workbench .dialog h3 { font-size: 20px; }
body.tm-body.xc-team.tm-workbench .dialog p { font-size: 14px; color: var(--ink2); }
body.tm-body.xc-team.tm-workbench .tm-reclaim-mask .dialog { width: min(780px,100%); }
.tm-reclaim-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:20px 0; }
.tm-reclaim-stats > div { display:flex; flex-direction:column; gap:6px; background:var(--tm-inset); border-radius:10px; padding:16px; }
.tm-reclaim-stats span { font-size:13px; color:var(--ink2); }
.tm-reclaim-stats strong { font-size:26px; font-variant-numeric:tabular-nums; color:var(--ink); }
.tm-reclaim-stats small,.tm-reclaim-groups small { font-size:12px; line-height:1.6; color:var(--ink3); }
.tm-reclaim-heading,.tm-reclaim-groups header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tm-reclaim-heading h4 { margin:0; font-size:15px; }
.tm-reclaim-groups { max-height:260px; overflow:auto; overscroll-behavior:contain; margin:10px 0 18px; }
.tm-reclaim-groups article { padding:14px 0; border-bottom:1px solid var(--line2); }
.tm-reclaim-groups header strong { overflow-wrap:anywhere; }
.tm-reclaim-groups article p { margin:8px 0; font-variant-numeric:tabular-nums; }
.tm-reclaim-links { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tm-reclaim-links a { text-decoration:none; }
.tm-reclaim-groups .tm-reclaim-reserved { display:block; color:var(--brand); }
.tm-reclaim-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.tm-reclaim-form label { display:grid; gap:8px; color:var(--ink2); font-size:13px; }
.tm-reclaim-form .tm-input { width:100%; min-width:0; }
.tm-reclaim-impact { background:var(--brand-soft); padding:12px 14px; border-radius:8px; line-height:1.7; }
body.tm-body.xc-team.tm-workbench .dialog .tm-reclaim-note { font-size:12px; line-height:1.7; }
@media(max-width:560px) {
  .tm-reclaim-stats { gap:6px; }.tm-reclaim-stats > div { padding:11px 9px; }.tm-reclaim-stats strong { font-size:22px; }
  .tm-reclaim-form { grid-template-columns:1fr; }.tm-reclaim-groups { max-height:220px; }
}
body.tm-body.xc-team.tm-workbench .toast { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
body.tm-body.xc-team.tm-workbench .tm-create { max-width: 660px; margin: 24px auto; padding: 38px; }
body.tm-body.xc-team.tm-workbench .tm-create h2 { font-size: 26px; margin: 12px 0; }
body.tm-body.xc-team.tm-workbench .tm-create p { font-size: 14px; line-height: 1.8; }
@media (prefers-reduced-motion: no-preference) {
  body.tm-body.xc-team.tm-workbench .tpanel.on { animation: tm-workbench-enter 180ms ease-out; }
  body.tm-body.xc-team.tm-workbench .mask.on .dialog { animation: tm-workbench-enter 160ms ease-out; }
}
@keyframes tm-workbench-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1200px) {
  body.tm-body.xc-team.tm-workbench .tm-workspace { grid-template-columns: 176px minmax(0,1fr); gap: 20px; }
  body.tm-body.xc-team.tm-workbench .avst { display: none; }
  body.tm-body.xc-team.tm-workbench #panel-overview .stat { padding: 22px 16px; }
  body.tm-body.xc-team.tm-workbench .stat .sv { font-size: 29px !important; }
  body.tm-body.xc-team.tm-workbench .stat-balance .sv { font-size: 33px !important; }
}
@media (max-width: 1024px) {
  body.tm-body.xc-team.tm-workbench .tm-workspace { grid-template-columns: minmax(0,1fr); gap: 22px; }
  body.tm-body.xc-team.tm-workbench .tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  body.tm-body.xc-team.tm-workbench :is(.tm-nav-label,.tm-nav-caption) { display: none; }
  body.tm-body.xc-team.tm-workbench .grid2 { grid-template-columns: minmax(0,1fr) !important; }
  body.tm-body.xc-team.tm-workbench .member-row .acts { flex-basis: auto; }
}
@media (max-width: 640px) {
  body.tm-body.xc-team.tm-workbench .scene { padding-top: 20px; }
  body.tm-body.xc-team.tm-workbench .tm-page-intro { margin-bottom: 19px; }
  body.tm-body.xc-team.tm-workbench .tm-page-intro h1 { font-size: 25px !important; }
  body.tm-body.xc-team.tm-workbench .tm-page-intro p { font-size: 13px; max-width: 25em; }
  body.tm-body.xc-team.tm-workbench .tm-intro-mark { display: none; }
  body.tm-body.xc-team.tm-workbench .team-head { padding: 18px; gap: 12px; }
  body.tm-body.xc-team.tm-workbench .tinfo { flex: 1 1 180px; }
  body.tm-body.xc-team.tm-workbench .tinfo .tn { font-size: 20px !important; }
  body.tm-body.xc-team.tm-workbench .th-actions { width: 100%; margin: 6px 0 0; }
  body.tm-body.xc-team.tm-workbench .tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.tm-body.xc-team.tm-workbench .tab { font-size: 12px; }
  body.tm-body.xc-team.tm-workbench :is(.stat-grid,#panel-overview > .stat-grid) { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.tm-body.xc-team.tm-workbench #panel-overview .stat { padding: 20px 15px; }
  body.tm-body.xc-team.tm-workbench #panel-overview .stat:nth-child(2) { border-right: 0; }
  body.tm-body.xc-team.tm-workbench #panel-overview .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  body.tm-body.xc-team.tm-workbench .stat .sv { font-size: 27px !important; }
  body.tm-body.xc-team.tm-workbench .stat-balance .sv { font-size: 31px !important; }
  body.tm-body.xc-team.tm-workbench .card :is(.ch,.cb) { padding-left: 16px; padding-right: 16px; }
  body.tm-body.xc-team.tm-workbench .member-row { flex-wrap: wrap; gap: 10px; }
  body.tm-body.xc-team.tm-workbench .member-main { flex-basis: calc(100% - 58px); }
  body.tm-body.xc-team.tm-workbench .member-credits { flex: 1; text-align: left; min-width: 90px; }
  body.tm-body.xc-team.tm-workbench .member-row .acts { flex-basis: 100%; }
  body.tm-body.xc-team.tm-workbench #panel-credits .stat-grid { grid-template-columns: minmax(0,1fr) !important; }
  body.tm-body.xc-team.tm-workbench .tm-create { padding: 24px; }
  body.tm-body.xc-team.tm-workbench .tm-row .tm-input { flex-basis: 100% !important; min-width: 0; }
  body.tm-body.xc-team.tm-workbench .tm-asset-tools { padding: 16px; }
  body.tm-body.xc-team.tm-workbench .tm-asset-tools .tm-input { flex-basis: 100%; min-width: 0; }
  body.tm-body.xc-team.tm-workbench .invite-row .tm-input { min-width: 0; flex-basis: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.tm-body.xc-team.tm-workbench :is(.tpanel,.dialog,.invite-box,.tab,.btn,.card,.stat,.team-head) { animation: none !important; transition: none !important; }
}
.team-filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:16px; margin-bottom:16px; border:1px solid var(--line,rgba(128,128,128,.22)); border-radius:12px; }
.team-filter-bar label { display:flex; flex-direction:column; gap:6px; font-size:13px; min-width:0; }
.team-filter-bar .tm-input { width:164px; max-width:100%; min-height:38px; }
.team-filter-bar [hidden] { display:none !important; }
#teamLedgerPage { width:76px; }
#teamLedgerPagination { justify-content:flex-end; }
#panel-credits .nlist { min-width:1050px; }
html.theme-dark .team-filter-bar :is(select,input),html.studio-theme-dark .team-filter-bar :is(select,input) { color-scheme:dark; }
@media(max-width:640px) { .team-filter-bar label { flex:1 1 140px; }.team-filter-bar .tm-input { width:100%; } }

/* Optional, role-aware guidance; the workspace remains usable until opened. */
.tm-workbench .tm-guide-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 24px; margin-bottom:22px; background:var(--brand-soft); border:1px solid var(--brand-line); border-radius:14px; }
.tm-workbench .tm-guide-banner h3 { margin:4px 0 6px; font-size:18px; color:var(--ink); }
.tm-workbench .tm-guide-banner p { margin:0; color:var(--ink2); font-size:13px; }
.tm-workbench .tm-guide-banner > button { flex-shrink:0; }
.tm-workbench .tm-guide-tip { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding:14px 18px; border:1px solid var(--brand-line); border-radius:12px; color:var(--ink2); background:var(--brand-soft); font-size:13px; }
.tm-workbench .tm-guide-tip button { flex-shrink:0; }
.tm-workbench .tm-guide-dialog { width:min(780px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--line); border-radius:20px; background:var(--panel); color:var(--ink); box-shadow:0 24px 90px rgba(0,0,0,.28); overflow:auto; }
.tm-workbench .tm-guide-dialog::backdrop { background:rgba(0,0,0,.6); }
.tm-workbench .tm-guide-dialog header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:26px 28px 20px; }
.tm-workbench .tm-guide-dialog h2 { margin:4px 0 0; font-size:23px; line-height:1.4; }
.tm-workbench .tm-guide-dialog [data-guide-close] { min-width:42px; min-height:42px; padding:0; font-size:24px; }
.tm-workbench .tm-guide-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; padding:0 28px 20px; border-bottom:1px solid var(--line2); }
.tm-workbench .tm-guide-steps button { display:flex; gap:7px; align-items:center; justify-content:center; min-height:44px; padding:8px 5px; background:var(--tm-inset); border:1px solid transparent; border-radius:10px; color:var(--ink2); font-size:12px; cursor:pointer; }
.tm-workbench .tm-guide-steps button[aria-pressed="true"] { background:var(--brand-soft); border-color:var(--brand-line); color:var(--brand); }
.tm-workbench .tm-guide-steps span { font-variant-numeric:tabular-nums; font-size:11px; opacity:.8; }
.tm-workbench .tm-guide-body { padding:22px 28px 26px; }
.tm-workbench .tm-guide-body h3 { margin:0 0 8px; font-size:20px; }
.tm-workbench .tm-guide-body p { margin:0 0 18px; color:var(--ink2); }
.tm-workbench .tm-guide-body ol { padding-left:22px; margin:0; }
.tm-workbench .tm-guide-body li { padding:7px 0 7px 6px; line-height:1.8; }
.tm-workbench .tm-guide-body li::marker { color:var(--brand); font-weight:600; }
.tm-workbench .tm-guide-note { margin-top:20px; padding:14px 16px; background:var(--tm-inset); border-radius:10px; color:var(--ink2); font-size:13px; line-height:1.8; }
.tm-workbench .tm-guide-extra { margin-top:16px; }
.tm-workbench .tm-guide-dialog footer { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:18px 28px; border-top:1px solid var(--line2); }
.tm-workbench #teamGuidePage { margin-right:auto; color:var(--ink3); font-size:12px; }
.tm-workbench .tm-guide-dialog button:disabled { opacity:.4; cursor:default; }
@media (max-width:640px) {
  .tm-workbench :is(.tm-guide-banner,.tm-guide-tip) { align-items:flex-start; flex-direction:column; gap:12px; padding:18px; }
  .tm-workbench .tm-guide-dialog header,.tm-workbench .tm-guide-body,.tm-workbench .tm-guide-dialog footer { padding:20px; }
  .tm-workbench .tm-guide-steps { padding:0 20px 16px; gap:5px; }
  .tm-workbench .tm-guide-steps button { flex-direction:column; gap:3px; font-size:11px; }
  .tm-workbench #teamGuideAction { width:100%; min-height:44px; }
}
@media (prefers-reduced-motion:no-preference) {
  .tm-workbench .tm-guide-dialog[open] { animation:tm-workbench-enter 160ms ease-out; }
}
