* { box-sizing: border-box; }
body {
  margin: 0;
  overscroll-behavior-x: none;
}
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }
  .login-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
  }
  h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  label {
    font-size: 0.875rem;
    font-weight: 500;
  }
  input {
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
  }
  button {
    padding: 0.75rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
  }
  button:hover {
    background: #1d4ed8;
  }
  .message {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    color: #dc2626;
  }
.yrkit-tree {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 100svh;
  overflow: hidden;
  background: #252526;
  color: #cccccc;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  user-select: none;
}
.yrkit-tree-header {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* rodapé do explorador: o projeto aberto (gravado pelo "Open project" em
   BUILDS). Tom teal igual ao nó BUILDS — o projeto é filho dele, e a cor
   liga visualmente os dois */
.yrkit-tree-project {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid #1e1e1e;
  background: linear-gradient(90deg, #10302b, #252526 70%);
  color: #4ec9b0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.yrkit-tree-project-hidden {
  display: none;
}
/* "cubo de build": quadradinho com brilho, pulsando devagar para dar vida */
.yrkit-tree-project-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #4ec9b0;
  box-shadow: 0 0 8px #4ec9b0;
  animation: yrkit-project-pulse 2.4s ease-in-out infinite;
}
@keyframes yrkit-project-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.yrkit-tree-project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.yrkit-tree-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 0;
  overflow: auto;
}
.yrkit-tree-node {
  padding: 3px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.yrkit-tree-node:hover {
  background: #2a2d2e;
}
/* nó selecionado pela navegação por teclado */
.yrkit-tree-node.yrkit-tree-selected {
  background: #094771;
}
.yrkit-tree-node.yrkit-tree-selected .yrkit-tree-label {
  color: #ffffff;
}
/* o corpo da árvore recebe foco para captar as setas, sem anel visível */
.yrkit-tree-body:focus {
  outline: none;
}
.yrkit-tree-menu {
  position: fixed;
  z-index: 1000;
  min-width: 160px;
  padding: 4px 0;
  background: #3c3c3c;
  border: 1px solid #454545;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.yrkit-tree-menu-hidden {
  display: none;
}
.yrkit-tree-menu-item {
  display: block;
  width: 100%;
  padding: 6px 16px;
  background: none;
  border: none;
  color: #cccccc;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.yrkit-tree-menu-item:hover {
  background: #094771;
}
/* item que só se aplica a certos nós (ex: "Open project", dentro do BUILDS) */
.yrkit-tree-menu-item-hidden {
  display: none;
}
.yrkit-tree-path-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 4px 6px;
  background: #3c3c3c;
  border: 1px solid #094771;
  border-radius: 3px;
  color: #cccccc;
  font-size: 12px;
  outline: none;
}
.yrkit-tree-path-input::placeholder {
  color: #808080;
}
/* barra de scroll do corpo da árvore (webkit/chromium) */
.yrkit-tree-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.yrkit-tree-body::-webkit-scrollbar-track {
  background: transparent;
}
.yrkit-tree-body::-webkit-scrollbar-thumb {
  background: #424242;
  border: 2px solid transparent; /* recuo: afina a "pílula" */
  border-radius: 6px;
  background-clip: content-box;
}
.yrkit-tree-body::-webkit-scrollbar-thumb:hover {
  background: #565656;
  background-clip: content-box;
}
/* Firefox não entende ::-webkit-scrollbar */
@supports not selector(::-webkit-scrollbar) {
  .yrkit-tree-body {
    scrollbar-width: thin;
    scrollbar-color: #424242 transparent;
  }
}
/* espaço reservado para a seta, alinha ficheiros com pastas irmãs */
.yrkit-tree-label::before {
  content: "";
  display: inline-block;
  width: 12px;
}
.yrkit-tree-folder > .yrkit-tree-label::before {
  content: "\25B8";
  color: #808080;
}
.yrkit-tree-folder.yrkit-tree-open > .yrkit-tree-label::before {
  content: "\25BE";
}
.yrkit-tree-file {
  color: #a9b7c6;
}
/* pastas: tom próprio, distinto dos ficheiros (quase-branco) */
.yrkit-tree-folder .yrkit-tree-label {
  color: #a9b7c6;
}
/* estado git: M = modificado (amarelo); U = novo (vermelho); versionados (verde) */
.yrkit-tree-node.yrkit-tree-git-modified .yrkit-tree-label {
  color: #e2c08d;
}
.yrkit-tree-node.yrkit-tree-git-new .yrkit-tree-label {
  color: #e06c75;
}
.yrkit-tree-node.yrkit-tree-git-tracked .yrkit-tree-label {
  color: #73c991;
}
/* a pasta .git é metadado do repo, não conteúdo: fica neutra e recessiva */
.yrkit-tree-node.yrkit-tree-dotgit .yrkit-tree-label {
  color: #808080;
}
/* BUILDS: caminho especial vindo do backend, mostrado antes da TREE e
   destacado (tom próprio + negrito) para se distinguir das pastas normais */
