:root{--panel:#191b28;--line:#303245;--muted:#acafc5;--gold:#ffcf69;--accent:#bca3ff;scrollbar-color:#44465b transparent;scrollbar-width:thin}
*{scrollbar-width:thin;scrollbar-color:#46475e transparent}
body{background:radial-gradient(ellipse 80% 440px at 48% 0,#29224455,transparent),#10111a}
button,input,a{transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s}
.shell{width:min(1280px,93%)}
.layout{display:block;padding:26px 0 115px}
.topRight{gap:15px}.topRight .setting{border:1px solid var(--line);background:#202131;width:38px;height:38px;border-radius:12px}
#account{background:#302847;color:#e1d5ff;border-color:#534477;border-radius:12px;height:39px;padding:0 14px;gap:7px}
#account.member{background:transparent;border:0;color:white;padding:0 2px}
#account span:not(.avatar){max-width:110px;overflow:hidden;text-overflow:ellipsis}
.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;font-weight:750;background:linear-gradient(145deg,#aa85ff,#5441aa);box-shadow:inset 0 0 0 1px #ffffff30;color:white}
.banner{padding:30px clamp(25px,4vw,54px);border-radius:22px}
.banner:before{background-size:76% auto;background-position:right 31%}
.banner:after{background:linear-gradient(90deg,#242040 0%,#292248 25%,#292248ee 34%,#32245e77 50%,transparent 72%),linear-gradient(0deg,#17162c66,transparent 50%)}
.banner .season{display:inline-flex;align-items:center;gap:8px;letter-spacing:.05em}
.banner .season:before{content:"";width:18px;height:3px;border-radius:2px;background:var(--gold)}
.banner h1{font-size:clamp(35px,3.4vw,47px);letter-spacing:.01em}
.actions .primary{box-shadow:0 4px 18px #ffbf3726}
.sectionHead{margin:27px 0 15px}.sectionHead h2{font-size:23px;display:flex;align-items:center}
.sectionHead h2 small{font-size:13px;padding:2px 9px;border-radius:8px;background:#252635;color:#c8cad9;letter-spacing:0}
#saved{padding:7px 13px;background:transparent}#saved svg{color:var(--gold);width:17px}#saved.active svg{transform:rotate(180deg);fill:none}
#filters{align-items:stretch;margin:0 0 20px;gap:10px}
.find{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:1px solid #393b50;background:#191b28;border-radius:12px;padding:0 14px;color:#a4a6bf;height:46px;cursor:text}
.find:focus-within{border-color:#a58cff;box-shadow:0 0 0 3px #8970ef1a}
#filters .find input{height:100%;padding:0;background:transparent;color:white;border:0;box-shadow:none;font-size:15px}
kbd{font:13px monospace;border:1px solid #45465a;padding:2px 7px;border-radius:5px}
#filters .menu-trigger{width:auto;min-width:136px;height:46px}
#quickSearch{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:var(--muted);margin:-4px 0 21px}
#quickSearch button{border-radius:18px;padding:4px 12px;background:#242534;color:#d6d7e5}
#quickSearch button[aria-pressed=true]{background:#493976;color:#fff}
#teams,#guideCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.team,.guide{background:linear-gradient(130deg,#1d1f2e,#191b27);border-color:#313346;padding:19px 21px;border-radius:17px}
.team{display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s}
.team:hover,.team:focus-within{border-color:#746399;box-shadow:0 6px 24px #0002}
.cardTitle{gap:10px;padding-right:32px}.cardTitle .title{font-size:18px}.cardTitle .byline{font-size:12px}
.team .star{top:16px;right:14px}.team .star.active{color:var(--gold)}
.portraits{gap:7px;margin:20px 0 10px}
.unit img{border-radius:9px}.unit span{font-size:12px}
.team .loadout{margin-top:auto;padding-top:12px;border-top:1px solid #ffffff0e}
.team .reason{margin:0 0 12px;line-height:1.7}
.compact .team{padding:12px 15px}.compact .portraits{margin:12px 0 7px}.compact .unit img{max-width:38px}.compact .loadout{padding-top:6px}.compact .unit span{display:none}
.compact .unit b{left:calc(50% - 22px)}.compact .team .star{top:9px}
.empty{grid-column:1/-1;text-align:center;padding:54px 15px;border:1px dashed #37384c;border-radius:18px}
.empty>svg{display:block;width:32px;height:32px;margin:0 auto 15px;color:var(--accent)}
.empty p{color:var(--muted);margin:8px 0 20px;font-size:14px}.empty .btn{margin:auto}
.guide .selection{margin-top:auto;padding-top:15px}.guide{display:flex;flex-direction:column}
#library iframe{min-height:70dvh}
dialog{background:#1b1c2a;border-color:#3e4054;border-radius:22px;max-height:min(90dvh,900px)}
dialog:not(.wide){width:min(510px,94vw)}
dialog:has(#phoneForm){width:min(455px,94vw)}
.modalHead h2{font-size:20px}.modalHead{border-bottom:1px solid #303144}
#modalBody{padding:22px 24px}.modalHead,#modalFoot{padding:16px 24px}
#modalBody .field{font-weight:550;min-width:0;gap:8px}
.field small,.hint,.secureNote{font-size:12px;line-height:1.7;font-weight:400}
.field input{font-weight:400;min-height:44px}
#endpoint{font:12px/1.5 Consolas,monospace;color:#a3a5bb}
#modelStatus{margin:10px 0 18px}#modelId{font-family:Consolas,monospace}
#forget{margin-left:auto;font-size:13px}
.guestNotice{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;border-radius:10px;padding:12px 14px;background:#302746;color:#d6bfff;margin-bottom:20px;font-size:13px;text-align:left}
.authIntro,.profileHero{display:flex;align-items:center;gap:15px;margin-bottom:22px;border:1px solid #453961;border-radius:16px;padding:16px;background:radial-gradient(ellipse at 0 0,#4c3377,transparent 72%),#252238}
.authIntro img{width:68px;height:68px;filter:drop-shadow(0 4px 9px #120e2b66)}
.authIntro p,.profileHero p,.migration p{font-size:13px;color:#c3bfd6;margin-top:4px}
.authSwitch{display:flex;gap:4px;padding:4px;border-radius:13px;background:#12131e;margin-bottom:20px}
.authSwitch button{flex:1;padding:9px 6px;border-radius:10px;color:var(--muted);font-size:14px}
.authSwitch button[aria-pressed=true]{background:#343046;color:#f2edff;box-shadow:0 2px 8px #0003;font-weight:650}
.phoneInput,.codeInput{display:flex;align-items:center;gap:9px;min-width:0}
.phoneInput{border:1px solid #3a3b4f;background:#14151f;border-radius:10px;gap:0}
.phoneInput:focus-within{border-color:#9678ff}
.phoneInput span{padding:0 12px;border-right:1px solid #373849;color:#d3d3e2}
.phoneInput input,.phoneInput input:focus{border:0;box-shadow:none;background:transparent}
#otp,#phone{font-size:16px;letter-spacing:.04em}
#otp::placeholder,#phone::placeholder{font-size:14px;letter-spacing:0}
#getCode{min-width:117px;color:#d9caff;background:#322849;border-color:#56447a;min-height:44px}
#authFeedback{color:#c2b5ff;font-size:13px;margin:0 0 13px}#authFeedback.bad{color:#ffac9a}
.full{width:100%;min-height:46px;font-size:16px}
.secureNote{display:flex;align-items:center;gap:6px;justify-content:center;margin:14px 0 0;color:var(--muted)}
.secureNote svg{width:15px;height:15px}
.profileHero .avatar{width:49px;height:49px;font-size:22px;flex:none}.profileHero>div{overflow-wrap:anywhere}
.online{margin-left:auto;font-size:12px;color:#74e3ba;white-space:nowrap}
.prefList{border-block:1px solid var(--line)}
.prefList>button,.prefList>label,.thinkRow{display:flex;align-items:center;width:100%;gap:14px;padding:14px 2px;text-align:left;cursor:pointer;font-size:15px}
.prefList>button+*,.prefList>label{border-top:1px solid var(--line)}
.prefList span,.thinkRow span{flex:1}
.prefList small,.thinkRow small{display:block;font-size:12px;margin-top:3px}
.prefList svg:first-child{color:var(--accent)}
input[role=switch]{appearance:none;cursor:pointer;width:40px;height:23px;min-width:40px;border-radius:14px;background:#484a60;border:0;padding:3px;margin:0}
input[role=switch]:before{content:"";display:block;width:17px;height:17px;border-radius:50%;background:#fff;transition:transform .16s}
input[role=switch]:checked{background:#8865ff}input[role=switch]:checked:before{transform:translateX(17px)}
input[role=switch]:disabled{opacity:.45}.thinkRow{border-top:1px solid var(--line);padding-bottom:0}
.migration{font-size:12px;color:var(--muted);margin-top:16px;overflow-wrap:anywhere}.migration summary{cursor:pointer}.migration code{display:block;padding:10px;background:#141520;margin-top:8px;user-select:all}
@media(max-width:1100px){.shell{width:94%}#teams,#guideCards{grid-template-columns:minmax(0,1fr)}.team .portraits{gap:10px}.topRight{gap:9px}.bar nav{gap:18px;margin-left:24px}#sync span{display:none}}
@media(max-width:900px){.bar nav{margin:0;gap:0}.layout{padding-top:16px}.banner{padding:24px}.banner:before{background-size:83% auto}.banner:after{background:linear-gradient(90deg,#24203f 0%,#292248dc 34%,transparent 80%)}.team{padding:17px}.topRight{margin-left:auto}.topRight .setting{width:34px;height:34px}#sync{padding:7px}}
@media(max-width:650px){#filters{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}.find{grid-column:1/-1}.find kbd{display:none}#filters .menu-trigger{min-width:0;width:100%;height:40px}.sectionHead h2{font-size:19px}.sectionHead{margin:20px 0 12px}#saved{font-size:13px;padding:6px 10px}.team .portraits{gap:6px}.team,.guide{padding:14px}.cardTitle .title{font-size:16px}.team .star{right:8px;top:9px}.banner{padding:19px 16px}.banner h1{font-size:29px}.banner:before{background-size:auto 135%;background-position:calc(50% + 84px) 30%}.banner p{font-size:13px;max-width:58%}.banner .season{font-size:11px}.banner .season:before{width:10px}.banner:after{background:linear-gradient(90deg,#241e40 0%,#262141b8 46%,transparent 89%),linear-gradient(0deg,#17162c8c,transparent 45%)}.topRight{gap:6px}#account{font-size:13px;padding:0 9px;height:35px}#account.member>span:not(.avatar),#account.member>svg{display:none}#account>svg{width:15px}.modalHead,#modalBody,#modalFoot{padding:15px 16px}#teams,#guideCards{gap:12px}.field input{font-size:16px}.authIntro{padding:12px;gap:10px}.authIntro img{width:54px;height:54px}}
@media(max-width:570px){.team .portraits{gap:12px 6px;margin:16px 0 12px}.compact .team .portraits{gap:9px 5px}.cardTitle{gap:7px}}
@media(max-width:370px){.topRight{gap:3px}#account>svg{display:none}.banner .season{letter-spacing:0}.brand{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}}

#welcome .petLogin{margin:16px auto 0;padding:8px 20px}
