/*==================================================
  Manual Kit Toolbar
==================================================*/

#toolbarMount {
  flex: 0 0 auto;
  min-width: 0;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 5px 10px;
  box-sizing: border-box;

  background: #20242b;
  border-bottom: 1px solid #363b45;

  color: #d7dce5;
  font-family: "Nanum Gothic", sans-serif;
  font-size: 13px;

  user-select: none;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 31px;
  padding: 0 10px;
  box-sizing: border-box;

  border: 1px solid transparent;
  border-radius: 5px;

  background: transparent;
  color: #d7dce5;

  font: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.toolbar-button:hover {
  background: #30353e;
  border-color: #3b424d;
  color: #ffffff;
}

.toolbar-button:active {
  background: #3b414c;
  transform: translateY(1px);
}

.toolbar-button:focus-visible {
  outline: 2px solid #6fa8dc;
  outline-offset: -2px;
}

.toolbar-button.is-active {
  background: #343a45;
  border-color: #4a5361;
  color: #ffffff;
}

.toolbar-button-primary {
  color: #ffffff;
}

.toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;

  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.toolbar-icon-button {
  width: 32px;
  padding: 0;

  font-family: Arial, sans-serif;
  font-size: 21px;
}

.toolbar-separator {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: #414750;
}

.toolbar-spacer {
  flex: 1 1 auto;
  min-width: 16px;
}

.toolbar-document-name {
  max-width: 220px;
  margin-right: 14px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #9fa7b3;
  font-size: 12px;
}

.toolbar-save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-width: 76px;
  height: 28px;
  padding: 0 8px;
  box-sizing: border-box;

  color: #aeb5bf;
  font-size: 12px;
  white-space: nowrap;
}

.toolbar-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78818d;
}

.toolbar-save-state.is-saved .toolbar-state-dot {
  background: #62b47a;
}

.toolbar-save-state.is-unsaved .toolbar-state-dot {
  background: #e0a14a;
}

.toolbar-save-state.is-saving .toolbar-state-dot {
  background: #6fa8dc;
}

/* 화면이 좁아졌을 때 버튼 텍스트 일부 숨김 */
@media (max-width: 900px) {
  .toolbar-document-name {
    display: none;
  }

  .toolbar-button {
    padding: 0 8px;
  }
}

@media (max-width: 700px) {
  .toolbar-button span:not(.toolbar-icon) {
    display: none;
  }

  .toolbar-button {
    width: 32px;
    padding: 0;
  }

  .toolbar-save-state {
    min-width: auto;
  }

  .toolbar-state-text {
    display: none;
  }
}