*{box-sizing:border-box}
:root{
  --ui-primary:#7c3aed;
  --ui-primary-soft:#f3e8ff;
  --ui-bg:#f5f7fb;
  --ui-panel:#fff;
  --ui-text:#101828;
  --ui-muted:#667085;
  --ui-line:#dbe4ef;
  --dracula-bg:#282a36;
  --dracula-fg:#f8f8f2;
  --dracula-comment:#6272a4;
  --dracula-cyan:#8be9fd;
  --dracula-green:#50fa7b;
  --dracula-orange:#ffb86c;
  --dracula-pink:#ff79c6;
  --dracula-purple:#bd93f9;
  --dracula-yellow:#f1fa8c;
}
body{margin:0;height:100vh;overflow:hidden;font-family:Arial,Helvetica,sans-serif;background:var(--ui-bg);color:var(--ui-text)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.appbar{height:64px;background:#0f172a;color:#fff;display:flex;align-items:center;gap:12px;padding:0 16px;position:relative;z-index:60;flex:0 0 auto}
.brand{display:flex;align-items:center;gap:10px;margin-right:4px}
.brand-icon{background:linear-gradient(135deg,#bd93f9,#7c3aed);padding:8px;border-radius:10px;font-weight:900}
.brand em{font-style:normal;background:#4f46e5;border-radius:7px;padding:3px 7px;font-size:11px}
.topStatus{margin-left:auto;display:flex;align-items:center;gap:10px;color:#cbd5e1;font-size:12px}
.topStatus span{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:999px;padding:7px 10px}
.app{height:calc(100vh - 64px);position:relative;display:grid;grid-template-columns:74px 1fr;overflow:hidden}
.rail{background:#111c2e;padding:18px 8px;display:flex;flex-direction:column;gap:12px;z-index:45}
.railBtn{border:0;background:transparent;color:#cbd5e1;border-radius:14px;padding:10px 5px;display:grid;gap:6px;place-items:center}
.railBtn.active{background:linear-gradient(135deg,#bd93f9,#7c3aed);color:#fff}
.railBtn small{font-size:11px}
.floating{position:absolute;top:0;bottom:0;background:var(--ui-panel);z-index:40;box-shadow:0 22px 60px rgba(15,23,42,.22);transition:transform .18s ease, opacity .18s ease}
.leftPanel{left:74px;width:360px;border-right:1px solid var(--ui-line);transform:translateX(-110%);opacity:0;pointer-events:none}
.app.left-open .leftPanel{transform:translateX(0);opacity:1;pointer-events:auto}
.rightPanel{right:0;width:var(--right-width,470px);border-left:1px solid var(--ui-line);transform:translateX(110%);opacity:0;pointer-events:none}
.app.right-open .rightPanel{transform:translateX(0);opacity:1;pointer-events:auto}
.rightHotspot{position:absolute;right:0;top:0;bottom:0;width:18px;z-index:35;background:transparent}
.panel{display:none;height:100%;overflow:auto;padding:18px}
.panel.active{display:block}
.panelHead{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.panel h2{font-size:18px;margin:0 0 4px}
.panel p{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.4}
.panelHead button{border:0;background:var(--ui-primary-soft);color:var(--ui-primary);border-radius:9px;width:32px;height:32px;font-weight:900;flex:0 0 auto}
.search{width:100%;padding:11px;border:1px solid var(--ui-line);border-radius:12px}
.chips{display:flex;flex-wrap:wrap;gap:7px;overflow:visible;margin:12px 0;padding-bottom:4px}
.chip{border:1px solid #ddd6fe;background:#f3e8ff;color:#6d28d9;border-radius:999px;padding:7px 10px;font-size:12px;white-space:normal;font-weight:800}
.chip.active{background:#7c3aed;color:#fff;border-color:#7c3aed;font-weight:900}
.tagGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.tagCard,.moduleCard,.templateCard,.themeCard{border:1px solid var(--ui-line);border-radius:13px;padding:11px;text-align:left;box-shadow:0 6px 16px rgba(16,24,40,.04)}
.tagCard{color:#fff;min-height:72px}
.tagCard strong,.moduleCard strong,.templateCard strong,.themeCard strong{display:block}
.tagCard small,.moduleCard small,.templateCard small,.themeCard small{display:block;font-size:11px;margin-top:4px;opacity:.86;line-height:1.35}
.cardList,.themeList{display:grid;gap:10px}
.moduleCard,.templateCard,.themeCard{width:100%;background:#fff;display:flex;gap:10px;align-items:flex-start}
.moduleCard .color,.templateCard .color,.themeCard .color{width:10px;align-self:stretch;border-radius:99px;flex:0 0 auto}
.moduleCard small,.templateCard small,.themeCard small{color:var(--ui-muted)}
.themeControls{margin-top:18px}
.themeControls label{display:grid;gap:7px;margin-bottom:14px;font-weight:800;color:var(--ui-muted);font-size:13px}
.themeControls input{border:1px solid var(--ui-line);border-radius:10px;padding:9px}
.widePrimary{width:100%;border:0;background:var(--ui-primary);color:#fff;border-radius:12px;padding:11px 12px;font-weight:900;margin-bottom:14px}
.projectPageManager{border:1px solid var(--ui-line);border-radius:16px;background:#fff;padding:12px;margin-bottom:14px;display:grid;gap:12px}
.panelControl{display:grid;gap:6px;color:var(--ui-muted);font-size:12px;font-weight:900}
.panelControl input,.panelControl select{width:100%;border:1px solid var(--ui-line);border-radius:12px;padding:10px;background:#fff;color:var(--ui-text)}
.pageMainActions{display:grid;grid-template-columns:1fr;gap:8px}
.pageMainActions button{margin:0}
.wideDanger{width:100%;border:0;background:#fee2e2;color:#b91c1c;border-radius:12px;padding:11px 12px;font-weight:900}
.wideExport{width:100%;border:0;background:linear-gradient(135deg,#bd93f9,#7c3aed);color:#fff;border-radius:12px;padding:11px 12px;font-weight:900}
.secondaryAction{background:#111827}
.dividerLabel{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#64748b;margin:12px 0 8px}
.pagesManager{display:grid;gap:10px}
.pageRow{border:1px solid var(--ui-line);border-radius:14px;background:#fff;padding:10px;display:grid;gap:8px}
.pageRow.active{border-color:var(--ui-primary);box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.pageRow input{width:100%;border:1px solid var(--ui-line);border-radius:10px;padding:8px}
.pageActions{display:flex;gap:8px}
.pageActions button{border:1px solid var(--ui-line);background:#fff;border-radius:9px;padding:7px 9px;font-size:12px;font-weight:800}
.pageActions .remove{color:#b91c1c}
.workspace{grid-column:2;min-width:0;min-height:0;display:grid;grid-template-columns:minmax(320px,38%) 8px minmax(420px,62%);background:#f8fafc;height:100%;overflow:hidden}
.builderPane,.previewPane{padding:16px;display:flex;flex-direction:column;overflow:hidden;min-height:0}
.builderPane{background:#fff}
.splitter{background:#e2e8f0;cursor:col-resize;border-left:1px solid #cbd5e1;border-right:1px solid #cbd5e1}
.splitter:hover{background:#7c3aed}
.paneHead{min-height:50px;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:12px;flex:0 0 auto}
.paneHead h2{font-size:15px;margin:0}
.paneHead span{font-size:12px;color:var(--ui-muted)}
.structureTabs{display:flex;gap:6px;background:#f1f5f9;padding:4px;border-radius:12px;flex:0 0 auto}
.structureTab{border:0;background:transparent;color:#475569;border-radius:9px;padding:7px 10px;font-weight:800;font-size:12px}
.structureTab.active{background:#fff;color:#7c3aed;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.structureView{display:none;min-height:0;flex:1;overflow:hidden}
.structureView.active{display:flex;flex-direction:column}
.scrollArea{min-height:0;overflow:auto}
.canvas{flex:1;border:1px solid var(--ui-line);border-radius:18px;background:#fff;padding:14px;box-shadow:0 18px 45px rgba(16,24,40,.08)}
.empty{border:2px dashed #cbd5e1;border-radius:16px;text-align:center;padding:32px;color:var(--ui-muted)}
.empty strong{display:block;color:var(--ui-text);font-size:18px;margin-bottom:6px}
.hierarchyTree{flex:1;border:1px solid var(--ui-line);border-radius:18px;background:#fff;padding:16px;box-shadow:0 18px 45px rgba(16,24,40,.08)}
.treeNode{border:1px solid var(--ui-line);border-left-width:8px;border-radius:10px;background:#fff;padding:9px;margin-bottom:7px;font-size:12px}
.treeNode.selected{border-color:#7c3aed;color:#5b21b6;font-weight:900;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.node{border-radius:16px;margin-bottom:12px;overflow:hidden;border:1px solid transparent;box-shadow:0 10px 22px rgba(16,24,40,.08)}
.node.selected{outline:3px solid rgba(124,58,237,.35)}
.nodeHead{display:flex;align-items:center;gap:9px;padding:11px}
.handle{opacity:.65}
.pill{width:9px;height:34px;border-radius:99px;background:#fff}
.title{font-size:14px}
.tag{font-size:12px;opacity:.8;font-weight:800}
.nodeActions{margin-left:auto;display:flex;gap:6px}
.nodeActions button{border:1px solid rgba(15,23,42,.16);background:rgba(255,255,255,.86);border-radius:8px;width:29px;height:29px;font-weight:900}
.node.closed .nodeBody{display:none}
.nodeBody{background:rgba(255,255,255,.72);padding:12px;display:grid;gap:10px}
.semantic{background:#fff;border:1px solid rgba(15,23,42,.12);border-radius:12px;padding:10px;color:#344054;font-size:12px;line-height:1.45}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.field{display:grid;gap:5px}
.field.full{grid-column:1/-1}
.field label{font-size:11px;color:#475467;font-weight:800}
.field input,.field textarea,.field select{border:1px solid #cbd5e1;border-radius:9px;padding:8px}
.field textarea{min-height:66px}
.children{border:2px dashed rgba(15,23,42,.16);border-radius:12px;padding:9px;min-height:42px}
.childHint{color:var(--ui-muted);font-size:12px}
.dragOver{outline:3px solid rgba(124,58,237,.42);outline-offset:-5px}
.devices{display:flex;gap:6px}
.device{border:1px solid var(--ui-line);background:#fff;color:#475569;border-radius:9px;padding:7px 10px;font-weight:800}
.device.active{background:#7c3aed;color:#fff}
.browser{flex:1;min-height:0;background:#fff;border:1px solid var(--ui-line);border-radius:18px;box-shadow:0 18px 45px rgba(16,24,40,.08);overflow:hidden;display:flex;flex-direction:column}
.bar{height:46px;background:#f8fafc;border-bottom:1px solid var(--ui-line);display:flex;align-items:center;gap:8px;padding:0 14px;flex:0 0 auto}
.bar i{width:10px;height:10px;border-radius:50%;display:block}
.bar i:nth-child(1){background:#ef4444}.bar i:nth-child(2){background:#f59e0b}.bar i:nth-child(3){background:#22c55e}
.bar input{flex:1;border:1px solid var(--ui-line);border-radius:10px;padding:8px;color:var(--ui-muted);background:#fff}
.deviceStage{flex:1;min-height:0;overflow:auto;background:#eef2f7;display:flex;align-items:flex-start;justify-content:center;padding:18px;position:relative}
#previewFrame{width:100%;height:100%;min-height:620px;border:0;background:#fff}
.deviceStage.tablet #previewFrame{width:820px;height:1120px;border:18px solid #111827;border-radius:34px;box-shadow:0 18px 45px rgba(15,23,42,.28);flex:0 0 auto}
.deviceStage.mobile #previewFrame{width:393px;height:852px;border:14px solid #111827;border-radius:48px;box-shadow:0 18px 45px rgba(15,23,42,.32);flex:0 0 auto}
.rightResize{position:absolute;left:0;top:0;bottom:0;width:7px;cursor:col-resize;background:transparent;z-index:3}
.rightResize:hover{background:#7c3aed}
.rightHead{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid var(--ui-line);flex:0 0 auto}
.rightHead button{border:0;background:var(--ui-primary-soft);color:#7c3aed;border-radius:8px;width:30px;height:30px;font-weight:900}
.tabs{display:flex;height:42px;border-bottom:1px solid var(--ui-line);flex:0 0 auto}
.tab{flex:1;border:0;background:#f8fafc;color:#475569;font-weight:800}
.tab.active{background:#fff;color:#7c3aed;border-bottom:2px solid #7c3aed}
.view{display:none;height:calc(100% - 84px);overflow:hidden}
.view.active{display:block}
.dracula{margin:0;height:100%;overflow:auto;background:var(--dracula-bg);color:var(--dracula-fg);padding:15px;font-size:12px;line-height:1.6;tab-size:2}
.inspector{padding:16px;overflow:auto}
.inspector h2{font-size:18px}
.inspector p,.inspector li{font-size:13px;color:var(--ui-muted);line-height:1.5}
.inspector pre{background:var(--dracula-bg);color:var(--dracula-fg);padding:12px;border-radius:10px;overflow:auto}
.tk-tag{color:var(--dracula-pink)}.tk-attr{color:var(--dracula-green)}.tk-val{color:var(--dracula-yellow)}.tk-text{color:var(--dracula-fg)}.tk-comment{color:var(--dracula-comment)}.tk-key{color:var(--dracula-pink)}.tk-fn{color:var(--dracula-green)}.tk-prop{color:var(--dracula-cyan)}.tk-sel{color:var(--dracula-green)}

.fileToolbar{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:14px}
.fileToolBtn{border:0;border-radius:12px;padding:11px 12px;font-weight:900;background:#111827;color:#fff}
.fileToolBtn.dangerTool{background:#fee2e2;color:#b91c1c}
.fileToolBtn.exportTool{background:linear-gradient(135deg,#bd93f9,#7c3aed);color:#fff}
.fileExplorer{border:1px solid var(--ui-line);border-radius:16px;background:#0f172a;color:#e5e7eb;padding:10px;font-size:13px;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.fileTreeRow{display:flex;align-items:center;gap:8px;min-height:32px;border-radius:10px;padding:5px 7px;user-select:none}
.fileTreeRow:hover{background:rgba(255,255,255,.08)}
.fileTreeRow.active{background:rgba(189,147,249,.22);outline:1px solid rgba(189,147,249,.45)}
.fileTreeRow.system{opacity:.92}
.fileTreeRow .twisty{width:16px;color:#94a3b8;text-align:center}
.fileTreeRow .icon{width:22px;text-align:center;font-size:16px}
.fileTreeRow .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fileTreeRow .name[contenteditable="true"]{background:#111827;border:1px solid #7c3aed;border-radius:7px;padding:4px 6px;outline:0;color:#fff}
.fileTreeRow .actions{display:flex;gap:4px;opacity:0;transition:.15s}
.fileTreeRow:hover .actions,.fileTreeRow.active .actions{opacity:1}
.fileTreeRow .actions button{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#e5e7eb;border-radius:7px;padding:4px 6px;font-size:11px}
.fileTreeRow .actions button.danger{color:#fecaca}
.fileTreeChildren{margin-left:22px;border-left:1px solid rgba(148,163,184,.28);padding-left:8px}
.fileBadge{font-size:10px;color:#94a3b8;margin-left:4px}
.fileHint{margin-top:12px;background:#f8fafc;border:1px solid var(--ui-line);border-radius:12px;color:#475569;font-size:12px;line-height:1.45;padding:10px}
.srOnly{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media(max-width:1100px){
  .workspace{grid-template-columns:1fr}
  .splitter,.previewPane{display:none}
  .leftPanel{width:320px}
  .appbar{gap:8px}
  .topStatus{display:none}
}


/* v5.9 - Explorer claro no estilo VS Code */
.explorerPanel{padding:14px}
.compactHead{margin-bottom:10px}
.compactHead h2{font-size:16px;text-transform:uppercase;letter-spacing:.06em;color:#334155}
.compactHead p{font-size:11px}
.explorerTopbar{height:34px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--ui-line);border-bottom:0;background:#f8fafc;border-radius:12px 12px 0 0;padding:0 8px}
.explorerTitle{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#475569}
.explorerActions{display:flex;gap:4px}
.explorerActions button{width:26px;height:26px;border:0;background:transparent;color:#475569;border-radius:6px;font-weight:900;font-size:16px;line-height:1}
.explorerActions button:hover{background:#e2e8f0;color:#111827}
.fileExplorer{border:1px solid var(--ui-line);border-radius:0 0 12px 12px;background:#ffffff;color:#1e293b;padding:6px 0;font-size:13px;box-shadow:none;min-height:260px;max-height:calc(100vh - 250px);overflow:auto}
.fileTreeRoot{display:block}
.fileTreeRow{display:flex;align-items:center;gap:6px;min-height:28px;border-radius:0;padding:3px 8px;user-select:none;color:#334155;border:0;background:transparent;box-shadow:none}
.fileTreeRow:hover{background:#f1f5f9}
.fileTreeRow.active{background:#e0e7ff;outline:0;color:#312e81}
.fileTreeRow.system{opacity:1}
.fileTreeRow.folderRow{font-weight:800;color:#1e293b}
.fileTreeRow.fileRow{font-weight:500}
.fileTreeRow .twisty{width:14px;color:#64748b;text-align:center;font-size:12px;flex:0 0 auto}
.fileTreeRow .icon{width:18px;text-align:center;font-size:14px;flex:0 0 auto}
.fileTreeRow .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:20px}
.fileTreeRow .name[contenteditable="true"]{background:#fff;border:1px solid #7c3aed;border-radius:4px;padding:1px 4px;outline:0;color:#111827;box-shadow:0 0 0 2px rgba(124,58,237,.14)}
.fileTreeRow .actions{display:flex;gap:2px;opacity:0;transition:.12s;flex:0 0 auto}
.fileTreeRow:hover .actions,.fileTreeRow.active .actions{opacity:1}
.fileTreeRow .actions button{border:0;background:transparent;color:#64748b;border-radius:5px;padding:2px 5px;font-size:12px;line-height:18px}
.fileTreeRow .actions button:hover{background:#e2e8f0;color:#111827}
.fileTreeRow .actions button.danger{color:#b91c1c}
.fileTreeRow .actions button.danger:hover{background:#fee2e2}
.fileTreeChildren{margin-left:0;border-left:0;padding-left:0}
.fileTreeChildren .fileTreeRow{padding-left:22px}
.fileTreeChildren .fileTreeChildren .fileTreeRow{padding-left:44px}
.fileTreeChildren .fileTreeChildren .fileTreeChildren .fileTreeRow{padding-left:66px}
.fileBadge{display:none}
.fileHint.compactHint{margin-top:10px;background:#f8fafc;border:1px solid var(--ui-line);border-radius:10px;color:#475569;font-size:11px;line-height:1.4;padding:9px}
.fileToolBtn,.widePrimary,.wideDanger,.wideExport{font-size:13px}


/* v6.0 - Drag and drop stability */
body.builderDragging .canvas,
body.builderDragging .children {
  outline: 3px dashed rgba(124, 58, 237, .45);
  outline-offset: -6px;
}
.tagCard,
.moduleCard,
.templateCard {
  cursor: grab;
}
.tagCard:active,
.moduleCard:active,
.templateCard:active {
  cursor: grabbing;
}
.canvas.dragOver,
.children.dragOver {
  background-image: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(139, 92, 246, .04));
}


/* v6.1 - Campo lógico oculto do projeto */
.hiddenProjectName {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}


/* v6.2 - Interação educacional e seleção sincronizada */
.tagCard {
  position: relative;
}
.tagCard::after {
  content: attr(data-tooltip);
  position: fixed;
  left: var(--tip-x, 380px);
  top: var(--tip-y, 120px);
  max-width: 280px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .28);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 999;
  transition: .12s ease;
}
.tagCard:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.nodeHead.dropTarget {
  outline: 3px dashed rgba(124, 58, 237, .45);
  outline-offset: -6px;
  background-image: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(124, 58, 237, .04)) !important;
}
.insertReminder {
  border: 2px dashed rgba(124, 58, 237, .28);
  border-radius: 10px;
  padding: 10px;
  color: #6d28d9;
  background: rgba(124, 58, 237, .06);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  margin-top: 8px;
}
.html-selected-line {
  display: inline;
  background: rgba(255, 121, 198, .18);
  box-shadow: 0 0 0 2px rgba(255, 121, 198, .22);
  border-radius: 4px;
}
.nodeTitleClickable {
  cursor: pointer;
}
.nodeTitleClickable:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}


/* v6.3 - Tooltip estável e correção do drag visual */
.tagCard::after {
  display: none !important;
  content: none !important;
}
.tagTooltip {
  position: fixed;
  z-index: 2000;
  max-width: 280px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .28);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .10s ease, transform .10s ease;
}
.tagTooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.dragGhost {
  position: fixed;
  left: -9999px;
  top: -9999px;
  background: #7c3aed;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: 700 12px Arial, sans-serif;
  box-shadow: 0 12px 28px rgba(15,23,42,.28);
}
.fileTreeChildren.rootFiles .fileTreeRow {
  padding-left: 22px;
}


/* v6.4 - Destaque de bloco HTML selecionado com contraste */
.html-selected-line,
.html-selected-block {
  display: inline;
  background: rgba(255, 121, 198, .34);
  color: #ffffff !important;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 121, 198, .55);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 1px 2px;
}
.html-selected-line *,
.html-selected-block * {
  color: #ffffff !important;
}


/* v6.5 - Container interno, ordenação e painel técnico recolhido */
.children {
  border: 2px dashed rgba(124, 58, 237, .28);
  border-radius: 14px;
  padding: 10px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(124, 58, 237, .035);
}
.children > .node {
  margin-bottom: 0;
}
.insertReminder {
  order: 9999;
  width: 100%;
  margin-top: 0;
}
.nodeActions button.moveUp,
.nodeActions button.moveDown {
  font-size: 15px;
  line-height: 1;
}
.rightHotspot,
.tabs {
  display: none !important;
}
.rightRail {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 74px;
  background: #111c2e;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 45;
}
.rightIcon {
  width: 58px;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  border-radius: 14px;
  font-weight: 900;
  font-size: 18px;
}
.rightIcon:hover,
.rightIcon.active {
  background: linear-gradient(135deg, #bd93f9, #7c3aed);
  color: #fff;
}
.rightPanel {
  right: 74px;
  width: var(--right-width, 520px);
  border-left: 1px solid var(--ui-line);
  transform: translateX(calc(100% + 74px));
  opacity: 0;
  pointer-events: none;
  z-index: 44;
}
.app.right-open .rightPanel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.rightHead {
  height: 46px;
}
.view {
  height: calc(100% - 46px);
}
.view.inspector {
  height: calc(100% - 46px);
}
.workspace {
  margin-right: 74px;
}
@media(max-width:1100px){
  .rightRail{display:none}
  .workspace{margin-right:0}
}


/* v6.6 - Seleção forte, painel técnico por linguagem e componentes */
.node.selected {
  outline: 4px solid #ff79c6 !important;
  outline-offset: 3px;
  border-color: #ff79c6 !important;
  box-shadow: 0 0 0 7px rgba(255, 121, 198, .20), 0 18px 42px rgba(15, 23, 42, .18) !important;
}
.node.selected > .nodeHead {
  background: linear-gradient(135deg, rgba(255, 121, 198, .48), rgba(189, 147, 249, .34)) !important;
}
.node.selected > .nodeHead .title,
.node.selected > .nodeHead .tag {
  color: #111827 !important;
  font-weight: 900;
}
.node.selected > .nodeHead .pill {
  background: #ff79c6 !important;
  box-shadow: 0 0 0 4px rgba(255, 121, 198, .22);
}
.html-selected-line,
.html-selected-block {
  display: inline;
  background: rgba(255, 121, 198, .38) !important;
  color: #ffffff !important;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 121, 198, .62);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 1px 2px;
}
.html-selected-line *,
.html-selected-block * {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.rightIcon.htmlIcon {
  background: #e34f26;
  color: #fff;
}
.rightIcon.cssIcon {
  background: #1572b6;
  color: #fff;
}
.rightIcon.jsIcon {
  background: #f7df1e;
  color: #1f2937;
}
.rightIcon.inspectIcon {
  background: #ff4ecd;
  color: #fff;
  font-size: 24px;
}
.rightIcon.htmlIcon:hover,
.rightIcon.htmlIcon.active {
  background: linear-gradient(135deg, #f97316, #c2410c);
}
.rightIcon.cssIcon:hover,
.rightIcon.cssIcon.active {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}
.rightIcon.jsIcon:hover,
.rightIcon.jsIcon.active {
  background: linear-gradient(135deg, #fde047, #eab308);
  color: #111827;
}
.rightIcon.inspectIcon:hover,
.rightIcon.inspectIcon.active {
  background: linear-gradient(135deg, #ff79c6, #db2777);
}
.componentType {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6d28d9;
  background: #f3e8ff;
  border-radius: 999px;
  padding: 3px 7px;
  margin-top: 6px;
}


/* v6.7 - Componentes, SEO, auditor semântico, linhas de código e footer */
.railBtn small {
  font-weight: 800;
  color: inherit;
  line-height: 1.15;
  text-align: center;
  word-break: normal;
}
.railBtn[data-panel="componentsPanel"] small {
  font-size: 9px;
  letter-spacing: -.02em;
}
.semanticBadge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid #111c2e;
  background: #ef4444;
  color: #fff;
}
.semanticBadge.ok {
  background: #22c55e;
  color: #fff;
}
.rightIcon {
  position: relative;
}
.inspectorTabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--ui-line);
  background: #f8fafc;
}
.inspectorTab {
  flex: 1;
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 9px;
  padding: 8px;
  color: #475569;
  font-weight: 900;
}
.inspectorTab.active {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}
.inspectorContent {
  display: none;
  padding: 14px;
  overflow: auto;
  height: calc(100% - 58px);
}
.inspectorContent.active {
  display: block;
}
.semanticErrorCard {
  border: 1px solid #fecaca;
  background: #fff7f7;
  border-left: 6px solid #ef4444;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.semanticErrorCard strong {
  display: block;
  color: #991b1b;
  margin-bottom: 6px;
}
.semanticErrorCard p {
  margin: 4px 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.semanticErrorCard button {
  margin-top: 8px;
  border: 0;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  padding: 7px 10px;
  font-weight: 900;
}
.semanticOk {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 12px;
  padding: 12px;
  font-weight: 900;
}
.codeWithLines {
  margin: 0;
  height: 100%;
  overflow: auto;
  background: var(--dracula-bg);
  color: var(--dracula-fg);
  padding: 0;
  font-size: 12px;
  line-height: 1.6;
  tab-size: 2;
}
.codeLine {
  display: flex;
  min-height: 19px;
}
.lineNo {
  flex: 0 0 48px;
  text-align: right;
  padding: 0 10px 0 8px;
  color: #6272a4;
  background: rgba(0,0,0,.14);
  border-right: 1px solid rgba(255,255,255,.08);
  user-select: none;
}
.lineCode {
  flex: 1;
  padding-left: 10px;
  white-space: pre;
}
.appFooter {
  position: absolute;
  left: 74px;
  right: 74px;
  bottom: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-top: 1px solid var(--ui-line);
  color: #64748b;
  font-size: 11px;
  z-index: 20;
}
.workspace {
  padding-bottom: 26px;
}
.componentType.seoType {
  background: #dcfce7;
  color: #166534;
}
.seoApplied {
  font-size: 11px;
  color: #166534;
  font-weight: 900;
  margin-top: 6px;
}
@media(max-width:1100px){
  .appFooter{right:0}
}


/* v6.8 - Editores reais de código e correção de linhas */
.codeView {
  height: calc(100% - 46px);
  overflow: hidden;
  background: var(--dracula-bg);
}
.codeToolbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  background: #1f2130;
  color: #f8f8f2;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
}
.saveCodeBtn {
  border: 0;
  background: #50fa7b;
  color: #0f172a;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}
.codeEditor {
  height: calc(100% - 42px);
  overflow: auto;
  background: var(--dracula-bg);
  color: var(--dracula-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  outline: none;
  white-space: pre;
  tab-size: 2;
  padding: 0;
}
.codeLine {
  display: flex;
  min-height: 19px;
  width: max-content;
  min-width: 100%;
}
.lineNo {
  flex: 0 0 48px;
  width: 48px;
  text-align: right;
  padding: 0 10px 0 8px;
  color: #6272a4;
  background: rgba(0,0,0,.18);
  border-right: 1px solid rgba(255,255,255,.08);
  user-select: none;
  position: sticky;
  left: 0;
}
.lineCode {
  flex: 1;
  padding-left: 10px;
  white-space: pre;
}
.codeEditor:focus {
  box-shadow: inset 0 0 0 2px rgba(189,147,249,.35);
}
.railBtn[data-panel="componentsPanel"] small {
  font-size: 10px;
  letter-spacing: 0;
}


/* v6.9 - Editor estável, aba de erros e preview title */
.codeEditorWrap {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 48px 1fr;
  background: var(--dracula-bg);
  overflow: hidden;
}
.editorLines {
  overflow: hidden;
  background: rgba(0,0,0,.18);
  color: #6272a4;
  border-right: 1px solid rgba(255,255,255,.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  padding: 8px 10px 8px 0;
  user-select: none;
}
.plainCodeEditor {
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  outline: 0;
  overflow: auto;
  background: var(--dracula-bg);
  color: var(--dracula-fg);
  caret-color: #f8f8f2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 12px;
  tab-size: 2;
  white-space: pre;
}
.plainCodeEditor:focus {
  box-shadow: inset 0 0 0 2px rgba(189,147,249,.35);
}
.plainCodeEditor.htmlEditorText {
  color: #f8f8f2;
}
.inspectorTab.errorStatus {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}
.inspectorTab.errorStatus.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.inspectorTab.okStatus {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.inspectorTab.okStatus.active {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.previewTitleTab {
  height: 34px;
  display: flex;
  align-items: center;
  max-width: 260px;
  margin: 10px 0 0 16px;
  padding: 0 16px;
  border: 1px solid var(--ui-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}
.browser .bar {
  border-top: 1px solid var(--ui-line);
}
.themeCard.activeTheme {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}


/* v7.0 - WebLab Studio, menu colorido, acessibilidade e editor colorido estável */
.brand {
  min-width: 360px;
}
.brandCopy {
  display: grid;
  gap: 2px;
}
.brandCopy span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brandCopy small {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.2;
}
.brandCopy em {
  font-style: normal;
  background: #4f46e5;
  border-radius: 7px;
  padding: 3px 7px;
  font-size: 11px;
}
.railBtn[data-panel="pagesPanel"] {
  background: linear-gradient(135deg, #64748b, #334155);
  color: #fff;
}
.railBtn[data-panel="tagsPanel"] {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
}
.railBtn[data-panel="componentsPanel"] {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  color: #fff;
}
.railBtn[data-panel="layoutPanel"] {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}
.railBtn[data-panel="basicPagesPanel"] {
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff;
}
.railBtn[data-panel="accessibilityPanel"] {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
}
.railBtn[data-panel="seoPanel"] {
  background: linear-gradient(135deg, #ca8a04, #a16207);
  color: #fff;
}
.railBtn[data-panel="themePanel"] {
  background: linear-gradient(135deg, #db2777, #be185d);
  color: #fff;
}
.railBtn:not(.active) {
  opacity: .72;
}
.railBtn:hover,
.railBtn.active {
  opacity: 1;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 10px 20px rgba(15,23,42,.18);
}
.previewTitleTab {
  height: 34px;
  display: flex;
  align-items: center;
  max-width: 320px;
  margin: 10px 0 0 16px;
  padding: 0 16px;
  border: 1px solid var(--ui-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser .bar {
  border-top: 1px solid var(--ui-line);
}
.adjustmentBadge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid #111c2e;
  background: #f59e0b;
  color: #111827;
}
.adjustmentBadge.ok {
  background: #22c55e;
  color: #fff;
}
.inspectorTab.adjustStatus {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.inspectorTab.adjustStatus.active {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
}
.adjustmentCard {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-left: 6px solid #f59e0b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.adjustmentCard strong {
  display: block;
  color: #92400e;
  margin-bottom: 6px;
}
.adjustmentCard p {
  margin: 4px 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.adjustmentCard button {
  margin-top: 8px;
  border: 0;
  background: #f59e0b;
  color: #111827;
  border-radius: 9px;
  padding: 7px 10px;
  font-weight: 900;
}
.accessType {
  background: #dcfce7;
  color: #166534;
}
.codeEditorWrap {
  grid-template-columns: 48px 1fr;
}
.codeEditArea {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--dracula-bg);
}
.codeHighlight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 8px 12px;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dracula-fg);
  pointer-events: none;
}
.plainCodeEditor {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: #f8f8f2;
  overflow: auto;
  white-space: pre;
}
.plainCodeEditor::selection {
  background: rgba(189,147,249,.38);
  -webkit-text-fill-color: transparent;
}
.editorLines {
  z-index: 3;
}
@media(max-width:1200px){
  .brand{min-width:280px}
  .brandCopy small{display:none}
}


/* v7.1 - Menu vivo, WCAG e editor colorido */
.rail {
  gap: 10px;
  padding: 14px 8px;
}
.railBtn {
  opacity: 1 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .22);
}
.railBtn[data-panel="pagesPanel"] {
  background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
}
.railBtn[data-panel="themePanel"] {
  background: linear-gradient(135deg, #f472b6, #db2777) !important;
}
.railBtn[data-panel="layoutPanel"] {
  background: linear-gradient(135deg, #818cf8, #4f46e5) !important;
}
.railBtn[data-panel="seoPanel"] {
  background: linear-gradient(135deg, #facc15, #f97316) !important;
  color: #111827 !important;
}
.railBtn[data-panel="basicPagesPanel"] {
  background: linear-gradient(135deg, #34d399, #059669) !important;
}
.railBtn[data-panel="componentsPanel"] {
  background: linear-gradient(135deg, #22d3ee, #0891b2) !important;
}
.railBtn[data-panel="accessibilityPanel"] {
  background: linear-gradient(135deg, #a3e635, #16a34a) !important;
  color: #0f172a !important;
}
.railBtn[data-panel="tagsPanel"] {
  background: linear-gradient(135deg, #c084fc, #7c3aed) !important;
}
.railBtn:hover,
.railBtn.active {
  transform: translateY(-1px);
  filter: saturate(1.25) brightness(1.08);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.36), 0 14px 26px rgba(15, 23, 42, .28) !important;
}
.railBtn small {
  font-weight: 900;
}
.wcagSectionTitle {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #475569;
  margin: 14px 0 10px;
}
.wcagGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.wcagTile {
  min-height: 112px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 12px 8px;
  text-align: center;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.wcagTile:hover {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .14), 0 12px 26px rgba(15, 23, 42, .10);
}
.wcagTile.active {
  border-color: #0ea5e9;
  box-shadow: inset 0 0 0 2px #0ea5e9, 0 0 0 3px rgba(14, 165, 233, .14);
}
.wcagIcon {
  font-size: 30px;
  line-height: 1;
  color: #000;
}
.wcagLabel {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
}
.previewTitleTab {
  min-height: 34px;
  display: flex !important;
  align-items: center;
  max-width: 380px;
  margin: 10px 0 0 16px;
  padding: 0 16px;
  border: 1px solid var(--ui-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser .bar {
  border-top: 1px solid var(--ui-line);
}
.codeHighlight {
  color: var(--dracula-fg) !important;
}
.codeHighlight .tk-tag { color: var(--dracula-pink) !important; }
.codeHighlight .tk-attr { color: var(--dracula-green) !important; }
.codeHighlight .tk-val { color: var(--dracula-yellow) !important; }
.codeHighlight .tk-text { color: var(--dracula-fg) !important; }
.codeHighlight .tk-comment { color: var(--dracula-comment) !important; }
.codeHighlight .tk-key { color: var(--dracula-pink) !important; }
.codeHighlight .tk-fn { color: var(--dracula-green) !important; }
.codeHighlight .tk-prop { color: var(--dracula-cyan) !important; }
.codeHighlight .tk-sel { color: var(--dracula-green) !important; }
.plainCodeEditor {
  background: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: #f8f8f2 !important;
}
.accessType {
  background: #dcfce7;
  color: #166534;
}


/* Footer com redes oficiais do desenvolvedor */
.appFooter {
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 12px;
}
.appFooter nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.appFooter a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}
.appFooter a:hover,
.appFooter a:focus-visible {
  color: #7c3aed;
  text-decoration: underline;
}


/* v7.2 - Ajuste do menu lateral esquerdo, menor efeito visual */
.rail {
  background: #111c2e !important;
  gap: 12px !important;
  padding: 18px 8px !important;
}
.railBtn {
  width: 58px !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  transition: background .12s ease, outline .12s ease !important;
}
.railBtn:hover,
.railBtn.active {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  outline: 2px solid rgba(255,255,255,.42) !important;
  outline-offset: 2px !important;
}
.railBtn[data-panel="pagesPanel"] {
  background: #2563eb !important;
  color: #fff !important;
}
.railBtn[data-panel="themePanel"] {
  background: #db2777 !important;
  color: #fff !important;
}
.railBtn[data-panel="layoutPanel"] {
  background: #4f46e5 !important;
  color: #fff !important;
}
.railBtn[data-panel="seoPanel"] {
  background: #f59e0b !important;
  color: #111827 !important;
}
.railBtn[data-panel="basicPagesPanel"] {
  background: #059669 !important;
  color: #fff !important;
}
.railBtn[data-panel="componentsPanel"] {
  background: #0891b2 !important;
  color: #fff !important;
}
.railBtn[data-panel="accessibilityPanel"] {
  background: #16a34a !important;
  color: #fff !important;
}
.railBtn[data-panel="tagsPanel"] {
  background: #7c3aed !important;
  color: #fff !important;
}
.railBtn small {
  font-weight: 900 !important;
  text-shadow: none !important;
}


/* v7.3 - Ferramentas WCAG adicionadas ao menu do preview */
.wcagTile {
  min-height: 126px;
}
.wcagTile.active {
  border-color: #16a34a !important;
  box-shadow: inset 0 0 0 2px #16a34a, 0 0 0 3px rgba(22, 163, 74, .14) !important;
}
.wcagState {
  display: inline-block;
  margin-top: 2px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  color: #475569;
  background: #f1f5f9;
}
.wcagTile.active .wcagState {
  background: #dcfce7;
  color: #166534;
}


/* v7.5 - Explorer com img/content, upload e download destacado */
.explorerActions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.explorerActions #exportBtn,
.downloadProjectBtn {
  width: auto !important;
  min-width: 110px;
  padding: 0 10px !important;
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #fff !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .28) !important;
}
.explorerActions #exportBtn:hover,
.downloadProjectBtn:hover {
  filter: brightness(1.08);
}
.fileTreeRow.folderRow {
  cursor: pointer;
}
.fileTreeRow.assetRow .name {
  font-size: 12px;
}
.fileTreeRow.emptyFolder {
  color: #94a3b8;
  font-style: italic;
}
.uploadBlock {
  margin-top: 14px;
}
.uploadBlock h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #0f172a;
}
.uploadBlock p {
  margin: 0 0 8px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.uploadZone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 96px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.uploadZone strong {
  font-size: 13px;
}
.uploadZone span {
  font-size: 11px;
  color: #64748b;
}
.uploadZone input {
  display: none;
}
.uploadZone.dragActive,
.uploadZone:hover,
.uploadZone:focus-visible {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
  outline: none;
}
.assetMeta {
  color: #64748b;
  font-size: 10px;
  margin-left: 4px;
}
.fileTreeRow .actions button.assetRemove {
  color: #b91c1c;
}


/* v7.6 - Responsividade completa e operação mobile */
@media (max-width: 1100px) {
  body {
    overflow: hidden;
  }

  .appbar {
    height: auto;
    min-height: 70px;
    padding: 10px 12px;
    flex-wrap: wrap;
    align-content: center;
  }

  .brand {
    min-width: 0 !important;
    flex: 1 1 260px;
  }

  .brandCopy small {
    display: block !important;
    max-width: 68vw;
    white-space: normal;
  }

  .topStatus {
    display: flex !important;
    flex-wrap: wrap;
    margin-left: 0;
    width: 100%;
    gap: 6px;
  }

  .topStatus span {
    font-size: 10px;
    padding: 5px 8px;
  }

  .app {
    height: calc(100vh - 92px);
    grid-template-columns: 1fr;
    padding-bottom: 72px;
  }

  .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 26px;
    top: auto;
    width: 100%;
    height: 66px;
    z-index: 80;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 8px !important;
    gap: 8px !important;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .railBtn {
    flex: 0 0 64px;
    width: 64px !important;
    min-height: 50px !important;
    padding: 6px 4px !important;
  }

  .railBtn small {
    font-size: 9px;
  }

  .leftPanel {
    position: fixed;
    left: 0 !important;
    right: auto;
    top: 92px;
    bottom: 92px;
    width: min(92vw, 390px);
    transform: translateX(-110%);
    border-radius: 0 18px 18px 0;
    z-index: 90;
  }

  .app.left-open .leftPanel {
    transform: translateX(0);
  }

  .workspace {
    grid-column: 1;
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(420px, auto);
    margin-right: 0 !important;
    padding-bottom: 32px;
    overflow-y: auto;
    height: 100%;
  }

  .builderPane,
  .previewPane {
    display: flex !important;
    min-height: 520px;
    padding: 10px;
  }

  .splitter {
    display: none !important;
  }

  .canvas,
  .hierarchyTree,
  .browser {
    min-height: 420px;
  }

  .paneHead {
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .structureTabs,
  .devices {
    width: 100%;
    overflow-x: auto;
  }

  .structureTab,
  .device {
    flex: 1 0 auto;
  }

  .tagGrid {
    grid-template-columns: 1fr;
  }

  .wcagGrid {
    grid-template-columns: 1fr 1fr;
  }

  .rightRail {
    display: flex !important;
    position: fixed;
    right: 0;
    top: 92px;
    bottom: 92px;
    width: 56px;
    padding: 8px 6px;
    z-index: 85;
    gap: 8px;
  }

  .rightIcon {
    width: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .rightPanel {
    position: fixed;
    right: 56px;
    top: 92px;
    bottom: 92px;
    width: calc(100vw - 56px) !important;
    max-width: none;
    transform: translateX(calc(100% + 56px));
    z-index: 84;
  }

  .app.right-open .rightPanel {
    transform: translateX(0);
  }

  .rightResize {
    display: none;
  }

  .codeToolbar {
    height: auto;
    min-height: 42px;
    flex-wrap: wrap;
    padding: 8px;
  }

  .saveCodeBtn {
    width: 100%;
  }

  .codeEditorWrap {
    height: calc(100% - 70px);
  }

  .appFooter {
    left: 0;
    right: 0;
    height: 26px;
    bottom: 0;
    z-index: 100;
    font-size: 10px;
    overflow: hidden;
  }

  .appFooter nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .appbar {
    min-height: 94px;
  }

  .app {
    height: calc(100vh - 94px);
  }

  .leftPanel {
    top: 94px;
    bottom: 92px;
    width: calc(100vw - 42px);
  }

  .rightRail,
  .rightPanel {
    top: 94px;
    bottom: 92px;
  }

  .builderPane,
  .previewPane {
    min-height: 560px;
  }

  .deviceStage {
    padding: 8px;
  }

  .deviceStage.tablet #previewFrame {
    width: 768px;
    height: 1024px;
    transform: scale(.48);
    transform-origin: top center;
  }

  .deviceStage.mobile #previewFrame {
    width: 393px;
    height: 852px;
    transform: scale(.72);
    transform-origin: top center;
  }

  .fileExplorer {
    max-height: 260px;
  }

  .uploadZone {
    min-height: 84px;
  }

  .nodeActions button {
    width: 32px;
    height: 32px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .previewTitleTab {
    max-width: calc(100vw - 70px);
  }
}

@media (pointer: coarse) {
  button,
  .tagCard,
  .moduleCard,
  .templateCard,
  .themeCard,
  .wcagTile,
  .fileTreeRow {
    touch-action: manipulation;
  }

  .tagCard,
  .moduleCard,
  .templateCard,
  .themeCard {
    min-height: 76px;
  }

  .nodeActions button,
  .rightIcon,
  .railBtn {
    touch-action: manipulation;
  }
}


/* v8.0 - Aula guiada, pontuação, desafios e diagnóstico educacional */
.railBtn[data-panel="guidedPanel"] {
  background: #0ea5e9 !important;
  color: #fff !important;
}
.guidedProgress {
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.guidedProgress strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #0f172a;
}
.scoreBar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.scoreBar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  transition: width .2s ease;
}
.guidedProgress small {
  color: #64748b;
  font-weight: 800;
}
.lessonCard,
.challengeCard,
.scoreCard {
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.lessonCard strong,
.challengeCard strong,
.scoreCard strong {
  color: #0f172a;
}
.lessonCard small,
.challengeCard small,
.scoreCard small {
  color: #64748b;
  line-height: 1.45;
}
.lessonCard button,
.challengeCard button,
.scoreCard button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #7c3aed;
  color: #fff;
  font-weight: 900;
}
.challengeCard button {
  background: #0f766e;
}
.scoreGrid {
  display: grid;
  gap: 10px;
}
.scoreItem {
  border: 1px solid #e2e8f0;
  border-left: 6px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.scoreItem.ok {
  border-left-color: #22c55e;
  background: #f0fdf4;
}
.scoreItem.warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.scoreItem strong {
  display: block;
  font-size: 13px;
}
.scoreItem p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}
.scoreTotal {
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  margin-bottom: 12px;
}
.scoreTotal strong {
  font-size: 24px;
}
.scoreTotal span {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
}


/* v8.1 - Performance, boas práticas e experiência pedagógica */
.app-loading * {
  transition: none !important;
}
.quickHelpBtn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(250, 204, 21, .28);
}
.quickStartModal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .52);
  padding: 18px;
}
.quickStartModal[hidden] {
  display: none;
}
.quickStartCard {
  width: min(640px, 96vw);
  max-height: min(760px, 90vh);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .38);
  padding: 18px;
}
.quickStartCard header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.quickStartCard h2 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}
.quickStartCard header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 22px;
  font-weight: 900;
}
.quickStartCard ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  color: #334155;
  line-height: 1.45;
}
.quickStartCard p {
  color: #475569;
  line-height: 1.45;
}
.startGuidedLesson {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #7c3aed;
  color: #fff;
  padding: 12px;
  font-weight: 900;
}
.panel,
.canvas,
.hierarchyTree,
.browser,
.fileExplorer,
.codeEditorWrap,
.inspectorContent {
  contain: content;
}
.node,
.tagCard,
.moduleCard,
.templateCard,
.themeCard,
.wcagTile {
  will-change: auto;
}
.saveStateIndicator {
  position: fixed;
  right: 88px;
  bottom: 34px;
  z-index: 2500;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .14s ease, transform .14s ease;
}
.saveStateIndicator.visible {
  opacity: 1;
  transform: translateY(0);
}
.lessonCard button:focus-visible,
.challengeCard button:focus-visible,
.saveCodeBtn:focus-visible,
.startGuidedLesson:focus-visible,
.quickHelpBtn:focus-visible,
.wcagTile:focus-visible,
.railBtn:focus-visible,
.rightIcon:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 640px) {
  .quickHelpBtn {
    margin-left: 0;
  }
  .quickStartCard {
    border-radius: 16px;
    padding: 14px;
  }
}


/* v8.3 - IndexedDB, importação, biblioteca, preview e onboarding */
.importProjectBtn {
  width: auto !important;
  min-width: 98px;
  padding: 0 10px !important;
  background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
  color: #fff !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22) !important;
}
.assetLibraryBlock {
  margin-top: 14px;
}
.assetLibraryBlock h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #0f172a;
}
.assetLibraryBlock p {
  margin: 0 0 8px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.assetLibrary {
  display: grid;
  gap: 8px;
}
.assetLibraryItem {
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 7px;
}
.assetLibraryItem img {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}
.assetLibraryItem strong {
  font-size: 12px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.assetLibraryActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.assetLibraryActions button {
  border: 0;
  border-radius: 8px;
  padding: 7px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 11px;
}
.assetLibraryActions button.primary {
  background: #7c3aed;
  color: #fff;
}
.previewSizeControls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #64748b;
}
.previewSizeControls label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.previewSizeControls input {
  width: 180px;
}
.onboardingChecklist {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.onboardingStep {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}
.onboardingStep strong {
  color: #0f172a;
}
.onboardingStep span {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}
.onboardingStep.ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.onboardingStep.ok strong::before {
  content: "✓ ";
  color: #16a34a;
}
.deviceStage.landscape.tablet #previewFrame {
  width: 1024px !important;
  height: 768px !important;
}
.deviceStage.landscape.mobile #previewFrame {
  width: 852px !important;
  height: 393px !important;
}
@media(max-width: 640px){
  .assetLibraryActions {
    grid-template-columns: 1fr;
  }
  .previewSizeControls {
    flex-wrap: wrap;
  }
  .previewSizeControls input {
    width: 120px;
  }
}


/* v8.4 - ES Modules */
html[data-app-version="v8.4"] .brand-icon {
  box-shadow: 0 0 0 3px rgba(80, 250, 123, .18);
}


/* v8.5 - facades modulares */
html[data-app-version="v8.5"] .brand-icon {
  box-shadow: 0 0 0 3px rgba(139, 233, 253, .22);
}


/* v8.6 - serviços extraídos */
html[data-app-version="v8.6"] .brand-icon {
  box-shadow: 0 0 0 3px rgba(189, 147, 249, .25);
}


/* v8.7 - runtime conectado aos serviços */
html[data-app-version="v8.7"] .brand-icon {
  box-shadow: 0 0 0 3px rgba(80, 250, 123, .28);
}


/* v8.8 - matriz semântica, referências, atributos globais e headings */
.railBtn[data-panel="referencesPanel"] {
  background: #0f766e !important;
  color: #fff !important;
}
.globalAttributesBox {
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.globalAttributesBox h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #0f172a;
}
.globalAttrGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.globalAttrPill {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}
.tagDepth {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  background: #f1f5f9;
  color: #475569;
}
.tagDepth.contextual {
  background: #fef3c7;
  color: #92400e;
}
.tagDepth.config {
  background: #e0e7ff;
  color: #3730a3;
}
.tagCard.blockedTag {
  opacity: .68;
}
.semanticHint {
  border-left: 4px solid #7c3aed;
  background: #f5f3ff;
  color: #4c1d95;
  border-radius: 10px;
  padding: 8px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.35;
}
.referenceList {
  display: grid;
  gap: 10px;
}
.referenceCard {
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 7px;
}
.referenceCard strong {
  color: #0f172a;
}
.referenceCard small {
  color: #64748b;
  line-height: 1.4;
}
.referenceCard a {
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
}
.referenceCard a:hover,
.referenceCard a:focus-visible {
  text-decoration: underline;
}
.headingTree {
  display: grid;
  gap: 8px;
}
.headingItem {
  border: 1px solid #e2e8f0;
  border-left: 6px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  padding: 9px;
  font-size: 12px;
}
.headingItem.ok {
  border-left-color: #22c55e;
  background: #f0fdf4;
}
.headingItem.warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.headingItem strong {
  display: block;
  color: #0f172a;
}
.headingItem span {
  color: #64748b;
}
.auditRule {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  font-weight: 900;
}
.compatMatrixNote {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.4;
}


/* v8.9 - validação normativa, feedback pedagógico e exportação assistida */
.exportChecklistModal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .58);
  padding: 18px;
}
.exportChecklistModal[hidden] {
  display: none;
}
.exportChecklistCard {
  width: min(760px, 96vw);
  max-height: min(820px, 92vh);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, .42);
  padding: 18px;
}
.exportChecklistCard header,
.exportChecklistCard footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.exportChecklistCard header {
  margin-bottom: 12px;
}
.exportChecklistCard h2 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}
.exportChecklistCard header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 22px;
  font-weight: 900;
}
.exportChecklistCard footer {
  margin-top: 14px;
}
.primaryAction,
.secondaryAction {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
}
.primaryAction {
  background: #16a34a;
  color: #fff;
}
.secondaryAction {
  background: #f59e0b;
  color: #111827;
}
.exportChecklistGrid {
  display: grid;
  gap: 10px;
}
.exportChecklistItem {
  border: 1px solid #e2e8f0;
  border-left: 6px solid #cbd5e1;
  border-radius: 14px;
  padding: 11px;
  background: #fff;
}
.exportChecklistItem.ok {
  border-left-color: #22c55e;
  background: #f0fdf4;
}
.exportChecklistItem.warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.exportChecklistItem.error {
  border-left-color: #ef4444;
  background: #fff7f7;
}
.exportChecklistItem strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}
.exportChecklistItem span {
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}
.pedagogicalBlockReason {
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.45;
}
.exampleBox {
  display: grid;
  gap: 10px;
}
.exampleCard {
  border: 1px solid var(--ui-line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}
.exampleCard strong {
  color: #0f172a;
}
.exampleCard pre {
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  background: #282a36;
  color: #f8f8f2;
  overflow: auto;
  font-size: 11px;
}
.exampleCard .wrong {
  border-left: 5px solid #ef4444;
}
.exampleCard .right {
  border-left: 5px solid #22c55e;
}
.wcagCriterion {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 10px;
  font-weight: 900;
}


/* v9.0 - simplificação do preview e destaque de ações */
.device.iconOnly{
  min-width:52px;
  padding-inline:0;
  font-size:20px;
  font-weight:900;
}
#resetCurrentPageBtn{
  color:#b91c1c;
}
#resetCurrentPageBtn:hover,
#resetCurrentPageBtn:focus-visible{
  border-color:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.14);
}
.railBtn[data-panel="referencesPanel"]{
  background:#0f766e !important;
  color:#fff !important;
}


/* v9.5 - correção de drag, seleção e árvore de hierarquia */
.hierarchyTreeRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 8px 8px 10px;
}
.treeLabelBtn{
  flex:1;
  border:0;
  background:transparent;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.treeActions{
  display:flex;
  align-items:center;
  gap:4px;
}
.treeActions button{
  width:28px;
  height:28px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#0f172a;
  font-weight:900;
  cursor:pointer;
}
.treeActions button:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.node.selected{
  box-shadow:0 0 0 4px rgba(124,58,237,.18), 0 16px 34px rgba(15,23,42,.08);
}
.node .nodeHead.dropTarget,
.children.dragOver{
  outline:3px dashed #7c3aed;
  outline-offset:4px;
}


/* v9.6 - hierarquia com indentação e promoção */
.treeActions{
  grid-template-columns: repeat(5, 28px);
}
.treeActions button[title*="subir um nível"],
.treeActions button[title*="TAG anterior"]{
  background:#eef2ff;
  color:#4338ca;
}
.hierarchyTreeRow[draggable="true"],
.treeLabelBtn[draggable="true"]{
  cursor:grab;
}
.treeLabelBtn:active{
  cursor:grabbing;
}

/* v9.7 */
.appModal{position:fixed;inset:0;z-index:4200;display:grid;place-items:center;background:rgba(15,23,42,.58);padding:18px}.appModal[hidden]{display:none}.appModalCard{width:min(680px,96vw);max-height:min(780px,92vh);overflow:auto;background:#fff;border-radius:22px;box-shadow:0 26px 80px rgba(15,23,42,.42);padding:18px}.appModalCard header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.appModalCard h2{margin:0;font-size:20px;color:#0f172a}.appModalCard header button{width:36px;height:36px;border:0;border-radius:12px;background:#f3e8ff;color:#7c3aed;font-size:24px;font-weight:900}.appModalBody{color:#475569;line-height:1.5;font-size:14px}.appModalBody ul{margin:10px 0 0 18px;padding:0}.appModalActions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.appModalActions button{border:0;border-radius:12px;padding:10px 14px;font-weight:900}.modalSemanticError{border-left:6px solid #ef4444;background:#fff7f7;padding:12px;border-radius:14px;color:#7f1d1d;white-space:pre-wrap}.referenceCard a{overflow-wrap:anywhere;word-break:break-word;line-height:1.25}.domOrgChart{padding:18px;overflow:auto;height:100%}.domBranch{display:grid;justify-items:center}.domNodeBox{display:inline-grid;gap:6px;min-width:170px;max-width:260px;padding:10px 12px;border-radius:14px;border:2px solid #cbd5e1;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.08);text-align:center}.domNodeBox strong{color:#0f172a;font-size:13px}.domNodeBox small{color:#475569;font-size:11px;overflow-wrap:anywhere}.domNodeControls{display:flex;justify-content:center;gap:6px}.domNodeControls button{width:26px;height:26px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;font-weight:900}.domChildren{display:flex;gap:22px;justify-content:center;align-items:flex-start;margin-top:20px;padding-top:18px;border-top:2px solid #dbeafe}.semanticBadge{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;margin-left:8px;font-size:12px;font-weight:900}.semanticBadge.error{background:#fee2e2;color:#b91c1c}.semanticBadge.warn{background:#fef3c7;color:#92400e}.nodeHead.dropInto{outline:3px dashed #7c3aed;outline-offset:4px}.field select{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px;background:#fff;font:inherit}


/* v9.8 - modo Print e correções de estabilidade */
.deviceStage.print{
  background:#e5e7eb;
  padding:28px;
  overflow:auto;
}
.deviceStage.print #previewFrame{
  width:794px !important;
  min-height:1123px !important;
  height:1123px !important;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.22);
  border:1px solid #cbd5e1;
}
.deviceStage.print::before{
  content:"Folha A4 simulada";
  display:block;
  position:absolute;
  margin-top:-24px;
  color:#475569;
  font-size:12px;
  font-weight:900;
}
.printPageHint{
  font-size:11px;
  color:#64748b;
}


/* v10.0 - estabilização final JS, modais e aulas */
.appModal{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  background:rgba(15,23,42,.58);
  padding:18px;
}
.appModal[hidden]{display:none}
.appModalCard{
  width:min(680px,96vw);
  max-height:min(780px,92vh);
  overflow:auto;
  background:#fff;
  border-radius:22px;
  box-shadow:0 26px 80px rgba(15,23,42,.42);
  padding:18px;
}
.appModalCard header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.appModalCard h2{margin:0;font-size:20px;color:#0f172a}
.appModalCard header button{
  width:36px;height:36px;border:0;border-radius:12px;background:#f3e8ff;color:#7c3aed;font-size:24px;font-weight:900;
}
.appModalBody{color:#475569;line-height:1.5;font-size:14px}
.appModalActions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.modalSemanticError{
  border-left:6px solid #ef4444;
  background:#fff7f7;
  padding:12px;
  border-radius:14px;
  color:#7f1d1d;
  white-space:pre-wrap;
}
.lessonFallback{
  border:1px solid #dbeafe;
  background:#eff6ff;
  border-radius:16px;
  padding:14px;
  color:#1e3a8a;
  line-height:1.45;
}
.lessonFallback h3{margin:0 0 8px}
.lessonFallback ol{margin:8px 0 0 20px;padding:0}
.deviceStage.print{
  background:#e5e7eb;
  padding:28px;
  overflow:auto;
}
.deviceStage.print #previewFrame{
  width:794px !important;
  min-height:1123px !important;
  height:1123px !important;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.22);
  border:1px solid #cbd5e1;
}
.referenceCard a{overflow-wrap:anywhere;word-break:break-word}


/* v10.1 - estabilização estrutural */
.runtimeHealthBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:5px 8px;
  font-size:11px;
  font-weight:900;
  background:#ecfdf5;
  color:#047857;
}
.lessonFallback{
  border:1px solid #dbeafe;
  background:#eff6ff;
  border-radius:16px;
  padding:14px;
  color:#1e3a8a;
  line-height:1.45;
}
.lessonFallback h3{margin:0 0 8px}
.lessonFallback ol{margin:8px 0 0 20px;padding:0}


/* v10.3 - migalha de pão da estrutura e do código */
.tagBreadcrumb,
.codeBreadcrumb{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-height:34px;
  padding:7px 10px;
  margin-top:8px;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#f8fbff;
  color:#475569;
  font-size:12px;
  line-height:1.25;
}
.codeBreadcrumb{
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
  background:#1f2230;
  border-color:#343746;
  color:#bdc4d4;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}
.tagBreadcrumb button,
.codeBreadcrumb button{
  border:0;
  border-radius:9px;
  padding:5px 8px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  background:#e0e7ff;
  color:#3730a3;
}
.codeBreadcrumb button{
  background:#343746;
  color:#f8f8f2;
}
.tagBreadcrumb button:hover,
.tagBreadcrumb button:focus-visible{
  outline:2px solid #7c3aed;
  outline-offset:2px;
}
.codeBreadcrumb button:hover,
.codeBreadcrumb button:focus-visible{
  outline:2px solid #bd93f9;
  outline-offset:2px;
}
.tagBreadcrumb .crumbCurrent,
.codeBreadcrumb .crumbCurrent{
  background:#7c3aed;
  color:#fff;
}
.codeBreadcrumb .crumbCurrent{
  background:#bd93f9;
  color:#1f2230;
}
.tagBreadcrumb .crumbSeparator,
.codeBreadcrumb .crumbSeparator{
  color:#94a3b8;
  font-weight:900;
}
.codeBreadcrumb .crumbSeparator{
  color:#6272a4;
}
.tagBreadcrumb .emptyCrumb,
.codeBreadcrumb .emptyCrumb{
  color:#64748b;
  font-style:italic;
}


/* v10.4 - correções de preview, print, breadcrumbs, organograma e inspector */
.tagBreadcrumb,
.codeBreadcrumb{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-height:34px;
  padding:7px 10px;
  margin-top:8px;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#f8fbff;
  color:#475569;
  font-size:12px;
  line-height:1.25;
}
.codeBreadcrumb{
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
  background:#1f2230;
  border-color:#343746;
  color:#bdc4d4;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}
.tagBreadcrumb button,
.codeBreadcrumb button{
  border:0;
  border-radius:9px;
  padding:5px 8px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  background:#e0e7ff;
  color:#3730a3;
}
.codeBreadcrumb button{background:#343746;color:#f8f8f2}
.tagBreadcrumb .crumbCurrent{background:#7c3aed;color:#fff}
.codeBreadcrumb .crumbCurrent{background:#bd93f9;color:#1f2230}
.crumbSeparator{color:#94a3b8;font-weight:900}
.codeBreadcrumb .crumbSeparator{color:#6272a4}
.emptyCrumb{color:#64748b;font-style:italic}

.inspectorTabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  overflow-x:visible !important;
  white-space:normal !important;
}
.inspectorTabs .inspectorTab{
  flex:0 1 auto;
}

.domOrgChart{
  padding:18px;
  overflow:auto;
  height:100%;
}
.domBranch{display:grid;justify-items:center}
.domNodeBox{
  display:inline-grid;
  gap:6px;
  min-width:170px;
  max-width:260px;
  padding:10px 12px;
  border-radius:14px;
  border:2px solid #cbd5e1;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  text-align:center;
}
.domNodeBox strong{color:#0f172a;font-size:13px}
.domNodeBox small{color:#475569;font-size:11px;overflow-wrap:anywhere}
.domNodeControls{display:flex;justify-content:center;gap:6px}
.domNodeControls button{
  width:26px;height:26px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;font-weight:900;
}
.domChildren{
  display:flex;
  gap:22px;
  justify-content:center;
  align-items:flex-start;
  margin-top:20px;
  padding-top:18px;
  border-top:2px solid #dbeafe;
}
.deviceStage.print{
  background:#e5e7eb;
  padding:28px;
  overflow:auto;
}
.deviceStage.print .printPreviewPages{
  display:grid;
  gap:28px;
  justify-content:center;
}
.deviceStage.print .printPage{
  width:794px;
  min-height:1123px;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.22);
  border:1px solid #cbd5e1;
  padding:56px;
  color:#111827;
  overflow:hidden;
}
.deviceStage.print #previewFrame{
  display:none;
}
.printPage *{
  max-width:100%;
  box-sizing:border-box;
}
.printPage section,
.printPage article,
.printPage header,
.printPage main,
.printPage footer,
.printPage figure,
.printPage table{
  break-inside:avoid;
  page-break-inside:avoid;
}
@media print{
  .appShell,.leftRail,.rightRail,.appFooter,.paneHead,.bar,.previewTitleTab{display:none!important}
  .printPage{box-shadow:none!important;border:0!important;width:auto!important;min-height:auto!important;padding:0!important}
}


/* v10.5 - estabilidade visual e funcional */
.tagBreadcrumb,
.codeBreadcrumb{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-height:34px;
  padding:7px 10px;
  margin-top:8px;
  border:1px solid #dbeafe;
  border-radius:12px;
  background:#f8fbff;
  color:#475569;
  font-size:12px;
  line-height:1.25;
}
.codeBreadcrumb{
  margin:0;
  border-radius:0;
  border-left:0;
  border-right:0;
  background:#1f2230;
  border-color:#343746;
  color:#bdc4d4;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}
.tagBreadcrumb button,.codeBreadcrumb button{
  border:0;
  border-radius:9px;
  padding:5px 8px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  background:#e0e7ff;
  color:#3730a3;
}
.codeBreadcrumb button{background:#343746;color:#f8f8f2}
.tagBreadcrumb .crumbCurrent{background:#7c3aed;color:#fff}
.codeBreadcrumb .crumbCurrent{background:#bd93f9;color:#1f2230}
.crumbSeparator{color:#94a3b8;font-weight:900}
.codeBreadcrumb .crumbSeparator{color:#6272a4}
.emptyCrumb{color:#64748b;font-style:italic}
.inspectorTabs{display:flex;flex-wrap:wrap;gap:8px;overflow-x:visible!important;white-space:normal!important}
.inspectorTabs .inspectorTab{flex:0 1 auto}
.domOrgChart{padding:18px;overflow:auto;height:100%}
.domBranch{display:grid;justify-items:center}
.domNodeBox{
  display:inline-grid;
  gap:6px;
  min-width:170px;
  max-width:260px;
  padding:10px 12px;
  border-radius:14px;
  border:2px solid #cbd5e1;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  text-align:center;
  cursor:pointer;
}
.domNodeBox strong{color:#0f172a;font-size:13px}
.domNodeBox small{color:#475569;font-size:11px;overflow-wrap:anywhere}
.domNodeControls{display:flex;justify-content:center;gap:6px}
.domNodeControls button{width:26px;height:26px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;font-weight:900}
.domChildren{display:flex;gap:22px;justify-content:center;align-items:flex-start;margin-top:20px;padding-top:18px;border-top:2px solid #dbeafe}
.deviceStage.print{background:#e5e7eb;padding:28px;overflow:auto}
.deviceStage.print .printPreviewPages{display:grid;gap:28px;justify-content:center}
.deviceStage.print .printPage{
  width:794px;
  min-height:1123px;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.22);
  border:1px solid #cbd5e1;
  padding:56px;
  color:#111827;
  overflow:hidden;
}
.deviceStage.print #previewFrame{display:none}
.printPage *{max-width:100%;box-sizing:border-box}
.printPage section,.printPage article,.printPage header,.printPage main,.printPage footer,.printPage figure,.printPage table{break-inside:avoid;page-break-inside:avoid}
.carousel-slide[hidden]{display:none!important}
@media print{
  .appShell,.leftRail,.rightRail,.appFooter,.paneHead,.bar,.previewTitleTab{display:none!important}
  .printPage{box-shadow:none!important;border:0!important;width:auto!important;min-height:auto!important;padding:0!important}
}


/* v2.45.6 - ajustes solicitados: organograma, print, breadcrumb e puzzle */
.tagBreadcrumb{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:4px 0 !important;
  margin-top:6px !important;
}
.tagBreadcrumb button{
  box-shadow:none;
}
.domOrgChart{
  padding:12px;
  overflow:auto;
  height:100%;
  transform-origin:top left;
}
.domOrgChart .domOrgRoot{
  display:inline-grid;
  gap:18px;
  transform:scale(.82);
  transform-origin:top left;
  padding:10px 30px 30px 10px;
}
.domBranch{
  display:grid;
  justify-items:center;
  align-items:start;
}
.domChildren{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:flex-start;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #c7d2fe;
}
.domNodeBox{
  min-width:116px !important;
  max-width:160px !important;
  padding:8px 10px !important;
  border-radius:12px !important;
  border:1px solid #cbd5e1 !important;
  background:#fff;
  box-shadow:0 6px 14px rgba(15,23,42,.08) !important;
  text-align:center;
  cursor:pointer;
  position:relative;
}
.domNodeBox strong{
  font-size:11px !important;
  line-height:1.15;
}
.domNodeBox small{
  display:none !important;
}
.domNodeBox:hover::after,
.domNodeBox:focus-within::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  top:calc(100% + 8px);
  transform:translateX(-50%);
  z-index:40;
  width:max-content;
  max-width:260px;
  white-space:normal;
  text-align:left;
  background:#0f172a;
  color:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-size:11px;
  line-height:1.35;
  box-shadow:0 12px 30px rgba(15,23,42,.28);
}
.domNodeControls button{
  width:22px !important;
  height:22px !important;
  border-radius:7px !important;
  font-size:12px;
}
.nodeHead.dropInto,
.children.dragOver,
.node.dropInto{
  outline:3px dashed #7c3aed !important;
  outline-offset:4px;
  box-shadow:0 0 0 6px rgba(124,58,237,.12);
}
.deviceStage.print{
  background:#e5e7eb !important;
  padding:28px !important;
  overflow:auto !important;
}
.deviceStage.print #previewFrame{
  display:none !important;
}
.deviceStage.print .printPreviewPages{
  display:grid !important;
  gap:28px;
  justify-content:center;
}
.deviceStage.print .printPage{
  width:794px;
  min-height:1123px;
  background:#fff;
  color:#111827;
  padding:56px;
  box-shadow:0 18px 50px rgba(15,23,42,.22);
  border:1px solid #cbd5e1;
  overflow:hidden;
}
.printPage header,
.printPage main,
.printPage section,
.printPage article,
.printPage aside,
.printPage footer,
.printPage figure,
.printPage table{
  break-inside:avoid;
  page-break-inside:avoid;
}
@media print{
  body{background:#fff!important}
  .appShell,.leftRail,.rightRail,.appFooter,.paneHead,.bar,.previewTitleTab{display:none!important}
  .printPreviewPages{display:block!important}
  .printPage{box-shadow:none!important;border:0!important;width:auto!important;min-height:auto!important;padding:0!important;page-break-after:always}
}


/* v2.46.1 - refinamento DOM, head editável e footer visível */
.appFooter{
  font-size:14px !important;
  font-weight:800 !important;
  min-height:34px !important;
  padding:8px 14px !important;
  color:#334155 !important;
  background:rgba(255,255,255,.96) !important;
  border-top:1px solid #cbd5e1 !important;
}
.appFooter a{
  font-size:14px !important;
  font-weight:900 !important;
  color:#2563eb !important;
}

.domOrgChart{
  padding:14px !important;
  background:linear-gradient(180deg,#f8fbff,#ffffff) !important;
}
.refinedDomRoot{
  display:inline-grid;
  gap:20px;
  transform:scale(.88);
  transform-origin:top left;
  padding:12px 40px 40px 12px;
}
.refinedDomNode{
  --dom-color:#7c3aed;
  min-width:132px !important;
  max-width:178px !important;
  padding:10px 12px 10px 16px !important;
  border:1px solid color-mix(in srgb, var(--dom-color) 40%, #cbd5e1) !important;
  border-top:4px solid var(--dom-color) !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--dom-color) 12%, #fff), #fff 60%) !important;
  box-shadow:0 8px 20px rgba(15,23,42,.10) !important;
}
.domNodeAccent{
  position:absolute;
  left:8px;
  top:12px;
  bottom:12px;
  width:5px;
  border-radius:999px;
  background:var(--dom-color);
}
.refinedDomNode strong{
  color:#0f172a !important;
  font-size:12px !important;
  letter-spacing:.01em;
}
.domNodeKind{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:10px;
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.refinedDomNode:hover::after,
.refinedDomNode:focus-within::after{
  content:attr(data-tip);
  position:absolute;
  left:50%;
  top:calc(100% + 8px);
  transform:translateX(-50%);
  z-index:80;
  width:max-content;
  max-width:280px;
  white-space:normal;
  text-align:left;
  background:#0f172a;
  color:#fff;
  border:1px solid color-mix(in srgb, var(--dom-color) 60%, #fff);
  border-radius:12px;
  padding:9px 11px;
  font-size:11px;
  line-height:1.35;
  box-shadow:0 14px 32px rgba(15,23,42,.32);
}
.domChildren{
  border-top:2px solid #dbeafe !important;
}
.domChildren::before{
  content:"";
  position:absolute;
}
.node[data-tag="head"] .children,
.node[data-tag="body"] .children{
  min-height:76px;
}

/* v2.47.1 - head padrão, SEO editável, WCAG visível e unificação Layout */
.node[data-tag="head"]{border-color:#60a5fa !important}
.node[data-tag="head"]>.nodeHead{background:linear-gradient(90deg,#dbeafe,#eff6ff) !important}
.node[data-tag="meta"],.node[data-tag="title"],.node[data-tag="link"]{background:#eff6ff !important;border-color:#93c5fd !important}
.node[data-tag="meta"]>.nodeHead,.node[data-tag="title"]>.nodeHead,.node[data-tag="link"]>.nodeHead{background:#dbeafe !important}
.wcag-widget{position:fixed;right:18px;bottom:18px;z-index:40}


/* 2.48.0 - Modelos, layouts e preview interativo */
.linktree-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:40px 18px;
}
.linktree-card{
  width:min(520px,100%);
  display:grid;
  gap:14px;
  text-align:center;
}
.linktree-card a{
  display:block;
  padding:14px 16px;
  border-radius:16px;
  background:var(--primary,#7c3aed);
  color:#fff;
  text-decoration:none;
  font-weight:900;
}
.layout-with-aside{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(240px,1fr);
  gap:24px;
}
@media(max-width:800px){
  .layout-with-aside{grid-template-columns:1fr}
}
.wcag-widget{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  font-family:Arial,sans-serif;
}
.wcag-toggle{
  border:0;
  border-radius:999px;
  background:#7c3aed;
  color:#fff;
  padding:12px 14px;
  font-weight:900;
  box-shadow:0 12px 28px rgba(15,23,42,.25);
}
.wcag-tools{
  position:absolute;
  right:0;
  bottom:52px;
  display:grid;
  gap:8px;
  width:230px;
  background:#fff;
  color:#0f172a;
  border:1px solid #dbeafe;
  border-radius:16px;
  padding:12px;
  box-shadow:0 18px 48px rgba(15,23,42,.25);
}
.carousel-slide[hidden]{display:none!important}


/* 2.49.0 - correção de renderização de TAGs, WCAG e sinalizações */
.node.semanticInvalid,
.treeNode.semanticInvalid{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 4px rgba(239,68,68,.22), 0 0 0 8px rgba(239,68,68,.10) !important;
  animation: semanticPulse 1.05s ease-in-out infinite;
}
.node.changedNode,
.treeNode.changedNode{
  border-color:#22c55e !important;
  box-shadow:0 0 0 4px rgba(34,197,94,.22), 0 0 0 8px rgba(34,197,94,.10) !important;
  animation: changedPulse 1.2s ease-in-out 4;
}
@keyframes semanticPulse{
  0%,100%{filter:none}
  50%{filter:saturate(1.5) brightness(1.04)}
}
@keyframes changedPulse{
  0%,100%{filter:none}
  50%{filter:saturate(1.35) brightness(1.06)}
}
.semanticErrorBox{
  margin:8px 0;
  padding:10px 12px;
  border:1px solid #fecaca;
  border-left:5px solid #ef4444;
  border-radius:12px;
  background:#fff1f2;
  color:#991b1b;
  font-size:13px;
  font-weight:800;
}
.changedNoticeBox{
  margin:8px 0;
  padding:10px 12px;
  border:1px solid #bbf7d0;
  border-left:5px solid #22c55e;
  border-radius:12px;
  background:#f0fdf4;
  color:#166534;
  font-size:13px;
  font-weight:800;
}
.wcag-widget{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  font-family:Arial,sans-serif;
}
.wcag-toggle{
  border:0;
  border-radius:999px;
  background:#7c3aed;
  color:#fff;
  padding:12px 14px;
  font-weight:900;
  box-shadow:0 12px 28px rgba(15,23,42,.25);
}
.wcag-tools{
  position:absolute;
  right:0;
  bottom:52px;
  display:grid;
  gap:8px;
  width:230px;
  background:#fff;
  color:#0f172a;
  border:1px solid #dbeafe;
  border-radius:16px;
  padding:12px;
  box-shadow:0 18px 48px rgba(15,23,42,.25);
}
