* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background: #111;
  color: #eee;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 8px 11px;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: #444;
}

button.primary {
  background: #245fbd;
}

button.primary:hover {
  background: #2f74dd;
}

button.soft {
  background: #223348;
}

button.noradius {
  border-radius: 0;
}

button.soft:hover {
  background: #2d4664;
}

button.danger {
  background: #612121;
  min-height: 32px;
}

button.danger:hover {
  background: #7a2929;
}

button.small {
  padding: 5px 8px;
  font-size: 12px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

label,
.field-label {
  color: #aaa;
  font-size: 12px;
  font-weight: bold;
}

code {
  font-family: Consolas, Monaco, monospace;
}

.text-input,
.text-select,
.text-area {
  width: 100%;
  min-width: 0;
  border: 1px solid #343434;
  border-radius: 8px;
  outline: none;
  padding: 9px 10px;
  background: #202020;
  color: #eee;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}

.text-select {
  font-family: Arial, sans-serif;
}

.text-area {
  min-height: 180px;
  resize: vertical;
  line-height: 1.45;
}

.prompt-area {
  min-height: 240px;
  background: #161616;
}

.title-with-icon,
.ui-with-icon,
.button-label {
  display: inline-flex;
  align-items: center;
}

.title-with-icon {
  color: #f0f3f7;
  text-decoration: none;
}

.title-with-icon,
.ui-with-icon {
  gap: 8px;
}

.button-label {
  gap: 7px;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  min-width: 1em;
  height: 1em;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
  overflow: hidden;
  text-align: center;
}

.ui-icon.ph {
  font-weight: normal;
}

.ui-icon::before {
  display: block;
  width: 1em;
  text-align: center;
}

.topbar-logo .ui-icon,
.panel-title .ui-icon,
.tool-title .ui-icon,
.modal-title .ui-icon {
  color: #8fbcff;
}

.button-label .ui-icon {
  font-size: 16px;
}

@supports not (gap: 8px) {
  .title-with-icon > * + *,
  .ui-with-icon > * + * {
    margin-left: 8px;
  }

  .button-label > * + * {
    margin-left: 7px;
  }
}
