/* === Team Collaboration page === */

/* Hero */
.tc-hero { padding-top: 32px; padding-bottom: 64px; position: relative; overflow: hidden; }
.tc-hero::before {
  content: "";
  position: absolute; inset: -10% -20% auto -20%; height: 700px;
  background:
    radial-gradient(50% 60% at 65% 20%, rgba(64,204,191,0.13), transparent 60%),
    radial-gradient(40% 50% at 20% 40%, rgba(99,102,241,0.08), transparent 60%);
  pointer-events: none; z-index: 0;
}
.tc-hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: center;
}
.tc-hero h1 { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.07; letter-spacing: -0.025em; text-wrap: balance; margin-top: 16px; }
.tc-hero h1 .accent { color: var(--teal-600); }
.tc-hero .lede { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 50ch; text-wrap: pretty; }
.tc-hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.tc-hero .benefits-row { justify-content: flex-start; margin-top: 24px; }

/* Task board mock */
.tc-board-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7);
}
.tc-board-bar {
  padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.tc-board-bar .traf { display: flex; gap: 5px; }
.tc-board-bar .traf i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.tc-board-bar .ttl { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.tc-board-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.tc-col { background: var(--bg); padding: 10px; }
.tc-col-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tc-col-hd .name { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.tc-col-hd .cnt { font-size: 10px; font-weight: 700; background: var(--line-2); color: var(--ink-2); padding: 1px 6px; border-radius: 999px; }
.tc-task { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.tc-task:last-child { margin-bottom: 0; }
.tc-task-badge { display: inline-block; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.tc-task-badge.lead { background: var(--teal-50); color: var(--teal-700); }
.tc-task-badge.meeting { background: #EEF2FF; color: #4F46E5; }
.tc-task-badge.work { background: #FEF3C7; color: #92400E; }
.tc-task-badge.followup { background: #FEF2F2; color: #B91C1C; }
.tc-task h5 { font-size: 11px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.tc-task-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.tc-task-due { font-size: 10px; color: var(--muted); }
.tc-task-av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 700; color: white; flex-shrink: 0; }

/* Notification chips */
.tc-chip { position: absolute; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-md); z-index: 2; }
.tc-chip .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.tc-chip b { font-size: 12px; font-weight: 700; color: var(--ink); display: block; }
.tc-chip small { font-size: 10px; color: var(--muted); }
.tc-chip-1 { top: -16px; right: 24px; }
.tc-chip-2 { bottom: -16px; left: 16px; }

/* Leaderboard mock */
.tc-lb-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7); }
.tc-lb-head { background: var(--ink); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.tc-lb-head .ttl { font-size: 13px; font-weight: 700; color: white; }
.tc-lb-head .period { font-size: 10px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 999px; }
.tc-lb-top { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.tc-lb-top .crown { font-size: 20px; }
.tc-lb-av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); display: grid; place-items: center; font-size: 18px; font-weight: 800; color: white; margin: 6px auto; border: 3px solid var(--teal-200); }
.tc-lb-top .name { font-size: 13px; font-weight: 700; color: var(--ink); }
.tc-lb-top .val { font-size: 12px; color: var(--teal-600); font-weight: 700; margin-top: 2px; }
.tc-lb-rows { padding: 8px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.tc-lb-row { display: grid; grid-template-columns: 20px 28px 1fr auto; gap: 8px; align-items: center; }
.tc-lb-row .pos { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; }
.tc-lb-row .av-sm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: white; }
.tc-lb-row .rep-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.tc-lb-bar-wrap { height: 4px; background: var(--line-2); border-radius: 999px; margin-top: 3px; }
.tc-lb-bar-fill { height: 4px; background: var(--teal-400); border-radius: 999px; }
.tc-lb-row .score { font-size: 12px; font-weight: 700; color: var(--ink); font-feature-settings: "tnum"; }

/* Activity feed mock */
.tc-activity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7); }
.tc-act-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tc-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); animation: tcPulse 2s infinite; }
@keyframes tcPulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.tc-act-list { padding: 8px 0; }
.tc-act-item { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 8px 16px; }
.tc-act-item:not(:last-child) { border-bottom: 1px dashed var(--line-2); }
.tc-act-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
.tc-act-msg { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.tc-act-msg b { color: var(--ink); font-weight: 600; }
.tc-act-time { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* User Management mock */
.tc-um-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7); }
.tc-um-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.tc-um-head .ttl { font-size: 13px; font-weight: 700; color: var(--ink); }
.tc-um-add { font-size: 11px; font-weight: 700; color: var(--teal-600); background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.tc-um-hdr { display: grid; grid-template-columns: 2fr 0.6fr 0.6fr 0.8fr; gap: 8px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tc-um-list { padding: 4px 0; }
.tc-um-row { display: grid; grid-template-columns: 2fr 0.6fr 0.6fr 0.8fr; gap: 8px; padding: 9px 16px; align-items: center; }
.tc-um-row:not(:last-child) { border-bottom: 1px dashed var(--line-2); }
.tc-um-member { display: flex; align-items: center; gap: 8px; }
.tc-um-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; }
.tc-um-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.tc-um-role { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; display: inline-flex; align-items: center; width: fit-content; }
.tc-um-role.admin   { background: #EEF2FF; color: #4F46E5; }
.tc-um-role.manager { background: var(--teal-50); color: var(--teal-700); }
.tc-um-role.rep     { background: var(--line-2); color: var(--ink-2); }
.tc-um-num { font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; }
.tc-um-status { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; display: inline-flex; align-items: center; width: fit-content; }
.tc-um-status.on  { background: #DCFCE7; color: #15803D; }
.tc-um-status.off { background: var(--line-2); color: var(--muted); }

/* Performance Tracking mock */
.tc-perf-mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,0.7); }
.tc-perf-head { background: var(--ink); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.tc-perf-head .ttl { font-size: 13px; font-weight: 700; color: white; }
.tc-perf-head .period { font-size: 10px; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 999px; }
.tc-perf-hdr { display: grid; grid-template-columns: 1.8fr 0.6fr 0.8fr 1.2fr 0.5fr; gap: 8px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tc-perf-list { padding: 4px 0; }
.tc-perf-row { display: grid; grid-template-columns: 1.8fr 0.6fr 0.8fr 1.2fr 0.5fr; gap: 8px; padding: 10px 16px; align-items: center; }
.tc-perf-row:not(:last-child) { border-bottom: 1px dashed var(--line-2); }
.tc-perf-rep { display: flex; align-items: center; gap: 8px; }
.tc-perf-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; }
.tc-perf-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.tc-perf-num { font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; }
.tc-perf-rate { display: flex; align-items: center; gap: 6px; }
.tc-perf-bar-wrap { flex: 1; height: 5px; background: var(--line-2); border-radius: 999px; }
.tc-perf-bar-fill { height: 5px; background: var(--teal-500); border-radius: 999px; }
.tc-perf-rate span { font-size: 11px; font-weight: 700; color: var(--teal-600); white-space: nowrap; }

/* Responsive */
@media (max-width: 980px) {
  .tc-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .tc-board-cols { grid-template-columns: repeat(2, 1fr); }
  .tc-board-cols .tc-col:last-child { display: none; }
}
