main{max-width:1800px;margin:24px auto}h1{margin:0 0 12px}.heading,.controls,.team-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.controls{justify-content:flex-start;background:white;border:1px solid #d5dfed;padding:14px;border-radius:14px}.controls label{margin:0}.controls select{padding:8px;border:1px solid #bbcbe2;border-radius:8px}.hint,#battle-info{font-size:13px;color:#647997}#teams{display:grid;grid-template-columns:1fr 1fr;gap:18px}.team-head p{font-size:12px;text-align:right}.team-head h2{font-size:22px}table{border-collapse:collapse;width:100%;background:white;font-size:13px}th,td{padding:10px 8px;border-bottom:1px solid #d6e0ef;text-align:right}th{background:#e3ecf8;font-weight:500;color:#47658e}th:first-child,td:first-child{text-align:left}td:first-child{width:40%}td small{display:block;margin-top:5px;color:#7589a6}tr.player{cursor:pointer}tr.player:hover{background:#f0f6ff}tr.self{background:#e8f7f4}.badge{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.status{font-size:12px;color:#6e7f96}#log{max-height:150px;overflow:auto;font:12px/1.8 monospace;padding:12px;background:#fff;border:1px solid #d3dfec}details{margin-top:24px}#detail{width:min(850px,94vw)}#close{float:right}#detail table{margin-top:15px}#detail p{font-size:13px}button:disabled{opacity:.5}@media(max-width:1050px){#teams{grid-template-columns:1fr}}@media(max-width:600px){main{padding:0 10px}th,td{font-size:11px;padding:9px 4px}.controls{gap:8px}.controls button{font-size:12px}.team-head p{text-align:left}.heading h1{font-size:26px}}
.player{border:0;background:transparent;padding:0;color:#294c7d;text-align:left;cursor:pointer;font:inherit}.badge{display:inline-block;margin-right:5px}.primary{cursor:pointer}td small{color:#76869d}th{font-size:12px}
/* Full-width battle board; retain readable rows and allow scrolling on short screens. */
header{padding:10px 20px;min-height:46px}main{max-width:none;width:100%;margin:12px auto;padding:0 20px 16px}.heading{gap:8px}.heading .eyebrow{display:none}h1{font-size:28px;margin:0 0 8px}.controls{padding:8px 12px;gap:10px}.controls button,.controls .primary{padding:8px 12px}.controls select{font:inherit;padding:7px}.help{margin:8px 0;font-size:14px}.help summary{cursor:pointer;color:#526d94}.hint,#battle-info{margin:6px 0;font-size:14px;line-height:1.45}#teams{gap:16px;align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#teams section{min-width:0}.team-head{gap:6px;min-height:42px}.team-head h2{margin:6px 0;font-size:23px}.team-head p{font-size:14px;line-height:1.4;margin:6px 0;flex:1;min-width:240px}table{table-layout:fixed;font-size:clamp(16px,1vw,20px);font-variant-numeric:tabular-nums}th,td{padding:3px 7px;line-height:1.15;vertical-align:middle}th{font-size:14px;padding:7px 6px}th:first-child,td:first-child{width:38%}th:nth-child(2),th:nth-child(3){width:24%}th:last-child{width:14%}td:not(:first-child){white-space:nowrap}td small{font-size:.86em;line-height:1.25;margin-top:3px;overflow-wrap:anywhere}.player{font-size:1.04em;line-height:1.2;overflow-wrap:anywhere;max-width:100%}#teams tbody tr:hover{background:#f1f6fc}details{margin-top:8px}#detail table{font-size:17px}#detail th{width:auto}#detail td{white-space:normal}#detail-name{overflow-wrap:anywhere}
@media(min-width:1600px) and (min-height:1000px){#teams td{padding-top:5px;padding-bottom:5px}}
@media(max-width:1150px){#teams{grid-template-columns:1fr}main{padding:0 12px 16px}table{font-size:17px}header{padding:10px 12px}.team-head p{font-size:13px}}
@media(max-width:600px){header>a{font-size:17px}nav{gap:12px;font-size:14px}table{font-size:14px}th{font-size:11px}th,td{padding:5px 3px}.controls{font-size:14px}#detail{padding:16px}#detail table{font-size:13px}}
#teams .badge{width:12px;height:42px;border-radius:2px;vertical-align:middle;margin-right:8px;box-shadow:inset 0 0 0 1px #00000012}#folder-dialog{width:min(700px,94vw)}.folder-row{padding:12px 0;border-bottom:1px solid #d5dfed;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.folder-row label{margin:0}.folder-row span{font-size:14px;overflow-wrap:anywhere}.folder-row button{margin-right:8px}.folder-row input{max-width:100%}#folder-add{margin-top:18px}@media(max-width:600px){#teams .badge{width:7px;height:34px;margin-right:4px}}
#teams th:nth-child(2),#teams th:nth-child(3){width:22.5%}#teams th:last-child{width:17%}

/* Equal rows, with viewport-based sizing for both twelve-player teams. */
#teams table{font-size:var(--board-font,16px)}
#teams tbody tr{height:var(--row-height,54px)}
#teams td{padding:2px 7px;line-height:1.12}
#teams th:first-child,#teams td:first-child{width:42%}
#teams th:nth-child(2),#teams th:nth-child(3){width:25%}
#teams th:last-child{width:8%;text-align:center}
#teams .composition{padding:2px;width:8%;position:relative}
#teams .rating-block{display:block;position:absolute;inset:2px;border:1px solid #00000018}
#teams .status{text-align:center;font-size:inherit;white-space:normal}
#teams td small{margin-top:2px;line-height:1.1}
#teams .player{line-height:1.1}
.team-head{height:42px;flex-wrap:nowrap}.team-head p{min-width:0;font-size:12px;line-height:1.25}
@media(max-width:1150px){#teams table{font-size:15px}#teams tbody tr{height:56px}.team-head{height:auto;min-height:42px}}

/* Ship identity takes priority; player names remain available below. */
#teams td{line-height:1.05}
#teams .ship-name{display:flex;align-items:center;gap:6px;font-size:1.18em;font-weight:650;line-height:1.12;color:#24466f}
#teams .ship-type{width:1.25em;height:1em;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
#teams .player-name{font-size:.9em;line-height:1.1;margin-top:4px;color:#657a97;overflow-wrap:anywhere}
@media(max-width:1150px){#teams table{font-size:16px}}

/* Official Wiki class assets; balanced centered statistic columns. */
#teams .ship-type{width:27px;height:27px;object-fit:contain;flex-shrink:0}
#teams th:first-child,#teams td:first-child{width:40%}
#teams th:nth-child(2),#teams th:nth-child(3),#teams th:last-child{width:20%;text-align:center}
#teams td:not(:first-child){text-align:center}
#teams .composition{width:20%}
#teams .rating-block{left:12%;right:12%}
#teams img.ship-type{filter:brightness(.3)}

.radar-heading{display:flex;align-items:center;gap:10px}.radar-heading img{width:36px;height:36px;object-fit:contain;border-radius:8px}
#build-status{margin:4px 0 10px}
#build-tooltip,#detail{color:#e6eef3;background:linear-gradient(145deg,#263e47,#172a33);border:1px solid #647e87;border-radius:12px;box-shadow:0 14px 45px #06151d88;font-size:14px}
#build-tooltip{position:fixed;z-index:1000;width:500px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:14px;box-sizing:border-box;pointer-events:auto;overscroll-behavior:contain}
#build-tooltip[hidden]{display:none}
#detail{width:550px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;box-sizing:border-box;overflow:auto}#detail::backdrop{background:#06151c77}#detail #detail-name{display:none}#detail>#close{display:block;margin:0 0 8px auto;background:#344e59;color:#e6eef3;border-color:#607f8e;padding:5px 14px;font-size:14px}
.battle-profile{font-size:14px;line-height:1.4}.profile-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid #5a737c;padding:0 0 10px;margin-bottom:10px;background:none}.profile-title strong{font-size:17px;overflow-wrap:anywhere}.profile-title>span{display:flex;align-items:center;gap:7px;color:#e4eaf0;font-size:16px}.profile-title img{width:23px;height:23px;object-fit:contain}.battle-profile h3{font-size:14px;margin:0;color:#bfcfd8;letter-spacing:.04em}.profile-stats>h3{margin-bottom:6px}
.battle-profile .profile-stat-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:13px;background:none;margin:0}.battle-profile .profile-stat-table th,.battle-profile .profile-stat-table td{padding:4px 5px;text-align:center;border:0;border-bottom:1px solid #ffffff12;width:auto;color:#e2edf2;background:none;white-space:nowrap;line-height:1.3}.battle-profile .profile-stat-table thead th{color:#a7c1ce;font-size:12px;font-weight:400}.battle-profile .profile-stat-table tbody th{text-align:left;font-weight:400;color:#b8d1dd}.battle-profile .profile-stat-table tbody tr:last-child{background:#8dadc313}.profile-empty{color:#b2c8d3;margin:10px 0;font-size:14px}
.profile-loadout{margin-top:12px;border-top:1px solid #6a828b66;padding-top:10px}.loadout-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 6px}.loadout-heading>span{font-weight:700;color:#ffda68;font-size:16px}.loadout-heading>small{font-size:12px;color:#9db6c4}.skill-matrix{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-bottom:12px}.skill-slot{aspect-ratio:1.18;position:relative;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;outline-offset:1px}.skill-slot img{width:86%;height:86%;object-fit:contain;filter:grayscale(1);opacity:.28}.skill-slot.learned{background:#ffdd6110;border-color:#ffdf5836}.skill-slot.learned img{opacity:1;filter:brightness(0) saturate(100%) invert(86%) sepia(69%) saturate(858%) hue-rotate(333deg) brightness(102%) contrast(102%)}.skill-slot:hover,.skill-slot:focus-visible{border-color:#aac7d3;background:#ffffff12}.skill-slot.empty{visibility:hidden}.skill-cost{position:absolute;right:4px;bottom:1px;font-size:10px;color:#91a6af}.learned .skill-cost{color:#ffe178}.skill-star{position:absolute;left:2px;top:1px;background:#2a927c;color:#e2ffee;font-size:11px;line-height:16px;width:16px;text-align:center;border-radius:2px}.upgrade-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.upgrade-slot{min-width:0;aspect-ratio:1.25;position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #95b4c43b;border-radius:5px;background:#14232a66}.upgrade-slot img{width:90%;height:90%;object-fit:contain}.upgrade-slot>span{font-size:10px;overflow-wrap:anywhere}.upgrade-slot small{position:absolute;bottom:0;right:4px;color:#b0c8d2;font-size:10px}.upgrade-slot:hover,.upgrade-slot:focus-visible{border-color:#f4cd5b}.loadout-hint{font-size:12px;color:#a9c2ce;min-height:18px;margin:9px 0 0;line-height:1.35}
@media(max-width:550px){#build-tooltip{width:calc(100vw - 16px);padding:11px}.battle-profile .profile-stat-table th,.battle-profile .profile-stat-table td{padding:4px 2px;font-size:11px}.profile-title strong{font-size:15px}.profile-title>span{font-size:14px}}
#detail{position:fixed}#detail>#close{float:none;position:absolute;top:12px;right:12px;margin:0;z-index:1}#detail .profile-title{padding-right:66px}#detail .profile-stat-table{font-size:13px;margin-top:0}.profile-title{min-height:0}.skill-slot{height:clamp(38px,calc((100dvh - 370px)/4),62px);aspect-ratio:auto}.upgrade-slot{height:58px;aspect-ratio:auto}

/* Display details over the opposite roster without covering the selected team. */
#detail{margin:0;box-sizing:border-box;max-width:calc(100vw - 16px);overflow:auto;z-index:1001}
#build-tooltip,#detail{padding:14px;container-type:size}
#build-tooltip .skill-slot,#detail .skill-slot{height:clamp(34px,calc((100cqh - 330px)/4),100px)}
#build-tooltip .upgrade-slot,#detail .upgrade-slot{height:clamp(40px,10cqh,80px)}
#detail .profile-stat-table,#build-tooltip .profile-stat-table{font-size:clamp(13px,1vw,18px)}

/* Fit the build beside a vertical upgrade rack in the remaining panel height. */
#detail-body{height:100%}
#build-tooltip .battle-profile,#detail .battle-profile{height:100%;display:flex;flex-direction:column;min-height:440px}
.profile-title,.profile-stats{flex-shrink:0}
.profile-loadout{flex:1;min-height:220px;display:grid;grid-template-columns:minmax(0,1fr) clamp(64px,12cqw,100px);grid-template-rows:minmax(0,1fr) auto;gap:6px 14px}
.skills-column,.upgrades-column{min-width:0;min-height:0;display:flex;flex-direction:column}
.upgrades-column{border-left:1px solid #6a828b66;padding-left:10px}
.loadout-heading{flex-shrink:0;min-height:23px}
.skill-matrix{flex:1;min-height:0;grid-template-rows:repeat(4,minmax(0,1fr));margin-bottom:0}
.upgrade-grid{flex:1;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(6,minmax(0,1fr));gap:3px}
#build-tooltip .skill-slot,#detail .skill-slot,#build-tooltip .upgrade-slot,#detail .upgrade-slot{height:auto;min-height:0;aspect-ratio:auto}
.skill-slot img,.upgrade-slot img{min-height:0;max-height:100%}
.profile-loadout>.loadout-hint{grid-column:1/-1;margin:2px 0 0}

#build-status:empty{display:none}

.controls #folder-status{margin:0 0 0 4px;overflow-wrap:anywhere;min-width:0}

/* Blue-and-white nautical theme, scoped to the radar page. */
:root{background:#dfebf7;color:#294a78}
body{min-height:100vh;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(#eef7ff20,#eef7ff30),url('/inner-page-bg.webp?v=2ada6c4586a5b08f') center/cover no-repeat;pointer-events:none}
.radar-nav{width:86%;max-width:2100px;margin:0 auto;padding:12px 28px;min-height:76px;gap:24px;border:1px solid #ffffffee;border-top:0;border-radius:0 0 28px 28px;background:linear-gradient(120deg,#ffffffed,#edf5ffdd);box-shadow:0 3px 0 #718fb633,0 10px 28px #24436b19;backdrop-filter:blur(12px)}
.radar-brand{display:flex;gap:14px;align-items:center;white-space:nowrap}.radar-brand>span:first-child{font-size:38px;color:#68b7ed}.radar-brand>span:last-child{font-family:'Microsoft YaHei',sans-serif;font-size:23px;letter-spacing:1px}.radar-brand small{display:block;font:italic 12px Georgia,serif;letter-spacing:2px;color:#7996bb;margin-top:3px}
.radar-nav nav{gap:12px;font-size:18px}.radar-nav nav a{padding:9px 18px;border-radius:14px;white-space:nowrap}.radar-nav nav a:hover{background:#dce9f8}.radar-nav .nav-current{background:linear-gradient(135deg,#6485bc,#42649f);color:white;box-shadow:inset 0 1px 0 #ffffff66,0 3px 8px #41649b26}.radar-nav-caption{font:italic 15px Georgia,serif;color:#6e88aa;white-space:nowrap}
main{padding:0 clamp(16px,2.6vw,64px) 18px;margin:14px auto;max-width:none}.heading{margin-bottom:7px}.radar-heading{font-size:24px;text-shadow:0 1px 0 white}.radar-heading img{width:30px;height:30px}.heading>span{padding:5px 12px;border-radius:20px;background:#f7fbffbc;color:#4f6b92;font-size:13px}
.controls{background:linear-gradient(115deg,#ffffffec,#e6f2ffcf);border:1px solid #fff;border-radius:16px;box-shadow:0 4px 15px #41659518;backdrop-filter:blur(9px)}.controls button,.controls .primary,.controls select{border-radius:9px;box-shadow:0 2px 5px #476d9d17;border:1px solid #c5d9f5;font-weight:500}.controls .primary{background:linear-gradient(135deg,#557bb1,#355b93);color:#fff;border-color:#9fbee5}.controls button{background:linear-gradient(#fff,#f6faff)}.controls button:hover{background:#e4effd}.controls #folder-status{color:#52729a}.controls #stop::before{content:'Ⅱ';margin-right:8px;color:#6285b9}.controls #manage-folders::before{content:'▣';margin-right:8px;color:#6285b9}
#teams{gap:24px;margin-top:12px}#teams>section{background:linear-gradient(125deg,#ffffffdc,#eaf4ffbd);border:1px solid #fffffff0;border-radius:22px;padding:8px 14px 12px;box-shadow:0 8px 28px #31578119;backdrop-filter:blur(7px)}.team-head{min-height:46px;margin-bottom:4px}.team-head h2{font-family:'Microsoft YaHei',sans-serif;letter-spacing:3px;color:#365d93;font-size:25px}.team-head h2::before{content:'⚓';font-size:29px;margin-right:10px;color:#4f74a7}.team-head p{color:#48678f;font-size:13px}
#teams table{background:#ffffffb0;border-radius:13px;overflow:hidden}#teams th{background:linear-gradient(#edf6ffed,#dfecfbde);color:#345b90;border-bottom:1px solid #baceed}#teams td{border-bottom:1px solid #cbdcf075;color:#345686}#teams .player{color:#193d73;font-weight:700}#teams .player-name{color:#7990b1}#teams tr.self{background:linear-gradient(90deg,#d7eaff,#e6f3ff);outline:1px solid #a1c7f3;outline-offset:-1px}#teams tbody tr:hover{background:#e0edfc}#teams .rating-block{border:1px solid #ffffffcc;box-shadow:inset 0 0 12px #ffffff28}.hint{color:#6783a8}main>p.hint,main>details{background:#f6fbffb8;border-radius:8px;padding:3px 8px}
#build-tooltip,#detail{background:radial-gradient(ellipse at 10% 0%,#46618055,transparent 65%),linear-gradient(135deg,#1c3555,#203b5d 55%,#152c49);border:2px solid #cbb27c;border-radius:24px;box-shadow:inset 0 0 0 3px #a8c9e229,inset 0 0 28px #060f2355,0 12px 30px #1b385c50;padding:18px;color:#e5effb}
.profile-title{border-bottom:1px solid #c9b88470;padding-bottom:9px;margin-bottom:8px}.profile-title strong{font-size:19px;color:#f3f7ff}.profile-title>span{color:#dfebf9}.battle-profile h3{color:#cadff4}.battle-profile .profile-stat-table th,.battle-profile .profile-stat-table td{border-bottom-color:#adc4de24;color:#e1ebf8}.battle-profile .profile-stat-table tbody th{color:#bcd2eb}.battle-profile .profile-stat-table thead th{color:#aec7e6}.profile-loadout{border-top-color:#c9b88460}.upgrades-column{border-left-color:#a6bdd636}.loadout-hint,.profile-empty{color:#b7cce3}.skill-slot.learned{background:#efcc6812;border-color:#dec47550}.upgrade-slot{background:#132a4470;border-color:#90b3d347}#detail>#close{background:linear-gradient(#315b7e,#1d405f);border:1px solid #8dbfe9;border-radius:13px;color:#e4f4ff;top:12px;right:12px}.battle-profile .profile-stat-table tbody tr:last-child{background:#a4c8e917}
@media(max-width:1150px){.radar-nav{width:94%;padding:10px 18px}.radar-nav-caption{display:none}.radar-nav nav{gap:3px}.radar-nav nav a{padding:8px 12px}#teams{gap:16px}}
@media(max-width:650px){.radar-nav{width:96%;gap:8px;justify-content:center;flex-wrap:wrap}.radar-brand>span:last-child{font-size:18px}.radar-brand>span:first-child{font-size:29px}.radar-nav nav{font-size:15px}main{padding:0 10px 12px}#teams>section{padding:5px 7px 8px}.team-head h2{font-size:21px}#build-tooltip,#detail{padding:12px;border-radius:17px}.profile-title strong{font-size:16px}}

.radar-nav nav{margin-left:auto}

.radar-brand .radar-brand-cat{width:36px;height:36px;object-fit:contain;border-radius:8px}.heading{justify-content:flex-end}

#teams tbody tr{cursor:pointer}

/* Ship on the left, player beside the exit control on the right. */
.profile-title>span{order:0;margin-right:auto;font-weight:700;font-size:19px}
.profile-title>strong{order:1;font-size:16px;text-align:right}
#detail .profile-title{padding-right:154px}
#detail>#close{font-size:13px;padding:6px 12px;white-space:nowrap}
@media(max-width:650px){.profile-title>span{font-size:16px}.profile-title>strong{font-size:14px}#detail .profile-title{padding-right:138px}#detail>#close{font-size:12px;padding:6px 9px}}