.yrkit-tree-node.yrkit-tree-builds .yrkit-tree-label {
  color: #4ec9b0;
  font-weight: 600;
}
.yrkit-tree-git-badge {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}
/* ficheiros abertos no editor: marca discreta no explorador */
.yrkit-tree-node.yrkit-tree-opened .yrkit-tree-label {
  font-style: italic;
}
/* ── shell: explorador + editor lado a lado ───────────────────────────────── */
.yrkit-shell {
  position: relative; /* âncora do explorador em sobreposição no mobile */
  display: flex;
  height: 100svh;
  overflow: hidden;
  /* tamanho do painel lateral (largura lado a lado / altura empilhado) */
  --yrkit-side-w: 420px;
  --yrkit-side-h: 50svh;
}
/* painel lateral escondido: o editor ocupa toda a largura */
.yrkit-shell.yrkit-side-hidden .yrkit-side {
  display: none;
}
/* explorador escondido: o editor começa logo à esquerda */
.yrkit-shell.yrkit-tree-hidden .yrkit-tree {
  display: none;
}
/* véu do explorador: só aparece no mobile, onde ele vira sobreposição */
.yrkit-tree-overlay {
  display: none;
}
.yrkit-editor {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
}
/* barra superior do editor: abas + ações (salvar) */
.yrkit-editor-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: 35px;
  background: #252526;
}
/* barra de abas (ficheiros abertos) */
.yrkit-editor-tabs {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #252526;
}
.yrkit-editor-save {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 4px;
  padding: 4px 12px;
  background: #0e639c;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}
.yrkit-editor-save:hover {
  background: #1177bb;
}
.yrkit-editor-save:disabled {
  background: #3a3d41;
  color: #909090;
  cursor: default;
}
/* botões de ferramenta da barra do editor (explorador, painel, desfazer):
   ícones quadrados e discretos, alinhados como numa barra de ferramentas */
.yrkit-editor-tool {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 4px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #a0a0a0;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.yrkit-editor-tool:hover {
  background: #2f2f31;
  color: #ffffff;
}
/* painel/explorador visível (ou modo empilhado ativo): ícone realçado */
.yrkit-editor-tool.yrkit-editor-toggle-side-active,
.yrkit-editor-tool.yrkit-editor-toggle-tree-active,
.yrkit-editor-tool.yrkit-editor-toggle-stack-active {
  background: #37373d;
  color: #4daafc;
}
/* ferramenta sem ação disponível (ex: nada por desfazer) */
.yrkit-editor-tool:disabled {
  color: #5a5a5a;
  background: transparent;
  cursor: default;
}
/* desfazer tudo: ação destrutiva, sinalizada em vermelho ao passar o mouse */
.yrkit-editor-tool.yrkit-editor-revert:not(:disabled):hover {
  background: #5a1d1d;
  color: #f48771;
}
.yrkit-editor-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  padding: 0 10px 0 14px;
  background: #2d2d2d;
  border-right: 1px solid #252526;
  color: #969696;
  white-space: nowrap;
  cursor: pointer;
}
.yrkit-editor-tab-active {
  background: #1e1e1e;
  color: #ffffff;
}
/* marcador de "não salvo" na aba */
.yrkit-editor-tab-dirty .yrkit-editor-tab-label::after {
  content: "\25CF";
  margin-left: 6px;
  color: #e2c08d;
  font-size: 10px;
}
.yrkit-editor-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.yrkit-editor-tab-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 3px;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.yrkit-editor-tab-close:hover {
  background: #4d4d4d;
  color: #ffffff;
}
/* conteúdo do ficheiro: <pre> realçado por baixo + <textarea> transparente por cima.
   Os dois partilham font/padding (sem wrap) para ficarem alinhados; sincronizamos
   os dois eixos de scroll. */
