.operation-picker {
  position: relative;
  min-width: 0;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  color: #999;
}

.operation-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 10px 13px;
  text-align: left;
}

.operation-symbol {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
}

.operation-current-label {
  font-size: 11px;
  color: #aaa;
}

.operation-chevron {
  margin-left: auto;
  color: #999;
}

.operation-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 8;
  max-height: min(65dvh, 560px);
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #888;
  background: #101010;
}

.operation-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: #aaa;
}

.operation-menu-heading button {
  border: 0;
  padding: 2px 6px;
}

.operation-group+.operation-group {
  margin-top: 18px;
}

.operation-group h3 {
  font-size: 10px;
  font-weight: 400;
  color: #888;
  margin-bottom: 8px;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.operation-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-height: 80px;
  padding: 10px;
  text-align: left;
}

.operation-grid button>span:last-child {
  font-size: 10px;
  color: #aaa;
}

.operation-grid button[aria-pressed=true] {
  background: #eee;
  color: #111;
  border-color: #eee;
}

.operation-grid button[aria-pressed=true]>span:last-child {
  color: #444;
}

.tree-legend {
  color: #888;
  font-size: 10px;
  padding: 0 0 8px;
}

@media (max-width: 600px) {
  .operation-trigger {
    gap: 10px;
    flex-wrap: wrap;
  }

  .operation-symbol {
    font-size: 18px;
  }
}

@media print {
  .operation-menu {
    display: none !important;
  }
}

.operation-menu.above {
  top: auto;
  bottom: calc(100% + 6px);
}