/* 配队推荐 */
:root{--el-fire:#b9472f;--el-water:#2f6f9a;--el-ice:#3f8ea6;--el-wind:#3f8a68;--el-wood:#5f7d2c;--el-earth:#8a6538;--el-thunder:#7a4fb5;--el-light:#a07f12;--el-dark:#4a4458}
.team-element{--c:var(--text-3);display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--c);background:color-mix(in srgb,var(--c) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--c) 28%,transparent);border-radius:4px;padding:3px 8px;line-height:1.2}
.team-element:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--c)}
.team-element.mini{font-size:11px;padding:1px 5px;gap:3px}
.team-element.mini:before{width:5px;height:5px}
.team-element.dup{box-shadow:inset 0 0 0 1px var(--c)}
.team-element.dup:after{content:'×2';font-size:10px;opacity:.75}
.team-element[data-element="火"]{--c:var(--el-fire)}.team-element[data-element="水"]{--c:var(--el-water)}.team-element[data-element="冰"]{--c:var(--el-ice)}
.team-element[data-element="风"]{--c:var(--el-wind)}.team-element[data-element="木"]{--c:var(--el-wood)}.team-element[data-element="地"]{--c:var(--el-earth)}
.team-element[data-element="雷"]{--c:var(--el-thunder)}.team-element[data-element="光"]{--c:var(--el-light)}.team-element[data-element="暗"]{--c:var(--el-dark)}

.team-picker{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:18px 20px 22px;margin:18px 0 28px}
.team-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.team-mode{display:flex;gap:6px}
.team-status{font-size:13px;color:var(--text-2)}
.team-status b{color:var(--brand);font-variant-numeric:tabular-nums}
.team-actions{margin-left:auto;display:flex;gap:8px}
.team-actions .btn{height:32px;font-size:13px;padding:0 12px}
.team-hint{margin:10px 0 4px;font-size:13px;color:var(--text-3)}
.team-group-title{font-size:14px;font-weight:700;margin:18px 0 10px;color:var(--text)}
.team-group-title small{font-weight:500;color:var(--text-3);margin-left:4px}
.team-hero-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.team-hero{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 6px 9px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;color:var(--ink);transition:border-color .15s,background .15s,transform .15s,opacity .15s}
.team-hero:hover{border-color:var(--line-strong);background:var(--surface)}
.team-hero strong{font-size:13px;font-weight:600}
.team-hero-img,.team-member-img{position:relative;width:72px;height:72px;border-radius:50%;overflow:hidden;background:var(--brand-soft);box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--line)}
.team-hero[data-rarity="4"] .team-hero-img,.team-member[data-rarity="4"] .team-member-img{box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--gold-soft)}
.team-hero-img img,.team-member-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.team-hero-flag{position:absolute;left:0;right:0;bottom:0;background:var(--brand);color:#fff;font-size:10px;font-weight:700;text-align:center;line-height:17px;letter-spacing:.06em}
.team-hero-meta{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px}
.team-stars{font-size:10px;color:var(--text-3);margin-right:2px}
.team-hero.is-picked{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.team-hero.is-unowned{opacity:.45}
.team-hero.is-unowned .team-hero-flag{background:var(--text-3)}
.team-hero.is-unowned img{filter:grayscale(1)}
.team-hero.shake{animation:team-shake .32s}
@keyframes team-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){.team-hero.shake{animation:none}}

.team-summary{font-size:13px;color:var(--text-2);margin:-4px 0 14px}
.team-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),1fr));gap:14px}
.team-result{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:14px 16px 12px}
.team-result.is-best{border-color:var(--gold-soft);background:linear-gradient(var(--gold-tint),var(--surface) 70px)}
.team-result header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.team-rank{font-size:13px;font-weight:700;color:var(--text-2)}
.team-result.is-best .team-rank{color:var(--gold)}
.team-score{font-size:13px;color:var(--text-2)}
.team-score b{font-size:22px;color:var(--ink);font-variant-numeric:tabular-nums;margin-right:2px}
.team-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.team-member{display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 2px;border-radius:6px;transition:background .15s}
.team-member:hover{background:var(--surface-2)}
.team-member strong{font-size:13px;font-weight:600;text-align:center}
.team-member-img{width:64px;height:64px}
.team-facts{margin:0;border-top:1px solid var(--line);padding-top:10px;display:grid;gap:7px}
.team-facts div{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:start;gap:8px}
.team-facts dt{font-size:12px;color:var(--text-3);line-height:22px}
.team-facts dd{margin:0;display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:13px;color:var(--text-2);line-height:22px}
.team-breakdown b{color:var(--ink);font-variant-numeric:tabular-nums;margin-left:2px}
.team-breakdown i{font-style:normal;color:var(--line-strong);margin:0 4px}
.team-missing{color:var(--text-3)}
.team-note{margin-top:18px}
.team-hero.is-carry .team-hero-flag,.team-member.is-carry .team-hero-flag{background:var(--gold)}
.team-member:not(.is-carry) .team-hero-flag{background:var(--text-3)}
.team-hero.is-carry{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);background:var(--gold-tint)}
.team-gain{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:9px 12px;margin-bottom:8px;background:var(--brand-soft);border-radius:6px;font-size:13px;color:var(--text-2)}
.team-gain b{font-size:20px;color:var(--brand);font-variant-numeric:tabular-nums}
.team-gear{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:11px;line-height:1.35;color:var(--text-3);text-align:center;max-width:100%}
.team-gear span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-sim-facts{display:flex;flex-wrap:wrap;gap:4px 14px;margin-bottom:8px;font-size:12px;color:var(--text-2);font-variant-numeric:tabular-nums}
.team-buckets{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
.team-bucket{font-size:12px;color:var(--text-2);background:var(--surface-2);border:1px solid var(--line);border-radius:4px;padding:2px 7px;font-variant-numeric:tabular-nums}
.team-bucket b{font-weight:600;color:var(--text);margin-right:3px}
.team-muted{color:var(--text-3)}
.team-points{color:var(--brand);font-variant-numeric:tabular-nums}
.team-warn{font-size:12px;color:#a2492f;background:#f6e6df;border-radius:4px;padding:1px 6px}
.team-tag{display:inline-flex;align-items:baseline;gap:4px;font-size:12px;font-weight:600;color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:4px;padding:1px 7px}
.team-tag small{font-weight:400;color:var(--text-3);font-size:11px}
.team-detail{margin-top:10px;border-top:1px solid var(--line);padding-top:8px}
.team-detail summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--brand);padding:2px 0}
.team-lines{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.team-lines li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 10px;font-size:12px;padding:6px 8px;background:var(--surface-2);border-radius:5px}
.team-lines li.is-zero{opacity:.55}
.team-line-who{color:var(--text-3)}
.team-line-what{grid-column:1;color:var(--text);font-weight:600}
.team-line-eff{grid-column:2;grid-row:1 / span 2;align-self:center;font-size:13px;font-weight:700;color:var(--brand);font-variant-numeric:tabular-nums}
.team-lines small{grid-column:1 / -1;color:var(--text-3);font-size:11px}

