/* Workspace switcher — shared across td-desktop & federation-admin */
.ws-switcher {
  position: relative;
  margin: 4px 6px 18px;
}
.ws-switcher-btn {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-canvas);
  box-shadow: var(--neu-raised-sm);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--fg-1);
}
.ws-switcher-btn:hover { box-shadow: var(--neu-raised-md); }
.ws-switcher-btn.open { box-shadow: var(--neu-pressed); }

.ws-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ws-mark svg { width: 16px; height: 16px; }

.ws-meta { flex: 1; min-width: 0; }
.ws-role-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.ws-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ws-caret { color: var(--fg-3); flex-shrink: 0; }

.ws-menu {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  width: 320px;
  background: var(--bg-canvas);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(20,16,34,0.18), 0 0 0 1px rgba(86,71,135,0.08);
  padding: 8px;
  z-index: 50;
}
.ws-account {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 6px;
}
.ws-account .avatar { width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, #806AAA, #3A2E5B); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:12px; }
.ws-account .name { font-size: 13px; font-weight: 600; }
.ws-account .email { font-size: 11.5px; color: var(--fg-3); }

.ws-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 10px 14px 6px;
}
.ws-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.ws-item:hover { background: rgba(86,71,135,0.05); }
.ws-item.current { background: rgba(86,71,135,0.06); }
.ws-item.current .ws-check { color: var(--purple-500); }
.ws-item .ws-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }
.ws-item .meta { flex: 1; min-width: 0; }
.ws-item .meta .nm { font-size: 13px; font-weight: 600; line-height: 1.25; }
.ws-item .meta .sub { font-size: 11px; color: var(--fg-3); margin-top: 1px; }
.ws-check { width: 16px; opacity: 0.5; }

.ws-divider { height: 1px; background: var(--border-1); margin: 6px 4px; }

.ws-add {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
}
.ws-add:hover { background: rgba(86,71,135,0.05); color: var(--purple-500); }

/* Tournament picker landing */
.tp-wrap { padding: 56px 64px; max-width: 1200px; }
.tp-greet { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.tp-h1 { font-size: 42px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 8px 0 12px; max-width: 720px; }
.tp-h1 em { font-style: normal; color: var(--purple-500); font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
.tp-lede { font-size: 15.5px; line-height: 1.55; color: var(--fg-2); max-width: 600px; margin-bottom: 36px; }

.tp-section-h { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin: 32px 0 14px; display: flex; align-items: center; gap: 10px; }
.tp-section-h .count { background: rgba(86,71,135,0.08); color: var(--fg-2); padding: 2px 9px; border-radius: 999px; font-size: 11px; }

.tp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tp-card {
  background: var(--bg-canvas);
  border-radius: 18px;
  box-shadow: var(--neu-raised-md);
  padding: 22px 24px;
  cursor: pointer;
  transition: transform 200ms;
  display: flex; flex-direction: column; gap: 14px;
}
.tp-card:hover { transform: translateY(-2px); box-shadow: var(--neu-raised-lg); }
.tp-card.muted { box-shadow: var(--neu-raised-sm); opacity: 0.85; }
.tp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tp-card .crest {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.tp-card .nm { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tp-card .meta { font-size: 12.5px; color: var(--fg-3); margin-top: 3px; }

.tp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-1); }
.tp-stat .l { font-size: 10px; font-weight: 600; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; }
.tp-stat .v { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 3px; }

.tp-fed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tp-fed {
  background: linear-gradient(135deg, #564787, #3A2E5B);
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-cta);
}
.tp-fed:hover { transform: translateY(-2px); }
.tp-fed .crest { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; }
.tp-fed .nm { font-size: 17px; font-weight: 600; }
.tp-fed .sub { font-size: 12px; opacity: 0.7; margin-top: 3px; }
