File size: 3,503 Bytes
af1bee9
 
 
 
 
 
 
 
 
 
 
0d811c3
af1bee9
 
 
 
 
 
 
 
0d811c3
af1bee9
 
0d811c3
 
af1bee9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* The AI team (CoworkerCard.tsx, CoworkerAvatar.tsx). Tokens only. */

/* grid: 3 across on wide screens, 2 on tablets, a swipeable row on phones */
.cw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); border-radius: var(--r-lg); }
@media (max-width: 1279px) { .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cw-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-2); scrollbar-width: none; }
  .cw-grid::-webkit-scrollbar { display: none; }
  .cw-grid > .cw-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* card: a tinted header band, status tag top right, face, name, role, job */
.cw-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-1);
  padding: 0 var(--sp-4) var(--sp-4); border: 1px solid var(--sep); border-radius: var(--r-lg); background: var(--bg-elev);
  color: var(--label); text-decoration: none; font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color var(--d1) var(--ease), transform var(--d2) var(--ease); }
a.cw-card { text-decoration: none; }
.cw-card:not([data-static]):hover { border-color: var(--sep-strong); transform: translateY(-1px); }
.cw-card[data-static] { cursor: default; }
.cw-card[aria-pressed='true'] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cw-card-head { align-self: stretch; height: 44px; margin: 0 calc(-1 * var(--sp-4)) calc(-1 * var(--sp-6)); background-color: var(--accent-soft); }
.cw-card-state { position: absolute; top: var(--sp-2); right: var(--sp-2); }
.cw-card .cw-avatar { position: relative; margin-bottom: var(--sp-2); box-shadow: 0 0 0 3px var(--bg-elev); border-radius: 12px; }
.cw-card-name { font-size: var(--fs-base); line-height: var(--lh-base); font-weight: var(--fw-semibold); letter-spacing: 0; text-transform: none; }
.cw-card-role { font-size: var(--fs-xs); line-height: var(--lh-xs); font-weight: var(--fw-medium); letter-spacing: 0; text-transform: none; color: var(--label-2); }
.cw-card-job { margin-top: var(--sp-2); max-width: 30ch; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--label-2); }

/* the face: a working coworker's colours slowly turn */
.cw-avatar { display: block; flex: none; }
.cw-avatar-field, .cw-avatar-swirl { transform-box: view-box; transform-origin: 28px 28px; }
.cw-avatar[data-working] .cw-avatar-field { animation: cw-turn 8s linear infinite; }
.cw-avatar[data-working] .cw-avatar-swirl { animation: cw-turn 8s linear infinite reverse; }
@keyframes cw-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cw-avatar[data-working] .cw-avatar-field, .cw-avatar[data-working] .cw-avatar-swirl { animation: none; }
  .cw-card { transition: none; }
  .cw-card:hover { transform: none; }
}

/* section heading used where the team appears (Home, Agent team) */
.cw-section { display: flex; flex-direction: column; gap: var(--sp-3); }
.cw-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.cw-section-head h2 { margin: 0; font-size: var(--fs-lg); line-height: var(--lh-lg); font-weight: var(--fw-semibold); }
.cw-section-head a { font-size: var(--fs-sm); }
.cw-coordinator { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--label-2); }