@media (max-width:670px){
  .team-picker{padding:14px 12px 16px}
  .team-actions{margin-left:0;width:100%}
  .team-hero-grid{grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
  .team-hero-img{width:58px;height:58px}
  .team-member-img{width:54px;height:54px}
  .team-result{padding:12px}
}

/* 排轴模拟 */
.team-sim-button{width:100%;margin-top:10px;height:34px;font-size:13px;color:var(--brand)}
.rot-panel{margin-top:28px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:16px 18px 18px;scroll-margin-top:calc(var(--head) + 12px)}
.rot-panel .section-bar{align-items:center}
.rot-panel .section-bar .btn{height:30px;font-size:13px;padding:0 12px}
.rot-table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:14px}
.rot-table th{text-align:left;font-weight:600;color:var(--text-3);font-size:12px;padding:6px 8px;border-bottom:1px solid var(--line)}
.rot-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle;font-variant-numeric:tabular-nums}
.rot-table td small{display:block;color:var(--text-3);font-size:11px;margin-top:2px}
.rot-table tbody tr{cursor:pointer;transition:background .15s}
.rot-table tbody tr:hover{background:var(--surface-2)}
.rot-table tbody tr.is-active{background:var(--brand-soft);box-shadow:inset 3px 0 0 var(--brand)}
.rot-table .team-warn{display:inline-block;margin:1px 4px 1px 0}
.rot-routes{display:grid;gap:6px}
.rot-routes .rot-route{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rot-routes .rot-route span{flex:0 0 auto}
.rot-routes .rot-route select{flex:1 1 260px;min-width:0;max-width:100%}
.rot-routes .detail-hint{margin:0 0 6px}
.rot-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:14px}
.rot-scroll .rot-table{margin-bottom:0;min-width:620px}
.rot-energy tbody tr{cursor:default}
.rot-energy tbody tr:hover{background:none}
.rot-energy td:last-child{min-width:180px}
.rot-ok{font-size:12px;color:var(--brand);font-weight:600}
.rot-best{font-size:11px;color:var(--gold);font-weight:700}
.rot-verdict{padding:10px 14px;border-radius:6px;background:#f8ece6;border:1px solid #ecd2c6;font-size:13px;color:var(--text);margin-bottom:12px}
.rot-verdict.is-ok{background:var(--brand-soft);border-color:var(--line-strong)}
.rot-verdict ul{margin:6px 0 0;padding-left:18px}
.rot-verdict p{margin:6px 0 0;color:var(--text-2)}
.rot-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
.rot-summary div{background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:8px 10px}
.rot-summary span{display:block;font-size:12px;color:var(--text-3)}
.rot-summary b{font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums}
.rot-gantt{overflow-x:auto;border:1px solid var(--line);border-radius:6px;margin:6px 0 4px;background:var(--surface)}
.rot-gantt-inner{min-width:720px;padding:6px 10px 8px}
.rot-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;min-height:24px}
.rot-row.is-buff{min-height:18px}
.rot-label{font-size:12px;color:var(--text);padding-right:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rot-label small{color:var(--text-3);margin-left:4px;font-size:11px}
.rot-row.is-buff .rot-label{font-size:11px;color:var(--text-2)}
.rot-track{position:relative;height:16px;background:var(--surface-2);border-radius:3px}
.rot-row.is-buff .rot-track{height:10px}
.rot-axis .rot-track{background:none;height:16px}
.rot-axis .rot-track span{position:absolute;top:0;font-size:10px;color:var(--text-3);transform:translateX(-50%)}
.rot-bar{position:absolute;top:0;bottom:0;border-radius:2px}
.rot-window{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--gold-soft) 35%,transparent)}
.kind-tag{background:#7a4fb5}.kind-skill{background:#2f6f9a}.kind-ult{background:#b9472f}.kind-window{background:var(--brand)}
.kind-wait{background:repeating-linear-gradient(45deg,#d9a08c 0 4px,#f3ddd4 4px 8px)}
.kind-buff{background:#3f8a68;opacity:.85}
.rot-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:11px;color:var(--text-3);margin:6px 0 0}
.rot-legend span{display:inline-block;width:12px;height:8px;border-radius:2px;margin-right:-8px}
.rot-legend .rot-window-key{background:color-mix(in srgb,var(--gold-soft) 45%,transparent)}
.rot-coverage{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px}
.rot-coverage li{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:5px 8px;background:var(--surface-2);border-radius:4px}
.rot-coverage li b{font-variant-numeric:tabular-nums;color:var(--brand)}
.rot-coverage li.is-gap b{color:#a2492f}
.rot-params{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;margin-top:10px}
.rot-param{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-2)}
.rot-param span{flex:1}
.rot-param input[type=number],.rot-param select{width:72px;height:30px;border:1px solid var(--line-strong);border-radius:4px;background:var(--surface);color:var(--ink);padding:0 6px;font:inherit}
.rot-param small{color:var(--text-3)}
.rot-check{grid-column:1 / -1}
.rot-check span{flex:none}
@media (max-width:670px){
  .rot-panel{padding:12px}
  .rot-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rot-table:not(.rot-energy) th:nth-child(4),.rot-table:not(.rot-energy) td:nth-child(4){display:none}
  .rot-row{grid-template-columns:110px minmax(0,1fr)}
}

/* 队伍栏：三个角色栏 + 奇波栏 */
.team-slots{display:grid;grid-template-columns:repeat(3,minmax(0,150px));gap:14px;align-items:start;margin-top:16px}
.team-slot{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0}
.team-slot-face{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface-2);color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.team-slot-face:hover{border-color:var(--line-strong);transform:translateY(-1px)}
.team-slot.is-filled .team-slot-face{background:var(--rarity-background,var(--surface-2));border-color:var(--rarity-edge,var(--line))}
.team-slot-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.team-slot-name{position:absolute;left:0;right:0;bottom:0;padding:22px 6px 7px;background:linear-gradient(transparent,rgb(22 48 44 / .85));color:#fff;font-size:14px;font-weight:700;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-slot-elements{position:absolute;top:6px;right:6px;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.team-slot-role{position:absolute;left:0;bottom:34px;padding:2px 9px 2px 7px;border-radius:0 4px 4px 0;background:var(--text-3);color:#fff;font-size:11px;font-weight:700;letter-spacing:.06em}
.team-slot.role-carry .team-slot-role{background:var(--gold)}
.team-slot.role-sub .team-slot-role{background:var(--brand)}
.team-slot.is-empty .team-slot-face{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1.5px dashed var(--line-strong);background:color-mix(in srgb,var(--surface-2) 70%,transparent);color:var(--text-3)}
.team-slot.is-empty .team-slot-name{position:static;padding:0 6px;background:none;color:inherit;font-size:12px;font-weight:500;white-space:normal}
.team-slot-plus{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1.5px solid currentColor;font-size:24px;line-height:1}
.team-slot.is-active .team-slot-face{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand)}
.team-slot.is-empty.is-active .team-slot-face{color:var(--brand);background:var(--brand-soft)}
.team-slot-remove{position:absolute;top:6px;left:6px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:rgb(22 48 44 / .72);color:#fff;font-size:16px;line-height:1}
.team-slot-remove:hover{background:var(--brand-deep)}
.team-slot-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--surface)}
.team-slot-roles button{padding:5px 0;border:0;background:transparent;color:var(--text-2);font-size:12px;white-space:nowrap}
.team-slot-roles button+button{border-left:1px solid var(--line)}
.team-slot-roles button:hover{color:var(--brand);background:var(--surface-2)}
.team-slot-roles button[aria-pressed="true"]{background:var(--brand);color:#fff;font-weight:700}
.team-slot-roles button[data-role="carry"][aria-pressed="true"]{background:var(--gold)}
.team-slot-roles button[data-role="support"][aria-pressed="true"]{background:var(--text-3)}
.team-slot-roles.is-placeholder{display:block;padding:5px 0;border-style:dashed;background:transparent;color:var(--text-3);font-size:12px;text-align:center}
.team-slot-kibo{display:flex;align-items:center;gap:7px;width:100%;min-width:0;padding:4px 8px 4px 4px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
.team-slot-kibo:hover{border-color:var(--line-strong)}
.team-slot-kibo.is-active{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:var(--brand-soft)}
.team-slot-kibo-img{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 50% 42%,var(--surface),var(--brand-soft) 75%);color:var(--brand);font-size:14px;overflow:hidden}
.team-slot-kibo-img img{width:100%;height:100%;object-fit:contain}
.team-slot-kibo-text{display:flex;flex-direction:column;min-width:0;font-size:12px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-slot-kibo-text small{font-size:10px;font-weight:500;color:var(--text-3)}
.team-kibo-taken{font-size:10px;color:var(--text-3)}
.team-member-face{position:relative}
.team-member-kibo{position:absolute;right:-8px;bottom:-4px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface);box-shadow:0 0 0 1px var(--line-strong);overflow:hidden;font-size:12px;color:var(--brand)}
.team-member-kibo img{width:100%;height:100%;object-fit:contain}
.team-kibo-line{display:block}
.team-slot-hint{margin:12px 0 0;font-size:13px;color:var(--text-2)}
.team-kibo-panel{margin-top:14px;padding:12px 14px 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:8px}
.team-kibo-panel .team-hint{margin:0 0 10px}
.team-kibo-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0;color:var(--text-3);font-size:12px}
.team-kibo-tools input{width:min(100%,260px);min-height:36px;border:1px solid var(--line-strong);border-radius:6px;padding:6px 9px;background:var(--surface);color:var(--ink)}
.team-kibo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;max-height:clamp(220px,48dvh,440px);overflow-y:auto;scrollbar-gutter:stable;padding:5px}
.team-kibo-option{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;background:var(--surface);border:1px solid var(--line);border-radius:7px;color:var(--ink)}
.team-kibo-option[hidden]{display:none}
.team-kibo-number{font-size:10px;color:var(--text-3);text-align:center}
.team-kibo-option:hover{border-color:var(--line-strong)}
.team-kibo-option img,.team-kibo-icon{width:52px;height:52px;object-fit:contain}
.team-kibo-icon{display:grid;place-items:center;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-size:20px}
.team-kibo-option strong{font-size:12px;font-weight:600;text-align:center}
.team-kibo-option.is-selected{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.team-member{position:relative}
.team-member.role-sub .team-hero-flag{background:var(--brand)}
.team-fill-tag{position:absolute;top:2px;right:6px;font-size:10px;color:var(--text-3);border:1px solid var(--line);border-radius:3px;padding:0 4px;background:var(--surface)}
@media (max-width:670px){
  .team-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .team-slot-kibo{gap:5px;padding:3px 6px 3px 3px}
  .team-slot-kibo-img{width:26px;height:26px}
  .team-slot-extra{display:none}
  .team-slot-name{font-size:12px;padding:18px 4px 6px}
  .team-slot-role{bottom:28px;font-size:10px;padding:1px 6px 1px 4px}
  .team-slot-roles button{font-size:11px;padding:5px 0}
  .team-slot-plus{width:32px;height:32px;font-size:20px}
  .team-slot-elements .team-element.mini{font-size:10px;padding:1px 4px}
}

.team-community-actions{float:right;display:flex;gap:10px;margin:5px 0 16px 24px}.team-community-actions .team-submit-link{background:#214d43;color:#fff;border-color:#214d43}.team-community-head:after{content:'';display:block;clear:both}@media(max-width:700px){.team-community-actions{float:none;margin:0 0 18px;justify-content:flex-end;flex-wrap:wrap}}

.ui-segments{display:flex;align-items:center;flex-wrap:wrap;gap:3px;margin:12px 0;width:fit-content;max-width:100%;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:9px}
.ui-segments strong{font-size:12px;padding:0 8px;color:var(--text-2)}
.ui-segments button{font:inherit;font-size:13px;color:var(--text-2);background:transparent;border:0;border-radius:6px;padding:8px;cursor:pointer}
.ui-segments button[aria-pressed=true]{color:var(--brand);background:var(--brand-soft);font-weight:700}
.team-kibo-option.missing img{filter:grayscale(1);opacity:.55}.missing-label{background:var(--ink);color:var(--surface);border-radius:4px;padding:1px 5px}
.team-output,.team-results,.team-result,.rot-gantt{min-width:0;max-width:100%}
.team-result .team-detail,.team-output>.team-detail{border-top:1px solid var(--line);padding:10px 0}
.rot-row{grid-template-columns:180px minmax(0,1fr)}.rot-row .rot-label{white-space:normal;line-height:1.35}
.rot-summary b,.team-score b{font-variant-numeric:tabular-nums}
.rot-summary>div:nth-child(2){background:var(--brand-soft);color:var(--brand)}
@media(prefers-color-scheme:dark){
 :root:has(.team-page){color-scheme:dark;--bg:#151c2b;--surface:#202b40;--surface-2:#263249;--surface-3:#303e56;--ink:#eef3ff;--text:#dae3f5;--text-2:#bcc9de;--text-3:#a6b5cd;--line:#37465f;--line-strong:#50617c;--brand:#90b2ff;--brand-soft:#293c60;--brand-deep:#acc6ff;--gold-tint:#413521}
}
.rot-panel .team-buckets{gap:8px}.rot-panel .team-bucket{font-variant-numeric:tabular-nums;padding:6px 10px}
.team-result:has(.rot-panel){grid-column:1/-1}
.rot-shares{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:12px;margin:8px 0 20px}
.rot-shares>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;font-size:13px}.rot-shares span{text-align:right;color:var(--text-2)}.rot-shares progress{grid-column:1/-1;width:100%;height:6px;accent-color:var(--brand)}
.team-page{--ok-bg:#eef6ff;--ok-fg:#1e3a70;--gap-bg:#faeae3;--gap-fg:#763a28;--badge:#344456;--best:var(--gold-tint)}
.rot-verdict,.rot-verdict.is-ok{background:var(--gap-bg);color:var(--gap-fg);border-color:var(--line-strong)}
.rot-verdict.is-ok{background:var(--ok-bg);color:var(--ok-fg)}
.team-result.is-best{background:linear-gradient(180deg,var(--best),transparent 80px),var(--surface)}
.team-results>.rot-panel{grid-column:1/-1;min-width:0;margin:24px 0;background:var(--surface)}
.team-result:has(+.rot-panel) .team-sim-button{display:none}
.team-result details.team-detail,.rot-panel details.team-detail{padding:10px clamp(12px,3vw,24px)}
.team-kibo-option{position:relative}.team-kibo-option.missing{opacity:.5}.team-kibo-option.missing img{filter:grayscale(1);opacity:1}.team-kibo-option .missing-label{position:absolute;top:6px;right:6px;padding:2px 6px;background:var(--badge);color:white;font-size:10px}
.energy-end,.buff-tracks summary{font-size:13px;font-variant-numeric:tabular-nums}.buff-tracks summary{cursor:pointer;color:var(--text-2)}
.team-lines{max-width:720px}.team-lines li{padding:12px 16px}.rot-table td:nth-child(n+2),.rot-table th:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}
@media(prefers-color-scheme:dark){
.team-page{--ok-bg:#1e2a3d;--ok-fg:#e2e8f0;--gap-bg:#422c30;--gap-fg:#ffd8cb;--best:rgba(217,164,65,.14);--badge:#485669;--gold:#f2c46d}
body:has(.team-page) .sidebar{background:var(--surface);color:var(--text)}
body:has(.team-page) .nav-link.active{background:var(--brand-soft)}
.team-slot.is-empty:not(.is-active) .team-slot-face{background:transparent;border-color:var(--line-strong);color:var(--text-3)}
.team-slot.is-empty .team-slot-plus{color:var(--text-3);background:var(--surface)}
}
@media(max-width:640px){
body:not(.nav-open):not(:has(.nav-open)):has(.team-page) .sidebar{visibility:hidden}
.rot-row{grid-template-columns:96px minmax(0,1fr)}.rot-row .rot-label{position:sticky;left:0;z-index:2;background:var(--surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:5px 0 6px var(--surface)}.rot-row .rot-label small{display:inline}
.rot-panel>.rot-table,.rot-panel>.rot-table tbody{display:block}.rot-panel>.rot-table thead{display:none}.rot-panel>.rot-table tr{display:grid;grid-template-columns:auto 1fr auto;gap:5px;padding:12px;margin:8px 0;border:1px solid var(--line);border-radius:8px}.rot-panel>.rot-table td{display:block!important;white-space:nowrap;border:0;padding:0;font-size:12px}.rot-panel>.rot-table td:first-child{display:contents!important}.rot-panel>.rot-table td:first-child b{grid-area:1/1/2/3}.rot-panel>.rot-table td small{grid-area:2/1/3/-1;white-space:normal}.rot-panel>.rot-table td:last-child{grid-area:1/3}.rot-panel>.rot-table td:nth-child(2){grid-area:3/1}.rot-panel>.rot-table td:nth-child(4){grid-area:3/2;text-align:left}.rot-panel>.rot-table td:nth-child(4):before{content:'伤害 '}.rot-panel>.rot-table td:nth-child(3){grid-area:3/3}
}
.segment-line,.timeline-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.segment-line>span{font-size:12px;color:var(--text-2)}.timeline-head{justify-content:space-between;margin-top:20px}.energy-end{border-collapse:collapse;margin:12px 0 16px}.energy-end caption{text-align:left;color:var(--text-2)}.energy-end th,.energy-end td{padding:4px 8px;border-bottom:1px solid var(--line);text-align:right}
.rot-best{border-radius:10px;background:var(--gold-tint);padding:2px 6px;white-space:nowrap}.team-lines li{grid-template-columns:minmax(0,1fr) 80px}.team-lines li>b{text-align:right}.rot-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:640px){.rot-gantt{box-shadow:inset -6px 0 6px var(--line)}.rot-summary b{font-size:15px}.rot-panel>.rot-table td:last-child:before{content:'DPS ';font-size:10px;color:var(--text-2)}}
.team-page .team-result{grid-column:1/-1}.team-members{gap:12px}.team-members .team-hero-flag{left:8px;right:8px;border-radius:4px}.team-member strong .team-member-kibo{position:static;display:inline-grid;width:24px;height:24px;margin-left:4px;vertical-align:middle}.team-result .team-score b{font-size:32px;font-weight:700}.roster-fold>summary{line-height:44px;cursor:pointer}.team-result .team-rank{padding:2px 8px;border-radius:999px;font:600 12px/1.5 inherit}.rot-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.rot-status.ok{color:#216740;background:#dbf3e5}.rot-row{grid-template-columns:240px minmax(0,1fr);min-height:20px}.rot-row .rot-label,.rot-row.is-buff .rot-label{white-space:nowrap;font-size:12px;line-height:20px}.rot-axis .rot-track span:first-child,.rot-axis+.rot-axis .rot-track span{transform:translateX(4px)}.rot-legend{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px}.rot-legend label{display:inline-flex;align-items:center;gap:4px}.rot-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}.rot-gantt:not(:has(.buff-tracks[open]))+.rot-legend .buff-key,.swipe-note{display:none}.mark-note{padding:8px;background:#fff7ed}.team-kibo-panel:has(.mark-note) .team-kibo-option[data-team-kibo-choice]:not([data-team-kibo-choice=auto]):not([data-team-kibo-choice=none]):before{content:"";position:absolute;right:3px;top:3px;width:16px;height:16px;border:1px solid var(--text-3);border-radius:4px;background:var(--surface)}.team-kibo-panel:has(.mark-note) .team-kibo-option.missing:before{content:"✓"}.team-kibo-option .missing-label{top:auto;bottom:2px}.team-page .team-hero.is-unowned,.team-page .team-kibo-option.missing{opacity:1}.team-hero.is-unowned img,.team-page .team-kibo-option.missing img{filter:grayscale(1);opacity:.5}
@media(min-width:900px){.team-page .team-result{display:grid;grid-template-columns:minmax(270px, min(52%,520px)) minmax(0,1fr);gap:8px 24px;align-items:start}.team-result>*{grid-column:2}.team-result>.team-members{grid-column:1;grid-row:1/span 5}.team-result>.team-detail{grid-column:1/-1}}
@media(prefers-color-scheme:dark){.team-page .team-result.is-best{background:#1e293b;border-color:#786842;box-shadow:none}.team-page .team-result.is-best>header{background:linear-gradient(180deg,rgba(240,192,96,.14),transparent 120px);padding:8px;border-radius:6px}.team-page .team-score{color:#bdc9d9}.team-page .team-score b{color:#f8fafc}.team-page .team-result.is-best .team-rank{color:#f5c873;background:#50422c;font-size:12px;font-weight:600}.team-page .team-hero-flag{background:#475569;color:white}.team-page .is-carry .team-hero-flag{background:#885913}.team-page .role-sub .team-hero-flag{background:#3b5bdb}.team-page .team-element{--c:#cbd5e1}.team-page .team-element[data-element="暗"]{--c:#c5bde9}.team-page .team-warn{background:#493035;color:#fca5a5}.team-page .missing-label,.team-page .is-unowned .team-hero-flag{background:#475569;color:#e2e8f0}.team-page .missing strong,.team-page .is-unowned strong{color:#acb9cb}.mark-note{background:#382f2c}.rot-status.ok{color:#acf1c7;background:#244437}}
@media(max-width:599px){.team-page{padding-bottom:88px}.rot-row{grid-template-columns:88px minmax(0,1fr)}.rot-row .rot-label{background:var(--surface);border-right:1px solid var(--line);box-shadow:none}.rot-gantt:not(.mode-4) .rot-gantt-inner{min-width:0}.rot-gantt.mode-4{overflow-x:scroll;scrollbar-width:thin;mask-image:linear-gradient(to right,black calc(100% - 24px),transparent)}.swipe-note{display:block;font-size:12px}.rot-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.team-kibo-tools input{width:100%}.team-kibo-tools{justify-content:flex-end}.team-kibo-panel{max-height:60vh;overflow:auto}.team-kibo-grid{max-height:none;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:0}.team-kibo-option img{width:48px;height:48px;max-width:100%}.team-kibo-number{display:none}}
@media(prefers-color-scheme:dark){.team-page .team-member.role-support .team-hero-flag{background:#475569}}
@media(max-width:599px){.team-kibo-panel .team-kibo-tools{display:grid;grid-template-columns:1fr auto;margin-bottom:-34px;padding-bottom:0}.team-kibo-tools input{grid-column:1/-1}.team-kibo-tools output{grid-column:1;text-align:right;padding-right:100px;line-height:34px}.team-kibo-panel>[data-own-mode]{display:block;margin-left:auto;min-height:34px;position:relative}.team-kibo-grid{margin-top:8px}}
.team-page .team-member-face{display:flex;align-items:center;flex-direction:column;width:100%;gap:4px}
.team-page .team-member-face .team-hero-flag{position:static;width:min(100%,144px);border-radius:6px;font:600 12px/20px inherit;font-size:12px;line-height:20px;font-weight:600;color:white;background:#475569}
.team-page .team-member.is-carry .team-hero-flag{background:#885913}.team-page .team-member.role-sub .team-hero-flag{background:#365eb0}
.team-page .team-member-face:before,.team-page .team-member-face:after{content:none}
.team-page .team-member-img{display:block;flex:none}
.team-page .rot-summary>div:nth-child(2){background:var(--surface);color:var(--ink)}
.team-page .rot-summary .rot-status{background:none;color:#9a3412;font-size:18px;font-weight:700}
.team-page .rot-summary .rot-status.ok{color:#15803d}.rot-status:before{content:"";display:inline-block;border-radius:50%;width:6px;height:6px;background:currentColor;vertical-align:middle;margin-right:5px}
.team-page .rot-summary small,.team-page .team-compare{display:block;color:#64748b;font-size:12px}
.team-page .team-kibo-option.missing{border:1px dashed #cbd5e1}.team-page .team-kibo-option.missing img{opacity:.45}
.team-page .team-kibo-option .missing-label{inset:6px auto auto 6px;font:600 11px/18px sans-serif;padding:0 3px}
.team-page .team-kibo-panel:has(.mark-note) .team-kibo-option.missing[data-team-kibo-choice]:not([data-team-kibo-choice=auto]):not([data-team-kibo-choice=none]):before{content:"✓";background:#e5484d;color:white;border-color:#e5484d;line-height:16px;text-align:center}
.team-page .team-kibo-panel .team-kibo-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.team-page .team-kibo-tools output{padding:0;flex:none}
.team-page details>summary{color:var(--brand);font-size:13px;font-weight:700}
.team-page .energy-end caption,.team-page .rot-panel h4{font-size:14px;font-weight:700;color:var(--ink);text-align:left}
@media(max-width:599px){body .team-page{padding-bottom:80px}.team-page .team-member-face .team-hero-flag{max-width:96px}.team-page .rot-gantt.mode-3{overflow-x:auto}.team-page .rot-gantt.mode-3 .rot-gantt-inner{min-width:660px}.team-page .rot-row{grid-template-columns:100px minmax(0,1fr)}.team-page .rot-row.is-buff .rot-label{display:grid;align-content:center;white-space:normal;min-height:28px;line-height:14px}.team-page .rot-row.is-buff small{font-size:10px;color:var(--text-2)}}
@media(prefers-color-scheme:dark){.team-page .rot-summary .rot-status{color:#fdba74}.team-page .rot-summary .rot-status.ok{color:#4ade80}.team-page .rot-summary small,.team-page .team-compare{color:#94a3b8}.team-page .team-kibo-option.missing{border-color:#475569}body .team-page .team-result.is-best>header{background:linear-gradient(rgba(245,180,60,.08),transparent)}body .team-page .team-element[data-element]{color:var(--c);background:color-mix(in srgb,var(--c) 16%,transparent);border-color:color-mix(in srgb,var(--c) 35%,transparent)}body .team-page .team-element[data-element]:before{background:var(--c)}
body .team-page .team-element[data-element='风']{--c:#4ade80}
body .team-page .team-element[data-element='光']{--c:#facc15}
body .team-page .team-element[data-element='水']{--c:#60a5fa}
body .team-page .team-element[data-element='冰']{--c:#67e8f9}
body .team-page .team-element[data-element='火']{--c:#f87171}
body .team-page .team-element[data-element='木']{--c:#a3e635}
body .team-page .team-element[data-element='雷']{--c:#c084fc}
body .team-page .team-element[data-element='地']{--c:#d6a76c}
body .team-page .team-element[data-element='暗']{--c:#a78bfa}
}
@media(prefers-color-scheme:dark){body .team-page .team-element[data-element]{background:color-mix(in srgb,var(--c) 16%,#101828)}}

@media(prefers-color-scheme:light){body .team-page{--axis-skill:#3b74f5;--axis-output:#a9c2ff;--axis-period:#e0be85}body .team-page .kind-skill{background:var(--axis-skill)}body .team-page .kind-window{background:var(--axis-output)}body .team-page :is(.rot-window,.rot-window-key){background:var(--axis-period);opacity:1}}
.team-page .team-lines{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr))}.team-page .team-line-eff{text-align:right}
.team-page .team-result .ult-note{font-size:13px;color:var(--text-2);text-wrap:pretty}.team-page .team-sim-facts>span:is(:first-child,:nth-child(3)){font-size:15px;color:var(--ink);text-wrap:pretty}
.team-page .energy-end{width:100%;font-variant-numeric:tabular-nums}.team-page .energy-end :is(td,th):not(:first-child){text-align:right}
.team-page .rot-summary b,.team-page .rot-summary .rot-status{font-size:16px}.team-page .swipe-note{display:none;text-align:right;color:var(--text-2);font-size:12px}.team-page .swipe-note:has(+.can-scroll){display:block}.team-page .rot-gantt.mode-4{mask-image:none}.team-page .rot-gantt.can-scroll{mask-image:linear-gradient(to right,black calc(100% - 12px),transparent)}
.team-page .rot-legend label{white-space:nowrap}.team-page .rot-row.is-buff .rot-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-page .team-result .team-rank{border-radius:999px;background:var(--surface-3);color:var(--text-2);padding:2px 8px}.team-page .team-result.is-best .team-rank{background:var(--gold-tint);color:var(--gold)}
.team-page .team-hero.is-unowned .team-hero-flag{inset:6px auto auto 6px;width:auto;border-radius:4px;padding:0 4px}
@media(min-width:600px){.team-page .team-kibo-tools input{flex:1;min-width:0}}
@media(max-width:599px){.team-page .team-lines{grid-template-columns:minmax(0,1fr)}.team-page .team-lines li{grid-template-columns:1fr auto}.team-page .team-line-eff{grid-row:1}.team-page .team-line-what{grid-column:1/-1}}

body .team-page{--period:#d9a441;--rail:#f1f4f8;--status-bg:#d9f2e3;--status-fg:#175b37;--rank-bg:#fce7b8;--rank-fg:#9a6a12}
@media(prefers-color-scheme:dark){body .team-page{--period:#a8823f;--rail:#293548;--status-bg:#244437;--status-fg:#acf1c7;--rank-bg:#50422c;--rank-fg:#f5c873}}
body .team-page :is(.rot-window,.rot-window-key){background:var(--period);opacity:1}
body .team-page .rot-window{border-inline:1px dashed var(--ink);box-sizing:border-box;z-index:1;background:transparent}
body .team-page .is-buff .rot-track{background:var(--rail)}
body .team-page .rot-window{background:var(--period);z-index:auto}
body .team-page .rot-window:after{content:'';position:absolute;inset:0 -1px;border-inline:1px dashed var(--ink);z-index:2;pointer-events:none}
body .team-page .kind-buff{opacity:1;background:#348260}
body .team-page .team-result.is-best .team-rank{background:var(--rank-bg);color:var(--rank-fg)}
body .team-page .team-result header{flex-wrap:wrap}
body .team-page .team-result header .rot-ok{margin-left:auto;border-radius:999px;padding:2px 9px;background:var(--status-bg);color:var(--status-fg);font-size:13px}
body .team-page .team-result header:has(.rot-ok){display:grid;grid-template-columns:auto 1fr;align-items:center}.team-result header .team-score{text-align:right}.team-result header .rot-ok{grid-column:2}
body .team-page .team-member-img:is(:before,:after){content:none}
body .team-page .team-member-img img{opacity:1;filter:none}
body .team-page :is(.team-group-title,.rot-panel h4,.energy-end caption,.team-detail>summary){font-size:16px;font-weight:600}
body .team-page :is(.team-hint,.section-bar>span){font-size:14px;color:var(--text-2);margin-block:8px}
body .team-page :is(.team-output,.timeline-head,.energy-end){margin-top:24px}
body .team-page .energy-end{max-width:560px}.team-page .energy-end th:first-child{text-align:left}
.team-page .buff-toggle,.team-verdict{border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:var(--surface);color:var(--ink)}
.team-page .buff-toggle{display:none}
@media(min-width:641px){body .team-page .rot-row{grid-template-columns:180px minmax(0,1fr);min-height:24px}body .team-page .rot-row .rot-label{text-align:right;font-size:13px}body .team-page .rot-row:not(.rot-axis) .rot-track{height:24px;background:var(--rail)}body .team-page .rot-bar{top:3px;bottom:3px}body .team-page .rot-axis span{font-size:12px}.team-page .rot-row.is-buff small:before{content:' · '}}
@media(max-width:640px){body .team-page{padding-bottom:88px}body:has(.team-page.scrolling-down):not(.nav-open) #mobile-nav-toggle[aria-expanded=false]{visibility:hidden}.team-page .buff-tracks>summary{display:none}.team-page .buff-toggle{display:inline-block;margin-top:8px}.team-page .rot-row.is-buff .rot-label :is(span,small){display:block;line-height:15px}.team-page .rot-gantt:not(.can-scroll){mask-image:none;box-shadow:none}}

body .team-page :is(.team-slot.role-carry .team-slot-role,.team-slot-roles button[data-role="carry"][aria-pressed="true"],.team-member.is-carry .team-hero-flag,.team-hero.is-carry .team-hero-flag){color:white;background:#885913}
body .team-page .team-member-img{background:transparent}
body .team-page .rot-panel h4+p,body .team-page .section-bar>span{font-size:14px;color:var(--text-2)}
@media(max-width:640px){body .team-page .rot-row.is-buff small{margin-left:0}body .team-page .rot-gantt{box-shadow:none}}

/* round6g：定位色、统一折叠行、主C输出时段、结论区、出手序号 */
body .team-page{--role-carry:#8B5A14;--role-sub:#3559B0;--role-support:#475569;--fold-fg:#475569;--period-wash:rgba(217,164,65,.16);--period-line:#B7832A;--period-solid:#D9A441;--rank-fg:#7A5208;--accent:#D9A441}
@media(prefers-color-scheme:dark){body .team-page{--fold-fg:#9FB0D0;--period-wash:rgba(217,164,65,.14);--rank-fg:#f5c873}}

/* 5. 定位色：选人按钮、栏位角标、推荐卡色条、结论区共用；纯色白字，不用渐变 */
body .team-page :is(.team-slot.role-carry .team-slot-role,.team-slot-roles button[data-role="carry"][aria-pressed="true"],.team-member.role-carry .team-hero-flag,.team-hero.role-carry .team-hero-flag,.tvp-face.role-carry i){background:var(--role-carry);color:#fff}
body .team-page :is(.team-slot.role-sub .team-slot-role,.team-slot-roles button[data-role="sub"][aria-pressed="true"],.team-member.role-sub .team-hero-flag,.team-hero.role-sub .team-hero-flag,.tvp-face.role-sub i){background:var(--role-sub);color:#fff}
body .team-page :is(.team-slot.role-support .team-slot-role,.team-slot-roles button[data-role="support"][aria-pressed="true"],.team-member.role-support .team-hero-flag,.team-hero.role-support .team-hero-flag,.tvp-face.role-support i){background:var(--role-support);color:#fff}
body .team-page .team-slot-roles button[aria-pressed="true"]{font-weight:700}

/* 3. 统一折叠行：14px / 600 / 次级文字色 / 12px 箭头 / 行高 40px */
body .team-page :is(.team-detail,.team-slot-hint,.roster-fold)>summary,
body .team-page :is(.team-fold,.buff-toggle){display:flex;align-items:center;gap:6px;width:fit-content;min-height:40px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;list-style:none;font:inherit;font-size:14px;font-weight:600;line-height:40px;color:var(--fold-fg);cursor:pointer}
body .team-page :is(.team-detail,.team-slot-hint,.roster-fold)>summary::-webkit-details-marker{display:none}
body .team-page :is(.team-detail,.team-slot-hint,.roster-fold)>summary::marker{content:''}
body .team-page :is(.team-detail,.team-slot-hint,.roster-fold)>summary::after,
body .team-page :is(.team-fold,.buff-toggle)::after{content:'›';display:inline-block;width:12px;font-size:12px;line-height:12px;text-align:center;transition:transform .15s}
body .team-page :is(.team-detail,.team-slot-hint,.roster-fold)[open]>summary::after,
body .team-page :is(.team-fold,.buff-toggle)[aria-expanded="true"]::after{transform:rotate(90deg)}
body .team-page :is(.team-detail,.team-slot-hint,.roster-fold)>summary:hover,
body .team-page :is(.team-fold,.buff-toggle):hover{color:var(--ink)}
body .team-page :is(.team-fold,.buff-toggle):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
body .team-page .team-result details.team-detail,body .team-page .rot-panel details.team-detail{padding:0 clamp(12px,3vw,24px)}
body .team-page .team-detail[open]{padding-bottom:12px}
body .team-page .team-slot-hint{margin-top:8px}
body .team-page .team-slot-hint[open]{font-size:14px;line-height:1.6}
/* 小节标题要比折叠行醒目 */
body .team-page :is(.rot-panel h4,.energy-end caption,.team-group-title){font-size:16px;font-weight:700;color:var(--ink)}
/* 增益时间轴：所有尺寸都用同一个按钮，原 summary 不再显示 */
body .team-page .rot-panel .buff-tracks>summary{display:none}
body .team-page .rot-panel .buff-toggle{display:flex;margin-top:4px}

/* 推荐卡：查看排轴 + 并排文字折叠按钮 */
body .team-page .team-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;margin-top:8px}
body .team-page .team-card-actions .team-sim-button{width:auto;margin:0;padding:0 20px;height:38px}
body .team-page .team-fold-links{display:inline-flex;align-items:center;gap:10px;color:var(--fold-fg)}
body .team-page .team-result>.team-fold-panel{grid-column:1/-1;border-top:1px solid var(--line);padding:12px clamp(12px,3vw,24px) 4px}
@media(max-width:640px){body .team-page .team-card-actions .team-sim-button{flex:1 1 100%}}

/* 1. 出手序号圆标：头像左上角 16px */
body .team-page .team-member-avatar{position:relative;display:block;width:fit-content}
body .team-page .team-turn{position:absolute;left:-3px;top:-3px;z-index:1;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line-strong,var(--line));font-size:15px;line-height:16px;font-weight:600}

/* 4. 主C输出时段：通高半透明底 + 两端 #B7832A 竖虚线 + 刻度行 4px 实心金条；手机与桌面同一画法 */
body .team-page .rot-gantt .rot-body{position:relative}
body .team-page .rot-gantt .rot-row.rot-window-layer{position:absolute;inset:0;z-index:1;min-height:0;align-items:stretch;pointer-events:none}
body .team-page .rot-gantt .rot-row.rot-window-layer .rot-label{visibility:hidden;box-shadow:none;border:0}
body .team-page .rot-gantt .rot-row.rot-window-layer .rot-track{height:auto;background:none;border-radius:0}
body .team-page .rot-gantt .rot-window{position:absolute;top:0;bottom:0;box-sizing:border-box;background:var(--period-wash);border-inline:1px dashed var(--period-line);opacity:1;z-index:auto}
body .team-page .rot-gantt .rot-window:after{content:none}
body .team-page .rot-gantt .rot-bar{z-index:2}
body .team-page .rot-gantt .rot-row:not(.rot-window-layer) .rot-label{z-index:3}
body .team-page .rot-gantt .rot-row.rot-axis:first-child .rot-track{height:22px}
body .team-page .rot-gantt .rot-axis .rot-window-tick{position:absolute;bottom:0;height:4px;border-radius:2px;background:var(--period-solid)}
body .team-page .rot-legend .rot-window-key{box-sizing:border-box;background:var(--period-wash);border-inline:1px dashed var(--period-line);box-shadow:inset 0 4px 0 var(--period-solid);opacity:1}

/* 2. 顶部摘要条（所有宽度） */
body .team-page .team-verdict{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:12px 0 0;padding:10px 14px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:8px;background:var(--surface);color:var(--ink);font-size:15px;line-height:1.5}
body .team-page .team-verdict-tag{font-size:12px;font-weight:600;color:var(--rank-fg)}
body .team-page .team-verdict strong{font-weight:700}
body .team-page .team-verdict-dps{color:var(--text-2);white-space:nowrap}
body .team-page .team-verdict-dps:before{content:'· '}
@media(max-width:640px){body .team-page .team-verdict-tag{flex-basis:100%}}
body .team-page .team-verdict-dps b{color:var(--ink);font-size:17px;font-variant-numeric:tabular-nums}

/* 2. 桌面首屏结论区：选人卡片右侧空白 */
body .team-page .team-verdict-panel{display:none}
@media(min-width:1100px){
  body .team-page .team-slots-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:28px;align-items:stretch}
  body .team-page .team-verdict-panel{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"kick kick" "faces score" "note note" "act act";gap:14px 24px;align-content:start;margin-top:16px;padding:18px 24px 20px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;background:var(--surface-2)}
  body .team-page .tvp-kicker{grid-area:kick;font-size:13px;font-weight:600;color:var(--rank-fg)}
  body .team-page .tvp-faces{grid-area:faces;display:flex;gap:14px}
  body .team-page .tvp-face{display:flex;flex-direction:column;align-items:center;gap:4px;width:56px}
  body .team-page .tvp-face img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:top;background:var(--surface)}
  body .team-page .tvp-face i{display:block;width:44px;border-radius:4px;font-size:11px;line-height:16px;font-weight:600;font-style:normal;text-align:center}
  body .team-page .tvp-face small{max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--text-2)}
  body .team-page .tvp-score{grid-area:score;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px}
  body .team-page .tvp-dps{font-size:15px;color:var(--text-2)}
  body .team-page .tvp-dps b{font-size:40px;line-height:1;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
  body .team-page .tvp-status{border-radius:999px;padding:2px 10px;background:var(--status-bg);color:var(--status-fg);font-size:13px;font-weight:600}
  body .team-page .tvp-status.is-warn{background:#fde2e2;color:#8f1d1d}
  body .team-page .tvp-note{grid-area:note;margin:0;font-size:14px;line-height:1.6;color:var(--text-2)}
  body .team-page .tvp-action{grid-area:act;justify-self:start;height:38px;padding:0 20px;border-color:var(--role-sub);background:var(--role-sub);color:#fff}
  body .team-page .tvp-action:hover{background:#2b4a96;border-color:#2b4a96;color:#fff}
}
@media(min-width:1100px) and (prefers-color-scheme:dark){body .team-page .tvp-status.is-warn{background:#493035;color:#fca5a5}}
body .team-page .team-sim-facts .team-role-line{font-weight:600}
body .team-page .team-sim-facts .team-order{white-space:normal}
body .team-page .team-sim-facts .team-order i{font-style:normal;white-space:nowrap}
@media(max-width:640px){body .team-page .team-sim-facts .team-order{display:block}}

body .team-page .team-result .team-sim-facts,body .team-page .team-result .team-sim-facts>span{display:block;margin-inline:0}
body .team-page .team-result .team-sim-facts>span+span{margin-top:4px}
body .team-page{--period-solid:#B7832A}
body .team-page .rot-gantt .rot-window{translate:1px;clip-path:inset(0 2px 0 0);border:0;background:none}
body .team-page .rot-gantt .rot-window:before{content:'';position:absolute;inset:0 2px 0 0;border-inline:1px solid var(--period-line);background:var(--period-wash)}
body .team-page .team-member .team-turn{box-sizing:border-box;background:var(--role-support);color:white;font-size:10px;line-height:1;box-shadow:0 0 0 1.5px var(--surface)}
body .team-page .role-carry .team-turn{background:var(--role-carry)}
body .team-page .role-sub .team-turn{background:var(--role-sub)}
body .team-page :is(.team-slot-kibo-text small,.is-buff .rot-label small,.team-fill-tag){font-size:11px}
body .team-page .rot-panel .energy-end{width:100%;max-width:none;table-layout:fixed;margin:32px 0 0}
body .team-page .rot-panel .energy-end caption{padding:0 0 12px;margin:0}
body .team-page .rot-panel .energy-end th:first-child{width:4em}
body .team-page .rot-panel h4{margin:32px 0 12px}
body .team-page .rot-panel .timeline-head{margin:32px 0 12px}
body .team-page .rot-panel .timeline-head h4,body .team-page .rot-panel .timeline-head+p{margin:0}
body .team-page .rot-panel details.team-detail{padding-left:0}
@media(min-width:1100px){body .team-page .team-verdict{display:none}}
@media(prefers-color-scheme:dark){
 body .team-page{--period-wash:rgba(217,164,65,.08);--period-line:rgba(217,164,65,.6)}
 body .team-page article.team-result.is-best{background:linear-gradient(120deg,rgba(217,164,65,.08),transparent 65%),var(--surface);border-color:#a78443}
 body .team-page .team-result.is-best>header{padding:0;background:none}
}
@media(min-width:768px){body .team-page .rot-panel .rot-shares{margin:0 0 0 52px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}body .team-page .rot-panel .rot-shares>div{padding:0 8px}body .team-page .rot-panel .energy-end th:first-child{width:52px;box-sizing:border-box}}

body .team-page .rot-frame{border:1px solid var(--line);border-radius:6px;overflow:hidden;margin:6px 0 4px}
body .team-page .rot-frame .rot-gantt{margin:0;border:0;border-radius:0}
body .team-page .rot-gantt .rot-row>.rot-label{position:sticky;left:0;z-index:3;background:var(--surface);box-shadow:6px 0 6px -4px rgba(0,0,0,.25)}
body .team-page .rot-frame:not(:has(.buff-tracks[open]))+.rot-legend .buff-key{display:none}
body .team-page .rot-panel .rot-shares{margin-left:0}
body .team-page .rot-panel .rot-shares>div:first-child{padding-left:0}
body .team-page .team-fold-links{gap:16px}
body .team-page article.team-result{min-height:0;align-items:center;align-content:center}
body .team-page .team-result .team-sim-facts{margin:0;display:grid;gap:8px}
body .team-page .team-result .team-sim-facts>span+span{margin:0}
body .team-page .rot-legend,body .team-page .rot-axis .rot-track span{font-size:12px}
body .team-page [data-global-fill]{cursor:pointer}
@media(prefers-color-scheme:light){body .team-page{--text-3:#5f6b80}body .team-page :is(.team-slot-kibo-text small,.team-member small,.rot-label small,.rot-axis .rot-track span,.rot-legend,.team-line-what){color:#5f6b80}}
@media(min-width:1100px){body .team-page:has(#tvp-basis) .team-output :is(.section-bar,article.team-result){display:none}body .team-page .team-verdict-panel>:is(.team-fold-links,.team-fold-panel){grid-column:1/-1}}
@media(max-width:640px){body .team-page{padding-bottom:calc(80px + env(safe-area-inset-bottom))}body .team-page .section-bar>span{display:none}}

body .team-page .team-card-body{display:grid;gap:8px;align-content:center;min-width:0}
body .team-page .team-card-body .team-card-actions{margin:0}
@media(min-width:900px){body .team-page .team-result>.team-members{grid-row:2;grid-column:1;margin:0}body .team-page .team-result>header{grid-column:1/-1;grid-row:1}body .team-page .team-result>.team-card-body{grid-row:2;grid-column:2}}
@media(prefers-color-scheme:light){body .team-page :is(.team-lines li small,.team-gear span,.rot-legend label){color:#5f6b80}}
body .team-page .team-result header .team-community-badge{grid-column:1/-1;justify-self:start;flex-basis:100%;width:max-content;max-width:100%;margin-top:4px;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600;color:#fb7299;background:rgba(251,114,153,.12);text-decoration:none}
body .team-page .team-result header a.team-community-badge:hover{background:rgba(251,114,153,.22)}
body .team-page .team-result .team-community{margin:8px 0 2px;padding:8px 10px;border-radius:10px;border:1px solid rgba(251,114,153,.35);background:rgba(251,114,153,.06);font-size:13px;line-height:1.5}
body .team-page .team-result .team-community-head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
body .team-page .team-result .team-community-head b{color:#fb7299}
body .team-page .team-result .team-community-math{opacity:.75;font-size:12px}
body .team-page .team-result .team-community-list{margin:4px 0 0;padding-left:20px;display:grid;gap:2px}
body .team-page .team-result .team-community-list a{color:#fb7299;font-weight:600;text-decoration:none;margin-right:6px}
body .team-page .team-result .team-community-list a:hover{text-decoration:underline}
body .team-page .team-result .team-community-list span{opacity:.75;font-size:12px}
