/* Studio Classic — folha independente. Esta folha fica DESATIVADA nos temas Escuro e Claro. */
body.wise70102-classic{
  --bg-base:#d8dde5;--bg-panels:#ffffff;--bg-sheet:#f3f6fa;--text-main:#27333f;--text-light:#44515d;--border-color:#c9d0d8;--highlight-blue:#3b82f6;--accent-orange:#2d6cdf;--conn-line:#7ea2d5;--event-bg:#f7f9fc;--event-border:#d4dbe4;--danger:#cc4d4d;--success:#17926b;
  background:#d8dde5;color:#27333f;
}
body.wise70102-classic .main-header{background:linear-gradient(180deg,#313843 0%,#272e39 100%);border-bottom:1px solid #20252d}
body.wise70102-classic .toolbar{background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);border-bottom:1px solid #c5ccd6}
body.wise70102-classic .toolbar button,body.wise70102-classic .main-menu button{color:#344355}
body.wise70102-classic .toolbar button:hover,body.wise70102-classic .main-menu button:hover{background:#dfe7f2;color:#1f4fa5}
body.wise70102-classic .sidebar-left,body.wise70102-classic .sidebar-right,body.wise70102-classic #properties-form,body.wise70102-classic #event-view{background:#f8fafc;color:#2e3945}
body.wise70102-classic .sidebar-left h3,body.wise70102-classic .sidebar-right h3{background:#eef2f6;color:#364454;border-bottom:1px solid #d9e0e8}
body.wise70102-classic input,body.wise70102-classic select,body.wise70102-classic textarea{background:#fff;color:#24313d;border:1px solid #c8d0da;border-radius:6px}
body.wise70102-classic input:focus,body.wise70102-classic select:focus,body.wise70102-classic textarea:focus{outline:2px solid rgba(45,108,223,.18);border-color:#4f84df}
body.wise70102-classic .center-tabs{background:#e4e9f0;border-bottom:1px solid #c7cfda}
body.wise70102-classic .tab{background:#dfe5ee;color:#47596d}
body.wise70102-classic .tab.active{background:#fff;color:#1e3d6d;border-top-color:#2d6cdf}
body.wise70102-classic .selected-tree-item{background:#d7e5ff!important;color:#1b4c94;border-color:#6c9df2}
body.wise70102-classic .dropdown-content,body.wise70102-classic .modal-content{background:#fff!important;border-color:#cdd6df!important;color:#2a3945!important;box-shadow:0 18px 46px rgba(38,53,72,.18)!important}
body.wise70102-classic .modal-header,body.wise70102-classic .modal-footer{background:#f1f5f9!important;color:#314152!important;border-color:#d5dde6!important}
body.wise70102-classic .center-area,body.wise70102-classic #canvas-margin-wrapper{background:#d3d9e1;background-image:radial-gradient(#bdc7d2 1px,transparent 1px);background-size:32px 32px}
body.wise70102-classic #drawing-sheet{background:#f8fbff;background-image:linear-gradient(rgba(92,116,147,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(92,116,147,.08) 1px,transparent 1px)}
body.wise70102-classic .event-block{background:#f8fbff;color:#243342;border-color:#d2dbe6}
body.wise70102-classic .event-condition-area:hover{background:#e9f2ff}
body.wise70102-classic .comment-block{background:#fff2d7!important;color:#64481e!important;border-color:#e7d09d!important}
body.wise70102-classic .btn-primary,body.wise70102-classic .play-btn,body.wise70102-classic .export-btn{background:linear-gradient(180deg,#4f84df,#2d6cdf)!important;border-color:#2b63c9!important;color:#fff!important}
body.wise70102-classic .btn-secondary,body.wise70102-classic .styled-btn{background:#f2f6fb!important;border-color:#c6d0db!important;color:#304252!important}
body.wise70102-classic .wise-home,body.wise70102-classic .wh-modal{--wh-bg:#dde3ea;--wh-surface:#ffffff;--wh-surface2:#f5f8fc;--wh-soft:#eef2f7;--wh-border:#cfd7e2;--wh-text:#26323f;--wh-muted:#617180;--wh-accent:#2d6cdf;--wh-accent2:#224f9f;--wh-cardshadow:0 18px 42px rgba(35,50,69,.10)}
body.wise70102-classic .wise-theme-picker{background:#f4f6fa;border-color:#cad3de;color:#2a3844}
body.wise70102-classic .wise-theme-picker select{color:#2a3844}

body.wise70102-classic .wise-ux-modal-card{background:linear-gradient(180deg,#fff 0%,#f6f8fb 100%);color:#22313d;border-color:#d8e0e7;box-shadow:0 26px 72px rgba(50,76,104,.20)}
body.wise70102-classic .wise-ux-modal-head{border-bottom-color:#e1e8ee}
body.wise70102-classic .wise-ux-btn.primary{background:linear-gradient(180deg,#3d81f0 0%,#2d6cdf 100%);border-color:#2d6cdf}
body.wise70102-classic .wise-ux-toast{background:linear-gradient(180deg,#ffffff,#f6f8fb);color:#23323f;border-color:#d7e0e8;box-shadow:0 18px 48px rgba(47,71,96,.18)}
body.wise70102-classic .wise-ux-timer .bg{stroke:#d7e0e8}
body.wise70102-classic .wise-ux-timer .fg{stroke:#2d6cdf}
body.wise70102-classic .wise-buddy-tab{background:linear-gradient(180deg,#fff,#f5f8fb);color:#1d3040;border-color:#d8e0e8;box-shadow:0 16px 40px rgba(48,72,98,.18)}
body.wise70102-classic .wise-buddy-bubble{background:linear-gradient(180deg,#fff,#f5f8fb);color:#27333e;border-color:#d8e0e8;box-shadow:0 16px 40px rgba(51,76,104,.18)}
body.wise70102-classic .wise-buddy-bubble b{color:#2d6cdf}
body.wise70102-classic .wise-buddy-tools button{background:linear-gradient(180deg,#fff,#eef3f8);color:#27333e;border-color:#d5dee7;box-shadow:0 8px 18px rgba(50,76,104,.18)}
/* Studio Classic: acabamento completo para a árvore, layout, eventos, formulários e modais.
   Nenhum seletor do Studio Classic é ativado pelo tema Claro. */
body.wise70102-classic,
body.wise70102-classic .workspace,
body.wise70102-classic .sidebar-left,
body.wise70102-classic .sidebar-right{color:#253546!important}
body.wise70102-classic .main-header .main-menu>button,
body.wise70102-classic .main-header .menu-dropdown>button,
body.wise70102-classic .main-header .title{color:#edf3fd!important}
body.wise70102-classic .main-header .main-menu>button:hover,
body.wise70102-classic .main-header .menu-dropdown>button:hover{color:#fff!important;background:#465164!important}
body.wise70102-classic .toolbar button:not(.play-btn):not(.export-btn),
body.wise70102-classic .toolbar .debug-btn{color:#38506b!important;background:transparent!important;border-color:transparent!important}
body.wise70102-classic .toolbar button:hover:not(.play-btn):not(.export-btn){background:#dbe6f9!important;color:#214f9e!important}
body.wise70102-classic #properties-form,
body.wise70102-classic #properties-form .prop-item,
body.wise70102-classic .sidebar-left .prop-item,
body.wise70102-classic .sidebar-right .project-tree-list,
body.wise70102-classic .sidebar-right .project-tree-list li,
body.wise70102-classic .sidebar-right .project-tree-list span,
body.wise70102-classic .sidebar-right .project-tree-list strong{background-color:transparent;color:#334356!important;border-color:#d9e1eb!important}
body.wise70102-classic .sidebar-left h3,
body.wise70102-classic .sidebar-right h3{font-size:11px;color:#435364!important}
body.wise70102-classic #properties-form label,
body.wise70102-classic .prop-item label,
body.wise70102-classic #prop-layer-settings-content label{color:#52677e!important}
body.wise70102-classic :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#fff!important;color:#26394b!important;border:1px solid #bbc8d8!important;border-radius:6px!important}
body.wise70102-classic :is(input,select,textarea):focus-visible{outline:2px solid rgba(54,111,212,.32)!important;outline-offset:1px!important}
body.wise70102-classic :is(.styled-btn,.btn-secondary,.add-action-btn,.btn-cancel,.wh-outline){background:#edf3fa!important;color:#2e4e78!important;border:1px solid #b9c9db!important;border-radius:6px!important}
body.wise70102-classic :is(.styled-btn,.btn-secondary,.add-action-btn,.btn-cancel):hover{background:#dfeafa!important;color:#194a8f!important}
body.wise70102-classic .center-tabs,
body.wise70102-classic .sidebar-right,
body.wise70102-classic .sidebar-left{border-color:#becad8!important}
body.wise70102-classic #events-list,
body.wise70102-classic #event-view,
body.wise70102-classic .event-sheet{background:#edf1f6!important;color:#253c52!important}
body.wise70102-classic #events-list .event-block{background:#f4f7fc!important;border:1px solid #bac8da!important;box-shadow:none!important;color:#34475e!important}
body.wise70102-classic #events-list .event-block::before{background:#e2eaf4!important;color:#57708b!important;border-color:#becbdc!important}
body.wise70102-classic #events-list .event-condition-area{background:#edf4fc!important;color:#284464!important;border-color:#adc3de!important}
body.wise70102-classic #events-list .event-actions-area{background:#f8fafe!important;color:#2e475f!important;border-color:#bacadf!important}
body.wise70102-classic #events-list .event-actions-area .action-item{background:#eaf2ff!important;border:1px solid #c1d4ef!important;color:#1c467d!important;box-shadow:none!important}
body.wise70102-classic #events-list .event-actions-area .action-item:hover{background:#d8eafd!important;border-color:#83a9e2!important}
body.wise70102-classic #events-list .event-condition-area:hover{background:#e1eefe!important}
body.wise70102-classic #events-list :is(.zero-command-detail,.zero-cond-statement,.action-item>span,.event-condition-area>span,.event-actions-area>span){color:#264565!important}
body.wise70102-classic #events-list .comment-block{background:#e1ebf9!important;color:#304969!important;border:1px solid #bfd3ec!important;border-left:3px solid #4984d3!important;box-shadow:none!important}
body.wise70102-classic #events-list .comment-block :is(strong,span,.comment-text,i){color:#314e76!important}
body.wise70102-classic #events-list .group-header{background:#d5e2f4!important;color:#2f5688!important;border:1px solid #b5cbe9!important}
body.wise70102-classic #events-list .variable-block{background:#d8ecf2!important;color:#235766!important;border:1px solid #a7cfda!important}
body.wise70102-classic #events-list .event-block.selected,
body.wise70102-classic #events-list .event-condition-area.selected{outline:1px solid #4a85d7!important;outline-offset:0!important}
body.wise70102-classic .modal-overlay .modal-content,
body.wise70102-classic .modal-content{background:#f7f9fc!important;color:#2d4155!important;border:1px solid #c6d4e4!important}
body.wise70102-classic .modal-header,
body.wise70102-classic .modal-footer{background:#eaf0f8!important;border-color:#c8d6e6!important;color:#2b4159!important}
body.wise70102-classic .modal-content :is(h2,h3,h4,label,p,span,strong,small){color:#34475d}
body.wise70102-classic :is(.dropdown-content,.zero-picker-cards,.zero-picker-search-wrap,.zero-command-search-wrap,#action-objects-grid,.modal-grid){background:#f7f9fc!important;color:#2b4159!important;border-color:#ccd7e5!important}
body.wise70102-classic :is(.dropdown-content a,.zero-picker-category h3,.zero-picker-description){color:#2f4967!important}
body.wise70102-classic .zero-picker-cards .plugin-item{background:#eef3fa!important;color:#2f4967!important;border:1px solid #c5d6ea!important}
body.wise70102-classic .zero-picker-cards .plugin-item:hover{background:#dceafa!important}
body.wise70102-classic .wise7039-preferences{background:#f4f6fa;color:#3c4b5b;border-color:#d1dae6}
body.wise70102-classic .wise7039-pref-heading,body.wise70102-classic .wise7039-option{color:#3b5677!important}
body.wise70102-classic .wise7039-themes button{background:#f4f7fb;color:#455c74;border-color:#c5d2e2}
body.wise70102-classic .wise7039-themes button.active{background:#2d6cdf;color:#fff}
body.wise70102-classic .wise-home .wh-quickcard,
body.wise70102-classic .wise-home .wh-section,
body.wise70102-classic .wise-home .wh-hero{border-color:#cad5e4!important}
body.wise70102-classic .wise-home .wh-quickcard:hover{border-color:#6699e1!important}
body.wise70102-classic .wise-buddy-bubble{background:linear-gradient(180deg,#fff,#f3f6fb);border-color:#c6d4e2;color:#24384e}
body.wise70102-classic .wise-buddy-tab{background:#f6f9fc;color:#2a4058;border-color:#ced9e6}
body.wise70102-classic #wise703-studio .wise703-shell{background:#f5f8fb!important;color:#243e57!important;border-color:#c2d1e4!important}
body.wise70102-classic #wise703-studio :is(header,footer,aside,.wise703-tree,.wise703-properties,.wise703-camera-panel){background:#e9f0f8!important;color:#294765!important;border-color:#c3d1e3!important}
body.wise70102-classic #wise-editor-status{background:#d9e4f1!important;color:#365b82!important;border-color:#b8cbe3!important}
body.wise70102-classic ::-webkit-scrollbar-thumb{background:#b7c7db;border:3px solid #e9eff6;border-radius:20px}
/* Realce de código independente, adequado ao contraste do Studio Classic. */
body.wise70102-classic .wise-token-keyword{color:#7643a1!important}
body.wise70102-classic .wise-token-string{color:#26713e!important}
body.wise70102-classic .wise-token-comment{color:#718198!important}
body.wise70102-classic .wise-token-number{color:#ae651c!important}
body.wise70102-classic .wise-token-function{color:#1b65b1!important}
body.wise70102-classic .wise-token-property{color:#167783!important}
body.wise70102-classic .wise-token-operator{color:#a14d70!important}
body.wise70102-classic .wise-token-variable{color:#1f58a3!important}

/* V70.104 — Studio Classic: isolado; esta folha somente carrega no modo classic.
   Cobre explicitamente os módulos com cores hex fixas que antes ignoravam tokens. */
body.wise70102-classic { color-scheme: light; scrollbar-color:#9fb2c9 #e5eaf1; scrollbar-width:thin; }
body.wise70102-classic *, body.wise70102-classic *::before, body.wise70102-classic *::after { scrollbar-color:#a7b7ca #edf2f7; }
body.wise70102-classic *::-webkit-scrollbar {width:10px;height:10px;background:#e4eaf2!important}
body.wise70102-classic *::-webkit-scrollbar-track {background:#edf2f7!important;border-radius:8px}
body.wise70102-classic *::-webkit-scrollbar-thumb {background:#a6b7ca!important;border:2px solid #edf2f7!important;border-radius:8px!important}
body.wise70102-classic *::-webkit-scrollbar-thumb:hover {background:#7f9cb9!important}
body.wise70102-classic *::-webkit-scrollbar-corner {background:#edf2f7!important}
/* Modal Novo Projeto: cartões e mensagens, que vinham com fundo escuro fixo. */
body.wise70102-classic #modal-novo-projeto .modal-content {background:#f8fbff!important}
body.wise70102-classic #modal-novo-projeto .wise-template-head {background:#f8fbff!important;color:#33485f!important}
body.wise70102-classic #modal-novo-projeto .wise-template-head b {color:#30547e!important}
body.wise70102-classic #modal-novo-projeto .wise-template-head p {color:#637990!important}
body.wise70102-classic #modal-novo-projeto .wise-template-list {background:#edf3fa!important;border:1px solid #cad7e7!important;border-radius:9px!important}
body.wise70102-classic #modal-novo-projeto .wise-template-item {background:#fff!important;color:#31445b!important;border:1px solid #cbd9e9!important;box-shadow:0 1px 2px #8ba6c51c!important}
body.wise70102-classic #modal-novo-projeto .wise-template-item:hover {background:#e2efff!important;border-color:#79a9e4!important}
body.wise70102-classic #modal-novo-projeto .wise-template-item[aria-checked=true] {background:#d7e7ff!important;border-color:#4288e4!important;box-shadow:inset 3px 0 #3280ed!important}
body.wise70102-classic #modal-novo-projeto .wise-template-item b {color:#234974!important}
body.wise70102-classic #modal-novo-projeto .wise-template-item span {color:#597491!important}
body.wise70102-classic #modal-novo-projeto .wise-template-item i {color:#3a78d0!important}
body.wise70102-classic #modal-novo-projeto .wise-template-description {background:#e5effc!important;color:#325071!important;border:1px solid #c4d8ed!important;border-left:3px solid #4288dd!important}
body.wise70102-classic #modal-novo-projeto label {color:#3e566e!important}
/* Editor e barra da grade. */
body.wise70102-classic #wise7043-editor-controls {background:#edf2f8!important;border-color:#c5d2df!important}
body.wise70102-classic #wise7043-editor-controls #wise58-grid-tools,
body.wise70102-classic #wise58-grid-tools {background:#f8fbff!important;color:#325273!important;border:1px solid #b7c9df!important;box-shadow:0 2px 7px #5b7d9b24!important}
body.wise70102-classic #wise58-grid-tools .wise58-grid-title {color:#2a62b2!important}
body.wise70102-classic #wise58-grid-tools label,
body.wise70102-classic #wise58-grid-state {color:#3b5a7d!important}
body.wise70102-classic #wise58-grid-tools input[type=number] {background:#fff!important;color:#294e77!important;border:1px solid #b4c9df!important}
body.wise70102-classic #wise58-grid-tools input[type=checkbox] {accent-color:#327bd1!important}
body.wise70102-classic #layout-view #drawing-sheet-container {background:#dce4ed!important; scrollbar-color:#9cafc5 #e8eff6!important}
body.wise70102-classic #layout-view #drawing-sheet-container::-webkit-scrollbar-track {background:#e8eff6!important}
body.wise70102-classic #layout-view #drawing-sheet-container::-webkit-scrollbar-thumb {background:#a8bace!important}
body.wise70102-classic #drawing-sheet-container .layout-camera-label {background:#e7f0fc!important;color:#264e82!important}
/* Inserir objeto: barra favoritos, ficha informativa, lista e rolagem. */
body.wise70102-classic .zero-picker-search-wrap,
body.wise70102-classic .zero-picker-fav-toolbar,
body.wise70102-classic #modal-add-object .zero-picker-fav-toolbar {background:#e9f0f9!important;color:#355573!important;border-bottom:1px solid #cedbea!important}
body.wise70102-classic .zero-picker-fav-toggle {background:#f8fbff!important;color:#315276!important;border:1px solid #b8cbe2!important}
body.wise70102-classic .zero-picker-fav-toggle.active {background:#d5e8ff!important;color:#235eab!important;border-color:#75a4df!important}
body.wise70102-classic .zero-picker-fav-meta,
body.wise70102-classic .zero-picker-count {color:#557590!important}
body.wise70102-classic #modal-add-object .modal-grid,
body.wise70102-classic #modal-condition-obj .modal-grid,
body.wise70102-classic #modal-action-obj .modal-grid,
body.wise70102-classic #modal-action-obj #action-objects-grid {background:#f6f9fe!important;border-color:#cad7e5!important}
body.wise70102-classic .zero-picker-description,
body.wise70102-classic #modal-add-object .zero-picker-description {background:#e5effb!important;color:#335672!important;border-left:4px solid #4684cf!important;border-top:1px solid #c6d8ed!important;border-bottom:1px solid #c6d8ed!important}
body.wise70102-classic .zero-picker-description :is(strong,p,small,span,i) {color:#355774!important}
body.wise70102-classic .zero-picker-category h3 {border-color:#b9cce2!important;color:#245a91!important}
body.wise70102-classic .zero-picker-cards .plugin-item.selected {background:#d7eaff!important;border-color:#3c84d7!important}
/* Sprite Studio inteiro, inclusive todas as subáreas e barras que tinham cores caramelas/escuras fixas. */
body.wise70102-classic .se-dialog {background:#f5f8fc!important;color:#2a3e55!important;border:1px solid #c3d2e4!important;box-shadow:0 22px 80px #41577546!important}
body.wise70102-classic .se-titlebar {background:#e6edf7!important;color:#274467!important;border-color:#c7d6e6!important}
body.wise70102-classic .se-titlebar strong,
body.wise70102-classic .se-titlebar #se-location {color:#254774!important}
body.wise70102-classic .se-tools,
body.wise70102-classic .se-modebar,
body.wise70102-classic .se-paintbar,
body.wise70102-classic .se-framehead,
body.wise70102-classic .se-status,
body.wise70102-classic .se-footer {background:#edf3fb!important;color:#2f4c70!important;border-color:#c4d4e6!important}
body.wise70102-classic .se-left,
body.wise70102-classic .se-right {background:#f7faff!important;color:#304b68!important;border-color:#cad9e8!important}
body.wise70102-classic .se-left h4,
body.wise70102-classic .se-right h4 {color:#295483!important;border-color:#d3dfeb!important}
body.wise70102-classic .se-category,
body.wise70102-classic .se-left small,
body.wise70102-classic .se-right small,
body.wise70102-classic .se-fields label,
body.wise70102-classic .se-minirow label,
body.wise70102-classic .se-paint-controls strong,
body.wise70102-classic .se-dialog .se-paint-controls label,
body.wise70102-classic .se-dialog .se-paint-controls output {color:#456583!important}
body.wise70102-classic .se-workarea {background:#e1e8f1!important}
body.wise70102-classic .se-stage {background-color:#eef3f9!important;background-image:linear-gradient(45deg,#d6dfec 25%,transparent 25%),linear-gradient(-45deg,#d6dfec 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d6dfec 75%),linear-gradient(-45deg,transparent 75%,#d6dfec 75%)!important}
body.wise70102-classic .se-strip {background:#e8eff8!important;border-color:#cad9e8!important}
body.wise70102-classic .se-dialog .se-strip-frame {background:#fafcff!important;color:#365879!important;border-color:#bdcee0!important}
body.wise70102-classic .se-dialog .se-strip-frame.active {background:#daeaff!important;border-color:#4386dd!important}
body.wise70102-classic .se-strip-thumb {background:#e7eef8!important;color:#356290!important;border-color:#9eb8d6!important}
body.wise70102-classic .se-strip-add {background:#f4f9ff!important;border-color:#75a5dd!important;color:#285892!important}
body.wise70102-classic .se-strip-add small {color:#3b689a!important}
body.wise70102-classic .se-dialog button:not(.se-palette button) {background:#e5eef9!important;color:#315578!important;border:1px solid #b7c9df!important}
body.wise70102-classic .se-dialog button:hover:not(.se-palette button) {background:#d8e8fb!important;color:#23528b!important}
body.wise70102-classic .se-dialog button.primary,
body.wise70102-classic .se-dialog .se-add-frame-hero {background:linear-gradient(#4a8ee4,#2c70cf)!important;color:#fff!important;border-color:#316dc5!important}
body.wise70102-classic .se-dialog button.danger {color:#b44c56!important;border-color:#c98c9b!important;background:#fff4f4!important}
body.wise70102-classic .se-dialog .se-modebar button.sel,
body.wise70102-classic .se-dialog .se-left #se-anim-list button.active {background:#cfe4ff!important;color:#24569a!important;border-color:#76a8df!important}
body.wise70102-classic .se-dialog input:not([type=checkbox]):not([type=color]),
body.wise70102-classic .se-dialog select {background:#fff!important;color:#264969!important;border-color:#adbed3!important}
body.wise70102-classic .se-dialog input[type=color] {background:#e7eef7!important;border-color:#acbed2!important}
body.wise70102-classic .se-dialog :is(input[type=checkbox],input[type=range]) {accent-color:#347dd7!important}
body.wise70102-classic .se-dialog .se-paintbar .se-palette button.selected {border-color:#305c92!important;box-shadow:0 0 0 2px #69a9ea!important}
body.wise70102-classic .zero-empty-frame-icon {background:#f5f9fe!important;color:#3770ac!important;border-color:#9fb8d5!important}
body.wise70102-classic .se-footer>span,
body.wise70102-classic .se-strip-frame small,
body.wise70102-classic .se-status span {color:#466581!important}
@media (max-width:700px){body.wise70102-classic .se-dialog{width:100vw}}

/* V70.105 — Contraste real do Studio Classic, isolado por folha de tema.
   Corrige comandos de eventos, seletores de ações/condições e popups restantes.
   Nenhuma regra desta seção é carregada no tema Claro ou Escuro. */
body.wise70102-classic #modal-config-command .category-grid .action-list-item,
body.wise70102-classic #modal-config-command .category-grid .action-list-item.wise49-behavior-command,
body.wise70102-classic #modal-config-command .category-grid .action-list-item.wise49-variable-command{
  background:#e9f1fa!important;color:#244668!important;
  border:1px solid #c3d4e7!important;border-radius:6px!important;
  box-shadow:0 1px 2px #829db01b!important;
}
body.wise70102-classic #modal-config-command .category-grid .action-list-item:hover{
  background:#d9eaff!important;color:#183e72!important;border-color:#70a5e3!important;
}
body.wise70102-classic #modal-config-command .category-grid .action-list-item.selected{
  background:#c4e0ff!important;color:#103d73!important;border:1px solid #287bd8!important;
  box-shadow:0 0 0 1px #3b82e355!important;
}
body.wise70102-classic #modal-config-command .category-grid .action-list-item :is(span,strong,small,i){color:#244668!important}
body.wise70102-classic #modal-config-command .category-grid .action-list-item.selected :is(span,strong,small,i){color:#123c70!important}
body.wise70102-classic #modal-config-command .category-header{color:#3c6795!important;border-bottom:1px solid #b8cce0!important}
body.wise70102-classic #modal-config-command .category-grid .action-list-item[hidden]{display:none!important}
body.wise70102-classic #modal-config-command #param-desc-balloon{background:#e7f0fc!important;color:#2e5078!important;border:1px solid #aec7e1!important}
body.wise70102-classic #modal-config-command :is(.zero-params-title,.zero-params-subtitle,.wise49-params-heading){color:#2b5079!important}
body.wise70102-classic #modal-config-command .zero-command-search-wrap{background:#f5f9ff!important;border:1px solid #c6d6e9!important}
body.wise70102-classic #modal-config-command :is(input,select){background:#fff!important;color:#254764!important;border-color:#afc5dc!important}

/* A folha não pode exibir blocos escuros herdados do tema Caramelo. */
body.wise70102-classic #events-list .event-block{background:#f4f8fe!important;border:1px solid #b9cce3!important;color:#223e61!important}
body.wise70102-classic #events-list .event-block:before{background:#dbe8f7!important;color:#487298!important;border-right:1px solid #bacce0!important}
body.wise70102-classic #events-list .event-condition-area{background:#e5f0fc!important;color:#234a77!important;border-right:1px solid #aac6e5!important}
body.wise70102-classic #events-list .event-condition-area:hover{background:#d9eafa!important}
body.wise70102-classic #events-list .event-actions-area{background:#f6faff!important;color:#2b4c71!important}
body.wise70102-classic #events-list .event-actions-area .action-item{background:#e7f1fe!important;color:#2b4771!important;border:1px solid #bfd3e9!important}
body.wise70102-classic #events-list .event-actions-area .action-item:hover{background:#d8eafb!important;border-color:#76a9dd!important}
body.wise70102-classic #events-list .action-item :is(.zero-command-detail,.zero-event-param,.zero-action-left,.zero-event-args),
body.wise70102-classic #events-list .event-condition-area :is(.zero-command-detail,.zero-event-param,.zero-cond-statement,.zero-event-args){color:#2c527d!important}
body.wise70102-classic #events-list .action-item strong,
body.wise70102-classic #events-list .zero-cond-statement>strong{background:#d4e6fb!important;color:#1b4b83!important;border:1px solid #9cbee5!important}
body.wise70102-classic #events-list .zero-action-slot .add-action-btn,
body.wise70102-classic #events-list .add-action-btn{background:#edf5ff!important;color:#3265a0!important;border:1px dashed #a8cae9!important}
body.wise70102-classic #events-list .add-action-btn:hover{background:#d8eafd!important;color:#174c86!important}
body.wise70102-classic #events-list .zero-event-tools button,
body.wise70102-classic #events-list .zero-action-left button{background:transparent!important;color:#577da2!important;border:0!important}
body.wise70102-classic #events-list .sub-events-list{border-left-color:#89afd7!important}
body.wise70102-classic #events-list .group-header{background:#d9eafb!important;color:#265987!important;border-color:#acc7df!important}
body.wise70102-classic #events-list .group-container{background:#f5faff!important}
body.wise70102-classic #events-list .event-block.zero-disabled{background:#ebeff5!important}
body.wise70102-classic .zero-direct-edit-head{background:#dfeafa!important;color:#285581!important}
body.wise70102-classic .zero-expr-row{background:#edf4fb!important;color:#2b4a69!important;border-color:#b6cde3!important}
body.wise70102-classic .zero-expr-row:hover{background:#d9eafa!important;border-color:#7fa9d9!important}
body.wise70102-classic .zero-expr-row code{color:#2656a0!important}
/* Última camada de especificidade — estrutura real do editor V70.98+, mantendo contraste. */
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-condition-area,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block:hover > .event-condition-area,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-condition-area:hover,
body.wise70102-classic #event-view #events-list .event-block:has(.wise-main-condition.selected) > .event-condition-area{
 background:#e5f0fc!important;color:#234a77!important;border-color:#aac6e5!important;
}
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-actions-area{
 background:#f6faff!important;color:#2b4c71!important;border-color:#bdcfe2!important;
}
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-actions-area .action-item{
 background:#e7f1fe!important;color:#2b4771!important;border-color:#bfd3e9!important;
}


/* V70.106 Studio Classic — high contrast for CAPX global variables and dense event sheets.
   Scoped exclusively to Classic: never alters Dark/Light. */
body.wise70102-classic #event-view #events-list .variable-block,
body.wise70102-classic #event-view #events-list .variable-block[style]{background:#e4effa!important;border:1px solid #a7c6e5!important;border-left:4px solid #397bd0!important;color:#284862!important;opacity:1!important;}
body.wise70102-classic #event-view #events-list .variable-block span,
body.wise70102-classic #event-view #events-list .variable-block[style] span[style],
body.wise70102-classic #event-view #events-list .variable-block strong{color:#1c4f78!important;text-shadow:none!important;font-weight:650!important;opacity:1!important}
body.wise70102-classic #event-view #events-list .variable-block .zero-event-tools button{color:#2863a8!important;opacity:1!important}
body.wise70102-classic #event-view #events-list .variable-block .fa-globe{color:#2976bc!important}
body.wise70102-classic #event-view #events-list .wise-main-condition,
body.wise70102-classic #event-view #events-list .wise-extra-condition{background:#e5f0fc!important;color:#21476b!important;border:0!important;opacity:1!important}
body.wise70102-classic #event-view #events-list .wise-main-condition :is(.zero-cond-statement,.zero-command-detail,.zero-event-param,.zero-cond-statement span),
body.wise70102-classic #event-view #events-list .wise-extra-condition :is(strong,.zero-command-detail,.zero-event-param){color:#1c426b!important;text-shadow:none!important;opacity:1!important}
body.wise70102-classic #event-view #events-list .wise-main-condition strong,
body.wise70102-classic #event-view #events-list .wise-extra-condition strong{background:#d1e3f7!important;color:#174372!important;border:1px solid #9dbbd9!important}
body.wise70102-classic #event-view #events-list .event-actions-area,
body.wise70102-classic #event-view #events-list .event-condition-area{color:#214665!important}
body.wise70102-classic #event-view #events-list .event-actions-area .action-item,
body.wise70102-classic #event-view #events-list .event-actions-area .action-item .zero-action-left{background:#eaf3ff!important;color:#255278!important}
body.wise70102-classic #event-view #events-list .action-item :is(.zero-command-detail,.zero-event-param,.zero-event-args,span,strong){color:#234d7b!important;opacity:1!important;text-shadow:none!important}
body.wise70102-classic #event-view #events-list .action-item strong{background:#cfdef3!important;color:#154779!important}
body.wise70102-classic #events-list .group-header,
body.wise70102-classic #events-list .group-title{background:#dceafb!important;color:#16416b!important;opacity:1!important;text-shadow:none!important}
body.wise70102-classic #events-list :is(.wise-capx-missing,.wise-unknown-action){color:#965a19!important;background:#fff1d9!important}
body.wise70102-classic .sidebar-right .zero-folder-actions{opacity:.98!important}
body.wise70102-classic .sidebar-right .zero-folder-actions button,
body.wise70102-classic .sidebar-right .wise-tree-rename,
body.wise70102-classic .sidebar-right .zero-folder-actions button[disabled]{background:#dce8f8!important;color:#1e5283!important;border:1px solid #aec6df!important;opacity:1!important;text-shadow:none!important}
body.wise70102-classic .sidebar-right .zero-folder-actions button:hover,
body.wise70102-classic .sidebar-right .wise-tree-rename:hover{background:#c4ddfb!important;border-color:#5f99da!important}
body.wise70102-classic .sidebar-right .tree-label,
body.wise70102-classic .sidebar-right .zero-folder-name,
body.wise70102-classic .sidebar-right li{color:#254966!important;opacity:1!important}
body.wise70102-classic .wise106-tab-rename,
body.wise70102-classic .wise-tree-name-input{background:#fff!important;color:#244c73!important;border:1px solid #5b91c9!important;box-shadow:0 0 0 2px #5b91c923;outline:0}
body.wise70102-classic #modal-config-command .action-list-item,
body.wise70102-classic #modal-config-command .action-list-item :is(span,strong,small),
body.wise70102-classic #modal-config-command #param-desc-balloon{color:#1f4b78!important;opacity:1!important;text-shadow:none!important}
body.wise70102-classic ::-webkit-scrollbar{width:11px;height:11px}
body.wise70102-classic ::-webkit-scrollbar-track{background:#e8eef6!important}
body.wise70102-classic ::-webkit-scrollbar-thumb{background:#a7bfd9!important;border:2px solid #e8eef6!important;border-radius:12px}

/* V70.107 — eliminação das faixas escuras remanescentes em eventos aninhados.
   CSS isolado no Classic; não aplica a Light/Dark. */
body.wise70102-classic #event-view #events-list{
  --wise52-edge:#c2d3e8!important;
  --wise52-fine:#c9daee!important;
  --wise52-empty:#f1f6fc!important;
}
body.wise70102-classic #event-view #events-list .sub-events-list,
body.wise70102-classic #event-view #events-list .sub-events-list[style],
body.wise70102-classic #event-view #events-list .sub-events-list > .event-row-container{
  background:#edf4fd!important;color:#24486b!important;
  border-left-color:#a9c5e4!important;
}
body.wise70102-classic #event-view #events-list .sub-events-list::before,
body.wise70102-classic #event-view #events-list .sub-events-list > .event-row-container::before{
  background:#b4cbe6!important;border-color:#b4cbe6!important;
}
body.wise70102-classic #event-view #events-list .event-row-container,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block,
body.wise70102-classic #event-view #events-list .sub-events-list .event-row-container > .event-block,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block:hover{
  background:#eaf2fd!important;color:#254a72!important;border-color:#bbd2e9!important;
}
body.wise70102-classic #event-view #events-list .event-row-container > .event-block::before,
body.wise70102-classic #event-view #events-list .sub-events-list .event-row-container > .event-block::before,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .zero-event-tools,
body.wise70102-classic #event-view #events-list .event-block > .zero-event-tools,
body.wise70102-classic #event-view #events-list .event-row-container .zero-event-tools{
  background:#dfeaf9!important;color:#286096!important;border-color:#b4cce8!important;
}
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-condition-area,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block:hover > .event-condition-area,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-condition-area:hover,
body.wise70102-classic #event-view #events-list .event-block:has(.wise-main-condition.selected) > .event-condition-area{
  background:#e8f2ff!important;color:#244b71!important;border-color:#b6cde7!important;
}
body.wise70102-classic #event-view #events-list .event-condition-area .wise-main-condition,
body.wise70102-classic #event-view #events-list .event-condition-area .wise-extra-condition,
body.wise70102-classic #event-view #events-list .event-condition-area .wise47-condition-line,
body.wise70102-classic #event-view #events-list .event-condition-area .wise-main-condition:hover,
body.wise70102-classic #event-view #events-list .event-condition-area .wise-extra-condition:hover{
  background:#e4effd!important;color:#26496e!important;border-color:#c0d4eb!important;
}
body.wise70102-classic #event-view #events-list .event-condition-area .wise47-condition-line:hover,
body.wise70102-classic #event-view #events-list .event-condition-area .wise47-condition-line.selected{
  background:#d4e6fc!important;color:#173f6e!important;border-color:#77a9e4!important;
}
body.wise70102-classic #event-view #events-list .sub-events-list > .event-row-container:last-child > .event-block,
body.wise70102-classic #event-view #events-list .wise-has-children > .event-block{
  border-bottom:1px solid #b5cce5!important;
}
body.wise70102-classic #event-view #events-list .wise-event-fold{
  background:#dae8fa!important;color:#1d4b80!important;border:1px solid #95b9df!important;
}
body.wise70102-classic #event-view #events-list .wise-column-resizer::before{background:#91b7d9!important}
body.wise70102-classic #event-view #events-list .event-row-container > .event-block > .event-actions-area,
body.wise70102-classic #event-view #events-list .event-row-container > .event-block:hover > .event-actions-area{
  background:#f6faff!important;border-color:#bad0e8!important;color:#24496e!important;
}
body.wise70102-classic #event-view #events-list .event-actions-area .action-item{
  background:#eaf3ff!important;color:#234972!important;border-color:#b9cfe8!important;
}
body.wise70102-classic #event-view #events-list .event-actions-area .action-item:hover{
  background:#dcecff!important;border-color:#70a6df!important;
}
body.wise70102-classic #event-view #events-list .event-row-container .zero-event-tools :is(button,i,span),
body.wise70102-classic #event-view #events-list .event-block > .zero-event-tools :is(button,i,span){color:#286297!important;opacity:1!important;}

/* V70.108 — CORREÇÃO EXCLUSIVA STUDIO CLASSIC
   A paleta de scrollbars V70.69 aplicava o tema escuro a todo body que NÃO
   fosse .wise7039-light. O Classic possui outra classe, portanto herdava
   --wise-scroll-track escuro mesmo com ::-webkit-scrollbar-track claro.
   Defina a paleta própria no seletor do Classic, inclusive no overflow
   horizontal do cabeçalho de ferramentas Q3D/Grade. */
body.wise70102-classic {
  --wise-scroll-track: #e9f0f8;
  --wise-scroll-thumb: #a0bbd6;
  --wise-scroll-thumb-hover: #729abd;
  color-scheme: light;
}
body.wise70102-classic,
body.wise70102-classic * {
  scrollbar-color: var(--wise-scroll-thumb) var(--wise-scroll-track) !important;
}
body.wise70102-classic #wise7043-editor-controls {
  background: #f1f6fc !important;
  color: #2d4c6c !important;
  scrollbar-color: #a0bbd6 #e9f0f8 !important;
  scrollbar-width: thin;
}
body.wise70102-classic ::-webkit-scrollbar,
body.wise70102-classic::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: #e9f0f8 !important;
}
body.wise70102-classic ::-webkit-scrollbar-track,
body.wise70102-classic::-webkit-scrollbar-track {
  background: #e9f0f8 !important;
  border-radius: 9px;
}
body.wise70102-classic ::-webkit-scrollbar-thumb,
body.wise70102-classic::-webkit-scrollbar-thumb {
  background: #a0bbd6 !important;
  border: 2px solid #e9f0f8 !important;
  border-radius: 12px;
}
body.wise70102-classic ::-webkit-scrollbar-thumb:hover,
body.wise70102-classic::-webkit-scrollbar-thumb:hover {
  background: #729abd !important;
}
body.wise70102-classic ::-webkit-scrollbar-corner,
body.wise70102-classic::-webkit-scrollbar-corner {
  background: #e9f0f8 !important;
}
body.wise70102-classic #wise7043-editor-controls::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
  background: #e9f0f8 !important;
}
body.wise70102-classic #wise7043-editor-controls::-webkit-scrollbar-track {
  background: #e9f0f8 !important;
  border: 0 !important;
}
body.wise70102-classic #wise7043-editor-controls::-webkit-scrollbar-thumb {
  background: #a0bbd6 !important;
  border: 2px solid #e9f0f8 !important;
  border-radius: 10px !important;
}
body.wise70102-classic #wise7043-editor-controls::-webkit-scrollbar-thumb:hover {
  background: #729abd !important;
}

/* V70.109 — MODAIS DO STUDIO CLASSIC.
   Corrige apenas o tema Classic: os outros dois estilos permanecem intactos.
   Exportação e confirmações ainda recebiam fundos escuros e textos brancos de
   regras antigas em style.css e atributos style inline. */
body.wise70102-classic #wise46-export .wise-secure-export-dialog,
body.wise70102-classic #wise46-export .modal-content {
  background: #f9fbfe !important;
  color: #24374d !important;
  border: 1px solid #b7c9dc !important;
  box-shadow: 0 25px 65px rgba(38,65,98,.25) !important;
}
body.wise70102-classic #wise46-export .modal-header,
body.wise70102-classic #wise46-export .modal-footer {
  background: #eaf1fa !important;
  color: #223e60 !important;
  border-color: #c5d6e7 !important;
}
body.wise70102-classic #wise46-export .modal-header :is(h2,button,i),
body.wise70102-classic #wise46-export .modal-footer button {
  color: #253f61 !important;
}
body.wise70102-classic #wise46-export .wise-secure-settings {
  background: #edf4fc !important;
  color: #244565 !important;
  border: 1px solid #bbcee4 !important;
  box-shadow: none !important;
}
body.wise70102-classic #wise46-export .wise-secure-settings :is(strong,span,p,i,label),
body.wise70102-classic #wise46-export .wise-secure-settings-heading,
body.wise70102-classic #wise46-export .wise-secure-disclaimer,
body.wise70102-classic #wise46-export .wise-secure-optional {
  color: #2e4c6f !important;
  opacity: 1 !important;
}
body.wise70102-classic #wise46-export .wise-secure-settings-heading i {
  color: #137e89 !important;
}
body.wise70102-classic #wise46-export #wise-secure-level,
body.wise70102-classic #wise46-export #wise-secure-level option {
  background: #ffffff !important;
  color: #253c55 !important;
  border: 1px solid #b6c7dd !important;
}
body.wise70102-classic #wise46-export .wise46-export-options button {
  background: linear-gradient(180deg,#ffffff 0%,#eaf2fc 100%) !important;
  color: #25405c !important;
  border: 1px solid #aec5e3 !important;
  box-shadow: 0 2px 7px rgba(39,80,126,.07) !important;
  transition: background .18s,border-color .18s,transform .18s !important;
}
body.wise70102-classic #wise46-export .wise46-export-options button:hover,
body.wise70102-classic #wise46-export .wise46-export-options button:focus-visible {
  background: #dbeafb !important;
  border-color: #4a83d7 !important;
  transform: translateY(-2px);
}
body.wise70102-classic #wise46-export .wise46-export-options button i {
  color: #246ac1 !important;
}
body.wise70102-classic #wise46-export .wise46-export-options button strong {
  color: #1d426c !important;
  font-weight: 750 !important;
  opacity: 1 !important;
}
body.wise70102-classic #wise46-export .wise46-export-options button small {
  color: #415f7d !important;
  opacity: 1 !important;
  line-height: 1.55 !important;
}
/* Avisos/confirmacões herdavam style="color:white" no HTML original. */
body.wise70102-classic :is(#modal-confirm,#modal-alert,#modal-prompt,#modal-salvar,#modal-abrir) .modal-content {
  background: #f9fbfe !important;
  color: #243d5a !important;
  border: 1px solid #bbcde2 !important;
}
body.wise70102-classic :is(#modal-confirm,#modal-alert,#modal-prompt,#modal-salvar,#modal-abrir) :is(.modal-header,.modal-footer) {
  background: #e9f1fb !important;
  color: #264260 !important;
  border-color: #c1d2e6 !important;
}
body.wise70102-classic :is(#modal-confirm,#modal-alert,#modal-prompt) :is(#confirm-message,#alert-message,#prompt-message) {
  color: #273b55 !important;
  background: #ffffff !important;
  opacity: 1 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}
body.wise70102-classic :is(#modal-confirm,#modal-alert,#modal-prompt,#modal-salvar,#modal-abrir) .modal-header :is(h2,h3,i,button) {
  color: #203e61 !important;
}
body.wise70102-classic :is(#modal-confirm,#modal-alert,#modal-prompt) .modal-footer :is(button,.btn-secondary) {
  color: #244a70 !important;
  opacity: 1 !important;
}
body.wise70102-classic #modal-confirm #btn-confirm-yes {
  background: #c94550 !important;
  color: #fff !important;
  border-color: #b83a44 !important;
}
body.wise70102-classic :is(#modal-alert,#modal-prompt) .modal-footer .btn-primary {
  background: #326fd0 !important;
  color: #fff !important;
  border-color: #2961ba !important;
}
