/* NexABuild Â· Tema Classic (Tons de Cinza & Visual Quadrado com Acento Laranja Oficial) */
html[data-theme="classic"],
html.theme-classic,
html.ze-classic {
  --bg0: #d4d0c8; /* Cinza clÃ¡ssico neutro de fundo (zero verde) */
  --bg1: #c0c0c0; /* Cinza clÃ¡ssico de barras e janelas */
  --bg2: #e0ded8; /* SuperfÃ­cie de cartÃµes e painÃ©is */
  --bg3: #d0ccc4; /* SuperfÃ­cie elevada/controles */
  --bg4: #ffffff; /* Fundo limpo para inputs e caixas de texto */
  --bg5: #808080; /* Sombra cinza mÃ©dia */
  --line: #808080; /* Bordas sÃ³lidas clÃ¡ssicas */
  --line2: #a0a0a0; /* Bordas secundÃ¡rias */
  --tx: #111111; /* Texto principal de alto contraste */
  --tx2: #333333;
  --tx3: #666666;
  --pri: #f59e0b; /* Laranja oficial da logo do NexABuild */
  --sec: #ea580c;
  --acc: #f59e0b;
  --cyan: #0284c7;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --grad: linear-gradient(135deg, #f59e0b, #ea580c);
  --grad2: linear-gradient(135deg, #f59e0b, #d97706);
  --glow: 0 2px 8px rgba(245, 158, 11, 0.25);
  --r: 0px !important; /* EstÃ©tica 100% quadrada */
  --r2: 0px !important;
  --head: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  --body: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Blindagem de layout: nunca travar scroll nem colapsar raiz */
html[data-theme="classic"],
html.theme-classic,
html.ze-classic {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: block !important;
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) body {
  background: var(--bg0) !important;
  color: var(--tx) !important;
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: block !important;
  position: static !important;
  width: 100% !important;
}

/* Barra superior sempre visÃ­vel e funcional */
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-top,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hub-top {
  display: flex !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  width: 100% !important;
  background: #e0ded8 !important;
  border-bottom: 2px solid #808080 !important;
}

/* Todos os elementos com cantos retos/quadrados e tons cinza */
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) :is(
  .btn, .card, .card-f, .modal, .plan-card, .plan-tile, .tag, .badge, 
  .beta-badge, .alpha-badge, input, select, textarea, .dock-tab, .doc-tab,
  .toolbar, .panel, .panel-head, .statusbar, .ctx-menu, .land-menu,
  .mode-c, .asset-card, .hero, .cat-card, .pg-particlesbox, .pg-part-viewport, .pg-part-btn, .pg-part-presets select
) {
  border-radius: 0px !important;
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--tx);
  box-shadow: none;
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn:hover {
  background: var(--bg3);
  border-color: var(--tx);
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn.primary {
  background: var(--grad);
  border-color: var(--sec);
  color: #ffffff;
  box-shadow: var(--glow);
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn.primary:hover {
  filter: brightness(1.08);
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) :is(.card, .card-f, .modal, .plan-card) {
  background: var(--bg2);
  border: 1px solid var(--line);
  box-shadow: none;
}

:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) body{background:var(--bg0);color:var(--tx)}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .brand .tagline{color:var(--tx3)}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn.primary{background:var(--pri);border-color:var(--pri);box-shadow:0 2px 8px #f59e0b4d}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn.primary:hover{background:#d97706;border-color:#d97706}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn{background:var(--bg2);border-color:var(--line2);color:var(--tx)}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .btn:hover{border-color:var(--pri);color:var(--pri)}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .modal,:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .card{background:var(--bg2);border:1px solid var(--line)}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) ::selection{background:#f59e0b33}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) :focus-visible{outline-color:var(--pri)}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) ::-webkit-scrollbar-thumb{background:#9ca3af;border:2px solid transparent;background-clip:padding-box}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) ::-webkit-scrollbar-track{background:transparent}
/* Studio: toolbar, menus e pain├®is como no ZEngine / Construct 2 */
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .toolbar {
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .tb-menu {
  color: #1e293b;
  font-weight: 500;
  font-size: 13px;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .tb-menu:hover,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .tb-menu.on {
  background: #f1f5f9;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .toolbar .icon-btn {
  color: #475569;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .toolbar .icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .tb-proj {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .tb-proj:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .tb-sep {
  background: #e2e8f0;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .run-btn {
  background: #16a34a;
  border: 1px solid #15803d;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .run-btn:hover {
  background: #15803d;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .run-btn.stop {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .doc-tabs {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .doc-tab {
  background: #d8dde3;
  color: #475569;
  border-right: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .doc-tab.on {
  background: #ffffff;
  color: #0f172a;
  box-shadow: none;
  border-bottom: 1px solid #ffffff;
  font-weight: 600;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .doc-tab:hover:not(.on) {
  background: #edf0f4;
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .panel-head {
  background: #1e293b;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .panel {
  background: #f8fafc;
  border-color: #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .dock-tabs {
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .dock-tab {
  color: #64748b;
  border-bottom: 2px solid transparent;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .dock-tab.on {
  color: #0078d7;
  border-bottom-color: #0078d7;
  font-weight: 600;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .dock-foot {
  background: #edf0f4;
  border-top: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .split,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .split-h {
  background: #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .statusbar {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  color: #475569;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .lay-bar {
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .lay-bar .icon-btn {
  color: #475569;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .lay-bar .icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .lay-bar .icon-btn.on {
  background: rgba(0, 120, 215, 0.12);
  color: #0078d7;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-dlg {
  background: #ffffff;
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-side {
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-side button {
  color: #475569;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-side button:hover {
  background: #f1f5f9;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-side button.on {
  background: #0078d7;
  color: #ffffff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-side button.on .cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-card:hover {
  border-color: #0078d7;
  background: #f0f7ff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-card.on {
  border-color: #0078d7;
  background: #e0effe;
  box-shadow: 0 0 0 1px #0078d7;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .cat-desc {
  background: #f8fafc;
  border-left: 1px solid #cbd5e1;
  color: #334155;
}

/* Topbar & Header Contrast no tema cl├íssico */
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hub-top,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-top {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-nav a,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hub-nav a,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hn {
  color: #475569;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-nav a:hover,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hub-nav a:hover,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hn:hover {
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .hn.on,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-nav a.on {
  color: var(--pri);
  background: #f59e0b1a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .beta-badge,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .alpha-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .beta-badge:hover,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .alpha-badge:hover {
  color: var(--pri);
  border-color: var(--pri);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-menu {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-menu-item {
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .land-menu-divider {
  background: #e2e8f0;
}

/* Context Menu no tema cl├íssico */
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ctx-menu {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ctx-item {
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ctx-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ctx-item .key {
  color: #64748b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ctx-menu .sep {
  background: #e2e8f0;
}

/* Event Sheet Editor ÔÇö C2 / ZEngine visual fidelity */
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .sheet-line {
  background: #e4e7eb;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .sheet-header {
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev {
  background: #ffffff;
  border-color: #c9ced5;
  box-shadow: none;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev.sel {
  border-color: #0078d7;
  box-shadow: inset 0 0 0 2px #0078d7;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .gut {
  background: #d8dde3;
  color: #64748b;
  border-right: 1px solid #c9ced5;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .conds {
  background: #f5f7fa;
  border-right: 3px solid #c9ced5;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .acts {
  background: #ffffff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace {
  background: transparent;
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace:hover {
  background: rgba(0, 120, 215, 0.07);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace.sel {
  background: rgba(0, 120, 215, 0.14);
  box-shadow: inset 0 0 0 1px #0078d7;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace .obj {
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace .txt {
  color: #1e293b;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace .txt b.p {
  color: #0b4f8a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace .not,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace .inv-icon {
  color: #dc2626;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ace.trig .trig-icon {
  color: #16a34a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .add-act {
  color: #0078d7;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .add-act:hover {
  color: #005a9e;
  background: rgba(0, 120, 215, 0.08);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .or-tag {
  color: #64748b;
  background: #e2e8f0;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev-group .grp {
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-status {
  appearance: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-status.is-active {
  background: #16a34a;
  border: 1px solid #22c55e;
  color: #ffffff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-status.is-active:hover {
  background: #15803d;
  border-color: #4ade80;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-status.is-inactive {
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-status.is-inactive:hover {
  background: #b91c1c;
  border-color: #f87171;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-add-btn {
  margin-left: auto;
  appearance: none;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all .15s ease;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-add-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .grp-add-btn:active {
  transform: scale(0.97);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .pg-title .ic {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .pg-title .ic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev-var .var {
  background: #e4f4e7;
  border-left: 4px solid #2f9e44;
  color: #1f4f2a;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev-var .var .kw {
  color: #2b6a37;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev-comment .cmt {
  background: #fff4c2;
  border-left: 4px solid #d6a700;
  color: #5b4500;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev-include .var {
  background: #0f172a;
  color: #ffffff;
  border-left: 4px solid #0078d7;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev-function .conds.fn {
  background: #f5f3ff;
  border-left: 4px solid #7c3aed;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev.is-sub::before,
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .ev.is-sub::after {
  background: #94a3b8;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .es-link {
  color: #0078d7;
  font-weight: 600;
}
:is(html[data-theme="classic"], html.theme-classic, html.ze-classic) .es-link:hover {
  color: #005a9e;
  background: rgba(0, 120, 215, 0.08);
}


