/* 07 / TEAM — shared spaces. Layout: heading → live stage + 3 steps → 6 benefits. */
.team{padding:72px 0 64px;background:var(--warm)}
.team-heading{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);column-gap:56px;align-items:end;margin-bottom:34px}
.team-heading .eyebrow{grid-column:1/-1;margin-bottom:14px}
.team-heading h2{font-size:clamp(44px,5.2vw,74px);line-height:1.18;font-weight:600;letter-spacing:-.055em;margin:0}
.team-heading>p:not(.eyebrow){font-size:15px;line-height:1.9;color:var(--muted);margin:0}

.team-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1.25fr) 72px minmax(0,1fr);align-items:center;padding:44px 40px;border-radius:28px;background:#fff;border:1px solid var(--line);box-shadow:0 30px 60px -40px rgba(30,30,28,.35)}
.team-mac,.team-room{border:1px solid var(--line);border-radius:16px;background:#fcfcfb;font-size:12px;transition:opacity .5s,transform .5s,border-color .5s,box-shadow .5s}
.team-mac{padding:14px 14px 12px}
.team-mac header{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.team-mac header b{display:block;font-size:13px}
.team-mac header small{font-size:10px;color:var(--muted)}
.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;font-size:12px;font-weight:700;flex:none}
.member .avatar{background:#5d6a5f}.m2 .avatar{background:#8a6d52}
.team-pill{margin-left:auto;font-size:10px;padding:3px 8px;border-radius:99px;border:1px solid #bfc1bd;white-space:nowrap}
.team-pill.lead{border-color:var(--red);color:var(--red)}
.team-pill.join{border-color:#3d7a50;color:#3d7a50;opacity:0;transition:opacity .4s}
.team-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.team-list li{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;background:#f3f3f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .45s,transform .45s}
.team-key{display:flex;align-items:center;gap:7px;margin:10px 0 0;font-size:11px;color:var(--muted)}
.member{position:relative}
.team-wait{position:absolute;left:16px;right:16px;top:58px;margin:0;padding:14px 0;text-align:center;border:1px dashed #cfd0cb;border-radius:9px;font-size:11px;color:var(--muted)}
.team[data-step="2"] .team-wait{display:none}
.view{margin-left:auto;font-size:10px;color:var(--muted)}
.caret{width:1.5px;height:12px;background:var(--ink);margin-left:2px;animation:team-blink 1s steps(2) infinite;opacity:0}

/* line icons (no fills, per brand rule) */
.ic{display:inline-block;width:14px;height:14px;flex:none;border:1.4px solid currentColor;border-radius:3px;position:relative;opacity:.75}
.ic.thread{border-radius:7px 7px 7px 2px}
.ic.kb{border-radius:2px;box-shadow:inset 3px 0 0 -1.6px currentColor}
.ic.code{border:none}.ic.code::before{content:'</>';position:absolute;inset:-2px -4px;font:700 10px/16px ui-monospace,monospace;letter-spacing:-.08em}
.ic.lock{width:11px;height:9px;margin-top:4px;border-radius:2px}.ic.lock::before{content:'';position:absolute;left:1px;top:-7px;width:5px;height:6px;border:1.4px solid currentColor;border-bottom:0;border-radius:4px 4px 0 0}
.ic.folder{border-radius:2px 2px 3px 3px}.ic.folder::before{content:'';position:absolute;left:-1.4px;top:-4px;width:6px;height:3px;border:1.4px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0}

.team-room{padding:18px 18px 16px;background:#fff;border-width:1.5px}
.room-label{display:flex;align-items:center;gap:7px;margin:0 0 10px;font-size:11px;color:var(--muted)}
.room-label span{font-size:10px;opacity:.8}
.team-room h3{font-size:12px;font-weight:600;color:var(--muted);margin:0 0 12px}
.team-room h3 b{display:block;font-size:20px;letter-spacing:-.02em;color:var(--ink);margin-top:2px}
.room-items{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.room-items li{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;transition:opacity .45s,transform .45s}
.room-items li div{min-width:0;flex:1}
.room-items b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.room-items small{font-size:10px;color:var(--muted)}
.busy,.aud{font-size:10px;padding:3px 8px;border-radius:99px;white-space:nowrap}
.busy{background:#fdf0ec;color:var(--red);opacity:0;transition:opacity .4s}
.aud{border:1px solid var(--line);color:var(--muted)}
.room-code{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:9px 11px;border-radius:11px;background:#f3f3f0;font-size:10px;color:var(--muted);transition:opacity .4s}
.room-code code{font:600 12px ui-monospace,monospace;color:var(--ink)}
.room-code em{margin-left:auto;font-style:normal;color:#3d7a50;opacity:0;transition:opacity .3s}

.team-members{display:grid;gap:14px}
.team-link{position:relative;height:2px;background:repeating-linear-gradient(90deg,#c9cbc6 0 6px,transparent 6px 11px)}
.packet{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);opacity:0}
.packet.dot{width:8px;height:8px;border-radius:50%;background:var(--ink)}
.code-chip{font-size:9px;font-weight:700;white-space:nowrap;padding:4px 8px;border-radius:99px;background:var(--ink);color:#fff}

/* step states */
.team[data-step="0"] .team-room{border-color:var(--ink);box-shadow:0 0 0 5px rgba(24,25,27,.06)}
.team[data-step="0"] .room-items li{animation:team-in .5s both}
.team[data-step="0"] .room-items .r2{animation-delay:.25s}.team[data-step="0"] .room-items .r3{animation-delay:.5s}
.team[data-step="0"] .room-code,.team[data-step="0"] .member{opacity:.38}
.team[data-step="0"] .member .team-list li{opacity:0}
.team[data-step="0"] .left .dot{animation:team-flow 1.4s .4s ease-in-out 2}
.team[data-step="1"] .room-code em{opacity:1}
.team[data-step="1"] .member{opacity:.55}
.team[data-step="1"] .member .team-list li{opacity:0}
.team[data-step="1"] .team-link .code-chip{animation:team-flow 1.6s ease-in-out both}
.team[data-step="1"] .right .code-chip{animation-delay:.6s}
.team[data-step="2"] .member{border-color:#3d7a50;box-shadow:0 0 0 5px rgba(61,122,80,.08)}
.team[data-step="2"] .team-pill.join,.team[data-step="2"] .busy{opacity:1}
.team[data-step="2"] .member .team-list li{animation:team-in .45s both}
.team[data-step="2"] .member .team-list li:nth-child(2){animation-delay:.2s}.team[data-step="2"] .member .team-list li:nth-child(3){animation-delay:.4s}
.team[data-step="2"] .typing{background:#fdf0ec}
.team[data-step="2"] .caret{opacity:1}
.team[data-step="2"] .right .dot{animation:team-flow 1.2s .2s ease-in-out 2}
@keyframes team-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes team-flow{0%{left:0;opacity:0}15%,85%{opacity:1}100%{left:100%;opacity:0}}
@keyframes team-blink{50%{opacity:0}}

.team-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;margin-top:16px}
.team-steps button{font:inherit;color:inherit;text-align:left;display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:baseline;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:transparent;cursor:pointer;transition:background .3s,border-color .3s}
.team-steps button span{grid-row:span 2;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid #bfc1bd;font-size:12px;font-weight:700}
.team-steps b{font-size:15px}
.team-steps small{font-size:12px;color:var(--muted);margin-top:3px}
.team-steps button[aria-pressed="true"]{background:#fff;border-color:var(--ink)}
.team-steps button[aria-pressed="true"] span,.team-steps button.done span{background:var(--ink);border-color:var(--ink);color:#fff}
.team-steps .team-replay{display:grid;place-items:center;grid-template-columns:none;width:52px;padding:0;font-size:18px}
.team-steps button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.team-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 44px;padding-top:56px}
.team-benefits article{border-top:1px solid #d6d6d0;padding-top:22px}
.team-benefits .line-symbol{display:block;height:34px;line-height:34px;font-size:28px}
.team-benefits h3{font-size:17px;margin:12px 0 8px;letter-spacing:-.02em}
.team-benefits p{font-size:14px;line-height:1.85;color:var(--muted);margin:0}
.team-note{margin-top:40px;font-size:12px;color:var(--muted)}

@media(max-width:1100px){.team-stage{grid-template-columns:minmax(0,1fr) 40px minmax(0,1.2fr) 40px minmax(0,1fr);padding:32px 24px}.team-link .code-chip{display:none}}
@media(max-width:999px){.team-heading{display:block}.team-heading>p:not(.eyebrow){margin-top:20px}}
@media(max-width:859px){
 .team-stage{grid-template-columns:1fr;gap:0;padding:22px 18px}
 .team-link{width:2px;height:34px;margin:0 auto;background:repeating-linear-gradient(180deg,#c9cbc6 0 6px,transparent 6px 11px)}
 .team-link .code-chip{display:block}
 .packet{left:50%;top:0}
 .team-members{grid-template-columns:1fr 1fr;gap:10px}
 .team-mac.leader .team-list{display:none}
 .team-steps{grid-template-columns:1fr;gap:8px}
 .team-steps .team-replay{width:100%;height:40px}
 .team-benefits{grid-template-columns:1fr 1fr;gap:26px 24px;padding-top:40px}
 @keyframes team-flow{0%{top:0;left:50%;opacity:0}15%,85%{opacity:1}100%{top:100%;left:50%;opacity:0}}
}
@media(max-width:699px){
 .team{padding:56px 0 44px}
 .team-heading h2{font-size:clamp(32px,8.8vw,50px)}
 .team-heading>p:not(.eyebrow){font-size:13px}
 .team-members{grid-template-columns:1fr}
 .team-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
 .team-steps button{grid-template-columns:1fr;justify-items:center;text-align:center;row-gap:6px;padding:12px 4px;border-radius:12px}
 .team-steps button span{grid-row:auto;width:22px;height:22px;font-size:11px}
 .team-steps b{font-size:11.5px;line-height:1.35}
 .team-steps small,.team-steps .team-replay{display:none}
 .team-stage{padding:18px 14px;border-radius:22px}
 .team-heading{margin-bottom:24px}
 .team-mac.m2{display:none}
 .team-benefits{grid-template-columns:1fr;gap:0;padding-top:28px}
 .team-benefits article{display:grid;grid-template-columns:40px 1fr;column-gap:4px;padding:16px 0}
 .team-benefits .line-symbol{grid-row:span 2;font-size:22px;height:28px;line-height:28px}
 .team-benefits h3{margin:2px 0 4px;font-size:15px}
 .team-benefits p{font-size:12px}
 .team-note{margin-top:20px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.team *{animation:none!important}}
