/* 隊伍 window, official UI_Team (ui_team.unity3d, apk-analysis/team-layout.json): FrameRect
   760x460 (bod002) right of a status-style tab rail; boxes bod013 355x328 at (20,50) and
   (385,50), GridLayoutGroup padding 8/6, cells 346x75, spacing 5. Window size and rail measured
   on two official screenshots (paper 760 wide -> frame 900x527, paper at 130,58.7). Tabs: 71 high,
   stacked edge to edge (72.9 pitch), inactive ones reach the paper; the active (connected) tab is
   drawn ABOVE the paper and covers its left border so it opens into the white interior. */
.team-window{position:absolute;left:50%;top:50%;width:900px;height:527px;transform:translate(-50%,-50%) scale(var(--team-scale,1));
  background:url('ui/status-frame.png') center/100% 100%;font:700 17px TSClient,'Microsoft JhengHei',sans-serif;color:#111}
.team-window .team-title-bar{width:880px}
/* No stacking context here: inactive tabs go UNDER the paper (its green border covers their
   right ends, official), the active tab goes ABOVE it. */
.team-tabs{position:absolute;left:10.5px;top:72.3px;width:137px}
/* status-tab.png carries a green strip from column 104 of 116: at 133.3 wide that strip starts at
   x 130 = the paper's left edge, so it lies under the paper border and the lavender meets it. */
.team-tab{position:relative;z-index:0;display:block;width:133.3px;height:71px;margin:0 0 1.9px;padding:0 13.8px 0 0;border:0;background:url('ui/status-tab.png') center/100% 100% no-repeat;
  color:#f2efff;font:700 23px TSClient,sans-serif;text-shadow:1px 0 #7970af,-1px 0 #7970af,0 1px #7970af,0 -1px #7970af;cursor:pointer}
/* ends exactly at the paper interior (130 + 15px bod002 border): its green lines join the paper border */
.team-tab.active{z-index:2;width:134.5px;padding:0;clip-path:none;background:url('ui/status-tab-connected.png') center/100% 100%;color:#fff19b;cursor:default}
.team-paper{position:absolute;z-index:1;left:130px;top:58.7px;width:760px;height:460px;box-sizing:border-box;
  border-image:url('ui/common0_bod002.png') 15 12 12 15 fill/15px 12px 12px 15px stretch}

/* Official GradientColor + Outline8 texts: --top/--bottom fill, --line outline. */
.team-text{position:relative;display:inline-block;white-space:nowrap;color:var(--line,#59519e);
  text-shadow:-1.5px -1.5px var(--line,#59519e),1.5px -1.5px var(--line,#59519e),-1.5px 1.5px var(--line,#59519e),1.5px 1.5px var(--line,#59519e),0 -1.5px var(--line,#59519e),0 1.5px var(--line,#59519e),-1.5px 0 var(--line,#59519e),1.5px 0 var(--line,#59519e)}
.team-text:after{content:attr(data-text);position:absolute;left:0;right:0;top:0;text-shadow:none;color:transparent;
  background:linear-gradient(var(--top,#fff) 15%,var(--bottom,#f8ff20) 90%);-webkit-background-clip:text;background-clip:text}
.team-title{position:absolute;top:17px;font-size:20px;line-height:24px}
.team-follow-title{left:22px}
.team-party-title{left:392px}

.team-box{position:absolute;top:50px;width:355px;height:328px;box-sizing:border-box;padding:6px 0 0 8px;display:flex;flex-direction:column;gap:5px;
  border-image:url('ui/common0_bod013.png') 4 5 9 4 fill/4px 5px 9px 4px stretch}
.team-follow{left:20px}
.team-party{left:385px}
.team-row{position:relative;flex:none;width:346px;height:75px}
.team-line{position:absolute;left:0;top:74px;width:341px;height:2px;background:url('ui/item-info/bliss-line.png') 0 0/100% 100%}
.team-career{position:absolute;left:3px;top:4.5px;width:34px;height:34px}
.team-career img{width:100%;height:100%;object-fit:contain}
.team-name{position:absolute;left:45px;top:1.5px;width:150px;height:28px;line-height:28px;font-size:22px;color:#000;white-space:nowrap}
.team-edit{position:absolute;left:155px;top:-1px;width:30px;height:30px;padding:0;border:0;background:url('ui/common0_but055D.png') center/contain no-repeat;cursor:pointer}
.team-stat{position:absolute;left:46px;height:20px;line-height:20px;display:flex;align-items:center;white-space:nowrap}
.team-stat-label{width:20px;text-align:center;font-size:14px;--top:#fff;--bottom:#fff}
.team-lv{top:32.5px}
.team-hp{top:51.5px}
.team-lv-value{margin-left:6px;font-size:16px;--top:#fff;--bottom:#0ba2ed;--line:#000}
.team-hp b{margin-left:5px;font-size:16px;color:#59519e}
.team-state{width:30px;height:28px;margin-left:5px}
.team-button{position:absolute;top:32.5px;width:80px;height:40px;padding:0;border:0;cursor:pointer;
  border-image:url('ui/team/common0_but065D.png') 0 8 0 8 fill/0 8px stretch}
.team-button:disabled{cursor:default}
.team-switch{left:181px}
.team-kick{left:261px}
.team-button-text{font-size:20px;line-height:40px;--line:#3c7171}
.team-empty{position:absolute;left:0;top:5px;width:65px;height:65px;background:url('ui/team/common0_com089.png') center/contain no-repeat}
.team-player{position:absolute;left:380px;top:0;width:380px;height:460px;pointer-events:none}
.team-player .team-career{left:17px;top:383px}
.team-player-name{left:58.8px;top:377.7px}
.team-player .team-lv{left:68.4px;top:408px}
.team-player .team-hp{left:67.4px;top:427px}
.left-shortcuts [data-feature=capture].is-active img{filter:drop-shadow(0 0 4px #fff36a) drop-shadow(0 0 2px #ffde00)}

/* Status/bag window showing a general (arrows = official Image_Prev/Image_Next): no pencil, each
   stat row ends in a 領悟 button (official Image_SetLock common0_but063D, 80 wide, text 20
   #86b5b8). The yellow common0_but167D seen on official screenshots is a state set by encrypted
   Lua (rule unknown); 領悟 is not built, so every row keeps the prefab default. */
#status-window.general-mode #status-edit{display:none}
#status-window.general-mode .status-stat-row{grid-template-columns:124px 1fr 80px}
#status-window.general-mode .status-stat-row button.status-comprehend{grid-column:3;width:80px;height:40px;align-self:center;padding:0;border:0;
  border-image:url('ui/team/common0_but063D.png') 0 8 0 8 fill/0 8px stretch;background:none;color:#86b5b8;font:400 20px TSClient,sans-serif;cursor:pointer}
/* 領悟點 to spend: the yellow official state (common0_but167D, 20x42 sliced like but063D). */
#status-window.general-mode .status-stat-row button.status-comprehend.is-ready{border-image-source:url('ui/team/common0_but167D.png');color:#fff;text-shadow:-1px 0 #c98a1c,1px 0 #c98a1c,0 -1px #c98a1c,0 1px #c98a1c}
/* 強化 level badge: official Role/Image_UpgradeLv (common0_icon060 108x65, Text_UpgradeLv 20)
   centred over the general's sprite, under the name like the official screenshots. */
#status-upgrade{position:absolute;left:131px;top:46px;width:108px;height:65px;background:url('ui/team/common0_icon060.png') center/contain no-repeat;
  display:flex;align-items:center;justify-content:center;padding-top:6px;box-sizing:border-box;font:700 20px TSClient,sans-serif;color:#5a3a00;pointer-events:none}
#status-upgrade[hidden]{display:none}
/* 特技 window on a general's page: rank in the quick slots (official shows it bottom right). */
.skill-slot{position:relative}
.skill-slot-level{position:absolute;right:3px;bottom:0;color:#fff;font:700 15px/18px TSClient,sans-serif;text-shadow:1px 1px #111,-1px -1px #111,1px -1px #111,-1px 1px #111;pointer-events:none}
.skill-general-empty{position:absolute;left:0;right:0;top:160px;margin:0;text-align:center;color:#6c6a8c;font:700 24px TSClient,sans-serif}
.skill-paper-general .skill-node{transform:scale(1.25)}
