/* Compact team map: the relationship stays left / 3×3 / right at every size. */
.team-board-scroll{
  width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
  padding:6px 3px 15px;scroll-behavior:smooth;overscroll-behavior-x:contain;
  scrollbar-width:thin;scrollbar-color:#9baeb1 #e8ece8;border-radius:19px;
}
.team-board-scroll:focus-visible{outline:3px solid #536ab0;outline-offset:5px}
.team-board{
  display:grid;grid-template-columns:180px minmax(0,1fr) 180px;
  align-items:stretch;gap:12px;min-width:1000px;width:100%;
}
.team-board .role-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,216px);gap:12px;margin:0;min-width:0;
}
.team-board .role-card{
  height:216px;min-height:216px;border-radius:15px;color:#263236;
  transform:none;transition:none;
}
.team-board .role-inner{transition:transform .42s cubic-bezier(.3,.72,.22,1);will-change:auto}
.team-board .role-face{
  border-radius:15px;padding:16px;border:1px solid #ffffff70;
  box-shadow:0 2px 4px #25332a06;background:var(--tile-bg);color:#263236;
  transition:box-shadow .2s,border-color .2s;overflow:hidden;
}
.team-board .role-front:before{
  height:140px;width:140px;right:-60px;top:-60px;border-width:22px;
}
.team-board .role-top{height:33px;min-height:33px;margin:0;flex:none}
.team-board .role-symbol{height:33px;width:33px;border-radius:9px}
.team-board .role-symbol svg{width:21px;height:21px;stroke-width:1.65}
.team-board .role-number{font-size:11px;letter-spacing:.06em;color:#425351}
.team-board .role-name{
  font-size:23px;line-height:1.12;letter-spacing:-.035em;margin:15px 0 10px;
  font-weight:600;min-height:0;overflow-wrap:normal;
}
.team-board .role-description{display:none}
.team-board .role-software{
  margin:auto 0 0;padding-top:9px;border-top:1px solid #344d4529;
  max-width:calc(100% - 17px);line-height:1.3;
}
.team-board .role-software small{
  font-size:8px;line-height:1.2;letter-spacing:.07em;margin-bottom:4px;color:#40534f;
}
.team-board .role-software strong{font-size:13px;line-height:1.3;color:#263c38}
.team-board .role-turn{font-size:20px;right:13px;bottom:15px;color:#354d48}
.team-board .role-back .role-name{
  font-size:17px;line-height:1.18;letter-spacing:-.02em;margin:0 0 13px;
  padding-bottom:9px;border-bottom:1px solid #344d4529;
}
.team-board .role-list{gap:10px;margin:0;padding:0;min-width:0}
.team-board .role-list-item{
  font-size:14.5px;line-height:1.35;letter-spacing:-.015em;
  padding-left:15px;color:#2b403c;
}
.team-board .role-list-item:before{content:'↗';font-size:13px;color:#344d45}
.team-board .role-back .role-turn{display:none}
.team-board .role-card:hover .role-face,
.team-board .role-card.is-pinned .role-face{
  border-color:#3d6561;box-shadow:0 3px 8px #274b3c1c;
}
.team-board .role-card:focus-visible{outline:3px solid #344f99;outline-offset:3px;z-index:2}
.team-lead{
  position:relative;display:flex;flex-direction:column;min-width:0;
  padding:23px 19px 20px;border-radius:16px;overflow:hidden;
  background:#215f63;color:#fff;
}
.team-lead.controller-role{background:#455989;color:#fff}
.team-lead:before{
  content:'';position:absolute;inset:auto -50px -105px auto;width:240px;height:240px;
  border:45px solid #ffffff07;border-radius:50%;pointer-events:none;
}
.team-lead-icon{
  width:46px;height:46px;display:grid;place-items:center;flex:none;
  background:#ffffff17;border:1px solid #ffffff2e;border-radius:12px;
  margin-bottom:24px;color:#fff;
}
.team-lead-icon svg{width:27px;height:27px;stroke-width:1.5}
.team-lead-kicker{
  color:#ccedeb;font-size:9px;letter-spacing:.1em;font-weight:600;
  text-transform:uppercase;line-height:1.5;margin:0 0 8px;
}
.controller-role .team-lead-kicker{color:#dae3ff}
.team-lead h3{font-size:26px;line-height:1.13;letter-spacing:-.045em;margin:0 0 16px;font-weight:600}
.team-lead-purpose{font-size:15px;line-height:1.5;margin:0;color:#eef9f6}
.team-lead-features{
  list-style:none;padding:22px 0 0;margin:22px 0 25px;
  border-top:1px solid #ffffff30;display:grid;gap:18px;
}
.team-lead-features li{font-size:14px;line-height:1.45;padding-left:14px;position:relative;color:#f4fbf8}
.team-lead-features li:before{content:'↳';position:absolute;left:0;color:#b5e8df}
.controller-role .team-lead-features li:before{color:#ccdaff}
.team-lead-software{margin:auto 0 0;padding-top:17px;border-top:1px solid #ffffff30;position:relative}
.team-lead-software small{display:block;font-size:8px;line-height:1.4;letter-spacing:.08em;color:#c9e5e1;margin-bottom:7px}
.controller-role .team-lead-software small{color:#dae3ff}
.team-lead-software strong{font-size:14px;line-height:1.4;display:block;font-weight:600}
.team-lead-foot{font-size:11px;line-height:1.5;color:#c9e5e1;margin:15px 0 0;position:relative}
.controller-role .team-lead-foot{color:#dae3ff}
.team-board-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 10px}
.team-board-tools[hidden]{display:none}
.team-board-hint{font-size:12px;line-height:1.5;max-width:410px;color:#596965;margin:0}
.team-board-tools>div{display:flex;gap:7px;flex:none}
.team-board-tools button{
  height:44px;width:44px;flex:none;display:grid;place-items:center;
  border:1px solid #c7d4cd;border-radius:50%;background:#fff;color:#2f5752;
  font-size:21px;line-height:1;padding:0;transition:background .2s,border-color .2s;
}
.team-board-tools button:hover:not(:disabled){background:#e3eee8;border-color:#638d80}
.team-board-tools button:disabled{opacity:.35;cursor:default}
@media(min-width:1200px){
  .team-board{grid-template-columns:190px minmax(0,1fr) 190px}
  .team-lead{padding-inline:22px}
  .team-lead-features li{font-size:15px}
}
@media(max-width:680px){
  .team-board-tools{gap:12px}
  .team-board-hint{font-size:11px;max-width:220px}
  .team-board-scroll{border-radius:12px}
}
@media(prefers-reduced-motion:reduce){
  .team-board-scroll{scroll-behavior:auto}
  .team-board .role-inner,.team-board .role-card{transition:none!important;transform:none!important}
  .team-board .role-back{transform:none}
  .team-board .role-card.is-flipped .role-front{visibility:hidden}
  .team-board .role-card:not(.is-flipped) .role-back{visibility:hidden}
}
