.battle-dialog:has(.fleet-editor-layout){width:min(1320px,97vw);max-height:95dvh;background:radial-gradient(ellipse at 50% 30%,#103653,#030c1a 75%);border:2px solid #39748f;border-radius:18px}.fleet-command-strip{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #38667e;background:#082234;border-radius:12px;flex-wrap:wrap}.fleet-command-strip>div:not(.fleet-hostile){display:grid;gap:4px}.fleet-command-strip strong{color:#d7f2ff}.fleet-command-strip span{color:#ffd484}.fleet-command-strip .catalogue-portrait,.fleet-command-strip img{width:66px;height:66px;object-fit:cover;border:1px solid #427c91;border-radius:10px}.fleet-hostile{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px}.fleet-hostile img{width:56px;height:56px}.fleet-steps{color:#92dbdf;padding:10px 0;font-size:13px}.fleet-editor-layout{display:grid;grid-template-columns:210px minmax(320px,1fr) 230px;gap:16px}.fleet-overview,.fleet-board,.fleet-editor-layout .battle-edit{padding:14px;background:#071c2c;border:1px solid #315b75;border-radius:12px}.fleet-overview dl{display:grid;grid-template-columns:1fr auto;font-size:13px;gap:10px}.fleet-overview dd{margin:0;color:#a0e9f2;font-weight:700}.fleet-overview button{display:block;width:100%;margin-top:10px}.fleet-overview small{color:#95b2c5;font-size:11px}.fleet-overview input{width:100%;box-sizing:border-box}.fleet-board .battle-grid{gap:12px;padding:16px 4px;background:radial-gradient(ellipse,#13405a66,transparent 65%)}.battle-cell.fleet-platform{min-height:130px;border-radius:45% 45% 20% 20%;border:1px solid #3e809c;background:linear-gradient(180deg,#16415944,#041420 74%,#32657a 76%,#0b2f45 84%);position:relative}.fleet-platform.selected{outline:2px solid #72e7f1;box-shadow:0 0 18px #39b5cd44}.fleet-platform strong{font-size:11px}.fleet-platform .quantity{color:#ffdf98;font-size:17px}.fleet-palette{margin-top:18px;border-top:1px solid #3b6479;padding-top:14px}.fleet-palette>div{display:flex;gap:10px;overflow-x:auto;padding:4px 4px 12px}.fleet-palette button{flex:0 0 145px;display:grid;gap:5px;background:#0a253b;border:1px solid #416d8c;border-radius:10px;padding:8px;cursor:pointer;color:#d9effb}.fleet-palette button[aria-pressed=true]{border-color:#77f1f1;box-shadow:0 0 0 1px #77f1f1}.fleet-palette button strong{font-size:12px}.fleet-palette button span{font-size:11px;color:#9dd1dc}.fleet-palette svg{height:64px;max-width:100%}.fleet-command-strip button,.fleet-overview button{padding:10px;background:#0d3550;border:1px solid #3d7898;border-radius:7px;color:#e0f4ff;cursor:pointer}.fleet-overview [data-save-formation]{background:#12635b;border-color:#69cbbb}.fleet-editor-layout .battle-edit{margin:0}.fleet-no-officer{font-size:42px}.chest-card{border:1px solid #998052;background:linear-gradient(130deg,#372d19,#102233);padding:14px;margin:10px 0;border-radius:10px}.chest-card button{margin-top:10px}.construction-queue{padding:12px;background:#071e30;border-radius:10px;margin:12px 0}.construction-queue p{font-size:12px}.cooperation-panel{border:1px solid #386e72;background:#082b32;padding:15px;border-radius:12px;margin-top:18px}.cooperation-panel input{max-width:130px}@media(max-width:1000px){.fleet-editor-layout{grid-template-columns:180px 1fr}.fleet-editor-layout .battle-edit{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.fleet-editor-layout .battle-edit label{max-width:160px}.fleet-editor-layout .battle-edit p{max-width:240px}}@media(max-width:640px){.fleet-editor-layout{grid-template-columns:1fr}.fleet-overview{order:2}.fleet-board{order:1}.fleet-editor-layout .battle-edit{order:3}.fleet-command-strip .fleet-hostile{margin-left:0}.fleet-command-strip>button{margin-left:auto}.fleet-board .battle-grid{gap:6px;padding:8px 0}.battle-cell.fleet-platform{min-height:105px;padding:5px;min-width:0}.fleet-platform strong{font-size:10px;overflow-wrap:anywhere}.fleet-overview dl{grid-template-columns:1fr auto 1fr auto}.fleet-hostile img{width:42px;height:42px}.fleet-command-strip{gap:8px}.fleet-command-strip>div strong{font-size:13px}.fleet-palette button{flex-basis:130px}.fleet-steps{line-height:1.7}.fleet-board{padding:8px}}
@media(max-width:420px){.battle-dialog:has(.fleet-editor-layout){width:100vw;max-height:98dvh;border-radius:0;border-left:0;border-right:0}.fleet-command-strip{padding:10px}.fleet-command-strip .catalogue-portrait,.fleet-command-strip img{width:52px;height:52px}.fleet-command-strip>.commander-photo{width:52px;height:52px;min-width:52px;flex-basis:52px}.fleet-owner-picker{padding:9px}.fleet-owner-picker nav button{flex-basis:86px}.fleet-board .battle-grid{gap:4px}.battle-cell.fleet-platform{min-height:88px;padding:4px;border-radius:38% 38% 16% 16%}.fleet-platform .quantity{font-size:15px}.fleet-platform strong{font-size:9px}.fleet-palette button{flex-basis:110px}.fleet-palette svg{height:54px}.fleet-overview dl{grid-template-columns:1fr auto;gap:8px}.fleet-overview button{padding:11px}.fleet-editor-layout .battle-edit{flex-direction:column;align-items:stretch}.fleet-editor-layout .battle-edit label{max-width:none}.fleet-editor-layout .battle-edit p{max-width:none}}

.fleet-command-strip>.commander-photo{display:block;width:66px;height:66px;min-width:66px;flex:0 0 66px;position:relative;overflow:hidden;border:1px solid #427c91;border-radius:10px}.fleet-command-strip>.commander-photo img{max-width:none}.combat-hud-team>img.bot-portrait{object-fit:cover;display:block;width:64px;height:72px;flex:0 0 64px;border-radius:8px}

.fleet-owner-picker{padding:12px;margin-bottom:12px;border:1px solid #35687e;border-radius:12px;background:#061a2b}.fleet-owner-picker>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.fleet-owner-picker>div>strong{font-size:13px;color:#95eff0}.fleet-owner-picker>div>span{font-size:12px;color:#9db9ce}.fleet-owner-picker input{margin-left:auto;min-width:180px;max-width:100%;padding:8px;border:1px solid #467f98;border-radius:6px;background:#031321;color:#e9f8ff;font:inherit}.fleet-owner-picker nav{display:flex;gap:9px;overflow-x:auto;padding:3px 3px 9px}.fleet-owner-picker nav button{flex:0 0 114px;display:grid;justify-items:center;gap:4px;padding:8px;background:#0a2940;border:1px solid #376985;border-radius:9px;color:#cce9f5;cursor:pointer}.fleet-owner-picker nav button[aria-pressed=true]{border-color:#78f1ce;box-shadow:0 0 0 1px #78f1ce;background:#104b53}.fleet-owner-picker nav button[hidden]{display:none}.fleet-owner-picker nav button>.commander-photo,.fleet-owner-picker nav button>.catalogue-portrait{width:58px;height:58px;min-width:58px;overflow:hidden;border-radius:7px}.fleet-owner-picker nav button>strong{font-size:12px;overflow-wrap:anywhere}.fleet-owner-picker nav button>small{font-size:10px;color:#f7d17d}.fleet-palette>p{font-size:12px;color:#a3c8d7;line-height:1.6}.fleet-overview [data-formation-save-state]{display:block;margin-top:8px;line-height:1.5;color:#b0d8c7}.fleet-editor-layout button:disabled{opacity:.55;cursor:default}.fleet-owner-picker input:focus-visible,.fleet-owner-picker button:focus-visible{outline:2px solid #7cfff0;outline-offset:2px}@media(max-width:640px){.fleet-owner-picker input{margin-left:0;width:100%;min-width:0}.fleet-owner-picker nav button{flex-basis:94px}.fleet-owner-picker>div>span{font-size:11px}}

/* Organiza��o da montagem de frota: identidade espacial preservada, foco no fluxo de aloca��o. */
.battle-dialog:has(.fleet-editor-layout){display:flex;flex-direction:column;overflow:hidden}
.battle-dialog:has(.fleet-editor-layout)>header{flex:none}
.battle-dialog:has(.fleet-editor-layout)>.battle-message{flex:none}
.battle-dialog:has(.fleet-editor-layout)>.battle-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#39748f #061321;scrollbar-width:thin}
.battle-content:has(.fleet-editor-layout){display:flex;flex-direction:column;gap:14px}
.fleet-owner-picker{margin:0;padding:12px 14px 6px}
.fleet-owner-picker>div{margin-bottom:8px}
.fleet-owner-picker nav{scrollbar-color:#39748f #061321;scrollbar-width:thin}
.fleet-command-strip{min-height:82px;padding:10px 14px}
.fleet-command-strip>div:not(.fleet-hostile){min-width:150px}
.fleet-command-strip>div>small,.fleet-overview>label,.fleet-overview>h3,.battle-edit>h3,.fleet-palette>h3{letter-spacing:.045em}
.fleet-hostile{padding-left:16px;border-left:1px solid #315b75}
.fleet-steps{margin:0;padding:0 2px;line-height:1.5}
.fleet-editor-layout{grid-template-columns:minmax(205px, .78fr) minmax(340px, 1.5fr) minmax(230px, .9fr);gap:12px;align-items:start}
.fleet-overview,.fleet-board,.fleet-editor-layout .battle-edit{min-width:0;padding:14px}
.fleet-overview>label{display:block;color:#a9dbe8;font-size:12px;font-weight:600}
.fleet-overview input{margin-top:7px;min-height:42px}
.fleet-overview>h3{margin:18px 0 10px}
.fleet-overview dl{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;margin:0}
.fleet-overview dt{color:#a5c2d5}
.fleet-overview dd{font-variant-numeric:tabular-nums}
.fleet-overview>small{display:block;margin-top:12px;line-height:1.55}
.fleet-overview .fleet-layout-tools{margin-top:14px;padding-top:12px;border-top:1px solid #315b75}
.fleet-layout-tools>strong{display:block;color:#a9dbe8;font-size:11px;letter-spacing:.045em}
.fleet-overview .fleet-layout-tools>small{display:block;margin-top:8px;line-height:1.5}
.fleet-overview button{min-height:42px}
.fleet-overview [data-save-formation]{margin-top:14px;min-height:46px;font-weight:700}
.fleet-board{padding:12px}
.fleet-board .battle-grid-labels{padding:2px 8px 0;color:#9fc8d8;font-size:11px;letter-spacing:.04em}
.fleet-board .battle-grid{min-width:0;gap:9px;padding:14px 6px 8px}
.battle-cell.fleet-platform{min-width:0;min-height:118px;padding:8px}
.battle-cell.fleet-platform svg{max-width:100%;height:58px;object-fit:contain}
.fleet-platform strong{max-width:100%;line-height:1.3}
.fleet-editor-layout .battle-edit{display:flex;flex-direction:column;align-items:stretch}
.fleet-editor-layout .battle-edit>h3{margin-bottom:4px}
.fleet-editor-layout .battle-edit label{margin:12px 0 6px;font-size:12px;line-height:1.45}
.fleet-editor-layout .battle-edit select,.fleet-editor-layout .battle-edit input{min-height:42px;min-width:0}
.fleet-editor-layout .battle-edit button{min-height:42px}
.fleet-editor-layout .battle-edit .battle-rules{margin-top:14px}
.fleet-editor-layout .battle-edit .battle-start{min-height:48px}
.fleet-palette{margin:0;padding-top:14px}
.fleet-palette>h3{margin:0 0 6px}
.fleet-palette>p{max-width:72ch;margin:0 0 8px;line-height:1.55}
.fleet-palette>div{scrollbar-color:#39748f #061321;scrollbar-width:thin}
.fleet-palette button{min-height:132px;justify-items:center;text-align:center}
.fleet-palette button:focus-visible,.fleet-overview button:focus-visible,.fleet-editor-layout .battle-edit button:focus-visible,.fleet-editor-layout input:focus-visible,.fleet-editor-layout select:focus-visible{outline:2px solid #7cfff0;outline-offset:2px}
.battle-dialog:has(.fleet-editor-layout) ::selection{background:#23647c;color:#f1fbff}
@media(max-width:1000px){.fleet-editor-layout{grid-template-columns:minmax(190px,.78fr) minmax(0,1.5fr)}.fleet-editor-layout .battle-edit{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;align-items:end}.fleet-editor-layout .battle-edit>h3,.fleet-editor-layout .battle-edit .battle-rules,.fleet-editor-layout .battle-edit .battle-start{grid-column:1/-1}.fleet-editor-layout .battle-edit label{max-width:none;margin:5px 0 0}.fleet-editor-layout .battle-edit button{width:100%;margin:0}.fleet-editor-layout .battle-edit .battle-rules{max-width:none;margin:8px 0}.fleet-editor-layout .battle-edit select,.fleet-editor-layout .battle-edit input{width:100%}}
@media(max-width:640px){.battle-dialog:has(.fleet-editor-layout){max-height:98dvh}.battle-content:has(.fleet-editor-layout){gap:10px}.fleet-owner-picker{padding:10px 10px 4px}.fleet-command-strip{gap:8px;padding:10px}.fleet-command-strip>div:not(.fleet-hostile){min-width:0}.fleet-hostile{margin-left:0;padding-left:0;border-left:0}.fleet-command-strip>button{margin-left:auto}.fleet-steps{padding:0 2px;font-size:12px}.fleet-editor-layout{grid-template-columns:minmax(0,1fr);gap:9px}.fleet-board{order:0}.fleet-editor-layout .battle-edit{order:1;grid-column:auto;grid-template-columns:minmax(0,1fr)}.fleet-overview{order:2}.fleet-editor-layout .battle-edit>h3,.fleet-editor-layout .battle-edit .battle-rules,.fleet-editor-layout .battle-edit .battle-start{grid-column:auto}.fleet-editor-layout .battle-edit label{max-width:none}.fleet-board .battle-grid{gap:5px;padding:10px 0 4px}.battle-cell.fleet-platform{min-height:100px;padding:5px}.battle-cell.fleet-platform svg{height:46px}.fleet-board .battle-grid-labels{font-size:10px}.fleet-overview dl{grid-template-columns:minmax(0,1fr) auto;gap:8px}.fleet-palette>div{margin-right:-4px}.fleet-palette button{flex-basis:124px;min-height:122px}.fleet-palette button svg{height:52px}}
@media(max-width:420px){.fleet-owner-picker nav button{flex-basis:88px}.fleet-command-strip .catalogue-portrait,.fleet-command-strip img{width:46px;height:46px}.fleet-command-strip>.commander-photo{width:46px;height:46px;min-width:46px;flex-basis:46px}.fleet-hostile img{width:38px;height:38px}.fleet-board{padding:8px}.battle-cell.fleet-platform{min-height:88px}.battle-cell.fleet-platform svg{height:38px}.fleet-palette button{flex-basis:112px}}