.yrkit-editor-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  --yrkit-gutter: 48px;
}
/* calha de números de linha (rola só no eixo vertical) */
.yrkit-editor-gutter {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--yrkit-gutter);
  overflow: hidden;
  background: #1e1e1e;
  color: #858585;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
  user-select: none;
}
.yrkit-editor-gutter-inner {
  padding: 12px 0;
}
.yrkit-editor-gutter-inner > div {
  padding-right: 12px;
}
/* régua vertical em 80ch (estilo colorcolumn do vim); altura ajustada via JS */
.yrkit-editor-ruler80 {
  position: absolute;
  top: 0;
  left: calc(16px + 80ch);
  width: 1ch;
  height: 0;
  background: rgba(228, 74, 74, 0.4);
  pointer-events: none;
}
.yrkit-editor-highlight,
.yrkit-editor-code {
  position: absolute;
  inset: 0 0 0 var(--yrkit-gutter);
  margin: 0;
  padding: 12px 16px;
  border: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
  /* sem wrap: 1 linha lógica = 1 linha visual → números de linha alinhados */
  white-space: pre;
}
.yrkit-editor-highlight {
  z-index: 0;
  overflow: hidden;
  color: #d4d4d4;
  pointer-events: none;
}
.yrkit-editor-highlight-code {
  font: inherit;
  white-space: inherit;
}
.yrkit-editor-code {
  z-index: 1;
  overflow: auto;
  resize: none;
  background: transparent;
  color: transparent;
  caret-color: #d4d4d4;
  outline: none;
}
.yrkit-editor-code::placeholder {
  color: #6a6a6a;
}
.yrkit-editor-code:disabled {
  background: transparent;
  color: transparent;
}
/* barra de scroll do editor (webkit/chromium) */
.yrkit-editor-code::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
.yrkit-editor-code::-webkit-scrollbar-thumb {
  background: #424242;
  border: 3px solid #1e1e1e;
  border-radius: 6px;
  background-clip: content-box;
}
.yrkit-editor-code::-webkit-scrollbar-thumb:hover {
  background: #565656;
  background-clip: content-box;
}
/* tokens de realce de sintaxe (paleta VS Code Dark+) */
.hl-comment { color: #6a9955; font-style: italic; }
.hl-string  { color: #ce9178; }
.hl-number  { color: #b5cea8; }
.hl-keyword { color: #569cd6; }
.hl-fn      { color: #dcdcaa; }
.hl-key     { color: #9cdcfe; }
.hl-tag     { color: #569cd6; }
.hl-attr    { color: #9cdcfe; }
.hl-punct   { color: #808080; }
/* ── painel lateral: preview + devtools + IA ──────────────────────────────── */
.yrkit-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: var(--yrkit-side-w, 420px);
  min-width: 200px;
  height: 100%;
  overflow: hidden;
  background: #1e1e1e;
  border-left: 1px solid #333333;
  color: #d4d4d4;
  font-family: -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
}
/* ── divisória arrastável entre editor e painel lateral ───────────────────── */
.yrkit-main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
/* modo empilhado: painel lateral abaixo do editor */
.yrkit-shell-stacked .yrkit-main {
  flex-direction: column;
}
.yrkit-splitter {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  background: #333333;
  cursor: col-resize;
  touch-action: none;
}
/* puxador: caractere unicode (sem imagem); gira no modo empilhado */
.yrkit-splitter-handle {
  position: relative;
  z-index: 1;
  color: #6a6a6a;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.yrkit-splitter:hover .yrkit-splitter-handle {
  color: #0e639c;
}
/* empilhado: divisória horizontal (arrasta na vertical). Sem pseudo-elemento:
   uma barra de cor única com o puxador unicode ao centro */
.yrkit-shell-stacked .yrkit-splitter {
  width: auto;
  height: 10px;
  background: #333333;
  cursor: row-resize;
}
/* empilhado: a divisória é horizontal — só gira o puxador */
.yrkit-shell-stacked .yrkit-splitter-handle {
  transform: rotate(90deg);
}
.yrkit-shell-stacked .yrkit-editor {
  min-height: 0;
}
.yrkit-shell-stacked .yrkit-side {
  width: auto;
  min-width: 0;
  height: var(--yrkit-side-h, 50svh);
  border-top: 1px solid #333333;
  border-left: none;
}
/* abas do painel (Preview | DevTools | AI) */
.yrkit-side-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: 35px;
  background: #252526;
}
.yrkit-side-tab {
  flex: 1 1 auto;
  padding: 0 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: #969696;
  font-size: 12px;
  cursor: pointer;
}
.yrkit-side-tab:hover {
  color: #ffffff;
}
.yrkit-side-tab-active {
  color: #ffffff;
  border-bottom-color: #0e639c;
}
/* aba escondida: não se aplica à extensão do ficheiro ativo */
.yrkit-side-tab-hidden {
  display: none;
}
/* aba IA: destaque próprio (cor + spark), separada das ferramentas de ficheiro */
.yrkit-side-tab-accent {
  flex: 0 0 auto;
  color: #c586c0;
  font-weight: 600;
}
.yrkit-side-tab-accent:hover {
  color: #d7a1ff;
}
.yrkit-side-tab-accent.yrkit-side-tab-active {
  color: #d7a1ff;
  border-bottom-color: #c586c0;
}
/* botão de destaque: leva a aba ativa do painel para o lugar do editor */
.yrkit-side-detach {
  flex: 0 0 auto;
  align-self: stretch;
  width: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: #969696;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.yrkit-side-detach:hover {
  background: #2f2f31;
  color: #ffffff;
}
/* destacado: botão realçado (a aba vive no lugar do editor) */
.yrkit-side-detach.yrkit-side-detach-active {
  color: #4daafc;
  border-bottom-color: #0e639c;
}
/* aba do editor: só aparece no modo destacado (o editor vive no painel) */
.yrkit-side-tab-editor.yrkit-side-tab-active {
  color: #ffffff;
  border-bottom-color: #0e639c;
}
/* área da aba destacada: ocupa o espaço abaixo da barra do editor */
.yrkit-detached-view {
  display: none;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.yrkit-side-detached .yrkit-detached-view {
  display: flex;
  flex-direction: column;
}
/* hospedeiro das abas destacadas (mesmo papel do corpo do painel) */
.yrkit-detached-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
/* o corpo do editor movido para dentro do painel preenche a aba Editor */
.yrkit-side-pane-editor .yrkit-editor-body {
  position: absolute;
  inset: 0;
}
.yrkit-side-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
/* só uma aba visível de cada vez */
.yrkit-side-pane {
  display: none;
  position: absolute;
  inset: 0;
}
.yrkit-side-pane-active {
  display: block;
}
.yrkit-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
/* preview "consoleable" (html/htm/yr/js): o iframe recua sobre um fundo
   azulado pontilhado, distinguindo a página real do restante painel.
   A classe é aplicada pelo JS no elemento pai do iframe (.yrkit-side-body). */
.yrkit-preview-consoleable {
  background-color: #101f2e;
  background-image: radial-gradient(
    rgba(77, 170, 252, 0.35) 1px,
    transparent 1.5px
  );
  background-size: 16px 16px;
  padding: 12px;
  /* a viewport escolhida pode ser mais larga que o painel: deixa rolar */
  overflow: auto;
}
/* barra de controlos de viewport/zoom (só aparece em pré-visualizações
   "consoleable"; a visibilidade é gerida pelo JS) */
.yrkit-preview-bar {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 8px;
  box-sizing: border-box;
  background: #252526;
  border-bottom: 1px solid #333333;
  color: #cccccc;
  font-size: 12px;
}
.yrkit-preview-size,
.yrkit-preview-zoom-out,
.yrkit-preview-zoom-in,
.yrkit-preview-zoom-reset {
  flex: 0 0 auto;
  padding: 3px 8px;
  background: #2d2d2d;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  color: #cccccc;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.yrkit-preview-size:hover,
.yrkit-preview-zoom-out:hover,
.yrkit-preview-zoom-in:hover,
.yrkit-preview-zoom-reset:hover {
  background: #3c3c3c;
  color: #ffffff;
}
.yrkit-preview-size-active,
.yrkit-preview-size-active:hover {
  background: #0e639c;
  border-color: #0e639c;
  color: #ffffff;
}
.yrkit-preview-zoom-reset {
  min-width: 52px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.yrkit-preview-width {
  flex: 0 0 76px;
  width: 76px;
  padding: 3px 6px;
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  color: #cccccc;
  font-size: 12px;
  text-align: center;
  outline: none;
}
.yrkit-preview-width:focus {
  border-color: #0e639c;
}
/* o iframe assume a largura da viewport escolhida e o zoom é um transform:
   scale() sobre o QUADRO INTEIRO. Posição, tamanho e zoom são calculados por
   JS (syncPreviewFrameHeight), porque dependem de medir o painel; aqui fica
   só o acabamento visual. */
.yrkit-preview-consoleable .yrkit-preview-frame {
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform-origin: top left;
}
/* console do iframe (aba DevTools) */
.yrkit-console {
  overflow: auto;
  padding: 8px 10px;
  background: #1e1e1e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.yrkit-console-line {
  white-space: pre-wrap;
  word-break: break-word;
}
.yrkit-console-log { color: #d4d4d4; }
.yrkit-console-info { color: #75beff; }
.yrkit-console-warn { color: #e2c08d; }
.yrkit-console-error { color: #f48771; }
.yrkit-console-debug { color: #808080; }
/* aba Elements: árvore do DOM do iframe (.html, .htm e .yr) */
.yrkit-elements {
  overflow: auto;
  padding: 8px 10px;
  background: #1e1e1e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.yrkit-elements-empty {
  color: #808080;
}
.yrkit-elements-label {
  color: #569cd6;
  white-space: nowrap;
}
.yrkit-elements-text {
  padding-left: 12px;
  color: #ce9178;
  white-space: pre-wrap;
  word-break: break-word;
}
.yrkit-elements-children {
  padding-left: 12px;
  border-left: 1px solid #2d2d2d;
}
/* aba Network: pedidos de rede feitos pelo iframe (.html, .htm e .yr) */
.yrkit-network {
  overflow: auto;
  padding: 8px 10px;
  background: #1e1e1e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
}
.yrkit-network-empty {
  color: #808080;
}
/* cada linha vira uma "tabela": método | status | tipo | tamanho | tempo | url */
.yrkit-network-line {
  display: grid;
  grid-template-columns: 46px 46px 72px 62px 62px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  white-space: nowrap;
  color: #d4d4d4;
}
.yrkit-network-col {
  overflow: hidden;
  text-overflow: ellipsis;
}
.yrkit-network-method { color: #569cd6; }
.yrkit-network-status { color: #73c991; }
.yrkit-network-type   { color: #c586c0; }
.yrkit-network-size,
.yrkit-network-time   { color: #858585; text-align: right; }
.yrkit-network-url    { color: #d4d4d4; }
.yrkit-network-ws .yrkit-network-method { color: #e2c08d; }
.yrkit-network-error .yrkit-network-method,
.yrkit-network-error .yrkit-network-status { color: #f48771; }
/* lista de pedidos: cada entrada é clicável e revela o detalhe por extenso */
.yrkit-network-list {
  display: flex;
  flex-direction: column;
}
.yrkit-network-line {
  padding: 1px 2px;
  border-radius: 3px;
  cursor: pointer;
}
.yrkit-network-line:hover {
  background: #2a2d2e;
}
.yrkit-network-entry.yrkit-network-open .yrkit-network-line {
  background: #094771;
}
/* detalhe: mostra a URL e os demais campos sem cortes */
.yrkit-network-detail {
  display: none;
  margin: 2px 0 6px;
  padding: 6px 8px;
  background: #252526;
  border-left: 2px solid #0e639c;
  border-radius: 3px;
}
.yrkit-network-entry.yrkit-network-open .yrkit-network-detail {
  display: block;
}
.yrkit-network-detail-row {
  display: flex;
  gap: 8px;
  padding: 1px 0;
}
.yrkit-network-detail-key {
  flex: 0 0 56px;
  color: #858585;
}
.yrkit-network-detail-val {
  flex: 1 1 auto;
  min-width: 0;
  color: #d4d4d4;
  white-space: pre-wrap;
  word-break: break-all;
}
/* corpo da resposta (fetch/XHR/WS): bloco mono com scroll próprio */
.yrkit-network-body {
  margin: 2px 0 6px;
  padding: 6px 8px;
  max-height: 280px;
  overflow: auto;
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: 3px;
  color: #d4d4d4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
/* aba IA: chat ocupa toda a altura e a caixa de texto fica no fundo */
.yrkit-side-pane-ai.yrkit-side-pane-active {
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
}
.yrkit-ai-log {
  flex: 1 1 auto;
  min-height: 0;
  padding: 10px 12px;
  overflow: auto;
}
.yrkit-ai-msg {
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
.yrkit-ai-user { background: #094771; }
.yrkit-ai-bot { background: #2d2d2d; }
.yrkit-ai-form {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #333333;
}
.yrkit-ai-input {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 140px;
  padding: 8px;
  background: #2d2d2d;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: inherit;
  font-size: 13px;
  resize: none;
  outline: none;
}
.yrkit-ai-input:focus {
  border-color: #0e639c;
}
.yrkit-ai-send {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0 14px;
  background: #0e639c;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
}
.yrkit-ai-send:hover {
  background: #1177bb;
}
.yrkit-ai-send:disabled {
  background: #3a3d41;
  color: #909090;
  cursor: default;
}
/* bolha de espera da IA: pulsa enquanto se aguarda a resposta */
.yrkit-ai-pending {
  color: #969696;
  font-style: italic;
  animation: yrkit-ai-pulse 1.2s ease-in-out infinite;
}
@keyframes yrkit-ai-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
/* ── mobile: o explorador vira uma sobreposição (não empurra o editor) ─────── */
@media (max-width: 802px) {
  .yrkit-tree {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 100;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.5);
  }
  /* o botão de alternar fica ACIMA da sobreposição, sempre acessível */
  .yrkit-editor-toggle-tree {
    position: relative;
    z-index: 101;
  }
  /* o botão flutua no canto superior esquerdo da sobreposição: recua o
     cabeçalho e alinha-o à altura da barra para o "Explorer" não ficar por
     baixo do botão */
  .yrkit-tree-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    min-height: 35px;
    padding-left: 44px;
  }
  .yrkit-editor-toggle-stack {
    display: none;
  }
  /* explorador aberto em sobreposição: escurece (e desfoca) o conteúdo ao
     lado; z-index 99 fica sob a árvore (100) e sob o botão de alternar (101) */
  .yrkit-shell:not(.yrkit-tree-hidden) .yrkit-tree-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}
.__EcHyWzkV {
  /*display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  width: 100% !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;*/ !important;
}
.hidden {
  display: none !important;
  /*position: absolute !important;
  z-index: -9999 !important;
  top: -20404px !important;
  opacity: 0 !important;*/
}
