.commander-dialog{width:min(1450px,97vw);max-height:95dvh;padding:0;border:2px solid #477e9c;border-radius:16px;background:#061321;color:#dcedff;font:14px 'Segoe UI',Arial,sans-serif;box-shadow:0 22px 100px #000d}.commander-dialog::backdrop{background:#010914d9;backdrop-filter:blur(5px)}.commander-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;background:linear-gradient(135deg,#173e59,#081c31);border-bottom:2px solid #229cd7}.commander-dialog h2{margin:0 0 5px;font-size:21px;color:#d0f1ff}.commander-dialog h3{margin:0 0 10px;color:#88dcff;font-size:16px}.commander-dialog h4{margin:15px 0 8px;font-size:12px;letter-spacing:1px;color:#a4dbed}.commander-dialog small{color:#94b8cc}.commander-dialog button{font:inherit;color:#dcefff;background:linear-gradient(#16466b,#072640);border:1px solid #367da8;border-radius:6px;padding:9px;cursor:pointer}.commander-dialog button:hover:enabled,.commander-dialog button[aria-pressed=true]{border-color:#5fdcff;background:#145b85}.commander-dialog button:disabled{opacity:.5;cursor:default}.commander-dialog button:focus-visible{outline:3px solid #ffe29b;outline-offset:3px}.commander-dialog>nav{display:flex;gap:10px;padding:12px 20px}.commander-notice{min-height:18px;margin:0 20px 10px;color:#ffd18f}.commander-content{padding:0 20px 20px}.commander-roster-layout{display:grid;grid-template-columns:175px minmax(320px,1fr) minmax(320px,1.05fr);gap:14px}.commander-roster,.commander-profile,.commander-formation-panel{padding:15px;border:1px solid #326d96;border-radius:10px;background:linear-gradient(145deg,#0a2847,#030f20);min-width:0}.commander-roster{max-height:760px;overflow:auto}.commander-roster button{width:100%;display:block;margin-bottom:7px;text-align:left}.commander-roster small{display:block;margin-top:4px}.commander-identity{display:grid;grid-template-columns:110px 1fr;gap:15px;align-items:center}.commander-portrait{display:block;width:110px;height:125px}.commander-identity h3{color:#fff1c1;font-size:19px;overflow-wrap:anywhere}.commander-identity p{margin:7px 0;color:#92ddc6}.commander-profile progress{display:block;width:100%;height:8px;accent-color:#57caff;margin:6px 0}.commander-stars{display:flex;justify-content:center;gap:3px;padding:12px 0;color:#264760;font-size:22px;white-space:nowrap}.commander-stars .lit{color:#ffc850;text-shadow:0 0 8px #ffba4933}.commander-attributes{display:grid;grid-template-columns:1fr 1fr;gap:7px}.commander-attributes>div{display:grid;grid-template-columns:1fr auto;gap:5px;background:#092d52;border:1px solid #245781;padding:10px;border-radius:5px}.commander-attributes span{font-size:12px;color:#a5d3eb}.commander-attributes b{color:#ffe4ac;font-size:17px}.commander-attributes small{grid-column:1/-1;font-size:10px;color:#71d6a9}.commander-gem-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.commander-gem-slots button{padding:10px 3px}.commander-gem-slots b{display:block;font-size:25px;color:#84e9ff}.commander-gem-slots span,.commander-gem-slots small{display:block;font-size:10px;margin-top:5px}.commander-gem-inventory{font-size:12px;line-height:1.6;padding:12px;background:#061d34;margin-top:8px;border-radius:6px}.commander-gem-inventory p{color:#94b8ca;margin:6px 0}.commander-gem-inventory button{margin:4px}.commander-upgrade{margin-top:14px;padding:12px;background:#09293e;border:1px solid #32657d;border-radius:7px;font-size:12px;line-height:1.6}.commander-upgrade h4{margin-top:0}.commander-upgrade p{margin:5px 0 9px}.commander-upgrade button{width:100%;background:linear-gradient(#995d1b,#66390d);border-color:#bd873c}.commander-upgrade small{display:block;margin-top:8px;font-size:10px}.commander-upgrade details{margin-top:10px;color:#9ac8df}.commander-upgrade summary{cursor:pointer}.commander-profile-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.commander-profile-actions button{flex:1}.commander-formation-panel{background:radial-gradient(ellipse at 50% 45%,#15446055,transparent 60%),#020d1b}.commander-formation-panel>p{font-size:12px;color:#8fb2c9;line-height:1.7}.commander-formation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 5px;padding:35px 0;min-height:370px;align-content:center}.commander-fleet-cell{text-align:center;position:relative;min-width:0;min-height:85px;background:radial-gradient(ellipse at 50% 75%,#28758d33,transparent 65%)}.commander-fleet-cell svg{width:100%;height:64px;display:block;filter:drop-shadow(0 3px 5px #000)}.commander-fleet-cell b{display:block;color:#f9dd9c}.commander-fleet-cell small{font-size:10px;display:block;overflow-wrap:anywhere}.commander-fleet-cell.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #24496955;border-radius:50%;opacity:.4}.commander-fleet-cell.empty span{font-size:28px;color:#6bbed6}.commander-formation-panel>button{width:100%;margin-top:12px}.rank-divino{color:#d58ef4!important}.rank-lendario{color:#ffd17c!important}.commander-store{padding:15px;border:1px solid #326d96;border-radius:10px;background:#071c30}.commander-store>p{color:#a9c6da;line-height:1.7;font-size:13px}.commander-store-status{padding:13px;border:1px solid #6c6742;background:#3d321b55;color:#ffe0a5;border-radius:7px;font-size:12px;line-height:1.7}.commander-store nav{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.commander-store-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;max-height:60vh;overflow:auto;padding:3px}.commander-store-products article{padding:15px;background:linear-gradient(145deg,#143754,#061a2c);border:1px solid #3a7195;border-radius:9px;display:flex;flex-direction:column}.store-product-icon{font-size:40px;color:#7fdcff;text-align:center}.commander-store-products h4{font-size:14px;letter-spacing:0;margin-top:9px;overflow-wrap:anywhere}.commander-store-products p{color:#9fbed0;font-size:11px;line-height:1.6;flex:1}.commander-store-products strong{font-size:12px;color:#dfbd82}.commander-store-products button{width:100%;margin-top:12px}
@media(max-width:1050px){.commander-roster-layout{grid-template-columns:145px minmax(280px,1fr)}.commander-formation-panel{grid-column:1/-1}.commander-formation{min-height:250px;max-width:600px;margin:auto}.commander-roster{max-height:750px}}@media(max-width:600px){.commander-content{padding:0 10px 15px}.commander-roster-layout{grid-template-columns:1fr}.commander-roster{max-height:160px;display:flex;gap:8px;overflow:auto;align-items:start}.commander-roster h3{display:none}.commander-roster button{min-width:130px}.commander-formation-panel{grid-column:auto}.commander-identity{grid-template-columns:95px 1fr}.commander-portrait{width:95px}.commander-stars{font-size:20px;gap:2px}.commander-store-products{grid-template-columns:repeat(2,minmax(0,1fr))}}

.commander-side{min-width:0}.commander-side>nav{display:flex;gap:8px;margin-bottom:10px}.commander-side>nav button{flex:1}.commander-jewels{padding:20px;border:1px solid #326d96;border-radius:10px;background:#040f20}.commander-jewels>p,.jewel-editor p{color:#93b7ca;font-size:12px;line-height:1.7}.commander-jewels .commander-gem-slots{gap:12px;margin:25px 0}.commander-gem-slots button{min-height:85px;background:linear-gradient(135deg,#1c4059,#061425);border:3px ridge #54718a}.commander-gem-slots b{font-size:34px;text-shadow:0 0 14px currentColor}.gem-precision{color:#ff6895!important}.gem-speed{color:#67c7ff!important}.gem-dodge{color:#83e66a!important}.gem-electricity{color:#bf9fff!important}.commander-gem-totals{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:15px;background:#082344;border:1px solid #316ba0;border-radius:7px;font-size:12px}.commander-gem-totals b{float:right;color:#89eea5}.commander-jewels>button{width:100%;margin-top:20px}.jewel-editor{width:min(1100px,96vw)}.jewel-status{margin:12px 20px;min-height:18px}.jewel-editor-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px}.jewel-editor-layout>section{min-width:0;padding:15px;border:1px solid #315d7e;border-radius:8px;background:#071a2b}.jewel-commander-picker{display:flex;overflow:auto;gap:8px;max-height:110px;margin-bottom:20px}.jewel-commander-picker button{min-width:100px}.jewel-commander-picker small{display:block;margin-top:5px}.jewel-editor .commander-gem-slots>div>button{width:100%}.jewel-editor .commander-gem-slots>div>button[data-editor-remove]{min-height:0;padding:5px;margin:5px 0 10px;border:1px solid #39795f;background:#163d30;font-size:11px}.jewel-inventory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:400px;overflow:auto;margin:15px 0;min-height:200px}.jewel-inventory-grid>button{padding:5px;min-height:80px}.jewel-inventory-grid b{display:block;font-size:30px}.jewel-inventory-grid span{display:block;font-size:10px}.jewel-inventory-grid strong{color:#fcdf99}.jewel-bulk{display:flex;gap:10px}.jewel-bulk button{flex:1;background:#795022}.jewel-editor [data-jewel-store]{margin-top:15px;width:100%}@media(max-width:1050px){.commander-side{grid-column:1/-1}}@media(max-width:650px){.jewel-editor-layout{grid-template-columns:1fr;padding:10px}}

.commander-store-order{display:grid;gap:9px;margin-top:12px}.commander-store-order label{font-size:12px;color:#bdd9eb}.commander-store-order input{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #5284a3;border-radius:5px;background:#061321;color:#fff;padding:8px;font:inherit}.commander-store-order input:focus-visible{outline:2px solid #71d7ff}.commander-store-order input[aria-invalid=true]{border-color:#ff8c8c}.commander-store-order output{font-weight:700;color:#ffe1a2;overflow-wrap:anywhere}.commander-store-order small{font-size:11px;line-height:1.6}

.commander-duty-summary{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;padding:12px 15px;margin-bottom:14px;border:1px solid #377c99;border-radius:9px;background:linear-gradient(110deg,#103c50,#081e32)}.commander-duty-summary strong{color:#97f5ca;font-size:17px}.commander-duty-summary span{color:#c0d5e5;font-size:12px}.commander-duty-summary p{width:100%;margin:0;color:#a7c4d6;font-size:12px;line-height:1.65}.commander-duty-filters{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:9px}.commander-roster .commander-duty-filters button{width:auto;margin:0;flex:1;padding:9px 6px;font-size:10px;min-height:40px;text-align:center}.commander-roster input{box-sizing:border-box;width:100%;padding:8px;border:1px solid #3a728d;border-radius:5px;color:#ecf8ff;background:#041628;font:inherit;margin-bottom:10px}.commander-roster input:focus-visible{outline:2px solid #7de8ff}.commander-roster-list button[hidden]{display:none}.commander-roster-list{max-height:560px;overflow:auto}.commander-roster{max-height:none}.commander-profile-actions [data-toggle-commander-duty]{background:linear-gradient(#18534d,#0a302d);border-color:#4c9c83}.commander-profile-actions [data-toggle-commander-duty][aria-pressed=true]{background:#153f4d;border-color:#5a9eaf}@media(max-width:600px){.commander-roster{display:block;max-height:none}.commander-roster-list{display:flex;gap:8px;max-height:160px}.commander-roster-list button{flex:0 0 130px}.commander-duty-filters{flex-wrap:nowrap}.commander-roster .commander-duty-filters button{min-width:0}.commander-duty-summary strong{font-size:15px}.commander-duty-summary p{font-size:11px}}
