/* Text and abilities are HTML in identical positions for every officer. */
.commander-dialog{width:min(1580px,97vw);border:1px solid #375b73;border-radius:10px;background:#071321}
.commander-dialog>header{padding:13px 20px;background:linear-gradient(100deg,#17364b,#0a1725);border-bottom:1px solid #3d647c}.commander-dialog>header h2{font-size:15px;letter-spacing:2px;font-weight:500}
.commander-dialog>header small{font-size:10px;color:#678da7}.commander-dialog>nav{padding:12px 18px;gap:7px}.commander-dialog>nav button{font-size:12px}.commander-content{padding:0 18px 18px}.commander-notice:empty{display:none}
.commander-roster-layout{grid-template-columns:190px minmax(350px,1fr) minmax(300px,.95fr);gap:15px;align-items:start}
.commander-roster{padding:11px 9px;background:#0a1a29;border:1px solid #29465a;border-radius:6px;max-height:790px}.commander-roster>h3{font-size:9px;letter-spacing:1.5px;color:#6a99b4;margin:3px 5px 12px}
.commander-roster button[data-commander-instance]{display:flex;align-items:center;gap:9px;padding:6px;background:#0b2335;border:1px solid #24465f;border-radius:4px;text-align:left;min-height:62px}.commander-roster button[data-commander-instance][aria-pressed=true]{background:linear-gradient(90deg,#1a4255,#102636);border-color:#8cb8c6;box-shadow:inset 2px 0 #b4e5f0}.commander-roster .commander-photo{width:42px;height:49px;border-radius:3px}.commander-roster button>span:not(.commander-photo){min-width:0}.commander-roster button b{font-size:11px;font-weight:500;overflow-wrap:anywhere}.commander-roster button small{font-size:9px;color:#7697ac}.commander-roster [data-clear-commander]{font-size:10px;color:#7093aa;background:none;border-color:transparent}
.commander-profile{padding:0;border:0;background:none;border-radius:0}
.officer-card{--card-accent:#85aec3;position:relative;overflow:hidden;padding:16px;border:1px solid #426577;border-radius:8px;background:linear-gradient(145deg,#122e43,#071320 65%);box-shadow:inset 0 0 0 3px #07101a,0 10px 30px #0003}
.officer-card:before{content:'';position:absolute;top:0;left:20px;right:20px;height:2px;background:linear-gradient(90deg,transparent,var(--card-accent),transparent);pointer-events:none}
.officer-card.tier-super{--card-accent:#8fd8f2;border-color:#437a95}.officer-card.tier-lendario{--card-accent:#efc26f;border-color:#a47b3e;background:linear-gradient(140deg,#2a302c,#091521 58%)}.officer-card.tier-divino{--card-accent:#ffd77c;border-color:#b28b48;background:linear-gradient(145deg,#323326,#081824 58%)}
.officer-nameplate{height:72px;box-sizing:border-box;padding:0 0 12px;border-bottom:1px solid #53718155}.officer-nameplate>small{display:block;color:var(--card-accent);font-size:8px;letter-spacing:2px;margin-bottom:6px}.officer-nameplate h3{font-size:23px;line-height:1.1;min-height:45px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;color:#e9f5fc;font-weight:500;letter-spacing:.5px}
.officer-hero{display:grid;grid-template-columns:1fr .85fr;gap:14px;height:210px;margin:14px 0 0}.officer-hero>.commander-photo{width:100%;height:210px;border:1px solid #4f707c;border-radius:5px;background-color:#0a1927}.tier-divino .officer-hero>.commander-photo{border-color:#9f834a}
.officer-service{display:flex;flex-direction:column;justify-content:center;min-width:0;padding-right:3px}.officer-status{font-size:8px;letter-spacing:1px;color:#7c9eaf;margin-bottom:20px}.officer-status.on-duty{color:#80dcc8}.officer-status:before{content:'';display:inline-block;width:5px;height:5px;background:currentColor;border-radius:50%;margin:0 7px 1px 0;box-shadow:0 0 9px #8fffe82a}.officer-service>small{font-size:8px;letter-spacing:1px;color:#7292a5}.officer-service>b{font-size:27px;font-weight:300;color:#e0edf4;margin:4px 0 7px}.officer-service progress{height:4px;margin:4px 0 6px;width:100%;accent-color:#72d6ed}.officer-service>p{color:#65889f;font-size:9px;line-height:1.6;margin:14px 0 0}.officer-test{display:block;padding:7px 0 0;color:#ddbc79;letter-spacing:.8px;font-size:7px;line-height:1.7}
.officer-card .commander-stars{display:flex;align-items:center;gap:3px;justify-content:flex-start;padding:13px 0;color:#2e4e60;font-size:20px;line-height:1}.commander-stars .lit{color:#f0c977;text-shadow:0 0 8px #e8ae4130}.commander-stars>b{margin-left:auto;color:#7b9dae;font-size:9px;font-weight:400;letter-spacing:1px}
.commander-skill{box-sizing:border-box;height:230px;display:flex;flex-direction:column;padding:12px;border:1px solid #4c6a7a;background:linear-gradient(120deg,#15334a77,#071521b0);border-radius:4px}.commander-skill>.skill-condition{margin-top:auto;min-height:55px;box-sizing:border-box}.tier-divino .commander-skill{border-color:#97774390;background:linear-gradient(120deg,#4b3e2077,#071521b0)}
.skill-heading{display:flex;align-items:center;gap:9px;min-height:36px}.skill-emblem{display:grid;place-items:center;width:30px;height:30px;flex:none;border:1px solid var(--card-accent);color:var(--card-accent);font-size:20px;border-radius:4px;background:#06111c}.skill-heading>div{min-width:0;flex:1}.skill-heading small{display:block;font-size:7px;letter-spacing:1.1px;color:#8da5b2}.skill-heading h4{margin:4px 0 0;font-size:13px;font-weight:500;letter-spacing:.2px;color:var(--card-accent)}.skill-ready{font-size:7px;font-weight:400;letter-spacing:.7px;color:#a1daca;border:1px solid #426d62;border-radius:3px;padding:4px}
.commander-skill>p{font-size:11px;line-height:1.65;margin:10px 0 11px;color:#b1c9d8}.skill-condition{padding-top:9px;border-top:1px solid #58708044;display:flex;flex-direction:column;gap:4px}.skill-condition>small{font-size:6px;letter-spacing:1.1px;color:#728e9f}.skill-condition>strong{font-size:9px;font-weight:500;color:#d3dfdf;line-height:1.5}.skill-condition>span{font-size:9px;color:#94b3c2}.skill-condition b{color:var(--card-accent)}
.officer-card .commander-attributes{margin-top:13px;gap:7px}.officer-card .commander-attributes>div{padding:10px;background:#091d2d;border:1px solid #2a4a5f;border-radius:4px;gap:4px}.officer-card .commander-attributes span{font-size:10px;color:#8baec3}.officer-card .commander-attributes b{font-size:20px;font-weight:400;color:#d5e6f0;font-variant-numeric:tabular-nums}.officer-card .commander-attributes small{font-size:8px;color:#659b8a}
.commander-attribute-rules{margin-top:12px;color:#7099b0;font-size:9px;line-height:1.7}.commander-attribute-rules>summary{cursor:pointer}.commander-attribute-rules p{color:#8ca9b9;margin:8px 0}.officer-card .commander-profile-actions{margin-top:13px;gap:7px}.officer-card .commander-profile-actions button{font-size:11px;border-radius:4px;padding:10px 8px;background:#123349;border-color:#527991}.officer-card [data-use-commander]{background:linear-gradient(100deg,#8d743e,#594928);border-color:#baa064;color:#fff3d6}.officer-card [data-use-commander]:disabled{opacity:.8;color:#bbcaab;background:#233f36;border-color:#4d7165}
.commander-upgrade{padding:12px;background:#0b2132;border:1px solid #2b4d62;border-radius:5px;font-size:10px}.commander-upgrade>summary{cursor:pointer;color:#87adbf;font-size:9px;letter-spacing:1px}.commander-upgrade>p:first-of-type{margin-top:12px}.commander-upgrade button{font-size:10px}.commander-upgrade small{font-size:9px}
.commander-side>nav button{font-size:11px;padding:10px 6px}.commander-side .commander-formation-panel{border:1px solid #2e526a;border-radius:6px;padding:17px;background:radial-gradient(ellipse at 50% 40%,#10314977,transparent 65%),#061321}.commander-formation-panel>h3{font-size:11px;letter-spacing:1.5px}.commander-formation-panel>p{font-size:10px;color:#6c93ad}.commander-formation-panel>button{font-size:11px}
.commander-store-products{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px;align-items:stretch}.commander-store-products>article{padding:13px;border:1px solid #3d5e73;border-radius:6px;background:linear-gradient(150deg,#132d40,#071522);display:grid;grid-template-rows:156px 40px 22px minmax(113px,1fr) 20px 42px;gap:8px;align-content:start;min-width:0}.commander-store-products .store-product-icon{width:100%;height:156px;font-size:40px;display:grid;place-items:center;background:#0d2233;border:1px solid #375669;border-radius:4px;overflow:hidden}.store-product-icon>.commander-photo{width:100%;height:156px}.commander-store-products h4{font-size:14px;line-height:1.35;margin:0;min-height:38px;color:#dcebf2;font-weight:500;overflow:hidden}.commander-store-products .product-meta{font-size:9px;line-height:1.5;margin:0;color:#82a2b6}.store-skill{padding:9px 0;border-top:1px solid #334e61;border-bottom:1px solid #334e61;min-height:100px;box-sizing:border-box}.store-skill>small{font-size:7px;letter-spacing:1px;color:#658a9f}.store-skill>b{display:block;font-size:10px;font-weight:500;color:#e0c28b;margin:5px 0}.store-skill>p{font-size:9px;line-height:1.6;color:#87a7b9;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.commander-store-products strong{font-size:10px;color:#8b9aa1;font-weight:400}.commander-store-products button{font-size:10px;margin:0;padding:8px}.commander-store-products>article:has(.store-product-icon):not(:has(.store-skill)){grid-template-rows:156px 40px minmax(40px,1fr) 20px 42px}
/* The same portrait asset appears in the combat HUD. */
.cinematic-mode .combat-hud-team>.commander-photo{width:51px;height:62px;border:1px solid #486b7e;border-radius:4px;align-self:center}.cinematic-mode .enemy>.commander-photo{border-color:#876649}
@media(max-width:1100px){.commander-roster-layout{grid-template-columns:160px minmax(320px,1fr)}.commander-side{grid-column:1/-1}.commander-side .commander-formation{max-width:650px;min-height:220px}.commander-roster{max-height:790px}}
@media(max-width:650px){.commander-dialog>header{padding:13px}.commander-content{padding:0 10px 12px}.commander-roster-layout{grid-template-columns:1fr}.commander-roster{display:flex;max-height:91px;gap:7px;padding:7px;align-items:stretch}.commander-roster>h3{display:none}.commander-roster button[data-commander-instance]{min-width:160px;flex-shrink:0;margin:0}.commander-roster [data-clear-commander]{min-width:100px;margin:0}.commander-side{grid-column:auto}.officer-card{padding:13px}.officer-nameplate h3{font-size:22px}.officer-hero{height:200px}.officer-hero>.commander-photo{height:200px}.officer-card .commander-stars{font-size:20px;gap:2px}.commander-store-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.commander-store-products>article{padding:9px;grid-template-rows:130px 40px 26px minmax(130px,1fr) 20px 38px;gap:6px}.commander-store-products .store-product-icon,.store-product-icon>.commander-photo{height:130px}.commander-store-products h4{font-size:12px}.commander-store-products .product-meta{font-size:8px}.store-skill>p{font-size:8px;-webkit-line-clamp:5}.store-skill>b{font-size:9px}.cinematic-mode .combat-hud-team>.commander-photo{display:none}}
@media(max-width:420px){.officer-hero{grid-template-columns:1fr;height:auto}.officer-hero>.commander-photo{height:180px}.officer-service{padding:12px 2px 0}.officer-service>b{font-size:23px}.officer-status{margin-bottom:10px}.officer-nameplate{height:auto;padding-bottom:10px}.officer-nameplate h3{font-size:20px;min-height:0}.commander-skill{height:auto;min-height:200px}.commander-store-products{grid-template-columns:1fr}.commander-store-products>article{grid-template-rows:150px 40px 24px minmax(120px,1fr) 20px 40px}.commander-store-products .store-product-icon,.store-product-icon>.commander-photo{height:150px}.officer-card .commander-profile-actions button{padding:11px 8px;font-size:12px}.commander-attributes{grid-template-columns:1fr}.commander-upgrade{font-size:11px}.jewel-inventory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
