#gtc_pin_list span {
  color: #555;
}

#gtc_pin_list .chip {
  color: #fff;
}

.gtc_map.gtc_admin {
  display: flex;
}

.gtc_map #gtc_side {
  width: 380px;
  max-width: 45vw;
  overflow-y: auto;
  padding: 14px;
  box-sizing: border-box;
  background: #f7f7f9;
  border-right: 1px solid #ddd;
}

.gtc_map #gtc_map {
  flex: 1;
  min-width: 0;
}

.gtc_map .gtc_title {
  font-size: 18px;
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
}

.gtc_map h2 {
  font-size: 15px;
  margin: 18px 0 8px;
  color: #555;
}

.gtc_map #gtc_status {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.gtc_map #gtc_status.error {
  color: #b00020;
}

.gtc_map .tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.gtc_map .tabs button {
  flex: 1;
}

.gtc_map button {
  padding: 6px 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #555;
}

.gtc_map button:disabled {
  opacity: .5;
  cursor: default;
}

.gtc_map button.primary {
  background: #1e5aa0;
  color: #fff;
  border-color: #1e5aa0;
}

.gtc_map button.danger {
  background: #b00020;
  color: #fff;
}

.gtc_map button.active {
  background: #1e5aa0;
  color: #fff;
}

.gtc_map label {
  display: block;
  font-size: 12px;
  color: #444;
  margin: 8px 0 2px;
}

.gtc_map input[type=text],
.gtc_map input[type=number],
.gtc_map textarea,
.gtc_map select {
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
}

.gtc_map textarea {
  min-height: 70px;
  resize: vertical;
}

.gtc_map input[type=range] {
  width: 100%;
}

.gtc_map .row {
  display: flex;
  gap: 8px;
}

.gtc_map .row > * {
  flex: 1;
}

.gtc_map .btns {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.gtc_map .hint {
  font-size: 12px;
  color: #666;
  margin: 6px 0;
}

.gtc_map .undo_control {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, .3);
  border-radius: 50%;
  background: #fff;
  color: #1e5aa0;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
}

.gtc_map .undo_control:disabled {
  color: #aaa;
  cursor: default;
}

.gtc_map .undo_count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  border-radius: 8px;
  background: #1e5aa0;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.gtc_map .undo_count:empty {
  display: none;
}

/* Color swatch grid */

.gtc_map .swatch_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.gtc_map .swatch {
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #bbb;
}

.gtc_map .swatch.selected {
  box-shadow: 0 0 0 2px #1e5aa0;
}

.gtc_map ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gtc_map li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}

.gtc_map li.sel {
  border-color: #1e5aa0;
  box-shadow: 0 0 0 1px #1e5aa0;
}

.gtc_map .chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

.gtc_map .bar {
  width: 22px;
  flex: none;
  border-radius: 2px;
}

.gtc_map .icon_pick {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.gtc_map .picker_btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  text-align: left;
  color: #555;
}

.gtc_map .color_dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px #bbb;
}

.gtc_map .icon_preview {
  display: inline-block;
  min-width: 18px;
  text-align: center;
}

.gtc_map .gtc_picker {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, .5);
}

.gtc_map .gtc_picker.hidden {
  display: none;
}

.gtc_map .picker_panel {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow: auto;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

.gtc_map .picker_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gtc_map .picker_panel .icon_pick {
  grid-template-columns: repeat(8, 1fr);
}

.gtc_map .picker_panel .swatch {
  height: 36px;
}

.gtc_map .icon_pick button {
  padding: 6px 0;
  font-size: 15px;
}

.gtc_map .hidden {
  display: none;
}

@media (max-width: 700px) {
  .gtc_map.gtc_admin {
    flex-direction: column-reverse;
    height: auto;
  }

  .gtc_map #gtc_side {
    width: 100%;
    max-width: none;
    height: 55vh;
  }

  .gtc_map #gtc_map {
    height: 60vh;
    flex: none;
  }
}

.gtc_map .tag {
  margin-left: auto;
  padding: 1px 6px;
  font-size: 10px;
  color: #1e5aa0;
  background: #e8f0fa;
  border-radius: 8px;
}

/* Strand names */

.gtc_map .strand_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.gtc_map .strand_table th {
  padding: 3px 4px;
  text-align: left;
  color: #555;
  border-bottom: 1px solid #ccc;
}

.gtc_map .strand_table td {
  padding: 2px 4px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  color: #555;
}

.gtc_map .strand_table input[type=text] {
  min-width: 90px;
  padding: 3px 5px;
}

.gtc_map .strand_table .strand_chip {
  width: auto;
  height: auto;
  min-width: 44px;
  padding: 1px 6px;
  border: 1px solid rgba(0, 0, 0, .35);
  border-radius: 3px;
  font-size: 11px;
}

.gtc_map .strand_end {
  font-size: 11px;
  color: #666;
}
