.editor-tabs {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}

.editor-tabs::-webkit-scrollbar {
  display: none;
}

.editor-tab {
  min-width: 110px;
  max-width: 132px;
  flex: 0 0 auto;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: #7d8b9d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  cursor: pointer;
}

/* app.css styles every .editor-tabs span; reset the filename span inside interactive tabs. */
.editor-tabs .editor-tab > span {
  min-width: 0;
  width: auto;
  height: auto;
  display: block;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  background: transparent;
  font: inherit;
}

.editor-tab:hover {
  color: #c8d3df;
  background: rgba(255,255,255,.02);
}

.editor-tab.active {
  color: #e4ebf6;
  background: rgba(255,255,255,.04);
}

.editor-tab b {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #8f9bad;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.editor-tab:hover b,
.editor-tab.active b {
  color: #c9d3df;
}

.editor-tab b:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.file-tree button {
  width: 100%;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
}

.file-tree button:hover {
  background: rgba(255,255,255,.035);
  color: #d7e0eb;
  border-radius: 4px;
}

.file-tree button.active-file {
  background: rgba(255,255,255,.065);
  color: #f0f3f8;
  border-radius: 4px;
}

.code-pane {
  overflow: auto hidden;
  scrollbar-width: thin;
}

.code-pane > div {
  min-width: max-content;
}

@media (max-width: 760px) {
  .editor-titlebar {
    grid-template-columns: 64px minmax(0, 1fr) 106px;
  }

  .window-dots {
    padding-left: 12px;
    gap: 5px;
  }

  .window-dots i {
    width: 7px;
    height: 7px;
  }

  .editor-tab {
    min-width: 104px;
    max-width: 118px;
    padding-left: 10px;
    padding-right: 7px;
  }

  .editor-titlebar strong {
    padding-left: 12px;
  }
}
