/* V70.48 — Alienware Ice: revisão final de legibilidade e hierarquia.
   Somente a interface do editor. Nunca altera pixels de sprites, canvas do jogo ou WebGL. */
body.wise7039-light{
 --bg-base:#edf5fb;--bg-panels:#f8fcff;--bg-sheet:#fff;
 --text-main:#153e57;--text-light:#0c3a52;--border-color:#aac9db;
 --highlight-blue:#057ba5;
}
/* Barra de edição: controles pertencem ao cabeçalho, não à superfície editável. */
#wise7043-editor-controls{align-content:center;scrollbar-width:thin;overflow-x:auto;overflow-y:hidden;min-height:48px;max-height:none;flex-wrap:nowrap;gap:8px}
#wise7043-editor-controls #wise716-q3d-tools,#wise7043-editor-controls #wise58-grid-tools{flex:0 0 auto;max-width:none;white-space:nowrap}
@media(max-width:1170px){#wise7043-editor-controls{align-content:center;justify-content:flex-start}}
body.wise7039-light #wise7043-editor-controls{background:#f7fbff!important;border-bottom:1px solid #aac9db!important;color:#193f58!important}
body.wise7039-light #wise7043-editor-controls #wise716-q3d-tools,
body.wise7039-light #wise7043-editor-controls #wise58-grid-tools{
 background:#e7f3fb!important;border:1px solid #b1d0e2!important;
 box-shadow:none!important;color:#1c4a64!important;border-radius:6px!important;
}
body.wise7039-light #wise716-q3d-tools>span,
body.wise7039-light #wise58-grid-tools .wise58-grid-title,
body.wise7039-light #wise58-grid-state,
body.wise7039-light #wise58-grid-tools label,
body.wise7039-light #wise716-q3d-tools label{color:#184863!important}
body.wise7039-light #wise58-grid-tools input[type=number]{background:#fff!important;color:#17435b!important;border:1px solid #9fbfd3!important}
body.wise7039-light #wise58-grid-tools input[type=checkbox],
body.wise7039-light #wise716-q3d-tools input[type=checkbox]{accent-color:#087ca8!important}
body.wise7039-light #wise716-q3d-tools #wise728-fit-scene,
body.wise7039-light #wise716-q3d-tools button{background:#d9effb!important;color:#075675!important;border:1px solid #8cbbd2!important}
body.wise7039-light #wise716-q3d-tools button:hover{background:#bee4f7!important;color:#074767!important}
/* Rodapé de ajuda — não obstrui o layout nem quebra contraste. */
body.wise7039-light #wise728-object-info{background:#f4fbff!important;color:#1b4b65!important;border:1px solid #aacedd!important;box-shadow:0 2px 8px #406b8725!important}
body.wise7039-light .sprite-instance-label{background:#e7f4fc!important;color:#123e55!important;border-color:#a4ccdc!important}
/* Árvore do projeto: hover, seleção e ícone de edição sempre perceptíveis. */
body.wise7039-light .sidebar-right :is(.project-tree-list li,.zero-draggable-tree,.tree-label){color:#19455e!important}
body.wise7039-light .sidebar-right .project-tree-list li:hover,
body.wise7039-light .sidebar-right .zero-draggable-tree:hover{background:#dbeefa!important;color:#0a4b6a!important}
body.wise7039-light .sidebar-right .selected-tree-item{background:#cce8f9!important;color:#075170!important;border:1px solid #85bdd6!important}
body.wise7039-light :is(.wise-tree-rename,.wise-tree-name-input,.tree-input){color:#116286!important}
body.wise7039-light .zero-draggable-tree:hover .wise-tree-rename{color:#08668b!important;opacity:1!important;background:#c1e6f8!important;border:1px solid #80b6d1!important}
body.wise7039-light .sidebar-right :is(i,.fa-edit,.fa-pencil-alt){color:#277c9f!important}
/* Catálogo de objetos e ações: excluir espaços pretos de cabeçalhos e divisórias. */
body.wise7039-light #modal-add-object .modal-content,
body.wise7039-light #modal-condition-obj .modal-content,
body.wise7039-light #modal-action-obj .modal-content{background:#f9fdff!important;color:#173f58!important}
body.wise7039-light :is(#modal-add-object,#modal-condition-obj,#modal-action-obj) :is(.modal-grid,#action-objects-grid,.zero-picker-gallery,.zero-picker-category,.zero-picker-cards,.category-header){background:#f9fcff!important;color:#173e56!important;border-color:#bdd5e5!important}
body.wise7039-light :is(#modal-add-object,#modal-condition-obj,#modal-action-obj) .modal-grid > :is(div,section){background:#f9fcff!important;color:#173f58!important;border-color:#bdd5e5!important}
body.wise7039-light :is(#modal-add-object,#modal-condition-obj,#modal-action-obj) .zero-picker-category h3{background:#eef7fd!important;color:#075c83!important;border:0!important;border-bottom:1px solid #bdd5e5!important;border-radius:4px 4px 0 0;padding:7px 9px!important}
body.wise7039-light :is(#modal-add-object,#modal-condition-obj,#modal-action-obj) .zero-picker-fav-toolbar{background:#e6f3fb!important;border-color:#b6d2e2!important}
body.wise7039-light :is(#modal-add-object,#modal-condition-obj,#modal-action-obj) .plugin-item{background:#edf7fd!important;color:#19445c!important;border:1px solid #a9cadd!important}
body.wise7039-light :is(#modal-add-object,#modal-condition-obj,#modal-action-obj) .plugin-item:hover{background:#cfeafa!important;color:#095a7c!important}
/* Folha de eventos: nenhum fundo preto dos controles, barras, células ou drag placeholders. */
body.wise7039-light :is(#event-view,#events-list,.event-row-container,.sub-events-list){border-color:#b6d4e4!important;color:#1b445e!important}
body.wise7039-light #events-list :is(.zero-event-tools,.zero-action-slot,.zero-action-left,.event-actions-area,.event-condition-area,.zero-action-header,.zero-event-header,.zero-cond-statement){color:#18445e!important;border-color:#b9d3e2!important}
body.wise7039-light #events-list :is(.zero-event-tools,.zero-action-left,.zero-action-slot,.zero-action-header,.zero-event-header){background:#f0f8fe!important}
body.wise7039-light #events-list .zero-event-tools button:hover,
body.wise7039-light #events-list .zero-action-left button:hover{background:#d3edfa!important;color:#085b80!important}
body.wise7039-light #events-list :is(.zero-action-slot,.add-action-btn){border-color:#acd0e3!important}
/* A tipografia acompanha a superfície, inclusive inputs e hover de botões. */
body.wise7039-light :is(.sidebar-left,.sidebar-right,.modal-content,#wise703-studio) :is(input:not([type=checkbox]):not([type=color]):not([type=range]),select,textarea){background:#fff!important;color:#153f59!important;border-color:#9dc3d8!important}
body.wise7039-light :is(.sidebar-left,.sidebar-right,.modal-content,#wise703-studio) :is(input,textarea)::placeholder{color:#628198!important}
body.wise7039-light :is(.sidebar-left,.sidebar-right,.modal-content) button:not(.btn-primary):not(.btn-danger):not(.selected):not(.active):hover{background:#d4ecf9!important;color:#075676!important}
body.wise7039-light :is(.btn-danger,#btn-confirm-yes){background:#b42d45!important;color:#fff!important;border-color:#922c3d!important}
body.wise7039-light :is(.btn-danger,#btn-confirm-yes):is(:hover,:focus-visible){background:#92263d!important;color:#fff!important}
/* O Estúdio 3D usa estilo próprio injetado no DOM. Escopo com especificidade maior. */
body.wise7039-light #wise703-studio .wise703-shell,
body.wise7039-light #wise703-studio .wise703-center{background:#f5fbff!important;color:#16445e!important}
body.wise7039-light #wise703-studio :is(.wise703-subbar,.wise703-status,.wise704-camera-panel,#wise705-panel){background:#e8f4fb!important;color:#1b4963!important;border-color:#a8cddd!important}
body.wise7039-light #wise703-studio .wise703-subbar button:not(.selected),
body.wise7039-light #wise703-studio .wise703-toolbar button:not(.selected){background:#e8f4fc!important;color:#155374!important;border:1px solid #aacbde!important}
body.wise7039-light #wise703-studio .wise703-subbar button:not(.selected):hover,
body.wise7039-light #wise703-studio .wise703-toolbar button:not(.selected):hover{background:#cfeafa!important;color:#075573!important;border-color:#65aacb!important}
body.wise7039-light #wise703-studio .wise703-subbar button.selected{background:#087da8!important;color:#fff!important;border:1px solid #087da8!important}
body.wise7039-light #wise703-studio .wise703-properties :is(h4,label,small,p,span){color:#204c65!important}
body.wise7039-light #wise703-studio .wise7043-asset-row{background:#f7fcff!important;color:#184963!important;border:1px solid #b7d2e2!important}
body.wise7039-light #wise703-studio .wise7043-asset-row:has(input:checked){background:#d3edf9!important;border-color:#0b87b6!important}
body.wise7039-light #wise703-studio .wise7047-delete{background:#fff0f2!important;color:#a22840!important;border:1px solid #cf939b!important}
body.wise7039-light #wise703-studio .wise7047-delete:hover{background:#a72c43!important;color:#fff!important;border-color:#9b263a!important}
/* Eliminar o botão gigante: posicionar o comando destrutivo compacto abaixo da importação. */
#wise703-studio .wise7043-asset-actions .wise7048-delete-small{grid-column:1/-1;justify-self:end;align-self:center;width:auto;min-height:29px;max-width:210px;padding:6px 11px;font-size:11px;line-height:1.2;white-space:nowrap;border-radius:5px;margin-top:2px}
#wise703-studio .wise7045-library-foot .wise7047-delete{max-width:168px;padding:7px 9px;font-size:11px}
/* Navegação: barra 'Mão' em posição fixa e compacta, sem atravessar o canvas. */
#wise703-studio .wise703-subbar{position:relative!important;z-index:8!important;flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;align-content:center}
#wise703-studio .wise704-viewbuttons{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
#wise703-studio .wise704-viewbuttons button{min-height:28px;padding:5px 9px;white-space:nowrap;line-height:1.2}
#wise703-studio .wise704-viewbuttons #wise704-pan-toggle{min-width:58px}
#wise703-studio .wise704-camera-panel{position:relative!important;z-index:7!important;flex:0 0 auto}
#wise703-studio .wise7043-asset-list{scrollbar-width:thin;scrollbar-color:#9cbccc transparent}
@media(max-width:900px){#wise703-studio .wise704-viewbuttons button{padding:4px 7px;font-size:11px}#wise703-studio .wise7043-asset-actions .wise7048-delete-small{max-width:180px}}
/* Correções finais de especificidade: antigas regras de botão do Estúdio
   eram inseridas após os arquivos CSS e precisavam ser superadas. */
body.wise7039-light #wise703-studio .wise703-properties .wise7043-asset-actions button.wise7047-delete.wise7048-delete-small:not(.active):not(.selected),
body.wise7039-light #wise703-studio .wise7045-library-foot button.wise7047-delete:not(.active):not(.selected){
 background:#fff0f2!important;color:#9b2940!important;border:1px solid #c98b98!important;
}
body.wise7039-light #wise703-studio .wise703-properties .wise7043-asset-actions button.wise7047-delete.wise7048-delete-small:hover,
body.wise7039-light #wise703-studio .wise7045-library-foot button.wise7047-delete:hover{
 background:#a72c43!important;color:#fff!important;border-color:#8f2638!important;
}
body.wise7039-light #wise703-studio .wise703-entry.selected small{opacity:1!important;color:#e8faff!important}
body.wise7039-light #wise703-studio .wise703-entry.selected b{color:#fff!important}
body.wise7039-light #wise703-studio .wise704-camera:not([hidden]){background:#e9f4fb!important}
